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 01/20] 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 02/20] #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 03/20] 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 04/20] 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 05/20] 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 06/20] 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 07/20] 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 extends com.google.cloud.talent.v4beta1.SkillOrBuilder>
+ 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 extends com.google.cloud.talent.v4beta1.Skill> 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 extends com.google.cloud.talent.v4beta1.SkillOrBuilder>
+ 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