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 + getSkillsUsedOrBuilderList() { + return skillsUsed_; + } + /** + * + * + *
+   * Optional.
+   * A list of skills used in this activity.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public int getSkillsUsedCount() { + return skillsUsed_.size(); + } + /** + * + * + *
+   * Optional.
+   * A list of skills used in this activity.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public com.google.cloud.talent.v4beta1.Skill getSkillsUsed(int index) { + return skillsUsed_.get(index); + } + /** + * + * + *
+   * Optional.
+   * A list of skills used in this activity.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsUsedOrBuilder(int index) { + return skillsUsed_.get(index); + } + + public static final int ACTIVITY_NAME_SNIPPET_FIELD_NUMBER = 8; + private volatile java.lang.Object activityNameSnippet_; + /** + * + * + *
+   * Output only. Activity name snippet shows how the
+   * [display_name][google.cloud.talent.v4beta1.Activity.display_name] is
+   * related to a search query. It's empty if the
+   * [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't
+   * related to the search query.
+   * 
+ * + * string activity_name_snippet = 8; + */ + public java.lang.String getActivityNameSnippet() { + java.lang.Object ref = activityNameSnippet_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + activityNameSnippet_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Activity name snippet shows how the
+   * [display_name][google.cloud.talent.v4beta1.Activity.display_name] is
+   * related to a search query. It's empty if the
+   * [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't
+   * related to the search query.
+   * 
+ * + * string activity_name_snippet = 8; + */ + public com.google.protobuf.ByteString getActivityNameSnippetBytes() { + java.lang.Object ref = activityNameSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + activityNameSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACTIVITY_DESCRIPTION_SNIPPET_FIELD_NUMBER = 9; + private volatile java.lang.Object activityDescriptionSnippet_; + /** + * + * + *
+   * Output only. Activity description snippet shows how the
+   * [description][google.cloud.talent.v4beta1.Activity.description] is related
+   * to a search query. It's empty if the
+   * [description][google.cloud.talent.v4beta1.Activity.description] isn't
+   * related to the search query.
+   * 
+ * + * string activity_description_snippet = 9; + */ + public java.lang.String getActivityDescriptionSnippet() { + java.lang.Object ref = activityDescriptionSnippet_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + activityDescriptionSnippet_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Activity description snippet shows how the
+   * [description][google.cloud.talent.v4beta1.Activity.description] is related
+   * to a search query. It's empty if the
+   * [description][google.cloud.talent.v4beta1.Activity.description] isn't
+   * related to the search query.
+   * 
+ * + * string activity_description_snippet = 9; + */ + public com.google.protobuf.ByteString getActivityDescriptionSnippetBytes() { + java.lang.Object ref = activityDescriptionSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + activityDescriptionSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKILLS_USED_SNIPPET_FIELD_NUMBER = 10; + private com.google.protobuf.LazyStringList skillsUsedSnippet_; + /** + * + * + *
+   * Output only. Skill used snippet shows how the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+   * to a search query. It's empty if the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+   * related to the search query.
+   * 
+ * + * repeated string skills_used_snippet = 10; + */ + public com.google.protobuf.ProtocolStringList getSkillsUsedSnippetList() { + return skillsUsedSnippet_; + } + /** + * + * + *
+   * Output only. Skill used snippet shows how the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+   * to a search query. It's empty if the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+   * related to the search query.
+   * 
+ * + * repeated string skills_used_snippet = 10; + */ + public int getSkillsUsedSnippetCount() { + return skillsUsedSnippet_.size(); + } + /** + * + * + *
+   * Output only. Skill used snippet shows how the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+   * to a search query. It's empty if the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+   * related to the search query.
+   * 
+ * + * repeated string skills_used_snippet = 10; + */ + public java.lang.String getSkillsUsedSnippet(int index) { + return skillsUsedSnippet_.get(index); + } + /** + * + * + *
+   * Output only. Skill used snippet shows how the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+   * to a search query. It's empty if the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+   * related to the search query.
+   * 
+ * + * repeated string skills_used_snippet = 10; + */ + public com.google.protobuf.ByteString getSkillsUsedSnippetBytes(int index) { + return skillsUsedSnippet_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + if (!getUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uri_); + } + if (createDate_ != null) { + output.writeMessage(4, getCreateDate()); + } + if (updateDate_ != null) { + output.writeMessage(5, getUpdateDate()); + } + for (int i = 0; i < teamMembers_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, teamMembers_.getRaw(i)); + } + for (int i = 0; i < skillsUsed_.size(); i++) { + output.writeMessage(7, skillsUsed_.get(i)); + } + if (!getActivityNameSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, activityNameSnippet_); + } + if (!getActivityDescriptionSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, activityDescriptionSnippet_); + } + for (int i = 0; i < skillsUsedSnippet_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, skillsUsedSnippet_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + if (!getUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uri_); + } + if (createDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateDate()); + } + if (updateDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateDate()); + } + { + int dataSize = 0; + for (int i = 0; i < teamMembers_.size(); i++) { + dataSize += computeStringSizeNoTag(teamMembers_.getRaw(i)); + } + size += dataSize; + size += 1 * getTeamMembersList().size(); + } + for (int i = 0; i < skillsUsed_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, skillsUsed_.get(i)); + } + if (!getActivityNameSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, activityNameSnippet_); + } + if (!getActivityDescriptionSnippetBytes().isEmpty()) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(9, activityDescriptionSnippet_); + } + { + int dataSize = 0; + for (int i = 0; i < skillsUsedSnippet_.size(); i++) { + dataSize += computeStringSizeNoTag(skillsUsedSnippet_.getRaw(i)); + } + size += dataSize; + size += 1 * getSkillsUsedSnippetList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Activity)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Activity other = (com.google.cloud.talent.v4beta1.Activity) obj; + + boolean result = true; + result = result && getDisplayName().equals(other.getDisplayName()); + result = result && getDescription().equals(other.getDescription()); + result = result && getUri().equals(other.getUri()); + result = result && (hasCreateDate() == other.hasCreateDate()); + if (hasCreateDate()) { + result = result && getCreateDate().equals(other.getCreateDate()); + } + result = result && (hasUpdateDate() == other.hasUpdateDate()); + if (hasUpdateDate()) { + result = result && getUpdateDate().equals(other.getUpdateDate()); + } + result = result && getTeamMembersList().equals(other.getTeamMembersList()); + result = result && getSkillsUsedList().equals(other.getSkillsUsedList()); + result = result && getActivityNameSnippet().equals(other.getActivityNameSnippet()); + result = + result && getActivityDescriptionSnippet().equals(other.getActivityDescriptionSnippet()); + result = result && getSkillsUsedSnippetList().equals(other.getSkillsUsedSnippetList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + if (hasCreateDate()) { + hash = (37 * hash) + CREATE_DATE_FIELD_NUMBER; + hash = (53 * hash) + getCreateDate().hashCode(); + } + if (hasUpdateDate()) { + hash = (37 * hash) + UPDATE_DATE_FIELD_NUMBER; + hash = (53 * hash) + getUpdateDate().hashCode(); + } + if (getTeamMembersCount() > 0) { + hash = (37 * hash) + TEAM_MEMBERS_FIELD_NUMBER; + hash = (53 * hash) + getTeamMembersList().hashCode(); + } + if (getSkillsUsedCount() > 0) { + hash = (37 * hash) + SKILLS_USED_FIELD_NUMBER; + hash = (53 * hash) + getSkillsUsedList().hashCode(); + } + hash = (37 * hash) + ACTIVITY_NAME_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getActivityNameSnippet().hashCode(); + hash = (37 * hash) + ACTIVITY_DESCRIPTION_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getActivityDescriptionSnippet().hashCode(); + if (getSkillsUsedSnippetCount() > 0) { + hash = (37 * hash) + SKILLS_USED_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getSkillsUsedSnippetList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Activity parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Activity parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Activity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Activity parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Activity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Activity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Activity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Activity parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Activity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Activity parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Activity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Activity parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.Activity prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Resource that represents an individual or collaborative activity participated
+   * in by a candidate, for example, an open-source project, a class assignment,
+   * etc.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Activity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Activity) + com.google.cloud.talent.v4beta1.ActivityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Activity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Activity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Activity.class, + com.google.cloud.talent.v4beta1.Activity.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Activity.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSkillsUsedFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + displayName_ = ""; + + description_ = ""; + + uri_ = ""; + + if (createDateBuilder_ == null) { + createDate_ = null; + } else { + createDate_ = null; + createDateBuilder_ = null; + } + if (updateDateBuilder_ == null) { + updateDate_ = null; + } else { + updateDate_ = null; + updateDateBuilder_ = null; + } + teamMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + if (skillsUsedBuilder_ == null) { + skillsUsed_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + } else { + skillsUsedBuilder_.clear(); + } + activityNameSnippet_ = ""; + + activityDescriptionSnippet_ = ""; + + skillsUsedSnippet_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000200); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Activity_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Activity getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Activity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Activity build() { + com.google.cloud.talent.v4beta1.Activity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Activity buildPartial() { + com.google.cloud.talent.v4beta1.Activity result = + new com.google.cloud.talent.v4beta1.Activity(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.displayName_ = displayName_; + result.description_ = description_; + result.uri_ = uri_; + if (createDateBuilder_ == null) { + result.createDate_ = createDate_; + } else { + result.createDate_ = createDateBuilder_.build(); + } + if (updateDateBuilder_ == null) { + result.updateDate_ = updateDate_; + } else { + result.updateDate_ = updateDateBuilder_.build(); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + teamMembers_ = teamMembers_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.teamMembers_ = teamMembers_; + if (skillsUsedBuilder_ == null) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { + skillsUsed_ = java.util.Collections.unmodifiableList(skillsUsed_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.skillsUsed_ = skillsUsed_; + } else { + result.skillsUsed_ = skillsUsedBuilder_.build(); + } + result.activityNameSnippet_ = activityNameSnippet_; + result.activityDescriptionSnippet_ = activityDescriptionSnippet_; + if (((bitField0_ & 0x00000200) == 0x00000200)) { + skillsUsedSnippet_ = skillsUsedSnippet_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.skillsUsedSnippet_ = skillsUsedSnippet_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Activity) { + return mergeFrom((com.google.cloud.talent.v4beta1.Activity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Activity other) { + if (other == com.google.cloud.talent.v4beta1.Activity.getDefaultInstance()) return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + onChanged(); + } + if (other.hasCreateDate()) { + mergeCreateDate(other.getCreateDate()); + } + if (other.hasUpdateDate()) { + mergeUpdateDate(other.getUpdateDate()); + } + if (!other.teamMembers_.isEmpty()) { + if (teamMembers_.isEmpty()) { + teamMembers_ = other.teamMembers_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureTeamMembersIsMutable(); + teamMembers_.addAll(other.teamMembers_); + } + onChanged(); + } + if (skillsUsedBuilder_ == null) { + if (!other.skillsUsed_.isEmpty()) { + if (skillsUsed_.isEmpty()) { + skillsUsed_ = other.skillsUsed_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureSkillsUsedIsMutable(); + skillsUsed_.addAll(other.skillsUsed_); + } + onChanged(); + } + } else { + if (!other.skillsUsed_.isEmpty()) { + if (skillsUsedBuilder_.isEmpty()) { + skillsUsedBuilder_.dispose(); + skillsUsedBuilder_ = null; + skillsUsed_ = other.skillsUsed_; + bitField0_ = (bitField0_ & ~0x00000040); + skillsUsedBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSkillsUsedFieldBuilder() + : null; + } else { + skillsUsedBuilder_.addAllMessages(other.skillsUsed_); + } + } + } + if (!other.getActivityNameSnippet().isEmpty()) { + activityNameSnippet_ = other.activityNameSnippet_; + onChanged(); + } + if (!other.getActivityDescriptionSnippet().isEmpty()) { + activityDescriptionSnippet_ = other.activityDescriptionSnippet_; + onChanged(); + } + if (!other.skillsUsedSnippet_.isEmpty()) { + if (skillsUsedSnippet_.isEmpty()) { + skillsUsedSnippet_ = other.skillsUsedSnippet_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureSkillsUsedSnippetIsMutable(); + skillsUsedSnippet_.addAll(other.skillsUsedSnippet_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Activity parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Activity) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Optional.
+     * Activity display name.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Activity display name.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Activity display name.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Activity display name.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Activity display name.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Optional.
+     * Activity description.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 2; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Activity description.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 2; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Activity description.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 2; + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Activity description.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 2; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Activity description.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 2; + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private java.lang.Object uri_ = ""; + /** + * + * + *
+     * Optional.
+     * Activity URI.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string uri = 3; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Activity URI.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string uri = 3; + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Activity URI.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string uri = 3; + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Activity URI.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string uri = 3; + */ + public Builder clearUri() { + + uri_ = getDefaultInstance().getUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Activity URI.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string uri = 3; + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uri_ = value; + onChanged(); + return this; + } + + private com.google.type.Date createDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + createDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The first creation date of the activity.
+     * 
+ * + * .google.type.Date create_date = 4; + */ + public boolean hasCreateDate() { + return createDateBuilder_ != null || createDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The first creation date of the activity.
+     * 
+ * + * .google.type.Date create_date = 4; + */ + public com.google.type.Date getCreateDate() { + if (createDateBuilder_ == null) { + return createDate_ == null ? com.google.type.Date.getDefaultInstance() : createDate_; + } else { + return createDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The first creation date of the activity.
+     * 
+ * + * .google.type.Date create_date = 4; + */ + public Builder setCreateDate(com.google.type.Date value) { + if (createDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createDate_ = value; + onChanged(); + } else { + createDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The first creation date of the activity.
+     * 
+ * + * .google.type.Date create_date = 4; + */ + public Builder setCreateDate(com.google.type.Date.Builder builderForValue) { + if (createDateBuilder_ == null) { + createDate_ = builderForValue.build(); + onChanged(); + } else { + createDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The first creation date of the activity.
+     * 
+ * + * .google.type.Date create_date = 4; + */ + public Builder mergeCreateDate(com.google.type.Date value) { + if (createDateBuilder_ == null) { + if (createDate_ != null) { + createDate_ = + com.google.type.Date.newBuilder(createDate_).mergeFrom(value).buildPartial(); + } else { + createDate_ = value; + } + onChanged(); + } else { + createDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The first creation date of the activity.
+     * 
+ * + * .google.type.Date create_date = 4; + */ + public Builder clearCreateDate() { + if (createDateBuilder_ == null) { + createDate_ = null; + onChanged(); + } else { + createDate_ = null; + createDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The first creation date of the activity.
+     * 
+ * + * .google.type.Date create_date = 4; + */ + public com.google.type.Date.Builder getCreateDateBuilder() { + + onChanged(); + return getCreateDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The first creation date of the activity.
+     * 
+ * + * .google.type.Date create_date = 4; + */ + public com.google.type.DateOrBuilder getCreateDateOrBuilder() { + if (createDateBuilder_ != null) { + return createDateBuilder_.getMessageOrBuilder(); + } else { + return createDate_ == null ? com.google.type.Date.getDefaultInstance() : createDate_; + } + } + /** + * + * + *
+     * Optional.
+     * The first creation date of the activity.
+     * 
+ * + * .google.type.Date create_date = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getCreateDateFieldBuilder() { + if (createDateBuilder_ == null) { + createDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getCreateDate(), getParentForChildren(), isClean()); + createDate_ = null; + } + return createDateBuilder_; + } + + private com.google.type.Date updateDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + updateDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The last update date of the activity.
+     * 
+ * + * .google.type.Date update_date = 5; + */ + public boolean hasUpdateDate() { + return updateDateBuilder_ != null || updateDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The last update date of the activity.
+     * 
+ * + * .google.type.Date update_date = 5; + */ + public com.google.type.Date getUpdateDate() { + if (updateDateBuilder_ == null) { + return updateDate_ == null ? com.google.type.Date.getDefaultInstance() : updateDate_; + } else { + return updateDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The last update date of the activity.
+     * 
+ * + * .google.type.Date update_date = 5; + */ + public Builder setUpdateDate(com.google.type.Date value) { + if (updateDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateDate_ = value; + onChanged(); + } else { + updateDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last update date of the activity.
+     * 
+ * + * .google.type.Date update_date = 5; + */ + public Builder setUpdateDate(com.google.type.Date.Builder builderForValue) { + if (updateDateBuilder_ == null) { + updateDate_ = builderForValue.build(); + onChanged(); + } else { + updateDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last update date of the activity.
+     * 
+ * + * .google.type.Date update_date = 5; + */ + public Builder mergeUpdateDate(com.google.type.Date value) { + if (updateDateBuilder_ == null) { + if (updateDate_ != null) { + updateDate_ = + com.google.type.Date.newBuilder(updateDate_).mergeFrom(value).buildPartial(); + } else { + updateDate_ = value; + } + onChanged(); + } else { + updateDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last update date of the activity.
+     * 
+ * + * .google.type.Date update_date = 5; + */ + public Builder clearUpdateDate() { + if (updateDateBuilder_ == null) { + updateDate_ = null; + onChanged(); + } else { + updateDate_ = null; + updateDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last update date of the activity.
+     * 
+ * + * .google.type.Date update_date = 5; + */ + public com.google.type.Date.Builder getUpdateDateBuilder() { + + onChanged(); + return getUpdateDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The last update date of the activity.
+     * 
+ * + * .google.type.Date update_date = 5; + */ + public com.google.type.DateOrBuilder getUpdateDateOrBuilder() { + if (updateDateBuilder_ != null) { + return updateDateBuilder_.getMessageOrBuilder(); + } else { + return updateDate_ == null ? com.google.type.Date.getDefaultInstance() : updateDate_; + } + } + /** + * + * + *
+     * Optional.
+     * The last update date of the activity.
+     * 
+ * + * .google.type.Date update_date = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getUpdateDateFieldBuilder() { + if (updateDateBuilder_ == null) { + updateDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getUpdateDate(), getParentForChildren(), isClean()); + updateDate_ = null; + } + return updateDateBuilder_; + } + + private com.google.protobuf.LazyStringList teamMembers_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureTeamMembersIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + teamMembers_ = new com.google.protobuf.LazyStringArrayList(teamMembers_); + bitField0_ |= 0x00000020; + } + } + /** + * + * + *
+     * Optional.
+     * A list of team members involved in this activity.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string team_members = 6; + */ + public com.google.protobuf.ProtocolStringList getTeamMembersList() { + return teamMembers_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional.
+     * A list of team members involved in this activity.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string team_members = 6; + */ + public int getTeamMembersCount() { + return teamMembers_.size(); + } + /** + * + * + *
+     * Optional.
+     * A list of team members involved in this activity.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string team_members = 6; + */ + public java.lang.String getTeamMembers(int index) { + return teamMembers_.get(index); + } + /** + * + * + *
+     * Optional.
+     * A list of team members involved in this activity.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string team_members = 6; + */ + public com.google.protobuf.ByteString getTeamMembersBytes(int index) { + return teamMembers_.getByteString(index); + } + /** + * + * + *
+     * Optional.
+     * A list of team members involved in this activity.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string team_members = 6; + */ + public Builder setTeamMembers(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTeamMembersIsMutable(); + teamMembers_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of team members involved in this activity.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string team_members = 6; + */ + public Builder addTeamMembers(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTeamMembersIsMutable(); + teamMembers_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of team members involved in this activity.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string team_members = 6; + */ + public Builder addAllTeamMembers(java.lang.Iterable values) { + ensureTeamMembersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, teamMembers_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of team members involved in this activity.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string team_members = 6; + */ + public Builder clearTeamMembers() { + teamMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of team members involved in this activity.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string team_members = 6; + */ + public Builder addTeamMembersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTeamMembersIsMutable(); + teamMembers_.add(value); + onChanged(); + return this; + } + + private java.util.List skillsUsed_ = + java.util.Collections.emptyList(); + + private void ensureSkillsUsedIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + skillsUsed_ = new java.util.ArrayList(skillsUsed_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Skill, + com.google.cloud.talent.v4beta1.Skill.Builder, + com.google.cloud.talent.v4beta1.SkillOrBuilder> + skillsUsedBuilder_; + + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public java.util.List getSkillsUsedList() { + if (skillsUsedBuilder_ == null) { + return java.util.Collections.unmodifiableList(skillsUsed_); + } else { + return skillsUsedBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public int getSkillsUsedCount() { + if (skillsUsedBuilder_ == null) { + return skillsUsed_.size(); + } else { + return skillsUsedBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public com.google.cloud.talent.v4beta1.Skill getSkillsUsed(int index) { + if (skillsUsedBuilder_ == null) { + return skillsUsed_.get(index); + } else { + return skillsUsedBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public Builder setSkillsUsed(int index, com.google.cloud.talent.v4beta1.Skill value) { + if (skillsUsedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsUsedIsMutable(); + skillsUsed_.set(index, value); + onChanged(); + } else { + skillsUsedBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public Builder setSkillsUsed( + int index, com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { + if (skillsUsedBuilder_ == null) { + ensureSkillsUsedIsMutable(); + skillsUsed_.set(index, builderForValue.build()); + onChanged(); + } else { + skillsUsedBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public Builder addSkillsUsed(com.google.cloud.talent.v4beta1.Skill value) { + if (skillsUsedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsUsedIsMutable(); + skillsUsed_.add(value); + onChanged(); + } else { + skillsUsedBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public Builder addSkillsUsed(int index, com.google.cloud.talent.v4beta1.Skill value) { + if (skillsUsedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsUsedIsMutable(); + skillsUsed_.add(index, value); + onChanged(); + } else { + skillsUsedBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public Builder addSkillsUsed(com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { + if (skillsUsedBuilder_ == null) { + ensureSkillsUsedIsMutable(); + skillsUsed_.add(builderForValue.build()); + onChanged(); + } else { + skillsUsedBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public Builder addSkillsUsed( + int index, com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { + if (skillsUsedBuilder_ == null) { + ensureSkillsUsedIsMutable(); + skillsUsed_.add(index, builderForValue.build()); + onChanged(); + } else { + skillsUsedBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public Builder addAllSkillsUsed( + java.lang.Iterable values) { + if (skillsUsedBuilder_ == null) { + ensureSkillsUsedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skillsUsed_); + onChanged(); + } else { + skillsUsedBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public Builder clearSkillsUsed() { + if (skillsUsedBuilder_ == null) { + skillsUsed_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + skillsUsedBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public Builder removeSkillsUsed(int index) { + if (skillsUsedBuilder_ == null) { + ensureSkillsUsedIsMutable(); + skillsUsed_.remove(index); + onChanged(); + } else { + skillsUsedBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public com.google.cloud.talent.v4beta1.Skill.Builder getSkillsUsedBuilder(int index) { + return getSkillsUsedFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsUsedOrBuilder(int index) { + if (skillsUsedBuilder_ == null) { + return skillsUsed_.get(index); + } else { + return skillsUsedBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public java.util.List + getSkillsUsedOrBuilderList() { + if (skillsUsedBuilder_ != null) { + return skillsUsedBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(skillsUsed_); + } + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public com.google.cloud.talent.v4beta1.Skill.Builder addSkillsUsedBuilder() { + return getSkillsUsedFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Skill.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public com.google.cloud.talent.v4beta1.Skill.Builder addSkillsUsedBuilder(int index) { + return getSkillsUsedFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Skill.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public java.util.List + getSkillsUsedBuilderList() { + return getSkillsUsedFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Skill, + com.google.cloud.talent.v4beta1.Skill.Builder, + com.google.cloud.talent.v4beta1.SkillOrBuilder> + getSkillsUsedFieldBuilder() { + if (skillsUsedBuilder_ == null) { + skillsUsedBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Skill, + com.google.cloud.talent.v4beta1.Skill.Builder, + com.google.cloud.talent.v4beta1.SkillOrBuilder>( + skillsUsed_, + ((bitField0_ & 0x00000040) == 0x00000040), + getParentForChildren(), + isClean()); + skillsUsed_ = null; + } + return skillsUsedBuilder_; + } + + private java.lang.Object activityNameSnippet_ = ""; + /** + * + * + *
+     * Output only. Activity name snippet shows how the
+     * [display_name][google.cloud.talent.v4beta1.Activity.display_name] is
+     * related to a search query. It's empty if the
+     * [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't
+     * related to the search query.
+     * 
+ * + * string activity_name_snippet = 8; + */ + public java.lang.String getActivityNameSnippet() { + java.lang.Object ref = activityNameSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + activityNameSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Activity name snippet shows how the
+     * [display_name][google.cloud.talent.v4beta1.Activity.display_name] is
+     * related to a search query. It's empty if the
+     * [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't
+     * related to the search query.
+     * 
+ * + * string activity_name_snippet = 8; + */ + public com.google.protobuf.ByteString getActivityNameSnippetBytes() { + java.lang.Object ref = activityNameSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + activityNameSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Activity name snippet shows how the
+     * [display_name][google.cloud.talent.v4beta1.Activity.display_name] is
+     * related to a search query. It's empty if the
+     * [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't
+     * related to the search query.
+     * 
+ * + * string activity_name_snippet = 8; + */ + public Builder setActivityNameSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + activityNameSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Activity name snippet shows how the
+     * [display_name][google.cloud.talent.v4beta1.Activity.display_name] is
+     * related to a search query. It's empty if the
+     * [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't
+     * related to the search query.
+     * 
+ * + * string activity_name_snippet = 8; + */ + public Builder clearActivityNameSnippet() { + + activityNameSnippet_ = getDefaultInstance().getActivityNameSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Activity name snippet shows how the
+     * [display_name][google.cloud.talent.v4beta1.Activity.display_name] is
+     * related to a search query. It's empty if the
+     * [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't
+     * related to the search query.
+     * 
+ * + * string activity_name_snippet = 8; + */ + public Builder setActivityNameSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + activityNameSnippet_ = value; + onChanged(); + return this; + } + + private java.lang.Object activityDescriptionSnippet_ = ""; + /** + * + * + *
+     * Output only. Activity description snippet shows how the
+     * [description][google.cloud.talent.v4beta1.Activity.description] is related
+     * to a search query. It's empty if the
+     * [description][google.cloud.talent.v4beta1.Activity.description] isn't
+     * related to the search query.
+     * 
+ * + * string activity_description_snippet = 9; + */ + public java.lang.String getActivityDescriptionSnippet() { + java.lang.Object ref = activityDescriptionSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + activityDescriptionSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Activity description snippet shows how the
+     * [description][google.cloud.talent.v4beta1.Activity.description] is related
+     * to a search query. It's empty if the
+     * [description][google.cloud.talent.v4beta1.Activity.description] isn't
+     * related to the search query.
+     * 
+ * + * string activity_description_snippet = 9; + */ + public com.google.protobuf.ByteString getActivityDescriptionSnippetBytes() { + java.lang.Object ref = activityDescriptionSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + activityDescriptionSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Activity description snippet shows how the
+     * [description][google.cloud.talent.v4beta1.Activity.description] is related
+     * to a search query. It's empty if the
+     * [description][google.cloud.talent.v4beta1.Activity.description] isn't
+     * related to the search query.
+     * 
+ * + * string activity_description_snippet = 9; + */ + public Builder setActivityDescriptionSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + activityDescriptionSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Activity description snippet shows how the
+     * [description][google.cloud.talent.v4beta1.Activity.description] is related
+     * to a search query. It's empty if the
+     * [description][google.cloud.talent.v4beta1.Activity.description] isn't
+     * related to the search query.
+     * 
+ * + * string activity_description_snippet = 9; + */ + public Builder clearActivityDescriptionSnippet() { + + activityDescriptionSnippet_ = getDefaultInstance().getActivityDescriptionSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Activity description snippet shows how the
+     * [description][google.cloud.talent.v4beta1.Activity.description] is related
+     * to a search query. It's empty if the
+     * [description][google.cloud.talent.v4beta1.Activity.description] isn't
+     * related to the search query.
+     * 
+ * + * string activity_description_snippet = 9; + */ + public Builder setActivityDescriptionSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + activityDescriptionSnippet_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList skillsUsedSnippet_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureSkillsUsedSnippetIsMutable() { + if (!((bitField0_ & 0x00000200) == 0x00000200)) { + skillsUsedSnippet_ = new com.google.protobuf.LazyStringArrayList(skillsUsedSnippet_); + bitField0_ |= 0x00000200; + } + } + /** + * + * + *
+     * Output only. Skill used snippet shows how the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+     * to a search query. It's empty if the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+     * related to the search query.
+     * 
+ * + * repeated string skills_used_snippet = 10; + */ + public com.google.protobuf.ProtocolStringList getSkillsUsedSnippetList() { + return skillsUsedSnippet_.getUnmodifiableView(); + } + /** + * + * + *
+     * Output only. Skill used snippet shows how the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+     * to a search query. It's empty if the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+     * related to the search query.
+     * 
+ * + * repeated string skills_used_snippet = 10; + */ + public int getSkillsUsedSnippetCount() { + return skillsUsedSnippet_.size(); + } + /** + * + * + *
+     * Output only. Skill used snippet shows how the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+     * to a search query. It's empty if the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+     * related to the search query.
+     * 
+ * + * repeated string skills_used_snippet = 10; + */ + public java.lang.String getSkillsUsedSnippet(int index) { + return skillsUsedSnippet_.get(index); + } + /** + * + * + *
+     * Output only. Skill used snippet shows how the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+     * to a search query. It's empty if the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+     * related to the search query.
+     * 
+ * + * repeated string skills_used_snippet = 10; + */ + public com.google.protobuf.ByteString getSkillsUsedSnippetBytes(int index) { + return skillsUsedSnippet_.getByteString(index); + } + /** + * + * + *
+     * Output only. Skill used snippet shows how the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+     * to a search query. It's empty if the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+     * related to the search query.
+     * 
+ * + * repeated string skills_used_snippet = 10; + */ + public Builder setSkillsUsedSnippet(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsUsedSnippetIsMutable(); + skillsUsedSnippet_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Skill used snippet shows how the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+     * to a search query. It's empty if the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+     * related to the search query.
+     * 
+ * + * repeated string skills_used_snippet = 10; + */ + public Builder addSkillsUsedSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsUsedSnippetIsMutable(); + skillsUsedSnippet_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Skill used snippet shows how the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+     * to a search query. It's empty if the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+     * related to the search query.
+     * 
+ * + * repeated string skills_used_snippet = 10; + */ + public Builder addAllSkillsUsedSnippet(java.lang.Iterable values) { + ensureSkillsUsedSnippetIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skillsUsedSnippet_); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Skill used snippet shows how the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+     * to a search query. It's empty if the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+     * related to the search query.
+     * 
+ * + * repeated string skills_used_snippet = 10; + */ + public Builder clearSkillsUsedSnippet() { + skillsUsedSnippet_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Skill used snippet shows how the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+     * to a search query. It's empty if the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+     * related to the search query.
+     * 
+ * + * repeated string skills_used_snippet = 10; + */ + public Builder addSkillsUsedSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSkillsUsedSnippetIsMutable(); + skillsUsedSnippet_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Activity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Activity) + private static final com.google.cloud.talent.v4beta1.Activity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Activity(); + } + + public static com.google.cloud.talent.v4beta1.Activity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Activity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Activity(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Activity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ActivityOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ActivityOrBuilder.java new file mode 100644 index 000000000000..107b5d3896e2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ActivityOrBuilder.java @@ -0,0 +1,374 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface ActivityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Activity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * Activity display name.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Optional.
+   * Activity display name.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional.
+   * Activity description.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 2; + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Optional.
+   * Activity description.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 2; + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional.
+   * Activity URI.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string uri = 3; + */ + java.lang.String getUri(); + /** + * + * + *
+   * Optional.
+   * Activity URI.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string uri = 3; + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+   * Optional.
+   * The first creation date of the activity.
+   * 
+ * + * .google.type.Date create_date = 4; + */ + boolean hasCreateDate(); + /** + * + * + *
+   * Optional.
+   * The first creation date of the activity.
+   * 
+ * + * .google.type.Date create_date = 4; + */ + com.google.type.Date getCreateDate(); + /** + * + * + *
+   * Optional.
+   * The first creation date of the activity.
+   * 
+ * + * .google.type.Date create_date = 4; + */ + com.google.type.DateOrBuilder getCreateDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The last update date of the activity.
+   * 
+ * + * .google.type.Date update_date = 5; + */ + boolean hasUpdateDate(); + /** + * + * + *
+   * Optional.
+   * The last update date of the activity.
+   * 
+ * + * .google.type.Date update_date = 5; + */ + com.google.type.Date getUpdateDate(); + /** + * + * + *
+   * Optional.
+   * The last update date of the activity.
+   * 
+ * + * .google.type.Date update_date = 5; + */ + com.google.type.DateOrBuilder getUpdateDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * A list of team members involved in this activity.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string team_members = 6; + */ + java.util.List getTeamMembersList(); + /** + * + * + *
+   * Optional.
+   * A list of team members involved in this activity.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string team_members = 6; + */ + int getTeamMembersCount(); + /** + * + * + *
+   * Optional.
+   * A list of team members involved in this activity.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string team_members = 6; + */ + java.lang.String getTeamMembers(int index); + /** + * + * + *
+   * Optional.
+   * A list of team members involved in this activity.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string team_members = 6; + */ + com.google.protobuf.ByteString getTeamMembersBytes(int index); + + /** + * + * + *
+   * Optional.
+   * A list of skills used in this activity.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + java.util.List getSkillsUsedList(); + /** + * + * + *
+   * Optional.
+   * A list of skills used in this activity.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + com.google.cloud.talent.v4beta1.Skill getSkillsUsed(int index); + /** + * + * + *
+   * Optional.
+   * A list of skills used in this activity.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + int getSkillsUsedCount(); + /** + * + * + *
+   * Optional.
+   * A list of skills used in this activity.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + java.util.List + getSkillsUsedOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * A list of skills used in this activity.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsUsedOrBuilder(int index); + + /** + * + * + *
+   * Output only. Activity name snippet shows how the
+   * [display_name][google.cloud.talent.v4beta1.Activity.display_name] is
+   * related to a search query. It's empty if the
+   * [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't
+   * related to the search query.
+   * 
+ * + * string activity_name_snippet = 8; + */ + java.lang.String getActivityNameSnippet(); + /** + * + * + *
+   * Output only. Activity name snippet shows how the
+   * [display_name][google.cloud.talent.v4beta1.Activity.display_name] is
+   * related to a search query. It's empty if the
+   * [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't
+   * related to the search query.
+   * 
+ * + * string activity_name_snippet = 8; + */ + com.google.protobuf.ByteString getActivityNameSnippetBytes(); + + /** + * + * + *
+   * Output only. Activity description snippet shows how the
+   * [description][google.cloud.talent.v4beta1.Activity.description] is related
+   * to a search query. It's empty if the
+   * [description][google.cloud.talent.v4beta1.Activity.description] isn't
+   * related to the search query.
+   * 
+ * + * string activity_description_snippet = 9; + */ + java.lang.String getActivityDescriptionSnippet(); + /** + * + * + *
+   * Output only. Activity description snippet shows how the
+   * [description][google.cloud.talent.v4beta1.Activity.description] is related
+   * to a search query. It's empty if the
+   * [description][google.cloud.talent.v4beta1.Activity.description] isn't
+   * related to the search query.
+   * 
+ * + * string activity_description_snippet = 9; + */ + com.google.protobuf.ByteString getActivityDescriptionSnippetBytes(); + + /** + * + * + *
+   * Output only. Skill used snippet shows how the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+   * to a search query. It's empty if the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+   * related to the search query.
+   * 
+ * + * repeated string skills_used_snippet = 10; + */ + java.util.List getSkillsUsedSnippetList(); + /** + * + * + *
+   * Output only. Skill used snippet shows how the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+   * to a search query. It's empty if the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+   * related to the search query.
+   * 
+ * + * repeated string skills_used_snippet = 10; + */ + int getSkillsUsedSnippetCount(); + /** + * + * + *
+   * Output only. Skill used snippet shows how the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+   * to a search query. It's empty if the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+   * related to the search query.
+   * 
+ * + * repeated string skills_used_snippet = 10; + */ + java.lang.String getSkillsUsedSnippet(int index); + /** + * + * + *
+   * Output only. Skill used snippet shows how the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+   * to a search query. It's empty if the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+   * related to the search query.
+   * 
+ * + * repeated string skills_used_snippet = 10; + */ + com.google.protobuf.ByteString getSkillsUsedSnippetBytes(int index); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AdditionalContactInfo.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AdditionalContactInfo.java new file mode 100644 index 000000000000..548ff5329f07 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AdditionalContactInfo.java @@ -0,0 +1,940 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents contact information other than phone, email,
+ * URI and addresses.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.AdditionalContactInfo} + */ +public final class AdditionalContactInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.AdditionalContactInfo) + AdditionalContactInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use AdditionalContactInfo.newBuilder() to construct. + private AdditionalContactInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AdditionalContactInfo() { + usage_ = 0; + name_ = ""; + contactId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AdditionalContactInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + usage_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + contactId_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.AdditionalContactInfo.class, + com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder.class); + } + + public static final int USAGE_FIELD_NUMBER = 1; + private int usage_; + /** + * + * + *
+   * Optional.
+   * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public int getUsageValue() { + return usage_; + } + /** + * + * + *
+   * Optional.
+   * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.ContactInfoUsage result = + com.google.cloud.talent.v4beta1.ContactInfoUsage.valueOf(usage_); + return result == null ? com.google.cloud.talent.v4beta1.ContactInfoUsage.UNRECOGNIZED : result; + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Optional.
+   * The name of the contact method.
+   * For example, "hangout", "skype".
+   * Number of characters allowed is 100.
+   * 
+ * + * string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The name of the contact method.
+   * For example, "hangout", "skype".
+   * Number of characters allowed is 100.
+   * 
+ * + * string name = 2; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTACT_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object contactId_; + /** + * + * + *
+   * Optional.
+   * The contact id.
+   * Number of characters allowed is 100.
+   * 
+ * + * string contact_id = 3; + */ + public java.lang.String getContactId() { + java.lang.Object ref = contactId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contactId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The contact id.
+   * Number of characters allowed is 100.
+   * 
+ * + * string contact_id = 3; + */ + public com.google.protobuf.ByteString getContactIdBytes() { + java.lang.Object ref = contactId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contactId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (usage_ + != com.google.cloud.talent.v4beta1.ContactInfoUsage.CONTACT_INFO_USAGE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, usage_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (!getContactIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, contactId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (usage_ + != com.google.cloud.talent.v4beta1.ContactInfoUsage.CONTACT_INFO_USAGE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, usage_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (!getContactIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, contactId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.AdditionalContactInfo)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.AdditionalContactInfo other = + (com.google.cloud.talent.v4beta1.AdditionalContactInfo) obj; + + boolean result = true; + result = result && usage_ == other.usage_; + result = result && getName().equals(other.getName()); + result = result && getContactId().equals(other.getContactId()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USAGE_FIELD_NUMBER; + hash = (53 * hash) + usage_; + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + CONTACT_ID_FIELD_NUMBER; + hash = (53 * hash) + getContactId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.AdditionalContactInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Resource that represents contact information other than phone, email,
+   * URI and addresses.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.AdditionalContactInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.AdditionalContactInfo) + com.google.cloud.talent.v4beta1.AdditionalContactInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.AdditionalContactInfo.class, + com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.AdditionalContactInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + usage_ = 0; + + name_ = ""; + + contactId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.AdditionalContactInfo getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.AdditionalContactInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.AdditionalContactInfo build() { + com.google.cloud.talent.v4beta1.AdditionalContactInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.AdditionalContactInfo buildPartial() { + com.google.cloud.talent.v4beta1.AdditionalContactInfo result = + new com.google.cloud.talent.v4beta1.AdditionalContactInfo(this); + result.usage_ = usage_; + result.name_ = name_; + result.contactId_ = contactId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.AdditionalContactInfo) { + return mergeFrom((com.google.cloud.talent.v4beta1.AdditionalContactInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.AdditionalContactInfo other) { + if (other == com.google.cloud.talent.v4beta1.AdditionalContactInfo.getDefaultInstance()) + return this; + if (other.usage_ != 0) { + setUsageValue(other.getUsageValue()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getContactId().isEmpty()) { + contactId_ = other.contactId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.AdditionalContactInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.AdditionalContactInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int usage_ = 0; + /** + * + * + *
+     * Optional.
+     * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public int getUsageValue() { + return usage_; + } + /** + * + * + *
+     * Optional.
+     * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder setUsageValue(int value) { + usage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.ContactInfoUsage result = + com.google.cloud.talent.v4beta1.ContactInfoUsage.valueOf(usage_); + return result == null + ? com.google.cloud.talent.v4beta1.ContactInfoUsage.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder setUsage(com.google.cloud.talent.v4beta1.ContactInfoUsage value) { + if (value == null) { + throw new NullPointerException(); + } + + usage_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder clearUsage() { + + usage_ = 0; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Optional.
+     * The name of the contact method.
+     * For example, "hangout", "skype".
+     * Number of characters allowed is 100.
+     * 
+ * + * string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The name of the contact method.
+     * For example, "hangout", "skype".
+     * Number of characters allowed is 100.
+     * 
+ * + * string name = 2; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The name of the contact method.
+     * For example, "hangout", "skype".
+     * Number of characters allowed is 100.
+     * 
+ * + * string name = 2; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The name of the contact method.
+     * For example, "hangout", "skype".
+     * Number of characters allowed is 100.
+     * 
+ * + * string name = 2; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The name of the contact method.
+     * For example, "hangout", "skype".
+     * Number of characters allowed is 100.
+     * 
+ * + * string name = 2; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object contactId_ = ""; + /** + * + * + *
+     * Optional.
+     * The contact id.
+     * Number of characters allowed is 100.
+     * 
+ * + * string contact_id = 3; + */ + public java.lang.String getContactId() { + java.lang.Object ref = contactId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contactId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The contact id.
+     * Number of characters allowed is 100.
+     * 
+ * + * string contact_id = 3; + */ + public com.google.protobuf.ByteString getContactIdBytes() { + java.lang.Object ref = contactId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contactId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The contact id.
+     * Number of characters allowed is 100.
+     * 
+ * + * string contact_id = 3; + */ + public Builder setContactId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + contactId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The contact id.
+     * Number of characters allowed is 100.
+     * 
+ * + * string contact_id = 3; + */ + public Builder clearContactId() { + + contactId_ = getDefaultInstance().getContactId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The contact id.
+     * Number of characters allowed is 100.
+     * 
+ * + * string contact_id = 3; + */ + public Builder setContactIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + contactId_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.AdditionalContactInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.AdditionalContactInfo) + private static final com.google.cloud.talent.v4beta1.AdditionalContactInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.AdditionalContactInfo(); + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdditionalContactInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AdditionalContactInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.AdditionalContactInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AdditionalContactInfoOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AdditionalContactInfoOrBuilder.java new file mode 100644 index 000000000000..748996afaf36 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AdditionalContactInfoOrBuilder.java @@ -0,0 +1,85 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface AdditionalContactInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.AdditionalContactInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + int getUsageValue(); + /** + * + * + *
+   * Optional.
+   * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage(); + + /** + * + * + *
+   * Optional.
+   * The name of the contact method.
+   * For example, "hangout", "skype".
+   * Number of characters allowed is 100.
+   * 
+ * + * string name = 2; + */ + java.lang.String getName(); + /** + * + * + *
+   * Optional.
+   * The name of the contact method.
+   * For example, "hangout", "skype".
+   * Number of characters allowed is 100.
+   * 
+ * + * string name = 2; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional.
+   * The contact id.
+   * Number of characters allowed is 100.
+   * 
+ * + * string contact_id = 3; + */ + java.lang.String getContactId(); + /** + * + * + *
+   * Optional.
+   * The contact id.
+   * Number of characters allowed is 100.
+   * 
+ * + * string contact_id = 3; + */ + com.google.protobuf.ByteString getContactIdBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Address.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Address.java new file mode 100644 index 000000000000..c2e59e26a78d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Address.java @@ -0,0 +1,1441 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents a address.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Address} + */ +public final class Address extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Address) + AddressOrBuilder { + private static final long serialVersionUID = 0L; + // Use Address.newBuilder() to construct. + private Address(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Address() { + usage_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Address( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + usage_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + addressCase_ = 2; + address_ = s; + break; + } + case 26: + { + com.google.type.PostalAddress.Builder subBuilder = null; + if (addressCase_ == 3) { + subBuilder = ((com.google.type.PostalAddress) address_).toBuilder(); + } + address_ = + input.readMessage(com.google.type.PostalAddress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.type.PostalAddress) address_); + address_ = subBuilder.buildPartial(); + } + addressCase_ = 3; + break; + } + case 34: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (isCurrent_ != null) { + subBuilder = isCurrent_.toBuilder(); + } + isCurrent_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(isCurrent_); + isCurrent_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Address_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Address_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Address.class, + com.google.cloud.talent.v4beta1.Address.Builder.class); + } + + private int addressCase_ = 0; + private java.lang.Object address_; + + public enum AddressCase implements com.google.protobuf.Internal.EnumLite { + UNSTRUCTURED_ADDRESS(2), + STRUCTURED_ADDRESS(3), + ADDRESS_NOT_SET(0); + private final int value; + + private AddressCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static AddressCase valueOf(int value) { + return forNumber(value); + } + + public static AddressCase forNumber(int value) { + switch (value) { + case 2: + return UNSTRUCTURED_ADDRESS; + case 3: + return STRUCTURED_ADDRESS; + case 0: + return ADDRESS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AddressCase getAddressCase() { + return AddressCase.forNumber(addressCase_); + } + + public static final int USAGE_FIELD_NUMBER = 1; + private int usage_; + /** + * + * + *
+   * Optional.
+   * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public int getUsageValue() { + return usage_; + } + /** + * + * + *
+   * Optional.
+   * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.ContactInfoUsage result = + com.google.cloud.talent.v4beta1.ContactInfoUsage.valueOf(usage_); + return result == null ? com.google.cloud.talent.v4beta1.ContactInfoUsage.UNRECOGNIZED : result; + } + + public static final int UNSTRUCTURED_ADDRESS_FIELD_NUMBER = 2; + /** + * + * + *
+   * Optional.
+   * Unstructured address.
+   * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
+   * "Sunnyvale, California".
+   * Number of characters allowed is 100.
+   * 
+ * + * string unstructured_address = 2; + */ + public java.lang.String getUnstructuredAddress() { + java.lang.Object ref = ""; + if (addressCase_ == 2) { + ref = address_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (addressCase_ == 2) { + address_ = s; + } + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Unstructured address.
+   * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
+   * "Sunnyvale, California".
+   * Number of characters allowed is 100.
+   * 
+ * + * string unstructured_address = 2; + */ + public com.google.protobuf.ByteString getUnstructuredAddressBytes() { + java.lang.Object ref = ""; + if (addressCase_ == 2) { + ref = address_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (addressCase_ == 2) { + address_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STRUCTURED_ADDRESS_FIELD_NUMBER = 3; + /** + * + * + *
+   * Optional.
+   * Structured address that contains street address, city, state, country,
+   * etc.
+   * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + public boolean hasStructuredAddress() { + return addressCase_ == 3; + } + /** + * + * + *
+   * Optional.
+   * Structured address that contains street address, city, state, country,
+   * etc.
+   * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + public com.google.type.PostalAddress getStructuredAddress() { + if (addressCase_ == 3) { + return (com.google.type.PostalAddress) address_; + } + return com.google.type.PostalAddress.getDefaultInstance(); + } + /** + * + * + *
+   * Optional.
+   * Structured address that contains street address, city, state, country,
+   * etc.
+   * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + public com.google.type.PostalAddressOrBuilder getStructuredAddressOrBuilder() { + if (addressCase_ == 3) { + return (com.google.type.PostalAddress) address_; + } + return com.google.type.PostalAddress.getDefaultInstance(); + } + + public static final int IS_CURRENT_FIELD_NUMBER = 4; + private com.google.protobuf.BoolValue isCurrent_; + /** + * + * + *
+   * Optional.
+   * Indicates if it's the person's current address.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + public boolean hasIsCurrent() { + return isCurrent_ != null; + } + /** + * + * + *
+   * Optional.
+   * Indicates if it's the person's current address.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + public com.google.protobuf.BoolValue getIsCurrent() { + return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; + } + /** + * + * + *
+   * Optional.
+   * Indicates if it's the person's current address.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + public com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder() { + return getIsCurrent(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (usage_ + != com.google.cloud.talent.v4beta1.ContactInfoUsage.CONTACT_INFO_USAGE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, usage_); + } + if (addressCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, address_); + } + if (addressCase_ == 3) { + output.writeMessage(3, (com.google.type.PostalAddress) address_); + } + if (isCurrent_ != null) { + output.writeMessage(4, getIsCurrent()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (usage_ + != com.google.cloud.talent.v4beta1.ContactInfoUsage.CONTACT_INFO_USAGE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, usage_); + } + if (addressCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, address_); + } + if (addressCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.type.PostalAddress) address_); + } + if (isCurrent_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getIsCurrent()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Address)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Address other = (com.google.cloud.talent.v4beta1.Address) obj; + + boolean result = true; + result = result && usage_ == other.usage_; + result = result && (hasIsCurrent() == other.hasIsCurrent()); + if (hasIsCurrent()) { + result = result && getIsCurrent().equals(other.getIsCurrent()); + } + result = result && getAddressCase().equals(other.getAddressCase()); + if (!result) return false; + switch (addressCase_) { + case 2: + result = result && getUnstructuredAddress().equals(other.getUnstructuredAddress()); + break; + case 3: + result = result && getStructuredAddress().equals(other.getStructuredAddress()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USAGE_FIELD_NUMBER; + hash = (53 * hash) + usage_; + if (hasIsCurrent()) { + hash = (37 * hash) + IS_CURRENT_FIELD_NUMBER; + hash = (53 * hash) + getIsCurrent().hashCode(); + } + switch (addressCase_) { + case 2: + hash = (37 * hash) + UNSTRUCTURED_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getUnstructuredAddress().hashCode(); + break; + case 3: + hash = (37 * hash) + STRUCTURED_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getStructuredAddress().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Address parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Address parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Address parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Address parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Address parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Address parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Address parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Address parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Address parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Address parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Address parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Address parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.Address prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Resource that represents a address.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Address} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Address) + com.google.cloud.talent.v4beta1.AddressOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Address_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Address_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Address.class, + com.google.cloud.talent.v4beta1.Address.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Address.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + usage_ = 0; + + if (isCurrentBuilder_ == null) { + isCurrent_ = null; + } else { + isCurrent_ = null; + isCurrentBuilder_ = null; + } + addressCase_ = 0; + address_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Address_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Address getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Address.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Address build() { + com.google.cloud.talent.v4beta1.Address result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Address buildPartial() { + com.google.cloud.talent.v4beta1.Address result = + new com.google.cloud.talent.v4beta1.Address(this); + result.usage_ = usage_; + if (addressCase_ == 2) { + result.address_ = address_; + } + if (addressCase_ == 3) { + if (structuredAddressBuilder_ == null) { + result.address_ = address_; + } else { + result.address_ = structuredAddressBuilder_.build(); + } + } + if (isCurrentBuilder_ == null) { + result.isCurrent_ = isCurrent_; + } else { + result.isCurrent_ = isCurrentBuilder_.build(); + } + result.addressCase_ = addressCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Address) { + return mergeFrom((com.google.cloud.talent.v4beta1.Address) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Address other) { + if (other == com.google.cloud.talent.v4beta1.Address.getDefaultInstance()) return this; + if (other.usage_ != 0) { + setUsageValue(other.getUsageValue()); + } + if (other.hasIsCurrent()) { + mergeIsCurrent(other.getIsCurrent()); + } + switch (other.getAddressCase()) { + case UNSTRUCTURED_ADDRESS: + { + addressCase_ = 2; + address_ = other.address_; + onChanged(); + break; + } + case STRUCTURED_ADDRESS: + { + mergeStructuredAddress(other.getStructuredAddress()); + break; + } + case ADDRESS_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Address parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Address) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int addressCase_ = 0; + private java.lang.Object address_; + + public AddressCase getAddressCase() { + return AddressCase.forNumber(addressCase_); + } + + public Builder clearAddress() { + addressCase_ = 0; + address_ = null; + onChanged(); + return this; + } + + private int usage_ = 0; + /** + * + * + *
+     * Optional.
+     * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public int getUsageValue() { + return usage_; + } + /** + * + * + *
+     * Optional.
+     * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder setUsageValue(int value) { + usage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.ContactInfoUsage result = + com.google.cloud.talent.v4beta1.ContactInfoUsage.valueOf(usage_); + return result == null + ? com.google.cloud.talent.v4beta1.ContactInfoUsage.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder setUsage(com.google.cloud.talent.v4beta1.ContactInfoUsage value) { + if (value == null) { + throw new NullPointerException(); + } + + usage_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder clearUsage() { + + usage_ = 0; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional.
+     * Unstructured address.
+     * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
+     * "Sunnyvale, California".
+     * Number of characters allowed is 100.
+     * 
+ * + * string unstructured_address = 2; + */ + public java.lang.String getUnstructuredAddress() { + java.lang.Object ref = ""; + if (addressCase_ == 2) { + ref = address_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (addressCase_ == 2) { + address_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Unstructured address.
+     * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
+     * "Sunnyvale, California".
+     * Number of characters allowed is 100.
+     * 
+ * + * string unstructured_address = 2; + */ + public com.google.protobuf.ByteString getUnstructuredAddressBytes() { + java.lang.Object ref = ""; + if (addressCase_ == 2) { + ref = address_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (addressCase_ == 2) { + address_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Unstructured address.
+     * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
+     * "Sunnyvale, California".
+     * Number of characters allowed is 100.
+     * 
+ * + * string unstructured_address = 2; + */ + public Builder setUnstructuredAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + addressCase_ = 2; + address_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Unstructured address.
+     * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
+     * "Sunnyvale, California".
+     * Number of characters allowed is 100.
+     * 
+ * + * string unstructured_address = 2; + */ + public Builder clearUnstructuredAddress() { + if (addressCase_ == 2) { + addressCase_ = 0; + address_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Unstructured address.
+     * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
+     * "Sunnyvale, California".
+     * Number of characters allowed is 100.
+     * 
+ * + * string unstructured_address = 2; + */ + public Builder setUnstructuredAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + addressCase_ = 2; + address_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.PostalAddress, + com.google.type.PostalAddress.Builder, + com.google.type.PostalAddressOrBuilder> + structuredAddressBuilder_; + /** + * + * + *
+     * Optional.
+     * Structured address that contains street address, city, state, country,
+     * etc.
+     * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + public boolean hasStructuredAddress() { + return addressCase_ == 3; + } + /** + * + * + *
+     * Optional.
+     * Structured address that contains street address, city, state, country,
+     * etc.
+     * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + public com.google.type.PostalAddress getStructuredAddress() { + if (structuredAddressBuilder_ == null) { + if (addressCase_ == 3) { + return (com.google.type.PostalAddress) address_; + } + return com.google.type.PostalAddress.getDefaultInstance(); + } else { + if (addressCase_ == 3) { + return structuredAddressBuilder_.getMessage(); + } + return com.google.type.PostalAddress.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional.
+     * Structured address that contains street address, city, state, country,
+     * etc.
+     * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + public Builder setStructuredAddress(com.google.type.PostalAddress value) { + if (structuredAddressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + address_ = value; + onChanged(); + } else { + structuredAddressBuilder_.setMessage(value); + } + addressCase_ = 3; + return this; + } + /** + * + * + *
+     * Optional.
+     * Structured address that contains street address, city, state, country,
+     * etc.
+     * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + public Builder setStructuredAddress(com.google.type.PostalAddress.Builder builderForValue) { + if (structuredAddressBuilder_ == null) { + address_ = builderForValue.build(); + onChanged(); + } else { + structuredAddressBuilder_.setMessage(builderForValue.build()); + } + addressCase_ = 3; + return this; + } + /** + * + * + *
+     * Optional.
+     * Structured address that contains street address, city, state, country,
+     * etc.
+     * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + public Builder mergeStructuredAddress(com.google.type.PostalAddress value) { + if (structuredAddressBuilder_ == null) { + if (addressCase_ == 3 && address_ != com.google.type.PostalAddress.getDefaultInstance()) { + address_ = + com.google.type.PostalAddress.newBuilder((com.google.type.PostalAddress) address_) + .mergeFrom(value) + .buildPartial(); + } else { + address_ = value; + } + onChanged(); + } else { + if (addressCase_ == 3) { + structuredAddressBuilder_.mergeFrom(value); + } + structuredAddressBuilder_.setMessage(value); + } + addressCase_ = 3; + return this; + } + /** + * + * + *
+     * Optional.
+     * Structured address that contains street address, city, state, country,
+     * etc.
+     * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + public Builder clearStructuredAddress() { + if (structuredAddressBuilder_ == null) { + if (addressCase_ == 3) { + addressCase_ = 0; + address_ = null; + onChanged(); + } + } else { + if (addressCase_ == 3) { + addressCase_ = 0; + address_ = null; + } + structuredAddressBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Structured address that contains street address, city, state, country,
+     * etc.
+     * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + public com.google.type.PostalAddress.Builder getStructuredAddressBuilder() { + return getStructuredAddressFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Structured address that contains street address, city, state, country,
+     * etc.
+     * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + public com.google.type.PostalAddressOrBuilder getStructuredAddressOrBuilder() { + if ((addressCase_ == 3) && (structuredAddressBuilder_ != null)) { + return structuredAddressBuilder_.getMessageOrBuilder(); + } else { + if (addressCase_ == 3) { + return (com.google.type.PostalAddress) address_; + } + return com.google.type.PostalAddress.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional.
+     * Structured address that contains street address, city, state, country,
+     * etc.
+     * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.PostalAddress, + com.google.type.PostalAddress.Builder, + com.google.type.PostalAddressOrBuilder> + getStructuredAddressFieldBuilder() { + if (structuredAddressBuilder_ == null) { + if (!(addressCase_ == 3)) { + address_ = com.google.type.PostalAddress.getDefaultInstance(); + } + structuredAddressBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.PostalAddress, + com.google.type.PostalAddress.Builder, + com.google.type.PostalAddressOrBuilder>( + (com.google.type.PostalAddress) address_, getParentForChildren(), isClean()); + address_ = null; + } + addressCase_ = 3; + onChanged(); + ; + return structuredAddressBuilder_; + } + + private com.google.protobuf.BoolValue isCurrent_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + isCurrentBuilder_; + /** + * + * + *
+     * Optional.
+     * Indicates if it's the person's current address.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + public boolean hasIsCurrent() { + return isCurrentBuilder_ != null || isCurrent_ != null; + } + /** + * + * + *
+     * Optional.
+     * Indicates if it's the person's current address.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + public com.google.protobuf.BoolValue getIsCurrent() { + if (isCurrentBuilder_ == null) { + return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; + } else { + return isCurrentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Indicates if it's the person's current address.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + public Builder setIsCurrent(com.google.protobuf.BoolValue value) { + if (isCurrentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + isCurrent_ = value; + onChanged(); + } else { + isCurrentBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Indicates if it's the person's current address.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + public Builder setIsCurrent(com.google.protobuf.BoolValue.Builder builderForValue) { + if (isCurrentBuilder_ == null) { + isCurrent_ = builderForValue.build(); + onChanged(); + } else { + isCurrentBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Indicates if it's the person's current address.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + public Builder mergeIsCurrent(com.google.protobuf.BoolValue value) { + if (isCurrentBuilder_ == null) { + if (isCurrent_ != null) { + isCurrent_ = + com.google.protobuf.BoolValue.newBuilder(isCurrent_).mergeFrom(value).buildPartial(); + } else { + isCurrent_ = value; + } + onChanged(); + } else { + isCurrentBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Indicates if it's the person's current address.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + public Builder clearIsCurrent() { + if (isCurrentBuilder_ == null) { + isCurrent_ = null; + onChanged(); + } else { + isCurrent_ = null; + isCurrentBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Indicates if it's the person's current address.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + public com.google.protobuf.BoolValue.Builder getIsCurrentBuilder() { + + onChanged(); + return getIsCurrentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Indicates if it's the person's current address.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + public com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder() { + if (isCurrentBuilder_ != null) { + return isCurrentBuilder_.getMessageOrBuilder(); + } else { + return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; + } + } + /** + * + * + *
+     * Optional.
+     * Indicates if it's the person's current address.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getIsCurrentFieldBuilder() { + if (isCurrentBuilder_ == null) { + isCurrentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getIsCurrent(), getParentForChildren(), isClean()); + isCurrent_ = null; + } + return isCurrentBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Address) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Address) + private static final com.google.cloud.talent.v4beta1.Address DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Address(); + } + + public static com.google.cloud.talent.v4beta1.Address getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser
PARSER = + new com.google.protobuf.AbstractParser
() { + @java.lang.Override + public Address parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Address(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser
parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser
getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Address getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AddressOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AddressOrBuilder.java new file mode 100644 index 000000000000..b802c5c1fdfa --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AddressOrBuilder.java @@ -0,0 +1,135 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface AddressOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Address) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + int getUsageValue(); + /** + * + * + *
+   * Optional.
+   * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage(); + + /** + * + * + *
+   * Optional.
+   * Unstructured address.
+   * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
+   * "Sunnyvale, California".
+   * Number of characters allowed is 100.
+   * 
+ * + * string unstructured_address = 2; + */ + java.lang.String getUnstructuredAddress(); + /** + * + * + *
+   * Optional.
+   * Unstructured address.
+   * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
+   * "Sunnyvale, California".
+   * Number of characters allowed is 100.
+   * 
+ * + * string unstructured_address = 2; + */ + com.google.protobuf.ByteString getUnstructuredAddressBytes(); + + /** + * + * + *
+   * Optional.
+   * Structured address that contains street address, city, state, country,
+   * etc.
+   * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + boolean hasStructuredAddress(); + /** + * + * + *
+   * Optional.
+   * Structured address that contains street address, city, state, country,
+   * etc.
+   * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + com.google.type.PostalAddress getStructuredAddress(); + /** + * + * + *
+   * Optional.
+   * Structured address that contains street address, city, state, country,
+   * etc.
+   * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + com.google.type.PostalAddressOrBuilder getStructuredAddressOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Indicates if it's the person's current address.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + boolean hasIsCurrent(); + /** + * + * + *
+   * Optional.
+   * Indicates if it's the person's current address.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + com.google.protobuf.BoolValue getIsCurrent(); + /** + * + * + *
+   * Optional.
+   * Indicates if it's the person's current address.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder(); + + public com.google.cloud.talent.v4beta1.Address.AddressCase getAddressCase(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilter.java new file mode 100644 index 000000000000..f3ca6aafe601 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilter.java @@ -0,0 +1,1000 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Application Date Range Filter.
+ * The API matches profiles with
+ * [JobApplication.application_date][google.cloud.talent.v4beta1.JobApplication.application_date]
+ * between start date and end date (both boundaries are inclusive). The filter
+ * is ignored if both
+ * [start_date][google.cloud.talent.v4beta1.ApplicationDateFilter.start_date]
+ * and [end_date][google.cloud.talent.v4beta1.ApplicationDateFilter.end_date]
+ * are missing.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationDateFilter} + */ +public final class ApplicationDateFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ApplicationDateFilter) + ApplicationDateFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApplicationDateFilter.newBuilder() to construct. + private ApplicationDateFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApplicationDateFilter() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ApplicationDateFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.type.Date.Builder subBuilder = null; + if (startDate_ != null) { + subBuilder = startDate_.toBuilder(); + } + startDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startDate_); + startDate_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.type.Date.Builder subBuilder = null; + if (endDate_ != null) { + subBuilder = endDate_.toBuilder(); + } + endDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endDate_); + endDate_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ApplicationDateFilter.class, + com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder.class); + } + + public static final int START_DATE_FIELD_NUMBER = 1; + private com.google.type.Date startDate_; + /** + * + * + *
+   * Optional.
+   * Start date. If it's missing, The API matches profiles with application date
+   * not after the end date.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + public boolean hasStartDate() { + return startDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * Start date. If it's missing, The API matches profiles with application date
+   * not after the end date.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.Date getStartDate() { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } + /** + * + * + *
+   * Optional.
+   * Start date. If it's missing, The API matches profiles with application date
+   * not after the end date.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.DateOrBuilder getStartDateOrBuilder() { + return getStartDate(); + } + + public static final int END_DATE_FIELD_NUMBER = 2; + private com.google.type.Date endDate_; + /** + * + * + *
+   * Optional.
+   * End date. If it's missing, The API matches profiles with application date
+   * not before the start date.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + public boolean hasEndDate() { + return endDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * End date. If it's missing, The API matches profiles with application date
+   * not before the start date.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.Date getEndDate() { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } + /** + * + * + *
+   * Optional.
+   * End date. If it's missing, The API matches profiles with application date
+   * not before the start date.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.DateOrBuilder getEndDateOrBuilder() { + return getEndDate(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (startDate_ != null) { + output.writeMessage(1, getStartDate()); + } + if (endDate_ != null) { + output.writeMessage(2, getEndDate()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartDate()); + } + if (endDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndDate()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ApplicationDateFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ApplicationDateFilter other = + (com.google.cloud.talent.v4beta1.ApplicationDateFilter) obj; + + boolean result = true; + result = result && (hasStartDate() == other.hasStartDate()); + if (hasStartDate()) { + result = result && getStartDate().equals(other.getStartDate()); + } + result = result && (hasEndDate() == other.hasEndDate()); + if (hasEndDate()) { + result = result && getEndDate().equals(other.getEndDate()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartDate()) { + hash = (37 * hash) + START_DATE_FIELD_NUMBER; + hash = (53 * hash) + getStartDate().hashCode(); + } + if (hasEndDate()) { + hash = (37 * hash) + END_DATE_FIELD_NUMBER; + hash = (53 * hash) + getEndDate().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.ApplicationDateFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Application Date Range Filter.
+   * The API matches profiles with
+   * [JobApplication.application_date][google.cloud.talent.v4beta1.JobApplication.application_date]
+   * between start date and end date (both boundaries are inclusive). The filter
+   * is ignored if both
+   * [start_date][google.cloud.talent.v4beta1.ApplicationDateFilter.start_date]
+   * and [end_date][google.cloud.talent.v4beta1.ApplicationDateFilter.end_date]
+   * are missing.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationDateFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ApplicationDateFilter) + com.google.cloud.talent.v4beta1.ApplicationDateFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ApplicationDateFilter.class, + com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ApplicationDateFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (startDateBuilder_ == null) { + startDate_ = null; + } else { + startDate_ = null; + startDateBuilder_ = null; + } + if (endDateBuilder_ == null) { + endDate_ = null; + } else { + endDate_ = null; + endDateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationDateFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ApplicationDateFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationDateFilter build() { + com.google.cloud.talent.v4beta1.ApplicationDateFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationDateFilter buildPartial() { + com.google.cloud.talent.v4beta1.ApplicationDateFilter result = + new com.google.cloud.talent.v4beta1.ApplicationDateFilter(this); + if (startDateBuilder_ == null) { + result.startDate_ = startDate_; + } else { + result.startDate_ = startDateBuilder_.build(); + } + if (endDateBuilder_ == null) { + result.endDate_ = endDate_; + } else { + result.endDate_ = endDateBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ApplicationDateFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.ApplicationDateFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ApplicationDateFilter other) { + if (other == com.google.cloud.talent.v4beta1.ApplicationDateFilter.getDefaultInstance()) + return this; + if (other.hasStartDate()) { + mergeStartDate(other.getStartDate()); + } + if (other.hasEndDate()) { + mergeEndDate(other.getEndDate()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ApplicationDateFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ApplicationDateFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.type.Date startDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + startDateBuilder_; + /** + * + * + *
+     * Optional.
+     * Start date. If it's missing, The API matches profiles with application date
+     * not after the end date.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public boolean hasStartDate() { + return startDateBuilder_ != null || startDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * Start date. If it's missing, The API matches profiles with application date
+     * not after the end date.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.Date getStartDate() { + if (startDateBuilder_ == null) { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } else { + return startDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Start date. If it's missing, The API matches profiles with application date
+     * not after the end date.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder setStartDate(com.google.type.Date value) { + if (startDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startDate_ = value; + onChanged(); + } else { + startDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start date. If it's missing, The API matches profiles with application date
+     * not after the end date.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder setStartDate(com.google.type.Date.Builder builderForValue) { + if (startDateBuilder_ == null) { + startDate_ = builderForValue.build(); + onChanged(); + } else { + startDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start date. If it's missing, The API matches profiles with application date
+     * not after the end date.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder mergeStartDate(com.google.type.Date value) { + if (startDateBuilder_ == null) { + if (startDate_ != null) { + startDate_ = com.google.type.Date.newBuilder(startDate_).mergeFrom(value).buildPartial(); + } else { + startDate_ = value; + } + onChanged(); + } else { + startDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start date. If it's missing, The API matches profiles with application date
+     * not after the end date.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder clearStartDate() { + if (startDateBuilder_ == null) { + startDate_ = null; + onChanged(); + } else { + startDate_ = null; + startDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start date. If it's missing, The API matches profiles with application date
+     * not after the end date.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.Date.Builder getStartDateBuilder() { + + onChanged(); + return getStartDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Start date. If it's missing, The API matches profiles with application date
+     * not after the end date.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.DateOrBuilder getStartDateOrBuilder() { + if (startDateBuilder_ != null) { + return startDateBuilder_.getMessageOrBuilder(); + } else { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } + } + /** + * + * + *
+     * Optional.
+     * Start date. If it's missing, The API matches profiles with application date
+     * not after the end date.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getStartDateFieldBuilder() { + if (startDateBuilder_ == null) { + startDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getStartDate(), getParentForChildren(), isClean()); + startDate_ = null; + } + return startDateBuilder_; + } + + private com.google.type.Date endDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + endDateBuilder_; + /** + * + * + *
+     * Optional.
+     * End date. If it's missing, The API matches profiles with application date
+     * not before the start date.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public boolean hasEndDate() { + return endDateBuilder_ != null || endDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * End date. If it's missing, The API matches profiles with application date
+     * not before the start date.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.Date getEndDate() { + if (endDateBuilder_ == null) { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } else { + return endDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * End date. If it's missing, The API matches profiles with application date
+     * not before the start date.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder setEndDate(com.google.type.Date value) { + if (endDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endDate_ = value; + onChanged(); + } else { + endDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End date. If it's missing, The API matches profiles with application date
+     * not before the start date.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder setEndDate(com.google.type.Date.Builder builderForValue) { + if (endDateBuilder_ == null) { + endDate_ = builderForValue.build(); + onChanged(); + } else { + endDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End date. If it's missing, The API matches profiles with application date
+     * not before the start date.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder mergeEndDate(com.google.type.Date value) { + if (endDateBuilder_ == null) { + if (endDate_ != null) { + endDate_ = com.google.type.Date.newBuilder(endDate_).mergeFrom(value).buildPartial(); + } else { + endDate_ = value; + } + onChanged(); + } else { + endDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End date. If it's missing, The API matches profiles with application date
+     * not before the start date.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder clearEndDate() { + if (endDateBuilder_ == null) { + endDate_ = null; + onChanged(); + } else { + endDate_ = null; + endDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End date. If it's missing, The API matches profiles with application date
+     * not before the start date.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.Date.Builder getEndDateBuilder() { + + onChanged(); + return getEndDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * End date. If it's missing, The API matches profiles with application date
+     * not before the start date.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.DateOrBuilder getEndDateOrBuilder() { + if (endDateBuilder_ != null) { + return endDateBuilder_.getMessageOrBuilder(); + } else { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } + } + /** + * + * + *
+     * Optional.
+     * End date. If it's missing, The API matches profiles with application date
+     * not before the start date.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getEndDateFieldBuilder() { + if (endDateBuilder_ == null) { + endDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getEndDate(), getParentForChildren(), isClean()); + endDate_ = null; + } + return endDateBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ApplicationDateFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ApplicationDateFilter) + private static final com.google.cloud.talent.v4beta1.ApplicationDateFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ApplicationDateFilter(); + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplicationDateFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApplicationDateFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationDateFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilterOrBuilder.java new file mode 100644 index 000000000000..9729fd3f8ca9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilterOrBuilder.java @@ -0,0 +1,84 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface ApplicationDateFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ApplicationDateFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * Start date. If it's missing, The API matches profiles with application date
+   * not after the end date.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + boolean hasStartDate(); + /** + * + * + *
+   * Optional.
+   * Start date. If it's missing, The API matches profiles with application date
+   * not after the end date.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + com.google.type.Date getStartDate(); + /** + * + * + *
+   * Optional.
+   * Start date. If it's missing, The API matches profiles with application date
+   * not after the end date.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + com.google.type.DateOrBuilder getStartDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * End date. If it's missing, The API matches profiles with application date
+   * not before the start date.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + boolean hasEndDate(); + /** + * + * + *
+   * Optional.
+   * End date. If it's missing, The API matches profiles with application date
+   * not before the start date.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + com.google.type.Date getEndDate(); + /** + * + * + *
+   * Optional.
+   * End date. If it's missing, The API matches profiles with application date
+   * not before the start date.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + com.google.type.DateOrBuilder getEndDateOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilter.java new file mode 100644 index 000000000000..c5b2ed70d139 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilter.java @@ -0,0 +1,1099 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Filter on the job information of Application.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationJobFilter} + */ +public final class ApplicationJobFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ApplicationJobFilter) + ApplicationJobFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApplicationJobFilter.newBuilder() to construct. + private ApplicationJobFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApplicationJobFilter() { + jobName_ = ""; + jobRequisitionId_ = ""; + jobTitle_ = ""; + negated_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ApplicationJobFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobName_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobRequisitionId_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobTitle_ = s; + break; + } + case 32: + { + negated_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ApplicationJobFilter.class, + com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder.class); + } + + public static final int JOB_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object jobName_; + /** + * + * + *
+   * Optional.
+   * The job resource name in the application. The API does an exact match on
+   * the [Job.name][google.cloud.talent.v4beta1.Job.name] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_name = 1; + */ + public java.lang.String getJobName() { + java.lang.Object ref = jobName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The job resource name in the application. The API does an exact match on
+   * the [Job.name][google.cloud.talent.v4beta1.Job.name] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_name = 1; + */ + public com.google.protobuf.ByteString getJobNameBytes() { + java.lang.Object ref = jobName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOB_REQUISITION_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object jobRequisitionId_; + /** + * + * + *
+   * Optional.
+   * The job requisition id in the application. The API does an exact match on
+   * the [Job.requisistion_id][] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_requisition_id = 2; + */ + public java.lang.String getJobRequisitionId() { + java.lang.Object ref = jobRequisitionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobRequisitionId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The job requisition id in the application. The API does an exact match on
+   * the [Job.requisistion_id][] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_requisition_id = 2; + */ + public com.google.protobuf.ByteString getJobRequisitionIdBytes() { + java.lang.Object ref = jobRequisitionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobRequisitionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOB_TITLE_FIELD_NUMBER = 3; + private volatile java.lang.Object jobTitle_; + /** + * + * + *
+   * Optional.
+   * The job title in the application. The API does an exact match on the
+   * [Job.title][google.cloud.talent.v4beta1.Job.title] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_title = 3; + */ + public java.lang.String getJobTitle() { + java.lang.Object ref = jobTitle_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobTitle_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The job title in the application. The API does an exact match on the
+   * [Job.title][google.cloud.talent.v4beta1.Job.title] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_title = 3; + */ + public com.google.protobuf.ByteString getJobTitleBytes() { + java.lang.Object ref = jobTitle_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitle_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEGATED_FIELD_NUMBER = 4; + private boolean negated_; + /** + * + * + *
+   * Optional.
+   * If true, the API excludes all profiles with any
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job]
+   * matching the filters.
+   * 
+ * + * bool negated = 4; + */ + public boolean getNegated() { + return negated_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getJobNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, jobName_); + } + if (!getJobRequisitionIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobRequisitionId_); + } + if (!getJobTitleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, jobTitle_); + } + if (negated_ != false) { + output.writeBool(4, negated_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getJobNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, jobName_); + } + if (!getJobRequisitionIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobRequisitionId_); + } + if (!getJobTitleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, jobTitle_); + } + if (negated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, negated_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ApplicationJobFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ApplicationJobFilter other = + (com.google.cloud.talent.v4beta1.ApplicationJobFilter) obj; + + boolean result = true; + result = result && getJobName().equals(other.getJobName()); + result = result && getJobRequisitionId().equals(other.getJobRequisitionId()); + result = result && getJobTitle().equals(other.getJobTitle()); + result = result && (getNegated() == other.getNegated()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + JOB_NAME_FIELD_NUMBER; + hash = (53 * hash) + getJobName().hashCode(); + hash = (37 * hash) + JOB_REQUISITION_ID_FIELD_NUMBER; + hash = (53 * hash) + getJobRequisitionId().hashCode(); + hash = (37 * hash) + JOB_TITLE_FIELD_NUMBER; + hash = (53 * hash) + getJobTitle().hashCode(); + hash = (37 * hash) + NEGATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.ApplicationJobFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Filter on the job information of Application.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationJobFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ApplicationJobFilter) + com.google.cloud.talent.v4beta1.ApplicationJobFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ApplicationJobFilter.class, + com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ApplicationJobFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + jobName_ = ""; + + jobRequisitionId_ = ""; + + jobTitle_ = ""; + + negated_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationJobFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ApplicationJobFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationJobFilter build() { + com.google.cloud.talent.v4beta1.ApplicationJobFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationJobFilter buildPartial() { + com.google.cloud.talent.v4beta1.ApplicationJobFilter result = + new com.google.cloud.talent.v4beta1.ApplicationJobFilter(this); + result.jobName_ = jobName_; + result.jobRequisitionId_ = jobRequisitionId_; + result.jobTitle_ = jobTitle_; + result.negated_ = negated_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ApplicationJobFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.ApplicationJobFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ApplicationJobFilter other) { + if (other == com.google.cloud.talent.v4beta1.ApplicationJobFilter.getDefaultInstance()) + return this; + if (!other.getJobName().isEmpty()) { + jobName_ = other.jobName_; + onChanged(); + } + if (!other.getJobRequisitionId().isEmpty()) { + jobRequisitionId_ = other.jobRequisitionId_; + onChanged(); + } + if (!other.getJobTitle().isEmpty()) { + jobTitle_ = other.jobTitle_; + onChanged(); + } + if (other.getNegated() != false) { + setNegated(other.getNegated()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ApplicationJobFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ApplicationJobFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object jobName_ = ""; + /** + * + * + *
+     * Optional.
+     * The job resource name in the application. The API does an exact match on
+     * the [Job.name][google.cloud.talent.v4beta1.Job.name] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_name = 1; + */ + public java.lang.String getJobName() { + java.lang.Object ref = jobName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job resource name in the application. The API does an exact match on
+     * the [Job.name][google.cloud.talent.v4beta1.Job.name] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_name = 1; + */ + public com.google.protobuf.ByteString getJobNameBytes() { + java.lang.Object ref = jobName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job resource name in the application. The API does an exact match on
+     * the [Job.name][google.cloud.talent.v4beta1.Job.name] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_name = 1; + */ + public Builder setJobName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job resource name in the application. The API does an exact match on
+     * the [Job.name][google.cloud.talent.v4beta1.Job.name] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_name = 1; + */ + public Builder clearJobName() { + + jobName_ = getDefaultInstance().getJobName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job resource name in the application. The API does an exact match on
+     * the [Job.name][google.cloud.talent.v4beta1.Job.name] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_name = 1; + */ + public Builder setJobNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobName_ = value; + onChanged(); + return this; + } + + private java.lang.Object jobRequisitionId_ = ""; + /** + * + * + *
+     * Optional.
+     * The job requisition id in the application. The API does an exact match on
+     * the [Job.requisistion_id][] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_requisition_id = 2; + */ + public java.lang.String getJobRequisitionId() { + java.lang.Object ref = jobRequisitionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobRequisitionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job requisition id in the application. The API does an exact match on
+     * the [Job.requisistion_id][] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_requisition_id = 2; + */ + public com.google.protobuf.ByteString getJobRequisitionIdBytes() { + java.lang.Object ref = jobRequisitionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobRequisitionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job requisition id in the application. The API does an exact match on
+     * the [Job.requisistion_id][] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_requisition_id = 2; + */ + public Builder setJobRequisitionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobRequisitionId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job requisition id in the application. The API does an exact match on
+     * the [Job.requisistion_id][] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_requisition_id = 2; + */ + public Builder clearJobRequisitionId() { + + jobRequisitionId_ = getDefaultInstance().getJobRequisitionId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job requisition id in the application. The API does an exact match on
+     * the [Job.requisistion_id][] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_requisition_id = 2; + */ + public Builder setJobRequisitionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobRequisitionId_ = value; + onChanged(); + return this; + } + + private java.lang.Object jobTitle_ = ""; + /** + * + * + *
+     * Optional.
+     * The job title in the application. The API does an exact match on the
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_title = 3; + */ + public java.lang.String getJobTitle() { + java.lang.Object ref = jobTitle_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobTitle_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job title in the application. The API does an exact match on the
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_title = 3; + */ + public com.google.protobuf.ByteString getJobTitleBytes() { + java.lang.Object ref = jobTitle_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitle_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job title in the application. The API does an exact match on the
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_title = 3; + */ + public Builder setJobTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobTitle_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job title in the application. The API does an exact match on the
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_title = 3; + */ + public Builder clearJobTitle() { + + jobTitle_ = getDefaultInstance().getJobTitle(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job title in the application. The API does an exact match on the
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_title = 3; + */ + public Builder setJobTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobTitle_ = value; + onChanged(); + return this; + } + + private boolean negated_; + /** + * + * + *
+     * Optional.
+     * If true, the API excludes all profiles with any
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job]
+     * matching the filters.
+     * 
+ * + * bool negated = 4; + */ + public boolean getNegated() { + return negated_; + } + /** + * + * + *
+     * Optional.
+     * If true, the API excludes all profiles with any
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job]
+     * matching the filters.
+     * 
+ * + * bool negated = 4; + */ + public Builder setNegated(boolean value) { + + negated_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * If true, the API excludes all profiles with any
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job]
+     * matching the filters.
+     * 
+ * + * bool negated = 4; + */ + public Builder clearNegated() { + + negated_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ApplicationJobFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ApplicationJobFilter) + private static final com.google.cloud.talent.v4beta1.ApplicationJobFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ApplicationJobFilter(); + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplicationJobFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApplicationJobFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationJobFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilterOrBuilder.java new file mode 100644 index 000000000000..c923b7e12bc8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilterOrBuilder.java @@ -0,0 +1,111 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface ApplicationJobFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ApplicationJobFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The job resource name in the application. The API does an exact match on
+   * the [Job.name][google.cloud.talent.v4beta1.Job.name] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_name = 1; + */ + java.lang.String getJobName(); + /** + * + * + *
+   * Optional.
+   * The job resource name in the application. The API does an exact match on
+   * the [Job.name][google.cloud.talent.v4beta1.Job.name] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_name = 1; + */ + com.google.protobuf.ByteString getJobNameBytes(); + + /** + * + * + *
+   * Optional.
+   * The job requisition id in the application. The API does an exact match on
+   * the [Job.requisistion_id][] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_requisition_id = 2; + */ + java.lang.String getJobRequisitionId(); + /** + * + * + *
+   * Optional.
+   * The job requisition id in the application. The API does an exact match on
+   * the [Job.requisistion_id][] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_requisition_id = 2; + */ + com.google.protobuf.ByteString getJobRequisitionIdBytes(); + + /** + * + * + *
+   * Optional.
+   * The job title in the application. The API does an exact match on the
+   * [Job.title][google.cloud.talent.v4beta1.Job.title] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_title = 3; + */ + java.lang.String getJobTitle(); + /** + * + * + *
+   * Optional.
+   * The job title in the application. The API does an exact match on the
+   * [Job.title][google.cloud.talent.v4beta1.Job.title] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_title = 3; + */ + com.google.protobuf.ByteString getJobTitleBytes(); + + /** + * + * + *
+   * Optional.
+   * If true, the API excludes all profiles with any
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job]
+   * matching the filters.
+   * 
+ * + * bool negated = 4; + */ + boolean getNegated(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationLastStageFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationLastStageFilter.java new file mode 100644 index 000000000000..9bdf0518b7aa --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationLastStageFilter.java @@ -0,0 +1,722 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Filter on Last Stage of Application.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationLastStageFilter} + */ +public final class ApplicationLastStageFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ApplicationLastStageFilter) + ApplicationLastStageFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApplicationLastStageFilter.newBuilder() to construct. + private ApplicationLastStageFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApplicationLastStageFilter() { + lastStage_ = ""; + negated_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ApplicationLastStageFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + lastStage_ = s; + break; + } + case 16: + { + negated_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationLastStageFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationLastStageFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.class, + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.Builder.class); + } + + public static final int LAST_STAGE_FIELD_NUMBER = 1; + private volatile java.lang.Object lastStage_; + /** + * + * + *
+   * Required.
+   * User entered or selected last stage the candidate reached in the
+   * application. The API does an exact match on the
+   * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+   * in profiles.
+   * 
+ * + * string last_stage = 1; + */ + public java.lang.String getLastStage() { + java.lang.Object ref = lastStage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastStage_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * User entered or selected last stage the candidate reached in the
+   * application. The API does an exact match on the
+   * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+   * in profiles.
+   * 
+ * + * string last_stage = 1; + */ + public com.google.protobuf.ByteString getLastStageBytes() { + java.lang.Object ref = lastStage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + lastStage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEGATED_FIELD_NUMBER = 2; + private boolean negated_; + /** + * + * + *
+   * Optional.
+   * If true, The API excludes all candidates with any
+   * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+   * matching the last stage specified in the filter.
+   * 
+ * + * bool negated = 2; + */ + public boolean getNegated() { + return negated_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getLastStageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, lastStage_); + } + if (negated_ != false) { + output.writeBool(2, negated_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getLastStageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, lastStage_); + } + if (negated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, negated_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ApplicationLastStageFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter other = + (com.google.cloud.talent.v4beta1.ApplicationLastStageFilter) obj; + + boolean result = true; + result = result && getLastStage().equals(other.getLastStage()); + result = result && (getNegated() == other.getNegated()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LAST_STAGE_FIELD_NUMBER; + hash = (53 * hash) + getLastStage().hashCode(); + hash = (37 * hash) + NEGATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Filter on Last Stage of Application.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationLastStageFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ApplicationLastStageFilter) + com.google.cloud.talent.v4beta1.ApplicationLastStageFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationLastStageFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationLastStageFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.class, + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + lastStage_ = ""; + + negated_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationLastStageFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationLastStageFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationLastStageFilter build() { + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationLastStageFilter buildPartial() { + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter result = + new com.google.cloud.talent.v4beta1.ApplicationLastStageFilter(this); + result.lastStage_ = lastStage_; + result.negated_ = negated_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ApplicationLastStageFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.ApplicationLastStageFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ApplicationLastStageFilter other) { + if (other == com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.getDefaultInstance()) + return this; + if (!other.getLastStage().isEmpty()) { + lastStage_ = other.lastStage_; + onChanged(); + } + if (other.getNegated() != false) { + setNegated(other.getNegated()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ApplicationLastStageFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object lastStage_ = ""; + /** + * + * + *
+     * Required.
+     * User entered or selected last stage the candidate reached in the
+     * application. The API does an exact match on the
+     * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+     * in profiles.
+     * 
+ * + * string last_stage = 1; + */ + public java.lang.String getLastStage() { + java.lang.Object ref = lastStage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastStage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * User entered or selected last stage the candidate reached in the
+     * application. The API does an exact match on the
+     * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+     * in profiles.
+     * 
+ * + * string last_stage = 1; + */ + public com.google.protobuf.ByteString getLastStageBytes() { + java.lang.Object ref = lastStage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + lastStage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * User entered or selected last stage the candidate reached in the
+     * application. The API does an exact match on the
+     * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+     * in profiles.
+     * 
+ * + * string last_stage = 1; + */ + public Builder setLastStage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + lastStage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * User entered or selected last stage the candidate reached in the
+     * application. The API does an exact match on the
+     * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+     * in profiles.
+     * 
+ * + * string last_stage = 1; + */ + public Builder clearLastStage() { + + lastStage_ = getDefaultInstance().getLastStage(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * User entered or selected last stage the candidate reached in the
+     * application. The API does an exact match on the
+     * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+     * in profiles.
+     * 
+ * + * string last_stage = 1; + */ + public Builder setLastStageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + lastStage_ = value; + onChanged(); + return this; + } + + private boolean negated_; + /** + * + * + *
+     * Optional.
+     * If true, The API excludes all candidates with any
+     * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+     * matching the last stage specified in the filter.
+     * 
+ * + * bool negated = 2; + */ + public boolean getNegated() { + return negated_; + } + /** + * + * + *
+     * Optional.
+     * If true, The API excludes all candidates with any
+     * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+     * matching the last stage specified in the filter.
+     * 
+ * + * bool negated = 2; + */ + public Builder setNegated(boolean value) { + + negated_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * If true, The API excludes all candidates with any
+     * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+     * matching the last stage specified in the filter.
+     * 
+ * + * bool negated = 2; + */ + public Builder clearNegated() { + + negated_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ApplicationLastStageFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ApplicationLastStageFilter) + private static final com.google.cloud.talent.v4beta1.ApplicationLastStageFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ApplicationLastStageFilter(); + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplicationLastStageFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApplicationLastStageFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationLastStageFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationLastStageFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationLastStageFilterOrBuilder.java new file mode 100644 index 000000000000..5c20e2464c28 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationLastStageFilterOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface ApplicationLastStageFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ApplicationLastStageFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * User entered or selected last stage the candidate reached in the
+   * application. The API does an exact match on the
+   * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+   * in profiles.
+   * 
+ * + * string last_stage = 1; + */ + java.lang.String getLastStage(); + /** + * + * + *
+   * Required.
+   * User entered or selected last stage the candidate reached in the
+   * application. The API does an exact match on the
+   * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+   * in profiles.
+   * 
+ * + * string last_stage = 1; + */ + com.google.protobuf.ByteString getLastStageBytes(); + + /** + * + * + *
+   * Optional.
+   * If true, The API excludes all candidates with any
+   * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+   * matching the last stage specified in the filter.
+   * 
+ * + * bool negated = 2; + */ + boolean getNegated(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeReasonFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeReasonFilter.java new file mode 100644 index 000000000000..a8cd281335c5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeReasonFilter.java @@ -0,0 +1,722 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Outcome Reason Filter.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter} + */ +public final class ApplicationOutcomeReasonFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) + ApplicationOutcomeReasonFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApplicationOutcomeReasonFilter.newBuilder() to construct. + private ApplicationOutcomeReasonFilter( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApplicationOutcomeReasonFilter() { + outcomeReason_ = ""; + negated_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ApplicationOutcomeReasonFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + outcomeReason_ = s; + break; + } + case 16: + { + negated_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.class, + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder.class); + } + + public static final int OUTCOME_REASON_FIELD_NUMBER = 1; + private volatile java.lang.Object outcomeReason_; + /** + * + * + *
+   * Required.
+   * User entered or selected outcome reason. The API does an exact match on the
+   * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+   * in profiles.
+   * 
+ * + * string outcome_reason = 1; + */ + public java.lang.String getOutcomeReason() { + java.lang.Object ref = outcomeReason_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outcomeReason_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * User entered or selected outcome reason. The API does an exact match on the
+   * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+   * in profiles.
+   * 
+ * + * string outcome_reason = 1; + */ + public com.google.protobuf.ByteString getOutcomeReasonBytes() { + java.lang.Object ref = outcomeReason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outcomeReason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEGATED_FIELD_NUMBER = 2; + private boolean negated_; + /** + * + * + *
+   * Optional.
+   * If true, The API excludes all candidates with any
+   * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+   * matching the outcome reason specified in the filter.
+   * 
+ * + * bool negated = 2; + */ + public boolean getNegated() { + return negated_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getOutcomeReasonBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outcomeReason_); + } + if (negated_ != false) { + output.writeBool(2, negated_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getOutcomeReasonBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outcomeReason_); + } + if (negated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, negated_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter other = + (com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) obj; + + boolean result = true; + result = result && getOutcomeReason().equals(other.getOutcomeReason()); + result = result && (getNegated() == other.getNegated()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OUTCOME_REASON_FIELD_NUMBER; + hash = (53 * hash) + getOutcomeReason().hashCode(); + hash = (37 * hash) + NEGATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Outcome Reason Filter.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.class, + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + outcomeReason_ = ""; + + negated_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter + getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter build() { + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter buildPartial() { + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter result = + new com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter(this); + result.outcomeReason_ = outcomeReason_; + result.negated_ = negated_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter other) { + if (other + == com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.getDefaultInstance()) + return this; + if (!other.getOutcomeReason().isEmpty()) { + outcomeReason_ = other.outcomeReason_; + onChanged(); + } + if (other.getNegated() != false) { + setNegated(other.getNegated()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object outcomeReason_ = ""; + /** + * + * + *
+     * Required.
+     * User entered or selected outcome reason. The API does an exact match on the
+     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+     * in profiles.
+     * 
+ * + * string outcome_reason = 1; + */ + public java.lang.String getOutcomeReason() { + java.lang.Object ref = outcomeReason_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outcomeReason_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * User entered or selected outcome reason. The API does an exact match on the
+     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+     * in profiles.
+     * 
+ * + * string outcome_reason = 1; + */ + public com.google.protobuf.ByteString getOutcomeReasonBytes() { + java.lang.Object ref = outcomeReason_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outcomeReason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * User entered or selected outcome reason. The API does an exact match on the
+     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+     * in profiles.
+     * 
+ * + * string outcome_reason = 1; + */ + public Builder setOutcomeReason(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + outcomeReason_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * User entered or selected outcome reason. The API does an exact match on the
+     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+     * in profiles.
+     * 
+ * + * string outcome_reason = 1; + */ + public Builder clearOutcomeReason() { + + outcomeReason_ = getDefaultInstance().getOutcomeReason(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * User entered or selected outcome reason. The API does an exact match on the
+     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+     * in profiles.
+     * 
+ * + * string outcome_reason = 1; + */ + public Builder setOutcomeReasonBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + outcomeReason_ = value; + onChanged(); + return this; + } + + private boolean negated_; + /** + * + * + *
+     * Optional.
+     * If true, The API excludes all candidates with any
+     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+     * matching the outcome reason specified in the filter.
+     * 
+ * + * bool negated = 2; + */ + public boolean getNegated() { + return negated_; + } + /** + * + * + *
+     * Optional.
+     * If true, The API excludes all candidates with any
+     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+     * matching the outcome reason specified in the filter.
+     * 
+ * + * bool negated = 2; + */ + public Builder setNegated(boolean value) { + + negated_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * If true, The API excludes all candidates with any
+     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+     * matching the outcome reason specified in the filter.
+     * 
+ * + * bool negated = 2; + */ + public Builder clearNegated() { + + negated_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) + private static final com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter(); + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplicationOutcomeReasonFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApplicationOutcomeReasonFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeReasonFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeReasonFilterOrBuilder.java new file mode 100644 index 000000000000..8bed994d6efd --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeReasonFilterOrBuilder.java @@ -0,0 +1,51 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface ApplicationOutcomeReasonFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * User entered or selected outcome reason. The API does an exact match on the
+   * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+   * in profiles.
+   * 
+ * + * string outcome_reason = 1; + */ + java.lang.String getOutcomeReason(); + /** + * + * + *
+   * Required.
+   * User entered or selected outcome reason. The API does an exact match on the
+   * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+   * in profiles.
+   * 
+ * + * string outcome_reason = 1; + */ + com.google.protobuf.ByteString getOutcomeReasonBytes(); + + /** + * + * + *
+   * Optional.
+   * If true, The API excludes all candidates with any
+   * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+   * matching the outcome reason specified in the filter.
+   * 
+ * + * bool negated = 2; + */ + boolean getNegated(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationStatusFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationStatusFilter.java new file mode 100644 index 000000000000..5ba18abb1567 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationStatusFilter.java @@ -0,0 +1,699 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Filter on status of Application.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationStatusFilter} + */ +public final class ApplicationStatusFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ApplicationStatusFilter) + ApplicationStatusFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApplicationStatusFilter.newBuilder() to construct. + private ApplicationStatusFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApplicationStatusFilter() { + applicationStatus_ = 0; + negated_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ApplicationStatusFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + applicationStatus_ = rawValue; + break; + } + case 16: + { + negated_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationStatusFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationStatusFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ApplicationStatusFilter.class, + com.google.cloud.talent.v4beta1.ApplicationStatusFilter.Builder.class); + } + + public static final int APPLICATION_STATUS_FIELD_NUMBER = 1; + private int applicationStatus_; + /** + * + * + *
+   * Required.
+   * User entered or selected application status. The API does an exact match
+   * between the application status specified in this filter and the
+   * [JobApplication.status][] in profiles.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; + * + */ + public int getApplicationStatusValue() { + return applicationStatus_; + } + /** + * + * + *
+   * Required.
+   * User entered or selected application status. The API does an exact match
+   * between the application status specified in this filter and the
+   * [JobApplication.status][] in profiles.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; + * + */ + public com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus getApplicationStatus() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus result = + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus.valueOf( + applicationStatus_); + return result == null + ? com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus.UNRECOGNIZED + : result; + } + + public static final int NEGATED_FIELD_NUMBER = 2; + private boolean negated_; + /** + * + * + *
+   * Optional.
+   * If true, The API excludes all candidates with any [JobApplication.status][]
+   * matching the status specified in the filter.
+   * 
+ * + * bool negated = 2; + */ + public boolean getNegated() { + return negated_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (applicationStatus_ + != com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus + .APPLICATION_STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, applicationStatus_); + } + if (negated_ != false) { + output.writeBool(2, negated_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (applicationStatus_ + != com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus + .APPLICATION_STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, applicationStatus_); + } + if (negated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, negated_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ApplicationStatusFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ApplicationStatusFilter other = + (com.google.cloud.talent.v4beta1.ApplicationStatusFilter) obj; + + boolean result = true; + result = result && applicationStatus_ == other.applicationStatus_; + result = result && (getNegated() == other.getNegated()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + APPLICATION_STATUS_FIELD_NUMBER; + hash = (53 * hash) + applicationStatus_; + hash = (37 * hash) + NEGATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.ApplicationStatusFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Filter on status of Application.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationStatusFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ApplicationStatusFilter) + com.google.cloud.talent.v4beta1.ApplicationStatusFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationStatusFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationStatusFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ApplicationStatusFilter.class, + com.google.cloud.talent.v4beta1.ApplicationStatusFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ApplicationStatusFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + applicationStatus_ = 0; + + negated_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationStatusFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationStatusFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ApplicationStatusFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationStatusFilter build() { + com.google.cloud.talent.v4beta1.ApplicationStatusFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationStatusFilter buildPartial() { + com.google.cloud.talent.v4beta1.ApplicationStatusFilter result = + new com.google.cloud.talent.v4beta1.ApplicationStatusFilter(this); + result.applicationStatus_ = applicationStatus_; + result.negated_ = negated_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ApplicationStatusFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.ApplicationStatusFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ApplicationStatusFilter other) { + if (other == com.google.cloud.talent.v4beta1.ApplicationStatusFilter.getDefaultInstance()) + return this; + if (other.applicationStatus_ != 0) { + setApplicationStatusValue(other.getApplicationStatusValue()); + } + if (other.getNegated() != false) { + setNegated(other.getNegated()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ApplicationStatusFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ApplicationStatusFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int applicationStatus_ = 0; + /** + * + * + *
+     * Required.
+     * User entered or selected application status. The API does an exact match
+     * between the application status specified in this filter and the
+     * [JobApplication.status][] in profiles.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; + * + */ + public int getApplicationStatusValue() { + return applicationStatus_; + } + /** + * + * + *
+     * Required.
+     * User entered or selected application status. The API does an exact match
+     * between the application status specified in this filter and the
+     * [JobApplication.status][] in profiles.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; + * + */ + public Builder setApplicationStatusValue(int value) { + applicationStatus_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * User entered or selected application status. The API does an exact match
+     * between the application status specified in this filter and the
+     * [JobApplication.status][] in profiles.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; + * + */ + public com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus getApplicationStatus() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus result = + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus.valueOf( + applicationStatus_); + return result == null + ? com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required.
+     * User entered or selected application status. The API does an exact match
+     * between the application status specified in this filter and the
+     * [JobApplication.status][] in profiles.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; + * + */ + public Builder setApplicationStatus( + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus value) { + if (value == null) { + throw new NullPointerException(); + } + + applicationStatus_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * User entered or selected application status. The API does an exact match
+     * between the application status specified in this filter and the
+     * [JobApplication.status][] in profiles.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; + * + */ + public Builder clearApplicationStatus() { + + applicationStatus_ = 0; + onChanged(); + return this; + } + + private boolean negated_; + /** + * + * + *
+     * Optional.
+     * If true, The API excludes all candidates with any [JobApplication.status][]
+     * matching the status specified in the filter.
+     * 
+ * + * bool negated = 2; + */ + public boolean getNegated() { + return negated_; + } + /** + * + * + *
+     * Optional.
+     * If true, The API excludes all candidates with any [JobApplication.status][]
+     * matching the status specified in the filter.
+     * 
+ * + * bool negated = 2; + */ + public Builder setNegated(boolean value) { + + negated_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * If true, The API excludes all candidates with any [JobApplication.status][]
+     * matching the status specified in the filter.
+     * 
+ * + * bool negated = 2; + */ + public Builder clearNegated() { + + negated_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ApplicationStatusFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ApplicationStatusFilter) + private static final com.google.cloud.talent.v4beta1.ApplicationStatusFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ApplicationStatusFilter(); + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplicationStatusFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApplicationStatusFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationStatusFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationStatusFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationStatusFilterOrBuilder.java new file mode 100644 index 000000000000..4ba49edc271a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationStatusFilterOrBuilder.java @@ -0,0 +1,52 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface ApplicationStatusFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ApplicationStatusFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * User entered or selected application status. The API does an exact match
+   * between the application status specified in this filter and the
+   * [JobApplication.status][] in profiles.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; + * + */ + int getApplicationStatusValue(); + /** + * + * + *
+   * Required.
+   * User entered or selected application status. The API does an exact match
+   * between the application status specified in this filter and the
+   * [JobApplication.status][] in profiles.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; + * + */ + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus getApplicationStatus(); + + /** + * + * + *
+   * Optional.
+   * If true, The API excludes all candidates with any [JobApplication.status][]
+   * matching the status specified in the filter.
+   * 
+ * + * bool negated = 2; + */ + boolean getNegated(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchDeleteJobsRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchDeleteJobsRequest.java new file mode 100644 index 000000000000..92cd60c74796 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchDeleteJobsRequest.java @@ -0,0 +1,833 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Batch delete jobs request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.BatchDeleteJobsRequest} + */ +public final class BatchDeleteJobsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.BatchDeleteJobsRequest) + BatchDeleteJobsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchDeleteJobsRequest.newBuilder() to construct. + private BatchDeleteJobsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchDeleteJobsRequest() { + parent_ = ""; + filter_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BatchDeleteJobsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_BatchDeleteJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_BatchDeleteJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest.class, + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * Required.
+   * The filter string specifies the jobs to be deleted.
+   * Supported operator: =, AND
+   * The fields eligible for filtering are:
+   * * `companyName` (Required)
+   * * `requisitionId` (Required)
+   * Sample Query: companyName = "projects/api-test-project/companies/123" AND
+   * requisitionId = "req-1"
+   * 
+ * + * string filter = 2; + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The filter string specifies the jobs to be deleted.
+   * Supported operator: =, AND
+   * The fields eligible for filtering are:
+   * * `companyName` (Required)
+   * * `requisitionId` (Required)
+   * Sample Query: companyName = "projects/api-test-project/companies/123" AND
+   * requisitionId = "req-1"
+   * 
+ * + * string filter = 2; + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!getFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!getFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest other = + (com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && getFilter().equals(other.getFilter()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Batch delete jobs request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.BatchDeleteJobsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.BatchDeleteJobsRequest) + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_BatchDeleteJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_BatchDeleteJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest.class, + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + filter_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_BatchDeleteJobsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest build() { + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest buildPartial() { + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest result = + new com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest other) { + if (other == com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Required.
+     * The filter string specifies the jobs to be deleted.
+     * Supported operator: =, AND
+     * The fields eligible for filtering are:
+     * * `companyName` (Required)
+     * * `requisitionId` (Required)
+     * Sample Query: companyName = "projects/api-test-project/companies/123" AND
+     * requisitionId = "req-1"
+     * 
+ * + * string filter = 2; + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The filter string specifies the jobs to be deleted.
+     * Supported operator: =, AND
+     * The fields eligible for filtering are:
+     * * `companyName` (Required)
+     * * `requisitionId` (Required)
+     * Sample Query: companyName = "projects/api-test-project/companies/123" AND
+     * requisitionId = "req-1"
+     * 
+ * + * string filter = 2; + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The filter string specifies the jobs to be deleted.
+     * Supported operator: =, AND
+     * The fields eligible for filtering are:
+     * * `companyName` (Required)
+     * * `requisitionId` (Required)
+     * Sample Query: companyName = "projects/api-test-project/companies/123" AND
+     * requisitionId = "req-1"
+     * 
+ * + * string filter = 2; + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The filter string specifies the jobs to be deleted.
+     * Supported operator: =, AND
+     * The fields eligible for filtering are:
+     * * `companyName` (Required)
+     * * `requisitionId` (Required)
+     * Sample Query: companyName = "projects/api-test-project/companies/123" AND
+     * requisitionId = "req-1"
+     * 
+ * + * string filter = 2; + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The filter string specifies the jobs to be deleted.
+     * Supported operator: =, AND
+     * The fields eligible for filtering are:
+     * * `companyName` (Required)
+     * * `requisitionId` (Required)
+     * Sample Query: companyName = "projects/api-test-project/companies/123" AND
+     * requisitionId = "req-1"
+     * 
+ * + * string filter = 2; + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.BatchDeleteJobsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.BatchDeleteJobsRequest) + private static final com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest(); + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchDeleteJobsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchDeleteJobsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchDeleteJobsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchDeleteJobsRequestOrBuilder.java new file mode 100644 index 000000000000..6a473063f72d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchDeleteJobsRequestOrBuilder.java @@ -0,0 +1,72 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface BatchDeleteJobsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.BatchDeleteJobsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required.
+   * The filter string specifies the jobs to be deleted.
+   * Supported operator: =, AND
+   * The fields eligible for filtering are:
+   * * `companyName` (Required)
+   * * `requisitionId` (Required)
+   * Sample Query: companyName = "projects/api-test-project/companies/123" AND
+   * requisitionId = "req-1"
+   * 
+ * + * string filter = 2; + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Required.
+   * The filter string specifies the jobs to be deleted.
+   * Supported operator: =, AND
+   * The fields eligible for filtering are:
+   * * `companyName` (Required)
+   * * `requisitionId` (Required)
+   * Sample Query: companyName = "projects/api-test-project/companies/123" AND
+   * requisitionId = "req-1"
+   * 
+ * + * string filter = 2; + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchProto.java new file mode 100644 index 000000000000..cce9e88a2920 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchProto.java @@ -0,0 +1,57 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/batch.proto + +package com.google.cloud.talent.v4beta1; + +public final class BatchProto { + private BatchProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\'google/cloud/talent/v4beta1/batch.prot" + + "o\022\033google.cloud.talent.v4beta1\032\034google/a" + + "pi/annotations.proto\032%google/cloud/talen" + + "t/v4beta1/job.proto\032\037google/protobuf/tim" + + "estamp.proto\032\027google/rpc/status.protoBx\n" + + "\037com.google.cloud.talent.v4beta1B\nBatchP" + + "rotoP\001ZAgoogle.golang.org/genproto/googl" + + "eapis/cloud/talent/v4beta1;talent\242\002\003CTSb" + + "\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.JobResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }, + assigner); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.JobResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Certification.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Certification.java new file mode 100644 index 000000000000..cc70411de259 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Certification.java @@ -0,0 +1,1485 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents a license or certification.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Certification} + */ +public final class Certification extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Certification) + CertificationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Certification.newBuilder() to construct. + private Certification(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Certification() { + displayName_ = ""; + authority_ = ""; + description_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Certification( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 18: + { + com.google.type.Date.Builder subBuilder = null; + if (acquireDate_ != null) { + subBuilder = acquireDate_.toBuilder(); + } + acquireDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(acquireDate_); + acquireDate_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.type.Date.Builder subBuilder = null; + if (expireDate_ != null) { + subBuilder = expireDate_.toBuilder(); + } + expireDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expireDate_); + expireDate_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + authority_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Certification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Certification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Certification.class, + com.google.cloud.talent.v4beta1.Certification.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Optional.
+   * Name of license or certification.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Name of license or certification.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACQUIRE_DATE_FIELD_NUMBER = 2; + private com.google.type.Date acquireDate_; + /** + * + * + *
+   * Optional.
+   * Acquirement date or effective date of license or certification.
+   * 
+ * + * .google.type.Date acquire_date = 2; + */ + public boolean hasAcquireDate() { + return acquireDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * Acquirement date or effective date of license or certification.
+   * 
+ * + * .google.type.Date acquire_date = 2; + */ + public com.google.type.Date getAcquireDate() { + return acquireDate_ == null ? com.google.type.Date.getDefaultInstance() : acquireDate_; + } + /** + * + * + *
+   * Optional.
+   * Acquirement date or effective date of license or certification.
+   * 
+ * + * .google.type.Date acquire_date = 2; + */ + public com.google.type.DateOrBuilder getAcquireDateOrBuilder() { + return getAcquireDate(); + } + + public static final int EXPIRE_DATE_FIELD_NUMBER = 3; + private com.google.type.Date expireDate_; + /** + * + * + *
+   * Optional.
+   * Expiration date of license of certification.
+   * 
+ * + * .google.type.Date expire_date = 3; + */ + public boolean hasExpireDate() { + return expireDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * Expiration date of license of certification.
+   * 
+ * + * .google.type.Date expire_date = 3; + */ + public com.google.type.Date getExpireDate() { + return expireDate_ == null ? com.google.type.Date.getDefaultInstance() : expireDate_; + } + /** + * + * + *
+   * Optional.
+   * Expiration date of license of certification.
+   * 
+ * + * .google.type.Date expire_date = 3; + */ + public com.google.type.DateOrBuilder getExpireDateOrBuilder() { + return getExpireDate(); + } + + public static final int AUTHORITY_FIELD_NUMBER = 4; + private volatile java.lang.Object authority_; + /** + * + * + *
+   * Optional.
+   * Authority of license, such as government.
+   * Number of characters allowed is 100.
+   * 
+ * + * string authority = 4; + */ + public java.lang.String getAuthority() { + java.lang.Object ref = authority_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authority_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Authority of license, such as government.
+   * Number of characters allowed is 100.
+   * 
+ * + * string authority = 4; + */ + public com.google.protobuf.ByteString getAuthorityBytes() { + java.lang.Object ref = authority_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authority_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 5; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Optional.
+   * Description of license or certification.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 5; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Description of license or certification.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 5; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (acquireDate_ != null) { + output.writeMessage(2, getAcquireDate()); + } + if (expireDate_ != null) { + output.writeMessage(3, getExpireDate()); + } + if (!getAuthorityBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, authority_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (acquireDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAcquireDate()); + } + if (expireDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExpireDate()); + } + if (!getAuthorityBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, authority_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Certification)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Certification other = + (com.google.cloud.talent.v4beta1.Certification) obj; + + boolean result = true; + result = result && getDisplayName().equals(other.getDisplayName()); + result = result && (hasAcquireDate() == other.hasAcquireDate()); + if (hasAcquireDate()) { + result = result && getAcquireDate().equals(other.getAcquireDate()); + } + result = result && (hasExpireDate() == other.hasExpireDate()); + if (hasExpireDate()) { + result = result && getExpireDate().equals(other.getExpireDate()); + } + result = result && getAuthority().equals(other.getAuthority()); + result = result && getDescription().equals(other.getDescription()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasAcquireDate()) { + hash = (37 * hash) + ACQUIRE_DATE_FIELD_NUMBER; + hash = (53 * hash) + getAcquireDate().hashCode(); + } + if (hasExpireDate()) { + hash = (37 * hash) + EXPIRE_DATE_FIELD_NUMBER; + hash = (53 * hash) + getExpireDate().hashCode(); + } + hash = (37 * hash) + AUTHORITY_FIELD_NUMBER; + hash = (53 * hash) + getAuthority().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Certification parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Certification parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Certification parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Certification parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Certification parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Certification parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Certification parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Certification parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Certification parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Certification parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Certification parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Certification parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.Certification prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Resource that represents a license or certification.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Certification} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Certification) + com.google.cloud.talent.v4beta1.CertificationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Certification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Certification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Certification.class, + com.google.cloud.talent.v4beta1.Certification.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Certification.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + displayName_ = ""; + + if (acquireDateBuilder_ == null) { + acquireDate_ = null; + } else { + acquireDate_ = null; + acquireDateBuilder_ = null; + } + if (expireDateBuilder_ == null) { + expireDate_ = null; + } else { + expireDate_ = null; + expireDateBuilder_ = null; + } + authority_ = ""; + + description_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Certification_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Certification getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Certification.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Certification build() { + com.google.cloud.talent.v4beta1.Certification result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Certification buildPartial() { + com.google.cloud.talent.v4beta1.Certification result = + new com.google.cloud.talent.v4beta1.Certification(this); + result.displayName_ = displayName_; + if (acquireDateBuilder_ == null) { + result.acquireDate_ = acquireDate_; + } else { + result.acquireDate_ = acquireDateBuilder_.build(); + } + if (expireDateBuilder_ == null) { + result.expireDate_ = expireDate_; + } else { + result.expireDate_ = expireDateBuilder_.build(); + } + result.authority_ = authority_; + result.description_ = description_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Certification) { + return mergeFrom((com.google.cloud.talent.v4beta1.Certification) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Certification other) { + if (other == com.google.cloud.talent.v4beta1.Certification.getDefaultInstance()) return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (other.hasAcquireDate()) { + mergeAcquireDate(other.getAcquireDate()); + } + if (other.hasExpireDate()) { + mergeExpireDate(other.getExpireDate()); + } + if (!other.getAuthority().isEmpty()) { + authority_ = other.authority_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Certification parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Certification) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Optional.
+     * Name of license or certification.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Name of license or certification.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Name of license or certification.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Name of license or certification.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Name of license or certification.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private com.google.type.Date acquireDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + acquireDateBuilder_; + /** + * + * + *
+     * Optional.
+     * Acquirement date or effective date of license or certification.
+     * 
+ * + * .google.type.Date acquire_date = 2; + */ + public boolean hasAcquireDate() { + return acquireDateBuilder_ != null || acquireDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * Acquirement date or effective date of license or certification.
+     * 
+ * + * .google.type.Date acquire_date = 2; + */ + public com.google.type.Date getAcquireDate() { + if (acquireDateBuilder_ == null) { + return acquireDate_ == null ? com.google.type.Date.getDefaultInstance() : acquireDate_; + } else { + return acquireDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Acquirement date or effective date of license or certification.
+     * 
+ * + * .google.type.Date acquire_date = 2; + */ + public Builder setAcquireDate(com.google.type.Date value) { + if (acquireDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + acquireDate_ = value; + onChanged(); + } else { + acquireDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Acquirement date or effective date of license or certification.
+     * 
+ * + * .google.type.Date acquire_date = 2; + */ + public Builder setAcquireDate(com.google.type.Date.Builder builderForValue) { + if (acquireDateBuilder_ == null) { + acquireDate_ = builderForValue.build(); + onChanged(); + } else { + acquireDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Acquirement date or effective date of license or certification.
+     * 
+ * + * .google.type.Date acquire_date = 2; + */ + public Builder mergeAcquireDate(com.google.type.Date value) { + if (acquireDateBuilder_ == null) { + if (acquireDate_ != null) { + acquireDate_ = + com.google.type.Date.newBuilder(acquireDate_).mergeFrom(value).buildPartial(); + } else { + acquireDate_ = value; + } + onChanged(); + } else { + acquireDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Acquirement date or effective date of license or certification.
+     * 
+ * + * .google.type.Date acquire_date = 2; + */ + public Builder clearAcquireDate() { + if (acquireDateBuilder_ == null) { + acquireDate_ = null; + onChanged(); + } else { + acquireDate_ = null; + acquireDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Acquirement date or effective date of license or certification.
+     * 
+ * + * .google.type.Date acquire_date = 2; + */ + public com.google.type.Date.Builder getAcquireDateBuilder() { + + onChanged(); + return getAcquireDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Acquirement date or effective date of license or certification.
+     * 
+ * + * .google.type.Date acquire_date = 2; + */ + public com.google.type.DateOrBuilder getAcquireDateOrBuilder() { + if (acquireDateBuilder_ != null) { + return acquireDateBuilder_.getMessageOrBuilder(); + } else { + return acquireDate_ == null ? com.google.type.Date.getDefaultInstance() : acquireDate_; + } + } + /** + * + * + *
+     * Optional.
+     * Acquirement date or effective date of license or certification.
+     * 
+ * + * .google.type.Date acquire_date = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getAcquireDateFieldBuilder() { + if (acquireDateBuilder_ == null) { + acquireDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getAcquireDate(), getParentForChildren(), isClean()); + acquireDate_ = null; + } + return acquireDateBuilder_; + } + + private com.google.type.Date expireDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + expireDateBuilder_; + /** + * + * + *
+     * Optional.
+     * Expiration date of license of certification.
+     * 
+ * + * .google.type.Date expire_date = 3; + */ + public boolean hasExpireDate() { + return expireDateBuilder_ != null || expireDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * Expiration date of license of certification.
+     * 
+ * + * .google.type.Date expire_date = 3; + */ + public com.google.type.Date getExpireDate() { + if (expireDateBuilder_ == null) { + return expireDate_ == null ? com.google.type.Date.getDefaultInstance() : expireDate_; + } else { + return expireDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Expiration date of license of certification.
+     * 
+ * + * .google.type.Date expire_date = 3; + */ + public Builder setExpireDate(com.google.type.Date value) { + if (expireDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expireDate_ = value; + onChanged(); + } else { + expireDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Expiration date of license of certification.
+     * 
+ * + * .google.type.Date expire_date = 3; + */ + public Builder setExpireDate(com.google.type.Date.Builder builderForValue) { + if (expireDateBuilder_ == null) { + expireDate_ = builderForValue.build(); + onChanged(); + } else { + expireDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Expiration date of license of certification.
+     * 
+ * + * .google.type.Date expire_date = 3; + */ + public Builder mergeExpireDate(com.google.type.Date value) { + if (expireDateBuilder_ == null) { + if (expireDate_ != null) { + expireDate_ = + com.google.type.Date.newBuilder(expireDate_).mergeFrom(value).buildPartial(); + } else { + expireDate_ = value; + } + onChanged(); + } else { + expireDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Expiration date of license of certification.
+     * 
+ * + * .google.type.Date expire_date = 3; + */ + public Builder clearExpireDate() { + if (expireDateBuilder_ == null) { + expireDate_ = null; + onChanged(); + } else { + expireDate_ = null; + expireDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Expiration date of license of certification.
+     * 
+ * + * .google.type.Date expire_date = 3; + */ + public com.google.type.Date.Builder getExpireDateBuilder() { + + onChanged(); + return getExpireDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Expiration date of license of certification.
+     * 
+ * + * .google.type.Date expire_date = 3; + */ + public com.google.type.DateOrBuilder getExpireDateOrBuilder() { + if (expireDateBuilder_ != null) { + return expireDateBuilder_.getMessageOrBuilder(); + } else { + return expireDate_ == null ? com.google.type.Date.getDefaultInstance() : expireDate_; + } + } + /** + * + * + *
+     * Optional.
+     * Expiration date of license of certification.
+     * 
+ * + * .google.type.Date expire_date = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getExpireDateFieldBuilder() { + if (expireDateBuilder_ == null) { + expireDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getExpireDate(), getParentForChildren(), isClean()); + expireDate_ = null; + } + return expireDateBuilder_; + } + + private java.lang.Object authority_ = ""; + /** + * + * + *
+     * Optional.
+     * Authority of license, such as government.
+     * Number of characters allowed is 100.
+     * 
+ * + * string authority = 4; + */ + public java.lang.String getAuthority() { + java.lang.Object ref = authority_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authority_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Authority of license, such as government.
+     * Number of characters allowed is 100.
+     * 
+ * + * string authority = 4; + */ + public com.google.protobuf.ByteString getAuthorityBytes() { + java.lang.Object ref = authority_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authority_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Authority of license, such as government.
+     * Number of characters allowed is 100.
+     * 
+ * + * string authority = 4; + */ + public Builder setAuthority(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + authority_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Authority of license, such as government.
+     * Number of characters allowed is 100.
+     * 
+ * + * string authority = 4; + */ + public Builder clearAuthority() { + + authority_ = getDefaultInstance().getAuthority(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Authority of license, such as government.
+     * Number of characters allowed is 100.
+     * 
+ * + * string authority = 4; + */ + public Builder setAuthorityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + authority_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Optional.
+     * Description of license or certification.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 5; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Description of license or certification.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 5; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Description of license or certification.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 5; + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Description of license or certification.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 5; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Description of license or certification.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 5; + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Certification) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Certification) + private static final com.google.cloud.talent.v4beta1.Certification DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Certification(); + } + + public static com.google.cloud.talent.v4beta1.Certification getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Certification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Certification(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Certification getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CertificationOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CertificationOrBuilder.java new file mode 100644 index 000000000000..fedbadb23e35 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CertificationOrBuilder.java @@ -0,0 +1,153 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface CertificationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Certification) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * Name of license or certification.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Optional.
+   * Name of license or certification.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional.
+   * Acquirement date or effective date of license or certification.
+   * 
+ * + * .google.type.Date acquire_date = 2; + */ + boolean hasAcquireDate(); + /** + * + * + *
+   * Optional.
+   * Acquirement date or effective date of license or certification.
+   * 
+ * + * .google.type.Date acquire_date = 2; + */ + com.google.type.Date getAcquireDate(); + /** + * + * + *
+   * Optional.
+   * Acquirement date or effective date of license or certification.
+   * 
+ * + * .google.type.Date acquire_date = 2; + */ + com.google.type.DateOrBuilder getAcquireDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Expiration date of license of certification.
+   * 
+ * + * .google.type.Date expire_date = 3; + */ + boolean hasExpireDate(); + /** + * + * + *
+   * Optional.
+   * Expiration date of license of certification.
+   * 
+ * + * .google.type.Date expire_date = 3; + */ + com.google.type.Date getExpireDate(); + /** + * + * + *
+   * Optional.
+   * Expiration date of license of certification.
+   * 
+ * + * .google.type.Date expire_date = 3; + */ + com.google.type.DateOrBuilder getExpireDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Authority of license, such as government.
+   * Number of characters allowed is 100.
+   * 
+ * + * string authority = 4; + */ + java.lang.String getAuthority(); + /** + * + * + *
+   * Optional.
+   * Authority of license, such as government.
+   * Number of characters allowed is 100.
+   * 
+ * + * string authority = 4; + */ + com.google.protobuf.ByteString getAuthorityBytes(); + + /** + * + * + *
+   * Optional.
+   * Description of license or certification.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 5; + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Optional.
+   * Description of license or certification.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 5; + */ + com.google.protobuf.ByteString getDescriptionBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEvent.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEvent.java new file mode 100644 index 000000000000..a24c6d2e2d73 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEvent.java @@ -0,0 +1,2110 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/event.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * An event issued when an end user interacts with the application that
+ * implements Cloud Talent Solution. Providing this information improves the
+ * quality of search and recommendation for the API clients, enabling the
+ * service to perform optimally. The number of events sent must be consistent
+ * with other calls, such as job searches, issued to the service by the client.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ClientEvent} + */ +public final class ClientEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ClientEvent) + ClientEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientEvent.newBuilder() to construct. + private ClientEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ClientEvent() { + requestId_ = ""; + eventId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ClientEvent( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + eventId_ = s; + break; + } + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + com.google.cloud.talent.v4beta1.JobEvent.Builder subBuilder = null; + if (eventCase_ == 5) { + subBuilder = ((com.google.cloud.talent.v4beta1.JobEvent) event_).toBuilder(); + } + event_ = + input.readMessage( + com.google.cloud.talent.v4beta1.JobEvent.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.talent.v4beta1.JobEvent) event_); + event_ = subBuilder.buildPartial(); + } + eventCase_ = 5; + break; + } + case 50: + { + com.google.cloud.talent.v4beta1.ProfileEvent.Builder subBuilder = null; + if (eventCase_ == 6) { + subBuilder = ((com.google.cloud.talent.v4beta1.ProfileEvent) event_).toBuilder(); + } + event_ = + input.readMessage( + com.google.cloud.talent.v4beta1.ProfileEvent.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.talent.v4beta1.ProfileEvent) event_); + event_ = subBuilder.buildPartial(); + } + eventCase_ = 6; + break; + } + case 58: + { + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + extraInfo_ = + com.google.protobuf.MapField.newMapField( + ExtraInfoDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000020; + } + com.google.protobuf.MapEntry extraInfo__ = + input.readMessage( + ExtraInfoDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + extraInfo_.getMutableMap().put(extraInfo__.getKey(), extraInfo__.getValue()); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_ClientEvent_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 7: + return internalGetExtraInfo(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_ClientEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ClientEvent.class, + com.google.cloud.talent.v4beta1.ClientEvent.Builder.class); + } + + private int bitField0_; + private int eventCase_ = 0; + private java.lang.Object event_; + + public enum EventCase implements com.google.protobuf.Internal.EnumLite { + JOB_EVENT(5), + PROFILE_EVENT(6), + EVENT_NOT_SET(0); + private final int value; + + private EventCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static EventCase valueOf(int value) { + return forNumber(value); + } + + public static EventCase forNumber(int value) { + switch (value) { + case 5: + return JOB_EVENT; + case 6: + return PROFILE_EVENT; + case 0: + return EVENT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EventCase getEventCase() { + return EventCase.forNumber(eventCase_); + } + + public static final int REQUEST_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object requestId_; + /** + * + * + *
+   * Required.
+   * A unique ID generated in the API responses. It can be found in
+   * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
+   * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * A unique ID generated in the API responses. It can be found in
+   * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
+   * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object eventId_; + /** + * + * + *
+   * Required.
+   * A unique identifier, generated by the client application.
+   * 
+ * + * string event_id = 2; + */ + public java.lang.String getEventId() { + java.lang.Object ref = eventId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventId_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * A unique identifier, generated by the client application.
+   * 
+ * + * string event_id = 2; + */ + public com.google.protobuf.ByteString getEventIdBytes() { + java.lang.Object ref = eventId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Required.
+   * The timestamp of the event.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Required.
+   * The timestamp of the event.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Required.
+   * The timestamp of the event.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int JOB_EVENT_FIELD_NUMBER = 5; + /** + * + * + *
+   * An event issued when a job seeker interacts with the application that
+   * implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + public boolean hasJobEvent() { + return eventCase_ == 5; + } + /** + * + * + *
+   * An event issued when a job seeker interacts with the application that
+   * implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + public com.google.cloud.talent.v4beta1.JobEvent getJobEvent() { + if (eventCase_ == 5) { + return (com.google.cloud.talent.v4beta1.JobEvent) event_; + } + return com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance(); + } + /** + * + * + *
+   * An event issued when a job seeker interacts with the application that
+   * implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + public com.google.cloud.talent.v4beta1.JobEventOrBuilder getJobEventOrBuilder() { + if (eventCase_ == 5) { + return (com.google.cloud.talent.v4beta1.JobEvent) event_; + } + return com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance(); + } + + public static final int PROFILE_EVENT_FIELD_NUMBER = 6; + /** + * + * + *
+   * An event issued when a profile searcher interacts with the application
+   * that implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + public boolean hasProfileEvent() { + return eventCase_ == 6; + } + /** + * + * + *
+   * An event issued when a profile searcher interacts with the application
+   * that implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + public com.google.cloud.talent.v4beta1.ProfileEvent getProfileEvent() { + if (eventCase_ == 6) { + return (com.google.cloud.talent.v4beta1.ProfileEvent) event_; + } + return com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance(); + } + /** + * + * + *
+   * An event issued when a profile searcher interacts with the application
+   * that implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + public com.google.cloud.talent.v4beta1.ProfileEventOrBuilder getProfileEventOrBuilder() { + if (eventCase_ == 6) { + return (com.google.cloud.talent.v4beta1.ProfileEvent) event_; + } + return com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance(); + } + + public static final int EXTRA_INFO_FIELD_NUMBER = 7; + + private static final class ExtraInfoDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_ClientEvent_ExtraInfoEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField extraInfo_; + + private com.google.protobuf.MapField internalGetExtraInfo() { + if (extraInfo_ == null) { + return com.google.protobuf.MapField.emptyMapField(ExtraInfoDefaultEntryHolder.defaultEntry); + } + return extraInfo_; + } + + public int getExtraInfoCount() { + return internalGetExtraInfo().getMap().size(); + } + /** + * + * + *
+   * Optional.
+   * Extra information about this event. Used for storing information with no
+   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+   * example, user application specific context or details.
+   * At most 20 keys are supported. The maximum total size of all keys and
+   * values is 2 KB.
+   * 
+ * + * map<string, string> extra_info = 7; + */ + public boolean containsExtraInfo(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetExtraInfo().getMap().containsKey(key); + } + /** Use {@link #getExtraInfoMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getExtraInfo() { + return getExtraInfoMap(); + } + /** + * + * + *
+   * Optional.
+   * Extra information about this event. Used for storing information with no
+   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+   * example, user application specific context or details.
+   * At most 20 keys are supported. The maximum total size of all keys and
+   * values is 2 KB.
+   * 
+ * + * map<string, string> extra_info = 7; + */ + public java.util.Map getExtraInfoMap() { + return internalGetExtraInfo().getMap(); + } + /** + * + * + *
+   * Optional.
+   * Extra information about this event. Used for storing information with no
+   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+   * example, user application specific context or details.
+   * At most 20 keys are supported. The maximum total size of all keys and
+   * values is 2 KB.
+   * 
+ * + * map<string, string> extra_info = 7; + */ + public java.lang.String getExtraInfoOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetExtraInfo().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Optional.
+   * Extra information about this event. Used for storing information with no
+   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+   * example, user application specific context or details.
+   * At most 20 keys are supported. The maximum total size of all keys and
+   * values is 2 KB.
+   * 
+ * + * map<string, string> extra_info = 7; + */ + public java.lang.String getExtraInfoOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetExtraInfo().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getRequestIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); + } + if (!getEventIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, eventId_); + } + if (createTime_ != null) { + output.writeMessage(4, getCreateTime()); + } + if (eventCase_ == 5) { + output.writeMessage(5, (com.google.cloud.talent.v4beta1.JobEvent) event_); + } + if (eventCase_ == 6) { + output.writeMessage(6, (com.google.cloud.talent.v4beta1.ProfileEvent) event_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetExtraInfo(), ExtraInfoDefaultEntryHolder.defaultEntry, 7); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRequestIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); + } + if (!getEventIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, eventId_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + if (eventCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.talent.v4beta1.JobEvent) event_); + } + if (eventCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.talent.v4beta1.ProfileEvent) event_); + } + for (java.util.Map.Entry entry : + internalGetExtraInfo().getMap().entrySet()) { + com.google.protobuf.MapEntry extraInfo__ = + ExtraInfoDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, extraInfo__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ClientEvent)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ClientEvent other = + (com.google.cloud.talent.v4beta1.ClientEvent) obj; + + boolean result = true; + result = result && getRequestId().equals(other.getRequestId()); + result = result && getEventId().equals(other.getEventId()); + result = result && (hasCreateTime() == other.hasCreateTime()); + if (hasCreateTime()) { + result = result && getCreateTime().equals(other.getCreateTime()); + } + result = result && internalGetExtraInfo().equals(other.internalGetExtraInfo()); + result = result && getEventCase().equals(other.getEventCase()); + if (!result) return false; + switch (eventCase_) { + case 5: + result = result && getJobEvent().equals(other.getJobEvent()); + break; + case 6: + result = result && getProfileEvent().equals(other.getProfileEvent()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + EVENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getEventId().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (!internalGetExtraInfo().getMap().isEmpty()) { + hash = (37 * hash) + EXTRA_INFO_FIELD_NUMBER; + hash = (53 * hash) + internalGetExtraInfo().hashCode(); + } + switch (eventCase_) { + case 5: + hash = (37 * hash) + JOB_EVENT_FIELD_NUMBER; + hash = (53 * hash) + getJobEvent().hashCode(); + break; + case 6: + hash = (37 * hash) + PROFILE_EVENT_FIELD_NUMBER; + hash = (53 * hash) + getProfileEvent().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ClientEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ClientEvent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.ClientEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * An event issued when an end user interacts with the application that
+   * implements Cloud Talent Solution. Providing this information improves the
+   * quality of search and recommendation for the API clients, enabling the
+   * service to perform optimally. The number of events sent must be consistent
+   * with other calls, such as job searches, issued to the service by the client.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ClientEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ClientEvent) + com.google.cloud.talent.v4beta1.ClientEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_ClientEvent_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 7: + return internalGetExtraInfo(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 7: + return internalGetMutableExtraInfo(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_ClientEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ClientEvent.class, + com.google.cloud.talent.v4beta1.ClientEvent.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ClientEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + requestId_ = ""; + + eventId_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + internalGetMutableExtraInfo().clear(); + eventCase_ = 0; + event_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_ClientEvent_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ClientEvent getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ClientEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ClientEvent build() { + com.google.cloud.talent.v4beta1.ClientEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ClientEvent buildPartial() { + com.google.cloud.talent.v4beta1.ClientEvent result = + new com.google.cloud.talent.v4beta1.ClientEvent(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.requestId_ = requestId_; + result.eventId_ = eventId_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (eventCase_ == 5) { + if (jobEventBuilder_ == null) { + result.event_ = event_; + } else { + result.event_ = jobEventBuilder_.build(); + } + } + if (eventCase_ == 6) { + if (profileEventBuilder_ == null) { + result.event_ = event_; + } else { + result.event_ = profileEventBuilder_.build(); + } + } + result.extraInfo_ = internalGetExtraInfo(); + result.extraInfo_.makeImmutable(); + result.bitField0_ = to_bitField0_; + result.eventCase_ = eventCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ClientEvent) { + return mergeFrom((com.google.cloud.talent.v4beta1.ClientEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ClientEvent other) { + if (other == com.google.cloud.talent.v4beta1.ClientEvent.getDefaultInstance()) return this; + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + if (!other.getEventId().isEmpty()) { + eventId_ = other.eventId_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + internalGetMutableExtraInfo().mergeFrom(other.internalGetExtraInfo()); + switch (other.getEventCase()) { + case JOB_EVENT: + { + mergeJobEvent(other.getJobEvent()); + break; + } + case PROFILE_EVENT: + { + mergeProfileEvent(other.getProfileEvent()); + break; + } + case EVENT_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ClientEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.ClientEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int eventCase_ = 0; + private java.lang.Object event_; + + public EventCase getEventCase() { + return EventCase.forNumber(eventCase_); + } + + public Builder clearEvent() { + eventCase_ = 0; + event_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Required.
+     * A unique ID generated in the API responses. It can be found in
+     * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
+     * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * A unique ID generated in the API responses. It can be found in
+     * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
+     * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * A unique ID generated in the API responses. It can be found in
+     * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
+     * 
+ * + * string request_id = 1; + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * A unique ID generated in the API responses. It can be found in
+     * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
+     * 
+ * + * string request_id = 1; + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * A unique ID generated in the API responses. It can be found in
+     * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
+     * 
+ * + * string request_id = 1; + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + private java.lang.Object eventId_ = ""; + /** + * + * + *
+     * Required.
+     * A unique identifier, generated by the client application.
+     * 
+ * + * string event_id = 2; + */ + public java.lang.String getEventId() { + java.lang.Object ref = eventId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * A unique identifier, generated by the client application.
+     * 
+ * + * string event_id = 2; + */ + public com.google.protobuf.ByteString getEventIdBytes() { + java.lang.Object ref = eventId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * A unique identifier, generated by the client application.
+     * 
+ * + * string event_id = 2; + */ + public Builder setEventId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + eventId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * A unique identifier, generated by the client application.
+     * 
+ * + * string event_id = 2; + */ + public Builder clearEventId() { + + eventId_ = getDefaultInstance().getEventId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * A unique identifier, generated by the client application.
+     * 
+ * + * string event_id = 2; + */ + public Builder setEventIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + eventId_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Required.
+     * The timestamp of the event.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * Required.
+     * The timestamp of the event.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The timestamp of the event.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The timestamp of the event.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The timestamp of the event.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The timestamp of the event.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The timestamp of the event.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The timestamp of the event.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Required.
+     * The timestamp of the event.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobEvent, + com.google.cloud.talent.v4beta1.JobEvent.Builder, + com.google.cloud.talent.v4beta1.JobEventOrBuilder> + jobEventBuilder_; + /** + * + * + *
+     * An event issued when a job seeker interacts with the application that
+     * implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + public boolean hasJobEvent() { + return eventCase_ == 5; + } + /** + * + * + *
+     * An event issued when a job seeker interacts with the application that
+     * implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + public com.google.cloud.talent.v4beta1.JobEvent getJobEvent() { + if (jobEventBuilder_ == null) { + if (eventCase_ == 5) { + return (com.google.cloud.talent.v4beta1.JobEvent) event_; + } + return com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance(); + } else { + if (eventCase_ == 5) { + return jobEventBuilder_.getMessage(); + } + return com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance(); + } + } + /** + * + * + *
+     * An event issued when a job seeker interacts with the application that
+     * implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + public Builder setJobEvent(com.google.cloud.talent.v4beta1.JobEvent value) { + if (jobEventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + event_ = value; + onChanged(); + } else { + jobEventBuilder_.setMessage(value); + } + eventCase_ = 5; + return this; + } + /** + * + * + *
+     * An event issued when a job seeker interacts with the application that
+     * implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + public Builder setJobEvent(com.google.cloud.talent.v4beta1.JobEvent.Builder builderForValue) { + if (jobEventBuilder_ == null) { + event_ = builderForValue.build(); + onChanged(); + } else { + jobEventBuilder_.setMessage(builderForValue.build()); + } + eventCase_ = 5; + return this; + } + /** + * + * + *
+     * An event issued when a job seeker interacts with the application that
+     * implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + public Builder mergeJobEvent(com.google.cloud.talent.v4beta1.JobEvent value) { + if (jobEventBuilder_ == null) { + if (eventCase_ == 5 + && event_ != com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance()) { + event_ = + com.google.cloud.talent.v4beta1.JobEvent.newBuilder( + (com.google.cloud.talent.v4beta1.JobEvent) event_) + .mergeFrom(value) + .buildPartial(); + } else { + event_ = value; + } + onChanged(); + } else { + if (eventCase_ == 5) { + jobEventBuilder_.mergeFrom(value); + } + jobEventBuilder_.setMessage(value); + } + eventCase_ = 5; + return this; + } + /** + * + * + *
+     * An event issued when a job seeker interacts with the application that
+     * implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + public Builder clearJobEvent() { + if (jobEventBuilder_ == null) { + if (eventCase_ == 5) { + eventCase_ = 0; + event_ = null; + onChanged(); + } + } else { + if (eventCase_ == 5) { + eventCase_ = 0; + event_ = null; + } + jobEventBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * An event issued when a job seeker interacts with the application that
+     * implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + public com.google.cloud.talent.v4beta1.JobEvent.Builder getJobEventBuilder() { + return getJobEventFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * An event issued when a job seeker interacts with the application that
+     * implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + public com.google.cloud.talent.v4beta1.JobEventOrBuilder getJobEventOrBuilder() { + if ((eventCase_ == 5) && (jobEventBuilder_ != null)) { + return jobEventBuilder_.getMessageOrBuilder(); + } else { + if (eventCase_ == 5) { + return (com.google.cloud.talent.v4beta1.JobEvent) event_; + } + return com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance(); + } + } + /** + * + * + *
+     * An event issued when a job seeker interacts with the application that
+     * implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobEvent, + com.google.cloud.talent.v4beta1.JobEvent.Builder, + com.google.cloud.talent.v4beta1.JobEventOrBuilder> + getJobEventFieldBuilder() { + if (jobEventBuilder_ == null) { + if (!(eventCase_ == 5)) { + event_ = com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance(); + } + jobEventBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobEvent, + com.google.cloud.talent.v4beta1.JobEvent.Builder, + com.google.cloud.talent.v4beta1.JobEventOrBuilder>( + (com.google.cloud.talent.v4beta1.JobEvent) event_, + getParentForChildren(), + isClean()); + event_ = null; + } + eventCase_ = 5; + onChanged(); + ; + return jobEventBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ProfileEvent, + com.google.cloud.talent.v4beta1.ProfileEvent.Builder, + com.google.cloud.talent.v4beta1.ProfileEventOrBuilder> + profileEventBuilder_; + /** + * + * + *
+     * An event issued when a profile searcher interacts with the application
+     * that implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + public boolean hasProfileEvent() { + return eventCase_ == 6; + } + /** + * + * + *
+     * An event issued when a profile searcher interacts with the application
+     * that implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + public com.google.cloud.talent.v4beta1.ProfileEvent getProfileEvent() { + if (profileEventBuilder_ == null) { + if (eventCase_ == 6) { + return (com.google.cloud.talent.v4beta1.ProfileEvent) event_; + } + return com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance(); + } else { + if (eventCase_ == 6) { + return profileEventBuilder_.getMessage(); + } + return com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance(); + } + } + /** + * + * + *
+     * An event issued when a profile searcher interacts with the application
+     * that implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + public Builder setProfileEvent(com.google.cloud.talent.v4beta1.ProfileEvent value) { + if (profileEventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + event_ = value; + onChanged(); + } else { + profileEventBuilder_.setMessage(value); + } + eventCase_ = 6; + return this; + } + /** + * + * + *
+     * An event issued when a profile searcher interacts with the application
+     * that implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + public Builder setProfileEvent( + com.google.cloud.talent.v4beta1.ProfileEvent.Builder builderForValue) { + if (profileEventBuilder_ == null) { + event_ = builderForValue.build(); + onChanged(); + } else { + profileEventBuilder_.setMessage(builderForValue.build()); + } + eventCase_ = 6; + return this; + } + /** + * + * + *
+     * An event issued when a profile searcher interacts with the application
+     * that implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + public Builder mergeProfileEvent(com.google.cloud.talent.v4beta1.ProfileEvent value) { + if (profileEventBuilder_ == null) { + if (eventCase_ == 6 + && event_ != com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance()) { + event_ = + com.google.cloud.talent.v4beta1.ProfileEvent.newBuilder( + (com.google.cloud.talent.v4beta1.ProfileEvent) event_) + .mergeFrom(value) + .buildPartial(); + } else { + event_ = value; + } + onChanged(); + } else { + if (eventCase_ == 6) { + profileEventBuilder_.mergeFrom(value); + } + profileEventBuilder_.setMessage(value); + } + eventCase_ = 6; + return this; + } + /** + * + * + *
+     * An event issued when a profile searcher interacts with the application
+     * that implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + public Builder clearProfileEvent() { + if (profileEventBuilder_ == null) { + if (eventCase_ == 6) { + eventCase_ = 0; + event_ = null; + onChanged(); + } + } else { + if (eventCase_ == 6) { + eventCase_ = 0; + event_ = null; + } + profileEventBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * An event issued when a profile searcher interacts with the application
+     * that implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + public com.google.cloud.talent.v4beta1.ProfileEvent.Builder getProfileEventBuilder() { + return getProfileEventFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * An event issued when a profile searcher interacts with the application
+     * that implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + public com.google.cloud.talent.v4beta1.ProfileEventOrBuilder getProfileEventOrBuilder() { + if ((eventCase_ == 6) && (profileEventBuilder_ != null)) { + return profileEventBuilder_.getMessageOrBuilder(); + } else { + if (eventCase_ == 6) { + return (com.google.cloud.talent.v4beta1.ProfileEvent) event_; + } + return com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance(); + } + } + /** + * + * + *
+     * An event issued when a profile searcher interacts with the application
+     * that implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ProfileEvent, + com.google.cloud.talent.v4beta1.ProfileEvent.Builder, + com.google.cloud.talent.v4beta1.ProfileEventOrBuilder> + getProfileEventFieldBuilder() { + if (profileEventBuilder_ == null) { + if (!(eventCase_ == 6)) { + event_ = com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance(); + } + profileEventBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ProfileEvent, + com.google.cloud.talent.v4beta1.ProfileEvent.Builder, + com.google.cloud.talent.v4beta1.ProfileEventOrBuilder>( + (com.google.cloud.talent.v4beta1.ProfileEvent) event_, + getParentForChildren(), + isClean()); + event_ = null; + } + eventCase_ = 6; + onChanged(); + ; + return profileEventBuilder_; + } + + private com.google.protobuf.MapField extraInfo_; + + private com.google.protobuf.MapField + internalGetExtraInfo() { + if (extraInfo_ == null) { + return com.google.protobuf.MapField.emptyMapField(ExtraInfoDefaultEntryHolder.defaultEntry); + } + return extraInfo_; + } + + private com.google.protobuf.MapField + internalGetMutableExtraInfo() { + onChanged(); + ; + if (extraInfo_ == null) { + extraInfo_ = + com.google.protobuf.MapField.newMapField(ExtraInfoDefaultEntryHolder.defaultEntry); + } + if (!extraInfo_.isMutable()) { + extraInfo_ = extraInfo_.copy(); + } + return extraInfo_; + } + + public int getExtraInfoCount() { + return internalGetExtraInfo().getMap().size(); + } + /** + * + * + *
+     * Optional.
+     * Extra information about this event. Used for storing information with no
+     * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+     * example, user application specific context or details.
+     * At most 20 keys are supported. The maximum total size of all keys and
+     * values is 2 KB.
+     * 
+ * + * map<string, string> extra_info = 7; + */ + public boolean containsExtraInfo(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetExtraInfo().getMap().containsKey(key); + } + /** Use {@link #getExtraInfoMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getExtraInfo() { + return getExtraInfoMap(); + } + /** + * + * + *
+     * Optional.
+     * Extra information about this event. Used for storing information with no
+     * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+     * example, user application specific context or details.
+     * At most 20 keys are supported. The maximum total size of all keys and
+     * values is 2 KB.
+     * 
+ * + * map<string, string> extra_info = 7; + */ + public java.util.Map getExtraInfoMap() { + return internalGetExtraInfo().getMap(); + } + /** + * + * + *
+     * Optional.
+     * Extra information about this event. Used for storing information with no
+     * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+     * example, user application specific context or details.
+     * At most 20 keys are supported. The maximum total size of all keys and
+     * values is 2 KB.
+     * 
+ * + * map<string, string> extra_info = 7; + */ + public java.lang.String getExtraInfoOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetExtraInfo().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Optional.
+     * Extra information about this event. Used for storing information with no
+     * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+     * example, user application specific context or details.
+     * At most 20 keys are supported. The maximum total size of all keys and
+     * values is 2 KB.
+     * 
+ * + * map<string, string> extra_info = 7; + */ + public java.lang.String getExtraInfoOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetExtraInfo().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearExtraInfo() { + internalGetMutableExtraInfo().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Extra information about this event. Used for storing information with no
+     * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+     * example, user application specific context or details.
+     * At most 20 keys are supported. The maximum total size of all keys and
+     * values is 2 KB.
+     * 
+ * + * map<string, string> extra_info = 7; + */ + public Builder removeExtraInfo(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableExtraInfo().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableExtraInfo() { + return internalGetMutableExtraInfo().getMutableMap(); + } + /** + * + * + *
+     * Optional.
+     * Extra information about this event. Used for storing information with no
+     * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+     * example, user application specific context or details.
+     * At most 20 keys are supported. The maximum total size of all keys and
+     * values is 2 KB.
+     * 
+ * + * map<string, string> extra_info = 7; + */ + public Builder putExtraInfo(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableExtraInfo().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Optional.
+     * Extra information about this event. Used for storing information with no
+     * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+     * example, user application specific context or details.
+     * At most 20 keys are supported. The maximum total size of all keys and
+     * values is 2 KB.
+     * 
+ * + * map<string, string> extra_info = 7; + */ + public Builder putAllExtraInfo(java.util.Map values) { + internalGetMutableExtraInfo().getMutableMap().putAll(values); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ClientEvent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ClientEvent) + private static final com.google.cloud.talent.v4beta1.ClientEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ClientEvent(); + } + + public static com.google.cloud.talent.v4beta1.ClientEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientEvent(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ClientEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEventOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEventOrBuilder.java new file mode 100644 index 000000000000..281e3bd905e1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEventOrBuilder.java @@ -0,0 +1,241 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/event.proto + +package com.google.cloud.talent.v4beta1; + +public interface ClientEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ClientEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * A unique ID generated in the API responses. It can be found in
+   * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
+   * 
+ * + * string request_id = 1; + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Required.
+   * A unique ID generated in the API responses. It can be found in
+   * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
+   * 
+ * + * string request_id = 1; + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Required.
+   * A unique identifier, generated by the client application.
+   * 
+ * + * string event_id = 2; + */ + java.lang.String getEventId(); + /** + * + * + *
+   * Required.
+   * A unique identifier, generated by the client application.
+   * 
+ * + * string event_id = 2; + */ + com.google.protobuf.ByteString getEventIdBytes(); + + /** + * + * + *
+   * Required.
+   * The timestamp of the event.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Required.
+   * The timestamp of the event.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Required.
+   * The timestamp of the event.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * An event issued when a job seeker interacts with the application that
+   * implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + boolean hasJobEvent(); + /** + * + * + *
+   * An event issued when a job seeker interacts with the application that
+   * implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + com.google.cloud.talent.v4beta1.JobEvent getJobEvent(); + /** + * + * + *
+   * An event issued when a job seeker interacts with the application that
+   * implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + com.google.cloud.talent.v4beta1.JobEventOrBuilder getJobEventOrBuilder(); + + /** + * + * + *
+   * An event issued when a profile searcher interacts with the application
+   * that implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + boolean hasProfileEvent(); + /** + * + * + *
+   * An event issued when a profile searcher interacts with the application
+   * that implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + com.google.cloud.talent.v4beta1.ProfileEvent getProfileEvent(); + /** + * + * + *
+   * An event issued when a profile searcher interacts with the application
+   * that implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + com.google.cloud.talent.v4beta1.ProfileEventOrBuilder getProfileEventOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Extra information about this event. Used for storing information with no
+   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+   * example, user application specific context or details.
+   * At most 20 keys are supported. The maximum total size of all keys and
+   * values is 2 KB.
+   * 
+ * + * map<string, string> extra_info = 7; + */ + int getExtraInfoCount(); + /** + * + * + *
+   * Optional.
+   * Extra information about this event. Used for storing information with no
+   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+   * example, user application specific context or details.
+   * At most 20 keys are supported. The maximum total size of all keys and
+   * values is 2 KB.
+   * 
+ * + * map<string, string> extra_info = 7; + */ + boolean containsExtraInfo(java.lang.String key); + /** Use {@link #getExtraInfoMap()} instead. */ + @java.lang.Deprecated + java.util.Map getExtraInfo(); + /** + * + * + *
+   * Optional.
+   * Extra information about this event. Used for storing information with no
+   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+   * example, user application specific context or details.
+   * At most 20 keys are supported. The maximum total size of all keys and
+   * values is 2 KB.
+   * 
+ * + * map<string, string> extra_info = 7; + */ + java.util.Map getExtraInfoMap(); + /** + * + * + *
+   * Optional.
+   * Extra information about this event. Used for storing information with no
+   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+   * example, user application specific context or details.
+   * At most 20 keys are supported. The maximum total size of all keys and
+   * values is 2 KB.
+   * 
+ * + * map<string, string> extra_info = 7; + */ + java.lang.String getExtraInfoOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * Optional.
+   * Extra information about this event. Used for storing information with no
+   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+   * example, user application specific context or details.
+   * At most 20 keys are supported. The maximum total size of all keys and
+   * values is 2 KB.
+   * 
+ * + * map<string, string> extra_info = 7; + */ + java.lang.String getExtraInfoOrThrow(java.lang.String key); + + public com.google.cloud.talent.v4beta1.ClientEvent.EventCase getEventCase(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommonProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommonProto.java new file mode 100644 index 000000000000..f97ab435d1be --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommonProto.java @@ -0,0 +1,309 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +public final class CommonProto { + private CommonProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_TimestampRange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_TimestampRange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Location_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Location_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_RequestMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_RequestMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ResponseMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ResponseMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_DeviceInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_DeviceInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CustomAttribute_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CustomAttribute_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_SpellingCorrection_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_SpellingCorrection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CompensationInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CompensationInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n(google/cloud/talent/v4beta1/common.pro" + + "to\022\033google.cloud.talent.v4beta1\032\034google/" + + "api/annotations.proto\032\037google/protobuf/t" + + "imestamp.proto\032\036google/protobuf/wrappers" + + ".proto\032\030google/type/latlng.proto\032\027google" + + "/type/money.proto\032 google/type/postal_ad" + + "dress.proto\"n\n\016TimestampRange\022.\n\nstart_t" + + "ime\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n" + + "\010end_time\030\002 \001(\0132\032.google.protobuf.Timest" + + "amp\"\267\003\n\010Location\022I\n\rlocation_type\030\001 \001(\0162" + + "2.google.cloud.talent.v4beta1.Location.L" + + "ocationType\0222\n\016postal_address\030\002 \001(\0132\032.go" + + "ogle.type.PostalAddress\022$\n\007lat_lng\030\003 \001(\013" + + "2\023.google.type.LatLng\022\024\n\014radius_miles\030\004 " + + "\001(\001\"\357\001\n\014LocationType\022\035\n\031LOCATION_TYPE_UN" + + "SPECIFIED\020\000\022\013\n\007COUNTRY\020\001\022\027\n\023ADMINISTRATI" + + "VE_AREA\020\002\022\033\n\027SUB_ADMINISTRATIVE_AREA\020\003\022\014" + + "\n\010LOCALITY\020\004\022\017\n\013POSTAL_CODE\020\005\022\020\n\014SUB_LOC" + + "ALITY\020\006\022\022\n\016SUB_LOCALITY_1\020\007\022\022\n\016SUB_LOCAL" + + "ITY_2\020\010\022\020\n\014NEIGHBORHOOD\020\t\022\022\n\016STREET_ADDR" + + "ESS\020\n\"\237\001\n\017RequestMetadata\022\016\n\006domain\030\001 \001(" + + "\t\022\022\n\nsession_id\030\002 \001(\t\022\017\n\007user_id\030\003 \001(\t\022\031" + + "\n\021allow_missing_ids\030\004 \001(\010\022<\n\013device_info" + + "\030\005 \001(\0132\'.google.cloud.talent.v4beta1.Dev" + + "iceInfo\"&\n\020ResponseMetadata\022\022\n\nrequest_i" + + "d\030\001 \001(\t\"\317\001\n\nDeviceInfo\022G\n\013device_type\030\001 " + + "\001(\01622.google.cloud.talent.v4beta1.Device" + + "Info.DeviceType\022\n\n\002id\030\002 \001(\t\"l\n\nDeviceTyp" + + "e\022\033\n\027DEVICE_TYPE_UNSPECIFIED\020\000\022\007\n\003WEB\020\001\022" + + "\016\n\nMOBILE_WEB\020\002\022\013\n\007ANDROID\020\003\022\007\n\003IOS\020\004\022\007\n" + + "\003BOT\020\005\022\t\n\005OTHER\020\006\"Q\n\017CustomAttribute\022\025\n\r" + + "string_values\030\001 \003(\t\022\023\n\013long_values\030\002 \003(\003" + + "\022\022\n\nfilterable\030\003 \001(\010\"W\n\022SpellingCorrecti" + + "on\022\021\n\tcorrected\030\001 \001(\010\022\026\n\016corrected_text\030" + + "\002 \001(\t\022\026\n\016corrected_html\030\003 \001(\t\"\234\t\n\020Compen" + + "sationInfo\022P\n\007entries\030\001 \003(\0132?.google.clo" + + "ud.talent.v4beta1.CompensationInfo.Compe" + + "nsationEntry\022k\n\"annualized_base_compensa" + + "tion_range\030\002 \001(\0132?.google.cloud.talent.v" + + "4beta1.CompensationInfo.CompensationRang" + + "e\022l\n#annualized_total_compensation_range" + + "\030\003 \001(\0132?.google.cloud.talent.v4beta1.Com" + + "pensationInfo.CompensationRange\032\222\003\n\021Comp" + + "ensationEntry\022L\n\004type\030\001 \001(\0162>.google.clo" + + "ud.talent.v4beta1.CompensationInfo.Compe" + + "nsationType\022L\n\004unit\030\002 \001(\0162>.google.cloud" + + ".talent.v4beta1.CompensationInfo.Compens" + + "ationUnit\022$\n\006amount\030\003 \001(\0132\022.google.type." + + "MoneyH\000\022P\n\005range\030\004 \001(\0132?.google.cloud.ta" + + "lent.v4beta1.CompensationInfo.Compensati" + + "onRangeH\000\022\023\n\013description\030\005 \001(\t\022=\n\027expect" + + "ed_units_per_year\030\006 \001(\0132\034.google.protobu" + + "f.DoubleValueB\025\n\023compensation_amount\032o\n\021" + + "CompensationRange\022,\n\020max_compensation\030\002 " + + "\001(\0132\022.google.type.Money\022,\n\020min_compensat" + + "ion\030\001 \001(\0132\022.google.type.Money\"\265\001\n\020Compen" + + "sationType\022!\n\035COMPENSATION_TYPE_UNSPECIF" + + "IED\020\000\022\010\n\004BASE\020\001\022\t\n\005BONUS\020\002\022\021\n\rSIGNING_BO" + + "NUS\020\003\022\n\n\006EQUITY\020\004\022\022\n\016PROFIT_SHARING\020\005\022\017\n" + + "\013COMMISSIONS\020\006\022\010\n\004TIPS\020\007\022\033\n\027OTHER_COMPEN" + + "SATION_TYPE\020\010\"\234\001\n\020CompensationUnit\022!\n\035CO" + + "MPENSATION_UNIT_UNSPECIFIED\020\000\022\n\n\006HOURLY\020" + + "\001\022\t\n\005DAILY\020\002\022\n\n\006WEEKLY\020\003\022\013\n\007MONTHLY\020\004\022\n\n" + + "\006YEARLY\020\005\022\014\n\010ONE_TIME\020\006\022\033\n\027OTHER_COMPENS" + + "ATION_UNIT\020\007*y\n\013CompanySize\022\034\n\030COMPANY_S" + + "IZE_UNSPECIFIED\020\000\022\010\n\004MINI\020\001\022\t\n\005SMALL\020\002\022\013" + + "\n\007SMEDIUM\020\003\022\n\n\006MEDIUM\020\004\022\007\n\003BIG\020\005\022\n\n\006BIGG" + + "ER\020\006\022\t\n\005GIANT\020\007*\342\001\n\nJobBenefit\022\033\n\027JOB_BE" + + "NEFIT_UNSPECIFIED\020\000\022\016\n\nCHILD_CARE\020\001\022\n\n\006D" + + "ENTAL\020\002\022\024\n\020DOMESTIC_PARTNER\020\003\022\022\n\016FLEXIBL" + + "E_HOURS\020\004\022\013\n\007MEDICAL\020\005\022\022\n\016LIFE_INSURANCE" + + "\020\006\022\022\n\016PARENTAL_LEAVE\020\007\022\023\n\017RETIREMENT_PLA" + + "N\020\010\022\r\n\tSICK_DAYS\020\t\022\014\n\010VACATION\020\n\022\n\n\006VISI" + + "ON\020\013*\216\002\n\nDegreeType\022\033\n\027DEGREE_TYPE_UNSPE" + + "CIFIED\020\000\022\025\n\021PRIMARY_EDUCATION\020\001\022\035\n\031LOWER" + + "_SECONDARY_EDUCATION\020\002\022\035\n\031UPPER_SECONDAR" + + "Y_EDUCATION\020\003\022\034\n\030ADULT_REMEDIAL_EDUCATIO" + + "N\020\004\022\034\n\030ASSOCIATES_OR_EQUIVALENT\020\005\022\033\n\027BAC" + + "HELORS_OR_EQUIVALENT\020\006\022\031\n\025MASTERS_OR_EQU" + + "IVALENT\020\007\022\032\n\026DOCTORAL_OR_EQUIVALENT\020\010*\334\001" + + "\n\016EmploymentType\022\037\n\033EMPLOYMENT_TYPE_UNSP" + + "ECIFIED\020\000\022\r\n\tFULL_TIME\020\001\022\r\n\tPART_TIME\020\002\022" + + "\016\n\nCONTRACTOR\020\003\022\024\n\020CONTRACT_TO_HIRE\020\004\022\r\n" + + "\tTEMPORARY\020\005\022\n\n\006INTERN\020\006\022\r\n\tVOLUNTEER\020\007\022" + + "\014\n\010PER_DIEM\020\010\022\022\n\016FLY_IN_FLY_OUT\020\t\022\031\n\025OTH" + + "ER_EMPLOYMENT_TYPE\020\n*q\n\010JobLevel\022\031\n\025JOB_" + + "LEVEL_UNSPECIFIED\020\000\022\017\n\013ENTRY_LEVEL\020\001\022\017\n\013" + + "EXPERIENCED\020\002\022\013\n\007MANAGER\020\003\022\014\n\010DIRECTOR\020\004" + + "\022\r\n\tEXECUTIVE\020\005*\272\006\n\013JobCategory\022\034\n\030JOB_C" + + "ATEGORY_UNSPECIFIED\020\000\022\032\n\026ACCOUNTING_AND_" + + "FINANCE\020\001\022\035\n\031ADMINISTRATIVE_AND_OFFICE\020\002" + + "\022\035\n\031ADVERTISING_AND_MARKETING\020\003\022\017\n\013ANIMA" + + "L_CARE\020\004\022\032\n\026ART_FASHION_AND_DESIGN\020\005\022\027\n\023" + + "BUSINESS_OPERATIONS\020\006\022\033\n\027CLEANING_AND_FA" + + "CILITIES\020\007\022\023\n\017COMPUTER_AND_IT\020\010\022\020\n\014CONST" + + "RUCTION\020\t\022\024\n\020CUSTOMER_SERVICE\020\n\022\r\n\tEDUCA" + + "TION\020\013\022\034\n\030ENTERTAINMENT_AND_TRAVEL\020\014\022\030\n\024" + + "FARMING_AND_OUTDOORS\020\r\022\016\n\nHEALTHCARE\020\016\022\023" + + "\n\017HUMAN_RESOURCES\020\017\022\'\n#INSTALLATION_MAIN" + + "TENANCE_AND_REPAIR\020\020\022\t\n\005LEGAL\020\021\022\016\n\nMANAG" + + "EMENT\020\022\022\037\n\033MANUFACTURING_AND_WAREHOUSE\020\023" + + "\022$\n MEDIA_COMMUNICATIONS_AND_WRITING\020\024\022\026" + + "\n\022OIL_GAS_AND_MINING\020\025\022\036\n\032PERSONAL_CARE_" + + "AND_SERVICES\020\026\022\027\n\023PROTECTIVE_SERVICES\020\027\022" + + "\017\n\013REAL_ESTATE\020\030\022\036\n\032RESTAURANT_AND_HOSPI" + + "TALITY\020\031\022\024\n\020SALES_AND_RETAIL\020\032\022\033\n\027SCIENC" + + "E_AND_ENGINEERING\020\033\022\"\n\036SOCIAL_SERVICES_A" + + "ND_NON_PROFIT\020\034\022!\n\035SPORTS_FITNESS_AND_RE" + + "CREATION\020\035\022 \n\034TRANSPORTATION_AND_LOGISTI" + + "CS\020\036*e\n\rPostingRegion\022\036\n\032POSTING_REGION_" + + "UNSPECIFIED\020\000\022\027\n\023ADMINISTRATIVE_AREA\020\001\022\n" + + "\n\006NATION\020\002\022\017\n\013TELECOMMUTE\020\003*j\n\nVisibilit" + + "y\022\032\n\026VISIBILITY_UNSPECIFIED\020\000\022\020\n\014ACCOUNT" + + "_ONLY\020\001\022\026\n\022SHARED_WITH_GOOGLE\020\002\022\026\n\022SHARE" + + "D_WITH_PUBLIC\020\003*Z\n\020ContactInfoUsage\022\"\n\036C" + + "ONTACT_INFO_USAGE_UNSPECIFIED\020\000\022\014\n\010PERSO" + + "NAL\020\001\022\010\n\004WORK\020\002\022\n\n\006SCHOOL\020\003*q\n\020HtmlSanit" + + "ization\022!\n\035HTML_SANITIZATION_UNSPECIFIED" + + "\020\000\022\036\n\032HTML_SANITIZATION_DISABLED\020\001\022\032\n\026SI" + + "MPLE_FORMATTING_ONLY\020\002*{\n\rCommuteMethod\022" + + "\036\n\032COMMUTE_METHOD_UNSPECIFIED\020\000\022\013\n\007DRIVI" + + "NG\020\001\022\013\n\007TRANSIT\020\002\022\013\n\007WALKING\020\003\022\013\n\007CYCLIN" + + "G\020\004\022\026\n\022TRANSIT_ACCESSIBLE\020\005By\n\037com.googl" + + "e.cloud.talent.v4beta1B\013CommonProtoP\001ZAg" + + "oogle.golang.org/genproto/googleapis/clo" + + "ud/talent/v4beta1;talent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.type.LatLngProto.getDescriptor(), + com.google.type.MoneyProto.getDescriptor(), + com.google.type.PostalAddressProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_TimestampRange_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_TimestampRange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_TimestampRange_descriptor, + new java.lang.String[] { + "StartTime", "EndTime", + }); + internal_static_google_cloud_talent_v4beta1_Location_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_talent_v4beta1_Location_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Location_descriptor, + new java.lang.String[] { + "LocationType", "PostalAddress", "LatLng", "RadiusMiles", + }); + internal_static_google_cloud_talent_v4beta1_RequestMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_talent_v4beta1_RequestMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_RequestMetadata_descriptor, + new java.lang.String[] { + "Domain", "SessionId", "UserId", "AllowMissingIds", "DeviceInfo", + }); + internal_static_google_cloud_talent_v4beta1_ResponseMetadata_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_talent_v4beta1_ResponseMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ResponseMetadata_descriptor, + new java.lang.String[] { + "RequestId", + }); + internal_static_google_cloud_talent_v4beta1_DeviceInfo_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_talent_v4beta1_DeviceInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_DeviceInfo_descriptor, + new java.lang.String[] { + "DeviceType", "Id", + }); + internal_static_google_cloud_talent_v4beta1_CustomAttribute_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_talent_v4beta1_CustomAttribute_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CustomAttribute_descriptor, + new java.lang.String[] { + "StringValues", "LongValues", "Filterable", + }); + internal_static_google_cloud_talent_v4beta1_SpellingCorrection_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_talent_v4beta1_SpellingCorrection_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_SpellingCorrection_descriptor, + new java.lang.String[] { + "Corrected", "CorrectedText", "CorrectedHtml", + }); + internal_static_google_cloud_talent_v4beta1_CompensationInfo_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_talent_v4beta1_CompensationInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CompensationInfo_descriptor, + new java.lang.String[] { + "Entries", "AnnualizedBaseCompensationRange", "AnnualizedTotalCompensationRange", + }); + internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_descriptor = + internal_static_google_cloud_talent_v4beta1_CompensationInfo_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_descriptor, + new java.lang.String[] { + "Type", + "Unit", + "Amount", + "Range", + "Description", + "ExpectedUnitsPerYear", + "CompensationAmount", + }); + internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_descriptor = + internal_static_google_cloud_talent_v4beta1_CompensationInfo_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_descriptor, + new java.lang.String[] { + "MaxCompensation", "MinCompensation", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.type.LatLngProto.getDescriptor(); + com.google.type.MoneyProto.getDescriptor(); + com.google.type.PostalAddressProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteFilter.java new file mode 100644 index 000000000000..56e6e37655e2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteFilter.java @@ -0,0 +1,1948 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Parameters needed for commute search.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CommuteFilter} + */ +public final class CommuteFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CommuteFilter) + CommuteFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use CommuteFilter.newBuilder() to construct. + private CommuteFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CommuteFilter() { + commuteMethod_ = 0; + allowImpreciseAddresses_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CommuteFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + commuteMethod_ = rawValue; + break; + } + case 18: + { + com.google.type.LatLng.Builder subBuilder = null; + if (startCoordinates_ != null) { + subBuilder = startCoordinates_.toBuilder(); + } + startCoordinates_ = + input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startCoordinates_); + startCoordinates_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (travelDuration_ != null) { + subBuilder = travelDuration_.toBuilder(); + } + travelDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(travelDuration_); + travelDuration_ = subBuilder.buildPartial(); + } + + break; + } + case 32: + { + allowImpreciseAddresses_ = input.readBool(); + break; + } + case 40: + { + int rawValue = input.readEnum(); + trafficOptionCase_ = 5; + trafficOption_ = rawValue; + break; + } + case 50: + { + com.google.type.TimeOfDay.Builder subBuilder = null; + if (trafficOptionCase_ == 6) { + subBuilder = ((com.google.type.TimeOfDay) trafficOption_).toBuilder(); + } + trafficOption_ = + input.readMessage(com.google.type.TimeOfDay.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.type.TimeOfDay) trafficOption_); + trafficOption_ = subBuilder.buildPartial(); + } + trafficOptionCase_ = 6; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_CommuteFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_CommuteFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CommuteFilter.class, + com.google.cloud.talent.v4beta1.CommuteFilter.Builder.class); + } + + /** + * + * + *
+   * The traffic density to use when calculating commute time.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic} + */ + public enum RoadTraffic implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Road traffic situation isn't specified.
+     * 
+ * + * ROAD_TRAFFIC_UNSPECIFIED = 0; + */ + ROAD_TRAFFIC_UNSPECIFIED(0), + /** + * + * + *
+     * Optimal commute time without considering any traffic impact.
+     * 
+ * + * TRAFFIC_FREE = 1; + */ + TRAFFIC_FREE(1), + /** + * + * + *
+     * Commute time calculation takes in account the peak traffic impact.
+     * 
+ * + * BUSY_HOUR = 2; + */ + BUSY_HOUR(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Road traffic situation isn't specified.
+     * 
+ * + * ROAD_TRAFFIC_UNSPECIFIED = 0; + */ + public static final int ROAD_TRAFFIC_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Optimal commute time without considering any traffic impact.
+     * 
+ * + * TRAFFIC_FREE = 1; + */ + public static final int TRAFFIC_FREE_VALUE = 1; + /** + * + * + *
+     * Commute time calculation takes in account the peak traffic impact.
+     * 
+ * + * BUSY_HOUR = 2; + */ + public static final int BUSY_HOUR_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static RoadTraffic valueOf(int value) { + return forNumber(value); + } + + public static RoadTraffic forNumber(int value) { + switch (value) { + case 0: + return ROAD_TRAFFIC_UNSPECIFIED; + case 1: + return TRAFFIC_FREE; + case 2: + return BUSY_HOUR; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RoadTraffic findValueByNumber(int number) { + return RoadTraffic.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommuteFilter.getDescriptor().getEnumTypes().get(0); + } + + private static final RoadTraffic[] VALUES = values(); + + public static RoadTraffic valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private RoadTraffic(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic) + } + + private int trafficOptionCase_ = 0; + private java.lang.Object trafficOption_; + + public enum TrafficOptionCase implements com.google.protobuf.Internal.EnumLite { + ROAD_TRAFFIC(5), + DEPARTURE_TIME(6), + TRAFFICOPTION_NOT_SET(0); + private final int value; + + private TrafficOptionCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static TrafficOptionCase valueOf(int value) { + return forNumber(value); + } + + public static TrafficOptionCase forNumber(int value) { + switch (value) { + case 5: + return ROAD_TRAFFIC; + case 6: + return DEPARTURE_TIME; + case 0: + return TRAFFICOPTION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TrafficOptionCase getTrafficOptionCase() { + return TrafficOptionCase.forNumber(trafficOptionCase_); + } + + public static final int COMMUTE_METHOD_FIELD_NUMBER = 1; + private int commuteMethod_; + /** + * + * + *
+   * Required.
+   * The method of transportation for which to calculate the commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteMethod commute_method = 1; + */ + public int getCommuteMethodValue() { + return commuteMethod_; + } + /** + * + * + *
+   * Required.
+   * The method of transportation for which to calculate the commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteMethod commute_method = 1; + */ + public com.google.cloud.talent.v4beta1.CommuteMethod getCommuteMethod() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CommuteMethod result = + com.google.cloud.talent.v4beta1.CommuteMethod.valueOf(commuteMethod_); + return result == null ? com.google.cloud.talent.v4beta1.CommuteMethod.UNRECOGNIZED : result; + } + + public static final int START_COORDINATES_FIELD_NUMBER = 2; + private com.google.type.LatLng startCoordinates_; + /** + * + * + *
+   * Required.
+   * The latitude and longitude of the location from which to calculate the
+   * commute time.
+   * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + public boolean hasStartCoordinates() { + return startCoordinates_ != null; + } + /** + * + * + *
+   * Required.
+   * The latitude and longitude of the location from which to calculate the
+   * commute time.
+   * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + public com.google.type.LatLng getStartCoordinates() { + return startCoordinates_ == null + ? com.google.type.LatLng.getDefaultInstance() + : startCoordinates_; + } + /** + * + * + *
+   * Required.
+   * The latitude and longitude of the location from which to calculate the
+   * commute time.
+   * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + public com.google.type.LatLngOrBuilder getStartCoordinatesOrBuilder() { + return getStartCoordinates(); + } + + public static final int TRAVEL_DURATION_FIELD_NUMBER = 3; + private com.google.protobuf.Duration travelDuration_; + /** + * + * + *
+   * Required.
+   * The maximum travel time in seconds. The maximum allowed value is `3600s`
+   * (one hour). Format is `123s`.
+   * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + public boolean hasTravelDuration() { + return travelDuration_ != null; + } + /** + * + * + *
+   * Required.
+   * The maximum travel time in seconds. The maximum allowed value is `3600s`
+   * (one hour). Format is `123s`.
+   * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + public com.google.protobuf.Duration getTravelDuration() { + return travelDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : travelDuration_; + } + /** + * + * + *
+   * Required.
+   * The maximum travel time in seconds. The maximum allowed value is `3600s`
+   * (one hour). Format is `123s`.
+   * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + public com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder() { + return getTravelDuration(); + } + + public static final int ALLOW_IMPRECISE_ADDRESSES_FIELD_NUMBER = 4; + private boolean allowImpreciseAddresses_; + /** + * + * + *
+   * Optional.
+   * If `true`, jobs without street level addresses may also be returned.
+   * For city level addresses, the city center is used. For state and coarser
+   * level addresses, text matching is used.
+   * If this field is set to `false` or isn't specified, only jobs that include
+   * street level addresses will be returned by commute search.
+   * 
+ * + * bool allow_imprecise_addresses = 4; + */ + public boolean getAllowImpreciseAddresses() { + return allowImpreciseAddresses_; + } + + public static final int ROAD_TRAFFIC_FIELD_NUMBER = 5; + /** + * + * + *
+   * Optional.
+   * Specifies the traffic density to use when calculating commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic road_traffic = 5; + */ + public int getRoadTrafficValue() { + if (trafficOptionCase_ == 5) { + return (java.lang.Integer) trafficOption_; + } + return 0; + } + /** + * + * + *
+   * Optional.
+   * Specifies the traffic density to use when calculating commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic road_traffic = 5; + */ + public com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic getRoadTraffic() { + if (trafficOptionCase_ == 5) { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic result = + com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic.valueOf( + (java.lang.Integer) trafficOption_); + return result == null + ? com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic.UNRECOGNIZED + : result; + } + return com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic.ROAD_TRAFFIC_UNSPECIFIED; + } + + public static final int DEPARTURE_TIME_FIELD_NUMBER = 6; + /** + * + * + *
+   * Optional.
+   * The departure time used to calculate traffic impact, represented as
+   * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+   * Currently traffic model is restricted to hour level resolution.
+   * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + public boolean hasDepartureTime() { + return trafficOptionCase_ == 6; + } + /** + * + * + *
+   * Optional.
+   * The departure time used to calculate traffic impact, represented as
+   * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+   * Currently traffic model is restricted to hour level resolution.
+   * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + public com.google.type.TimeOfDay getDepartureTime() { + if (trafficOptionCase_ == 6) { + return (com.google.type.TimeOfDay) trafficOption_; + } + return com.google.type.TimeOfDay.getDefaultInstance(); + } + /** + * + * + *
+   * Optional.
+   * The departure time used to calculate traffic impact, represented as
+   * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+   * Currently traffic model is restricted to hour level resolution.
+   * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + public com.google.type.TimeOfDayOrBuilder getDepartureTimeOrBuilder() { + if (trafficOptionCase_ == 6) { + return (com.google.type.TimeOfDay) trafficOption_; + } + return com.google.type.TimeOfDay.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (commuteMethod_ + != com.google.cloud.talent.v4beta1.CommuteMethod.COMMUTE_METHOD_UNSPECIFIED.getNumber()) { + output.writeEnum(1, commuteMethod_); + } + if (startCoordinates_ != null) { + output.writeMessage(2, getStartCoordinates()); + } + if (travelDuration_ != null) { + output.writeMessage(3, getTravelDuration()); + } + if (allowImpreciseAddresses_ != false) { + output.writeBool(4, allowImpreciseAddresses_); + } + if (trafficOptionCase_ == 5) { + output.writeEnum(5, ((java.lang.Integer) trafficOption_)); + } + if (trafficOptionCase_ == 6) { + output.writeMessage(6, (com.google.type.TimeOfDay) trafficOption_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (commuteMethod_ + != com.google.cloud.talent.v4beta1.CommuteMethod.COMMUTE_METHOD_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, commuteMethod_); + } + if (startCoordinates_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartCoordinates()); + } + if (travelDuration_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTravelDuration()); + } + if (allowImpreciseAddresses_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowImpreciseAddresses_); + } + if (trafficOptionCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 5, ((java.lang.Integer) trafficOption_)); + } + if (trafficOptionCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.type.TimeOfDay) trafficOption_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.CommuteFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CommuteFilter other = + (com.google.cloud.talent.v4beta1.CommuteFilter) obj; + + boolean result = true; + result = result && commuteMethod_ == other.commuteMethod_; + result = result && (hasStartCoordinates() == other.hasStartCoordinates()); + if (hasStartCoordinates()) { + result = result && getStartCoordinates().equals(other.getStartCoordinates()); + } + result = result && (hasTravelDuration() == other.hasTravelDuration()); + if (hasTravelDuration()) { + result = result && getTravelDuration().equals(other.getTravelDuration()); + } + result = result && (getAllowImpreciseAddresses() == other.getAllowImpreciseAddresses()); + result = result && getTrafficOptionCase().equals(other.getTrafficOptionCase()); + if (!result) return false; + switch (trafficOptionCase_) { + case 5: + result = result && getRoadTrafficValue() == other.getRoadTrafficValue(); + break; + case 6: + result = result && getDepartureTime().equals(other.getDepartureTime()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COMMUTE_METHOD_FIELD_NUMBER; + hash = (53 * hash) + commuteMethod_; + if (hasStartCoordinates()) { + hash = (37 * hash) + START_COORDINATES_FIELD_NUMBER; + hash = (53 * hash) + getStartCoordinates().hashCode(); + } + if (hasTravelDuration()) { + hash = (37 * hash) + TRAVEL_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getTravelDuration().hashCode(); + } + hash = (37 * hash) + ALLOW_IMPRECISE_ADDRESSES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowImpreciseAddresses()); + switch (trafficOptionCase_) { + case 5: + hash = (37 * hash) + ROAD_TRAFFIC_FIELD_NUMBER; + hash = (53 * hash) + getRoadTrafficValue(); + break; + case 6: + hash = (37 * hash) + DEPARTURE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDepartureTime().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.CommuteFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Parameters needed for commute search.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CommuteFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CommuteFilter) + com.google.cloud.talent.v4beta1.CommuteFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_CommuteFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_CommuteFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CommuteFilter.class, + com.google.cloud.talent.v4beta1.CommuteFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.CommuteFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + commuteMethod_ = 0; + + if (startCoordinatesBuilder_ == null) { + startCoordinates_ = null; + } else { + startCoordinates_ = null; + startCoordinatesBuilder_ = null; + } + if (travelDurationBuilder_ == null) { + travelDuration_ = null; + } else { + travelDuration_ = null; + travelDurationBuilder_ = null; + } + allowImpreciseAddresses_ = false; + + trafficOptionCase_ = 0; + trafficOption_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_CommuteFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CommuteFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CommuteFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CommuteFilter build() { + com.google.cloud.talent.v4beta1.CommuteFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CommuteFilter buildPartial() { + com.google.cloud.talent.v4beta1.CommuteFilter result = + new com.google.cloud.talent.v4beta1.CommuteFilter(this); + result.commuteMethod_ = commuteMethod_; + if (startCoordinatesBuilder_ == null) { + result.startCoordinates_ = startCoordinates_; + } else { + result.startCoordinates_ = startCoordinatesBuilder_.build(); + } + if (travelDurationBuilder_ == null) { + result.travelDuration_ = travelDuration_; + } else { + result.travelDuration_ = travelDurationBuilder_.build(); + } + result.allowImpreciseAddresses_ = allowImpreciseAddresses_; + if (trafficOptionCase_ == 5) { + result.trafficOption_ = trafficOption_; + } + if (trafficOptionCase_ == 6) { + if (departureTimeBuilder_ == null) { + result.trafficOption_ = trafficOption_; + } else { + result.trafficOption_ = departureTimeBuilder_.build(); + } + } + result.trafficOptionCase_ = trafficOptionCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CommuteFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.CommuteFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.CommuteFilter other) { + if (other == com.google.cloud.talent.v4beta1.CommuteFilter.getDefaultInstance()) return this; + if (other.commuteMethod_ != 0) { + setCommuteMethodValue(other.getCommuteMethodValue()); + } + if (other.hasStartCoordinates()) { + mergeStartCoordinates(other.getStartCoordinates()); + } + if (other.hasTravelDuration()) { + mergeTravelDuration(other.getTravelDuration()); + } + if (other.getAllowImpreciseAddresses() != false) { + setAllowImpreciseAddresses(other.getAllowImpreciseAddresses()); + } + switch (other.getTrafficOptionCase()) { + case ROAD_TRAFFIC: + { + setRoadTrafficValue(other.getRoadTrafficValue()); + break; + } + case DEPARTURE_TIME: + { + mergeDepartureTime(other.getDepartureTime()); + break; + } + case TRAFFICOPTION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.CommuteFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.CommuteFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int trafficOptionCase_ = 0; + private java.lang.Object trafficOption_; + + public TrafficOptionCase getTrafficOptionCase() { + return TrafficOptionCase.forNumber(trafficOptionCase_); + } + + public Builder clearTrafficOption() { + trafficOptionCase_ = 0; + trafficOption_ = null; + onChanged(); + return this; + } + + private int commuteMethod_ = 0; + /** + * + * + *
+     * Required.
+     * The method of transportation for which to calculate the commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteMethod commute_method = 1; + */ + public int getCommuteMethodValue() { + return commuteMethod_; + } + /** + * + * + *
+     * Required.
+     * The method of transportation for which to calculate the commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteMethod commute_method = 1; + */ + public Builder setCommuteMethodValue(int value) { + commuteMethod_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The method of transportation for which to calculate the commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteMethod commute_method = 1; + */ + public com.google.cloud.talent.v4beta1.CommuteMethod getCommuteMethod() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CommuteMethod result = + com.google.cloud.talent.v4beta1.CommuteMethod.valueOf(commuteMethod_); + return result == null ? com.google.cloud.talent.v4beta1.CommuteMethod.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Required.
+     * The method of transportation for which to calculate the commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteMethod commute_method = 1; + */ + public Builder setCommuteMethod(com.google.cloud.talent.v4beta1.CommuteMethod value) { + if (value == null) { + throw new NullPointerException(); + } + + commuteMethod_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The method of transportation for which to calculate the commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteMethod commute_method = 1; + */ + public Builder clearCommuteMethod() { + + commuteMethod_ = 0; + onChanged(); + return this; + } + + private com.google.type.LatLng startCoordinates_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + startCoordinatesBuilder_; + /** + * + * + *
+     * Required.
+     * The latitude and longitude of the location from which to calculate the
+     * commute time.
+     * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + public boolean hasStartCoordinates() { + return startCoordinatesBuilder_ != null || startCoordinates_ != null; + } + /** + * + * + *
+     * Required.
+     * The latitude and longitude of the location from which to calculate the
+     * commute time.
+     * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + public com.google.type.LatLng getStartCoordinates() { + if (startCoordinatesBuilder_ == null) { + return startCoordinates_ == null + ? com.google.type.LatLng.getDefaultInstance() + : startCoordinates_; + } else { + return startCoordinatesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The latitude and longitude of the location from which to calculate the
+     * commute time.
+     * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + public Builder setStartCoordinates(com.google.type.LatLng value) { + if (startCoordinatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startCoordinates_ = value; + onChanged(); + } else { + startCoordinatesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The latitude and longitude of the location from which to calculate the
+     * commute time.
+     * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + public Builder setStartCoordinates(com.google.type.LatLng.Builder builderForValue) { + if (startCoordinatesBuilder_ == null) { + startCoordinates_ = builderForValue.build(); + onChanged(); + } else { + startCoordinatesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The latitude and longitude of the location from which to calculate the
+     * commute time.
+     * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + public Builder mergeStartCoordinates(com.google.type.LatLng value) { + if (startCoordinatesBuilder_ == null) { + if (startCoordinates_ != null) { + startCoordinates_ = + com.google.type.LatLng.newBuilder(startCoordinates_).mergeFrom(value).buildPartial(); + } else { + startCoordinates_ = value; + } + onChanged(); + } else { + startCoordinatesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The latitude and longitude of the location from which to calculate the
+     * commute time.
+     * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + public Builder clearStartCoordinates() { + if (startCoordinatesBuilder_ == null) { + startCoordinates_ = null; + onChanged(); + } else { + startCoordinates_ = null; + startCoordinatesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The latitude and longitude of the location from which to calculate the
+     * commute time.
+     * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + public com.google.type.LatLng.Builder getStartCoordinatesBuilder() { + + onChanged(); + return getStartCoordinatesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The latitude and longitude of the location from which to calculate the
+     * commute time.
+     * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + public com.google.type.LatLngOrBuilder getStartCoordinatesOrBuilder() { + if (startCoordinatesBuilder_ != null) { + return startCoordinatesBuilder_.getMessageOrBuilder(); + } else { + return startCoordinates_ == null + ? com.google.type.LatLng.getDefaultInstance() + : startCoordinates_; + } + } + /** + * + * + *
+     * Required.
+     * The latitude and longitude of the location from which to calculate the
+     * commute time.
+     * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + getStartCoordinatesFieldBuilder() { + if (startCoordinatesBuilder_ == null) { + startCoordinatesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>( + getStartCoordinates(), getParentForChildren(), isClean()); + startCoordinates_ = null; + } + return startCoordinatesBuilder_; + } + + private com.google.protobuf.Duration travelDuration_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + travelDurationBuilder_; + /** + * + * + *
+     * Required.
+     * The maximum travel time in seconds. The maximum allowed value is `3600s`
+     * (one hour). Format is `123s`.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + public boolean hasTravelDuration() { + return travelDurationBuilder_ != null || travelDuration_ != null; + } + /** + * + * + *
+     * Required.
+     * The maximum travel time in seconds. The maximum allowed value is `3600s`
+     * (one hour). Format is `123s`.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + public com.google.protobuf.Duration getTravelDuration() { + if (travelDurationBuilder_ == null) { + return travelDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : travelDuration_; + } else { + return travelDurationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The maximum travel time in seconds. The maximum allowed value is `3600s`
+     * (one hour). Format is `123s`.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + public Builder setTravelDuration(com.google.protobuf.Duration value) { + if (travelDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + travelDuration_ = value; + onChanged(); + } else { + travelDurationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The maximum travel time in seconds. The maximum allowed value is `3600s`
+     * (one hour). Format is `123s`.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + public Builder setTravelDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (travelDurationBuilder_ == null) { + travelDuration_ = builderForValue.build(); + onChanged(); + } else { + travelDurationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The maximum travel time in seconds. The maximum allowed value is `3600s`
+     * (one hour). Format is `123s`.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + public Builder mergeTravelDuration(com.google.protobuf.Duration value) { + if (travelDurationBuilder_ == null) { + if (travelDuration_ != null) { + travelDuration_ = + com.google.protobuf.Duration.newBuilder(travelDuration_) + .mergeFrom(value) + .buildPartial(); + } else { + travelDuration_ = value; + } + onChanged(); + } else { + travelDurationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The maximum travel time in seconds. The maximum allowed value is `3600s`
+     * (one hour). Format is `123s`.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + public Builder clearTravelDuration() { + if (travelDurationBuilder_ == null) { + travelDuration_ = null; + onChanged(); + } else { + travelDuration_ = null; + travelDurationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The maximum travel time in seconds. The maximum allowed value is `3600s`
+     * (one hour). Format is `123s`.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + public com.google.protobuf.Duration.Builder getTravelDurationBuilder() { + + onChanged(); + return getTravelDurationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The maximum travel time in seconds. The maximum allowed value is `3600s`
+     * (one hour). Format is `123s`.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + public com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder() { + if (travelDurationBuilder_ != null) { + return travelDurationBuilder_.getMessageOrBuilder(); + } else { + return travelDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : travelDuration_; + } + } + /** + * + * + *
+     * Required.
+     * The maximum travel time in seconds. The maximum allowed value is `3600s`
+     * (one hour). Format is `123s`.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getTravelDurationFieldBuilder() { + if (travelDurationBuilder_ == null) { + travelDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getTravelDuration(), getParentForChildren(), isClean()); + travelDuration_ = null; + } + return travelDurationBuilder_; + } + + private boolean allowImpreciseAddresses_; + /** + * + * + *
+     * Optional.
+     * If `true`, jobs without street level addresses may also be returned.
+     * For city level addresses, the city center is used. For state and coarser
+     * level addresses, text matching is used.
+     * If this field is set to `false` or isn't specified, only jobs that include
+     * street level addresses will be returned by commute search.
+     * 
+ * + * bool allow_imprecise_addresses = 4; + */ + public boolean getAllowImpreciseAddresses() { + return allowImpreciseAddresses_; + } + /** + * + * + *
+     * Optional.
+     * If `true`, jobs without street level addresses may also be returned.
+     * For city level addresses, the city center is used. For state and coarser
+     * level addresses, text matching is used.
+     * If this field is set to `false` or isn't specified, only jobs that include
+     * street level addresses will be returned by commute search.
+     * 
+ * + * bool allow_imprecise_addresses = 4; + */ + public Builder setAllowImpreciseAddresses(boolean value) { + + allowImpreciseAddresses_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * If `true`, jobs without street level addresses may also be returned.
+     * For city level addresses, the city center is used. For state and coarser
+     * level addresses, text matching is used.
+     * If this field is set to `false` or isn't specified, only jobs that include
+     * street level addresses will be returned by commute search.
+     * 
+ * + * bool allow_imprecise_addresses = 4; + */ + public Builder clearAllowImpreciseAddresses() { + + allowImpreciseAddresses_ = false; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional.
+     * Specifies the traffic density to use when calculating commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic road_traffic = 5; + */ + public int getRoadTrafficValue() { + if (trafficOptionCase_ == 5) { + return ((java.lang.Integer) trafficOption_).intValue(); + } + return 0; + } + /** + * + * + *
+     * Optional.
+     * Specifies the traffic density to use when calculating commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic road_traffic = 5; + */ + public Builder setRoadTrafficValue(int value) { + trafficOptionCase_ = 5; + trafficOption_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Specifies the traffic density to use when calculating commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic road_traffic = 5; + */ + public com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic getRoadTraffic() { + if (trafficOptionCase_ == 5) { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic result = + com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic.valueOf( + (java.lang.Integer) trafficOption_); + return result == null + ? com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic.UNRECOGNIZED + : result; + } + return com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic.ROAD_TRAFFIC_UNSPECIFIED; + } + /** + * + * + *
+     * Optional.
+     * Specifies the traffic density to use when calculating commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic road_traffic = 5; + */ + public Builder setRoadTraffic(com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic value) { + if (value == null) { + throw new NullPointerException(); + } + trafficOptionCase_ = 5; + trafficOption_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Specifies the traffic density to use when calculating commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic road_traffic = 5; + */ + public Builder clearRoadTraffic() { + if (trafficOptionCase_ == 5) { + trafficOptionCase_ = 0; + trafficOption_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder> + departureTimeBuilder_; + /** + * + * + *
+     * Optional.
+     * The departure time used to calculate traffic impact, represented as
+     * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+     * Currently traffic model is restricted to hour level resolution.
+     * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + public boolean hasDepartureTime() { + return trafficOptionCase_ == 6; + } + /** + * + * + *
+     * Optional.
+     * The departure time used to calculate traffic impact, represented as
+     * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+     * Currently traffic model is restricted to hour level resolution.
+     * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + public com.google.type.TimeOfDay getDepartureTime() { + if (departureTimeBuilder_ == null) { + if (trafficOptionCase_ == 6) { + return (com.google.type.TimeOfDay) trafficOption_; + } + return com.google.type.TimeOfDay.getDefaultInstance(); + } else { + if (trafficOptionCase_ == 6) { + return departureTimeBuilder_.getMessage(); + } + return com.google.type.TimeOfDay.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional.
+     * The departure time used to calculate traffic impact, represented as
+     * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+     * Currently traffic model is restricted to hour level resolution.
+     * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + public Builder setDepartureTime(com.google.type.TimeOfDay value) { + if (departureTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trafficOption_ = value; + onChanged(); + } else { + departureTimeBuilder_.setMessage(value); + } + trafficOptionCase_ = 6; + return this; + } + /** + * + * + *
+     * Optional.
+     * The departure time used to calculate traffic impact, represented as
+     * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+     * Currently traffic model is restricted to hour level resolution.
+     * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + public Builder setDepartureTime(com.google.type.TimeOfDay.Builder builderForValue) { + if (departureTimeBuilder_ == null) { + trafficOption_ = builderForValue.build(); + onChanged(); + } else { + departureTimeBuilder_.setMessage(builderForValue.build()); + } + trafficOptionCase_ = 6; + return this; + } + /** + * + * + *
+     * Optional.
+     * The departure time used to calculate traffic impact, represented as
+     * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+     * Currently traffic model is restricted to hour level resolution.
+     * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + public Builder mergeDepartureTime(com.google.type.TimeOfDay value) { + if (departureTimeBuilder_ == null) { + if (trafficOptionCase_ == 6 + && trafficOption_ != com.google.type.TimeOfDay.getDefaultInstance()) { + trafficOption_ = + com.google.type.TimeOfDay.newBuilder((com.google.type.TimeOfDay) trafficOption_) + .mergeFrom(value) + .buildPartial(); + } else { + trafficOption_ = value; + } + onChanged(); + } else { + if (trafficOptionCase_ == 6) { + departureTimeBuilder_.mergeFrom(value); + } + departureTimeBuilder_.setMessage(value); + } + trafficOptionCase_ = 6; + return this; + } + /** + * + * + *
+     * Optional.
+     * The departure time used to calculate traffic impact, represented as
+     * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+     * Currently traffic model is restricted to hour level resolution.
+     * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + public Builder clearDepartureTime() { + if (departureTimeBuilder_ == null) { + if (trafficOptionCase_ == 6) { + trafficOptionCase_ = 0; + trafficOption_ = null; + onChanged(); + } + } else { + if (trafficOptionCase_ == 6) { + trafficOptionCase_ = 0; + trafficOption_ = null; + } + departureTimeBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The departure time used to calculate traffic impact, represented as
+     * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+     * Currently traffic model is restricted to hour level resolution.
+     * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + public com.google.type.TimeOfDay.Builder getDepartureTimeBuilder() { + return getDepartureTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The departure time used to calculate traffic impact, represented as
+     * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+     * Currently traffic model is restricted to hour level resolution.
+     * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + public com.google.type.TimeOfDayOrBuilder getDepartureTimeOrBuilder() { + if ((trafficOptionCase_ == 6) && (departureTimeBuilder_ != null)) { + return departureTimeBuilder_.getMessageOrBuilder(); + } else { + if (trafficOptionCase_ == 6) { + return (com.google.type.TimeOfDay) trafficOption_; + } + return com.google.type.TimeOfDay.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional.
+     * The departure time used to calculate traffic impact, represented as
+     * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+     * Currently traffic model is restricted to hour level resolution.
+     * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder> + getDepartureTimeFieldBuilder() { + if (departureTimeBuilder_ == null) { + if (!(trafficOptionCase_ == 6)) { + trafficOption_ = com.google.type.TimeOfDay.getDefaultInstance(); + } + departureTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder>( + (com.google.type.TimeOfDay) trafficOption_, getParentForChildren(), isClean()); + trafficOption_ = null; + } + trafficOptionCase_ = 6; + onChanged(); + ; + return departureTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CommuteFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CommuteFilter) + private static final com.google.cloud.talent.v4beta1.CommuteFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CommuteFilter(); + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommuteFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CommuteFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CommuteFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteFilterOrBuilder.java new file mode 100644 index 000000000000..bb7b708b2b3a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteFilterOrBuilder.java @@ -0,0 +1,188 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface CommuteFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CommuteFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The method of transportation for which to calculate the commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteMethod commute_method = 1; + */ + int getCommuteMethodValue(); + /** + * + * + *
+   * Required.
+   * The method of transportation for which to calculate the commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteMethod commute_method = 1; + */ + com.google.cloud.talent.v4beta1.CommuteMethod getCommuteMethod(); + + /** + * + * + *
+   * Required.
+   * The latitude and longitude of the location from which to calculate the
+   * commute time.
+   * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + boolean hasStartCoordinates(); + /** + * + * + *
+   * Required.
+   * The latitude and longitude of the location from which to calculate the
+   * commute time.
+   * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + com.google.type.LatLng getStartCoordinates(); + /** + * + * + *
+   * Required.
+   * The latitude and longitude of the location from which to calculate the
+   * commute time.
+   * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + com.google.type.LatLngOrBuilder getStartCoordinatesOrBuilder(); + + /** + * + * + *
+   * Required.
+   * The maximum travel time in seconds. The maximum allowed value is `3600s`
+   * (one hour). Format is `123s`.
+   * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + boolean hasTravelDuration(); + /** + * + * + *
+   * Required.
+   * The maximum travel time in seconds. The maximum allowed value is `3600s`
+   * (one hour). Format is `123s`.
+   * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + com.google.protobuf.Duration getTravelDuration(); + /** + * + * + *
+   * Required.
+   * The maximum travel time in seconds. The maximum allowed value is `3600s`
+   * (one hour). Format is `123s`.
+   * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * If `true`, jobs without street level addresses may also be returned.
+   * For city level addresses, the city center is used. For state and coarser
+   * level addresses, text matching is used.
+   * If this field is set to `false` or isn't specified, only jobs that include
+   * street level addresses will be returned by commute search.
+   * 
+ * + * bool allow_imprecise_addresses = 4; + */ + boolean getAllowImpreciseAddresses(); + + /** + * + * + *
+   * Optional.
+   * Specifies the traffic density to use when calculating commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic road_traffic = 5; + */ + int getRoadTrafficValue(); + /** + * + * + *
+   * Optional.
+   * Specifies the traffic density to use when calculating commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic road_traffic = 5; + */ + com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic getRoadTraffic(); + + /** + * + * + *
+   * Optional.
+   * The departure time used to calculate traffic impact, represented as
+   * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+   * Currently traffic model is restricted to hour level resolution.
+   * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + boolean hasDepartureTime(); + /** + * + * + *
+   * Optional.
+   * The departure time used to calculate traffic impact, represented as
+   * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+   * Currently traffic model is restricted to hour level resolution.
+   * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + com.google.type.TimeOfDay getDepartureTime(); + /** + * + * + *
+   * Optional.
+   * The departure time used to calculate traffic impact, represented as
+   * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+   * Currently traffic model is restricted to hour level resolution.
+   * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + com.google.type.TimeOfDayOrBuilder getDepartureTimeOrBuilder(); + + public com.google.cloud.talent.v4beta1.CommuteFilter.TrafficOptionCase getTrafficOptionCase(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteMethod.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteMethod.java new file mode 100644 index 000000000000..aab05ed814a5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteMethod.java @@ -0,0 +1,219 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Method for commute.
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.CommuteMethod} + */ +public enum CommuteMethod implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Commute method isn't specified.
+   * 
+ * + * COMMUTE_METHOD_UNSPECIFIED = 0; + */ + COMMUTE_METHOD_UNSPECIFIED(0), + /** + * + * + *
+   * Commute time is calculated based on driving time.
+   * 
+ * + * DRIVING = 1; + */ + DRIVING(1), + /** + * + * + *
+   * Commute time is calculated based on public transit including bus, metro,
+   * subway, etc.
+   * 
+ * + * TRANSIT = 2; + */ + TRANSIT(2), + /** + * + * + *
+   * Commute time is calculated based on walking time.
+   * 
+ * + * WALKING = 3; + */ + WALKING(3), + /** + * + * + *
+   * Commute time is calculated based on biking time.
+   * 
+ * + * CYCLING = 4; + */ + CYCLING(4), + /** + * + * + *
+   * Commute time is calculated based on public transit that is wheelchair
+   * accessible.
+   * 
+ * + * TRANSIT_ACCESSIBLE = 5; + */ + TRANSIT_ACCESSIBLE(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Commute method isn't specified.
+   * 
+ * + * COMMUTE_METHOD_UNSPECIFIED = 0; + */ + public static final int COMMUTE_METHOD_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Commute time is calculated based on driving time.
+   * 
+ * + * DRIVING = 1; + */ + public static final int DRIVING_VALUE = 1; + /** + * + * + *
+   * Commute time is calculated based on public transit including bus, metro,
+   * subway, etc.
+   * 
+ * + * TRANSIT = 2; + */ + public static final int TRANSIT_VALUE = 2; + /** + * + * + *
+   * Commute time is calculated based on walking time.
+   * 
+ * + * WALKING = 3; + */ + public static final int WALKING_VALUE = 3; + /** + * + * + *
+   * Commute time is calculated based on biking time.
+   * 
+ * + * CYCLING = 4; + */ + public static final int CYCLING_VALUE = 4; + /** + * + * + *
+   * Commute time is calculated based on public transit that is wheelchair
+   * accessible.
+   * 
+ * + * TRANSIT_ACCESSIBLE = 5; + */ + public static final int TRANSIT_ACCESSIBLE_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static CommuteMethod valueOf(int value) { + return forNumber(value); + } + + public static CommuteMethod forNumber(int value) { + switch (value) { + case 0: + return COMMUTE_METHOD_UNSPECIFIED; + case 1: + return DRIVING; + case 2: + return TRANSIT; + case 3: + return WALKING; + case 4: + return CYCLING; + case 5: + return TRANSIT_ACCESSIBLE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CommuteMethod findValueByNumber(int number) { + return CommuteMethod.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(10); + } + + private static final CommuteMethod[] VALUES = values(); + + public static CommuteMethod valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CommuteMethod(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.CommuteMethod) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Company.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Company.java new file mode 100644 index 000000000000..c9bf56fcb850 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Company.java @@ -0,0 +1,3579 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * A Company resource represents a company in the service. A company is the
+ * entity that owns job postings, that is, the hiring entity responsible for
+ * employing applicants for the job position.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Company} + */ +public final class Company extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Company) + CompanyOrBuilder { + private static final long serialVersionUID = 0L; + // Use Company.newBuilder() to construct. + private Company(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Company() { + name_ = ""; + displayName_ = ""; + externalId_ = ""; + size_ = 0; + headquartersAddress_ = ""; + hiringAgency_ = false; + eeoText_ = ""; + websiteUri_ = ""; + careerSiteUri_ = ""; + imageUri_ = ""; + keywordSearchableJobCustomAttributes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + suspended_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Company( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + externalId_ = s; + break; + } + case 32: + { + int rawValue = input.readEnum(); + + size_ = rawValue; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + headquartersAddress_ = s; + break; + } + case 48: + { + hiringAgency_ = input.readBool(); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + eeoText_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + websiteUri_ = s; + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + + careerSiteUri_ = s; + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + + imageUri_ = s; + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + keywordSearchableJobCustomAttributes_ = + new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000400; + } + keywordSearchableJobCustomAttributes_.add(s); + break; + } + case 98: + { + com.google.cloud.talent.v4beta1.Company.DerivedInfo.Builder subBuilder = null; + if (derivedInfo_ != null) { + subBuilder = derivedInfo_.toBuilder(); + } + derivedInfo_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Company.DerivedInfo.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(derivedInfo_); + derivedInfo_ = subBuilder.buildPartial(); + } + + break; + } + case 104: + { + suspended_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + keywordSearchableJobCustomAttributes_ = + keywordSearchableJobCustomAttributes_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyResourceProto + .internal_static_google_cloud_talent_v4beta1_Company_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyResourceProto + .internal_static_google_cloud_talent_v4beta1_Company_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Company.class, + com.google.cloud.talent.v4beta1.Company.Builder.class); + } + + public interface DerivedInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Company.DerivedInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * A structured headquarters location of the company, resolved from
+     * [Company.hq_location][] if provided.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + boolean hasHeadquartersLocation(); + /** + * + * + *
+     * A structured headquarters location of the company, resolved from
+     * [Company.hq_location][] if provided.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + com.google.cloud.talent.v4beta1.Location getHeadquartersLocation(); + /** + * + * + *
+     * A structured headquarters location of the company, resolved from
+     * [Company.hq_location][] if provided.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + com.google.cloud.talent.v4beta1.LocationOrBuilder getHeadquartersLocationOrBuilder(); + } + /** + * + * + *
+   * Derived details about the company.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Company.DerivedInfo} + */ + public static final class DerivedInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Company.DerivedInfo) + DerivedInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use DerivedInfo.newBuilder() to construct. + private DerivedInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DerivedInfo() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DerivedInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.talent.v4beta1.Location.Builder subBuilder = null; + if (headquartersLocation_ != null) { + subBuilder = headquartersLocation_.toBuilder(); + } + headquartersLocation_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Location.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(headquartersLocation_); + headquartersLocation_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyResourceProto + .internal_static_google_cloud_talent_v4beta1_Company_DerivedInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyResourceProto + .internal_static_google_cloud_talent_v4beta1_Company_DerivedInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Company.DerivedInfo.class, + com.google.cloud.talent.v4beta1.Company.DerivedInfo.Builder.class); + } + + public static final int HEADQUARTERS_LOCATION_FIELD_NUMBER = 1; + private com.google.cloud.talent.v4beta1.Location headquartersLocation_; + /** + * + * + *
+     * A structured headquarters location of the company, resolved from
+     * [Company.hq_location][] if provided.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + public boolean hasHeadquartersLocation() { + return headquartersLocation_ != null; + } + /** + * + * + *
+     * A structured headquarters location of the company, resolved from
+     * [Company.hq_location][] if provided.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + public com.google.cloud.talent.v4beta1.Location getHeadquartersLocation() { + return headquartersLocation_ == null + ? com.google.cloud.talent.v4beta1.Location.getDefaultInstance() + : headquartersLocation_; + } + /** + * + * + *
+     * A structured headquarters location of the company, resolved from
+     * [Company.hq_location][] if provided.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + public com.google.cloud.talent.v4beta1.LocationOrBuilder getHeadquartersLocationOrBuilder() { + return getHeadquartersLocation(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (headquartersLocation_ != null) { + output.writeMessage(1, getHeadquartersLocation()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (headquartersLocation_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getHeadquartersLocation()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Company.DerivedInfo)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Company.DerivedInfo other = + (com.google.cloud.talent.v4beta1.Company.DerivedInfo) obj; + + boolean result = true; + result = result && (hasHeadquartersLocation() == other.hasHeadquartersLocation()); + if (hasHeadquartersLocation()) { + result = result && getHeadquartersLocation().equals(other.getHeadquartersLocation()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasHeadquartersLocation()) { + hash = (37 * hash) + HEADQUARTERS_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getHeadquartersLocation().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.Company.DerivedInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Derived details about the company.
+     * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Company.DerivedInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Company.DerivedInfo) + com.google.cloud.talent.v4beta1.Company.DerivedInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyResourceProto + .internal_static_google_cloud_talent_v4beta1_Company_DerivedInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyResourceProto + .internal_static_google_cloud_talent_v4beta1_Company_DerivedInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Company.DerivedInfo.class, + com.google.cloud.talent.v4beta1.Company.DerivedInfo.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Company.DerivedInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (headquartersLocationBuilder_ == null) { + headquartersLocation_ = null; + } else { + headquartersLocation_ = null; + headquartersLocationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CompanyResourceProto + .internal_static_google_cloud_talent_v4beta1_Company_DerivedInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Company.DerivedInfo getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Company.DerivedInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Company.DerivedInfo build() { + com.google.cloud.talent.v4beta1.Company.DerivedInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Company.DerivedInfo buildPartial() { + com.google.cloud.talent.v4beta1.Company.DerivedInfo result = + new com.google.cloud.talent.v4beta1.Company.DerivedInfo(this); + if (headquartersLocationBuilder_ == null) { + result.headquartersLocation_ = headquartersLocation_; + } else { + result.headquartersLocation_ = headquartersLocationBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Company.DerivedInfo) { + return mergeFrom((com.google.cloud.talent.v4beta1.Company.DerivedInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Company.DerivedInfo other) { + if (other == com.google.cloud.talent.v4beta1.Company.DerivedInfo.getDefaultInstance()) + return this; + if (other.hasHeadquartersLocation()) { + mergeHeadquartersLocation(other.getHeadquartersLocation()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Company.DerivedInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.Company.DerivedInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.talent.v4beta1.Location headquartersLocation_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder> + headquartersLocationBuilder_; + /** + * + * + *
+       * A structured headquarters location of the company, resolved from
+       * [Company.hq_location][] if provided.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + public boolean hasHeadquartersLocation() { + return headquartersLocationBuilder_ != null || headquartersLocation_ != null; + } + /** + * + * + *
+       * A structured headquarters location of the company, resolved from
+       * [Company.hq_location][] if provided.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + public com.google.cloud.talent.v4beta1.Location getHeadquartersLocation() { + if (headquartersLocationBuilder_ == null) { + return headquartersLocation_ == null + ? com.google.cloud.talent.v4beta1.Location.getDefaultInstance() + : headquartersLocation_; + } else { + return headquartersLocationBuilder_.getMessage(); + } + } + /** + * + * + *
+       * A structured headquarters location of the company, resolved from
+       * [Company.hq_location][] if provided.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + public Builder setHeadquartersLocation(com.google.cloud.talent.v4beta1.Location value) { + if (headquartersLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + headquartersLocation_ = value; + onChanged(); + } else { + headquartersLocationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * A structured headquarters location of the company, resolved from
+       * [Company.hq_location][] if provided.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + public Builder setHeadquartersLocation( + com.google.cloud.talent.v4beta1.Location.Builder builderForValue) { + if (headquartersLocationBuilder_ == null) { + headquartersLocation_ = builderForValue.build(); + onChanged(); + } else { + headquartersLocationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * A structured headquarters location of the company, resolved from
+       * [Company.hq_location][] if provided.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + public Builder mergeHeadquartersLocation(com.google.cloud.talent.v4beta1.Location value) { + if (headquartersLocationBuilder_ == null) { + if (headquartersLocation_ != null) { + headquartersLocation_ = + com.google.cloud.talent.v4beta1.Location.newBuilder(headquartersLocation_) + .mergeFrom(value) + .buildPartial(); + } else { + headquartersLocation_ = value; + } + onChanged(); + } else { + headquartersLocationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * A structured headquarters location of the company, resolved from
+       * [Company.hq_location][] if provided.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + public Builder clearHeadquartersLocation() { + if (headquartersLocationBuilder_ == null) { + headquartersLocation_ = null; + onChanged(); + } else { + headquartersLocation_ = null; + headquartersLocationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * A structured headquarters location of the company, resolved from
+       * [Company.hq_location][] if provided.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + public com.google.cloud.talent.v4beta1.Location.Builder getHeadquartersLocationBuilder() { + + onChanged(); + return getHeadquartersLocationFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A structured headquarters location of the company, resolved from
+       * [Company.hq_location][] if provided.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + public com.google.cloud.talent.v4beta1.LocationOrBuilder getHeadquartersLocationOrBuilder() { + if (headquartersLocationBuilder_ != null) { + return headquartersLocationBuilder_.getMessageOrBuilder(); + } else { + return headquartersLocation_ == null + ? com.google.cloud.talent.v4beta1.Location.getDefaultInstance() + : headquartersLocation_; + } + } + /** + * + * + *
+       * A structured headquarters location of the company, resolved from
+       * [Company.hq_location][] if provided.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder> + getHeadquartersLocationFieldBuilder() { + if (headquartersLocationBuilder_ == null) { + headquartersLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder>( + getHeadquartersLocation(), getParentForChildren(), isClean()); + headquartersLocation_ = null; + } + return headquartersLocationBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Company.DerivedInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Company.DerivedInfo) + private static final com.google.cloud.talent.v4beta1.Company.DerivedInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Company.DerivedInfo(); + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DerivedInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DerivedInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Company.DerivedInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required during company update.
+   * The resource name for a company. This is generated by the service when a
+   * company is created.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required during company update.
+   * The resource name for a company. This is generated by the service when a
+   * company is created.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Required.
+   * The display name of the company, for example, "Google, LLC".
+   * 
+ * + * string display_name = 2; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The display name of the company, for example, "Google, LLC".
+   * 
+ * + * string display_name = 2; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXTERNAL_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object externalId_; + /** + * + * + *
+   * Required.
+   * Client side company identifier, used to uniquely identify the
+   * company.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string external_id = 3; + */ + public java.lang.String getExternalId() { + java.lang.Object ref = externalId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + externalId_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * Client side company identifier, used to uniquely identify the
+   * company.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string external_id = 3; + */ + public com.google.protobuf.ByteString getExternalIdBytes() { + java.lang.Object ref = externalId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SIZE_FIELD_NUMBER = 4; + private int size_; + /** + * + * + *
+   * Optional.
+   * The employer's company size.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompanySize size = 4; + */ + public int getSizeValue() { + return size_; + } + /** + * + * + *
+   * Optional.
+   * The employer's company size.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompanySize size = 4; + */ + public com.google.cloud.talent.v4beta1.CompanySize getSize() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompanySize result = + com.google.cloud.talent.v4beta1.CompanySize.valueOf(size_); + return result == null ? com.google.cloud.talent.v4beta1.CompanySize.UNRECOGNIZED : result; + } + + public static final int HEADQUARTERS_ADDRESS_FIELD_NUMBER = 5; + private volatile java.lang.Object headquartersAddress_; + /** + * + * + *
+   * Optional.
+   * The street address of the company's main headquarters, which may be
+   * different from the job location. The service attempts
+   * to geolocate the provided address, and populates a more specific
+   * location wherever possible in
+   * [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location].
+   * 
+ * + * string headquarters_address = 5; + */ + public java.lang.String getHeadquartersAddress() { + java.lang.Object ref = headquartersAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + headquartersAddress_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The street address of the company's main headquarters, which may be
+   * different from the job location. The service attempts
+   * to geolocate the provided address, and populates a more specific
+   * location wherever possible in
+   * [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location].
+   * 
+ * + * string headquarters_address = 5; + */ + public com.google.protobuf.ByteString getHeadquartersAddressBytes() { + java.lang.Object ref = headquartersAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + headquartersAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HIRING_AGENCY_FIELD_NUMBER = 6; + private boolean hiringAgency_; + /** + * + * + *
+   * Optional.
+   * Set to true if it is the hiring agency that post jobs for other
+   * employers.
+   * Defaults to false if not provided.
+   * 
+ * + * bool hiring_agency = 6; + */ + public boolean getHiringAgency() { + return hiringAgency_; + } + + public static final int EEO_TEXT_FIELD_NUMBER = 7; + private volatile java.lang.Object eeoText_; + /** + * + * + *
+   * Optional.
+   * Equal Employment Opportunity legal disclaimer text to be
+   * associated with all jobs, and typically to be displayed in all
+   * roles.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * string eeo_text = 7; + */ + public java.lang.String getEeoText() { + java.lang.Object ref = eeoText_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eeoText_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Equal Employment Opportunity legal disclaimer text to be
+   * associated with all jobs, and typically to be displayed in all
+   * roles.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * string eeo_text = 7; + */ + public com.google.protobuf.ByteString getEeoTextBytes() { + java.lang.Object ref = eeoText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eeoText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WEBSITE_URI_FIELD_NUMBER = 8; + private volatile java.lang.Object websiteUri_; + /** + * + * + *
+   * Optional.
+   * The URI representing the company's primary web site or home page,
+   * for example, "https://www.google.com".
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string website_uri = 8; + */ + public java.lang.String getWebsiteUri() { + java.lang.Object ref = websiteUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + websiteUri_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The URI representing the company's primary web site or home page,
+   * for example, "https://www.google.com".
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string website_uri = 8; + */ + public com.google.protobuf.ByteString getWebsiteUriBytes() { + java.lang.Object ref = websiteUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + websiteUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CAREER_SITE_URI_FIELD_NUMBER = 9; + private volatile java.lang.Object careerSiteUri_; + /** + * + * + *
+   * Optional.
+   * The URI to employer's career site or careers page on the employer's web
+   * site, for example, "https://careers.google.com".
+   * 
+ * + * string career_site_uri = 9; + */ + public java.lang.String getCareerSiteUri() { + java.lang.Object ref = careerSiteUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + careerSiteUri_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The URI to employer's career site or careers page on the employer's web
+   * site, for example, "https://careers.google.com".
+   * 
+ * + * string career_site_uri = 9; + */ + public com.google.protobuf.ByteString getCareerSiteUriBytes() { + java.lang.Object ref = careerSiteUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + careerSiteUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IMAGE_URI_FIELD_NUMBER = 10; + private volatile java.lang.Object imageUri_; + /** + * + * + *
+   * Optional.
+   * A URI that hosts the employer's company logo.
+   * 
+ * + * string image_uri = 10; + */ + public java.lang.String getImageUri() { + java.lang.Object ref = imageUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageUri_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * A URI that hosts the employer's company logo.
+   * 
+ * + * string image_uri = 10; + */ + public com.google.protobuf.ByteString getImageUriBytes() { + java.lang.Object ref = imageUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KEYWORD_SEARCHABLE_JOB_CUSTOM_ATTRIBUTES_FIELD_NUMBER = 11; + private com.google.protobuf.LazyStringList keywordSearchableJobCustomAttributes_; + /** + * + * + *
+   * Optional.
+   * A list of keys of filterable
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+   * whose corresponding `string_values` are used in keyword search. Jobs with
+   * `string_values` under these specified field keys are returned if any
+   * of the values matches the search keyword. Custom field values with
+   * parenthesis, brackets and special symbols won't be properly searchable,
+   * and those keyword queries need to be surrounded by quotes.
+   * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public com.google.protobuf.ProtocolStringList getKeywordSearchableJobCustomAttributesList() { + return keywordSearchableJobCustomAttributes_; + } + /** + * + * + *
+   * Optional.
+   * A list of keys of filterable
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+   * whose corresponding `string_values` are used in keyword search. Jobs with
+   * `string_values` under these specified field keys are returned if any
+   * of the values matches the search keyword. Custom field values with
+   * parenthesis, brackets and special symbols won't be properly searchable,
+   * and those keyword queries need to be surrounded by quotes.
+   * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public int getKeywordSearchableJobCustomAttributesCount() { + return keywordSearchableJobCustomAttributes_.size(); + } + /** + * + * + *
+   * Optional.
+   * A list of keys of filterable
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+   * whose corresponding `string_values` are used in keyword search. Jobs with
+   * `string_values` under these specified field keys are returned if any
+   * of the values matches the search keyword. Custom field values with
+   * parenthesis, brackets and special symbols won't be properly searchable,
+   * and those keyword queries need to be surrounded by quotes.
+   * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public java.lang.String getKeywordSearchableJobCustomAttributes(int index) { + return keywordSearchableJobCustomAttributes_.get(index); + } + /** + * + * + *
+   * Optional.
+   * A list of keys of filterable
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+   * whose corresponding `string_values` are used in keyword search. Jobs with
+   * `string_values` under these specified field keys are returned if any
+   * of the values matches the search keyword. Custom field values with
+   * parenthesis, brackets and special symbols won't be properly searchable,
+   * and those keyword queries need to be surrounded by quotes.
+   * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public com.google.protobuf.ByteString getKeywordSearchableJobCustomAttributesBytes(int index) { + return keywordSearchableJobCustomAttributes_.getByteString(index); + } + + public static final int DERIVED_INFO_FIELD_NUMBER = 12; + private com.google.cloud.talent.v4beta1.Company.DerivedInfo derivedInfo_; + /** + * + * + *
+   * Output only. Derived details about the company.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + public boolean hasDerivedInfo() { + return derivedInfo_ != null; + } + /** + * + * + *
+   * Output only. Derived details about the company.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + public com.google.cloud.talent.v4beta1.Company.DerivedInfo getDerivedInfo() { + return derivedInfo_ == null + ? com.google.cloud.talent.v4beta1.Company.DerivedInfo.getDefaultInstance() + : derivedInfo_; + } + /** + * + * + *
+   * Output only. Derived details about the company.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + public com.google.cloud.talent.v4beta1.Company.DerivedInfoOrBuilder getDerivedInfoOrBuilder() { + return getDerivedInfo(); + } + + public static final int SUSPENDED_FIELD_NUMBER = 13; + private boolean suspended_; + /** + * + * + *
+   * Output only. Indicates whether a company is flagged to be suspended from
+   * public availability by the service when job content appears suspicious,
+   * abusive, or spammy.
+   * 
+ * + * bool suspended = 13; + */ + public boolean getSuspended() { + return suspended_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!getExternalIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, externalId_); + } + if (size_ != com.google.cloud.talent.v4beta1.CompanySize.COMPANY_SIZE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, size_); + } + if (!getHeadquartersAddressBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, headquartersAddress_); + } + if (hiringAgency_ != false) { + output.writeBool(6, hiringAgency_); + } + if (!getEeoTextBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, eeoText_); + } + if (!getWebsiteUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, websiteUri_); + } + if (!getCareerSiteUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, careerSiteUri_); + } + if (!getImageUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, imageUri_); + } + for (int i = 0; i < keywordSearchableJobCustomAttributes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 11, keywordSearchableJobCustomAttributes_.getRaw(i)); + } + if (derivedInfo_ != null) { + output.writeMessage(12, getDerivedInfo()); + } + if (suspended_ != false) { + output.writeBool(13, suspended_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!getExternalIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, externalId_); + } + if (size_ != com.google.cloud.talent.v4beta1.CompanySize.COMPANY_SIZE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, size_); + } + if (!getHeadquartersAddressBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, headquartersAddress_); + } + if (hiringAgency_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, hiringAgency_); + } + if (!getEeoTextBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, eeoText_); + } + if (!getWebsiteUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, websiteUri_); + } + if (!getCareerSiteUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, careerSiteUri_); + } + if (!getImageUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, imageUri_); + } + { + int dataSize = 0; + for (int i = 0; i < keywordSearchableJobCustomAttributes_.size(); i++) { + dataSize += computeStringSizeNoTag(keywordSearchableJobCustomAttributes_.getRaw(i)); + } + size += dataSize; + size += 1 * getKeywordSearchableJobCustomAttributesList().size(); + } + if (derivedInfo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getDerivedInfo()); + } + if (suspended_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, suspended_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Company)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Company other = (com.google.cloud.talent.v4beta1.Company) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && getDisplayName().equals(other.getDisplayName()); + result = result && getExternalId().equals(other.getExternalId()); + result = result && size_ == other.size_; + result = result && getHeadquartersAddress().equals(other.getHeadquartersAddress()); + result = result && (getHiringAgency() == other.getHiringAgency()); + result = result && getEeoText().equals(other.getEeoText()); + result = result && getWebsiteUri().equals(other.getWebsiteUri()); + result = result && getCareerSiteUri().equals(other.getCareerSiteUri()); + result = result && getImageUri().equals(other.getImageUri()); + result = + result + && getKeywordSearchableJobCustomAttributesList() + .equals(other.getKeywordSearchableJobCustomAttributesList()); + result = result && (hasDerivedInfo() == other.hasDerivedInfo()); + if (hasDerivedInfo()) { + result = result && getDerivedInfo().equals(other.getDerivedInfo()); + } + result = result && (getSuspended() == other.getSuspended()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + EXTERNAL_ID_FIELD_NUMBER; + hash = (53 * hash) + getExternalId().hashCode(); + hash = (37 * hash) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + size_; + hash = (37 * hash) + HEADQUARTERS_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getHeadquartersAddress().hashCode(); + hash = (37 * hash) + HIRING_AGENCY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHiringAgency()); + hash = (37 * hash) + EEO_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getEeoText().hashCode(); + hash = (37 * hash) + WEBSITE_URI_FIELD_NUMBER; + hash = (53 * hash) + getWebsiteUri().hashCode(); + hash = (37 * hash) + CAREER_SITE_URI_FIELD_NUMBER; + hash = (53 * hash) + getCareerSiteUri().hashCode(); + hash = (37 * hash) + IMAGE_URI_FIELD_NUMBER; + hash = (53 * hash) + getImageUri().hashCode(); + if (getKeywordSearchableJobCustomAttributesCount() > 0) { + hash = (37 * hash) + KEYWORD_SEARCHABLE_JOB_CUSTOM_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getKeywordSearchableJobCustomAttributesList().hashCode(); + } + if (hasDerivedInfo()) { + hash = (37 * hash) + DERIVED_INFO_FIELD_NUMBER; + hash = (53 * hash) + getDerivedInfo().hashCode(); + } + hash = (37 * hash) + SUSPENDED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSuspended()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Company parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Company parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Company parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Company parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Company parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Company parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Company parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Company parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Company parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Company parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Company parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Company parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.Company prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A Company resource represents a company in the service. A company is the
+   * entity that owns job postings, that is, the hiring entity responsible for
+   * employing applicants for the job position.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Company} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Company) + com.google.cloud.talent.v4beta1.CompanyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyResourceProto + .internal_static_google_cloud_talent_v4beta1_Company_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyResourceProto + .internal_static_google_cloud_talent_v4beta1_Company_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Company.class, + com.google.cloud.talent.v4beta1.Company.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Company.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + displayName_ = ""; + + externalId_ = ""; + + size_ = 0; + + headquartersAddress_ = ""; + + hiringAgency_ = false; + + eeoText_ = ""; + + websiteUri_ = ""; + + careerSiteUri_ = ""; + + imageUri_ = ""; + + keywordSearchableJobCustomAttributes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000400); + if (derivedInfoBuilder_ == null) { + derivedInfo_ = null; + } else { + derivedInfo_ = null; + derivedInfoBuilder_ = null; + } + suspended_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CompanyResourceProto + .internal_static_google_cloud_talent_v4beta1_Company_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Company getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Company.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Company build() { + com.google.cloud.talent.v4beta1.Company result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Company buildPartial() { + com.google.cloud.talent.v4beta1.Company result = + new com.google.cloud.talent.v4beta1.Company(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + result.displayName_ = displayName_; + result.externalId_ = externalId_; + result.size_ = size_; + result.headquartersAddress_ = headquartersAddress_; + result.hiringAgency_ = hiringAgency_; + result.eeoText_ = eeoText_; + result.websiteUri_ = websiteUri_; + result.careerSiteUri_ = careerSiteUri_; + result.imageUri_ = imageUri_; + if (((bitField0_ & 0x00000400) == 0x00000400)) { + keywordSearchableJobCustomAttributes_ = + keywordSearchableJobCustomAttributes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.keywordSearchableJobCustomAttributes_ = keywordSearchableJobCustomAttributes_; + if (derivedInfoBuilder_ == null) { + result.derivedInfo_ = derivedInfo_; + } else { + result.derivedInfo_ = derivedInfoBuilder_.build(); + } + result.suspended_ = suspended_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Company) { + return mergeFrom((com.google.cloud.talent.v4beta1.Company) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Company other) { + if (other == com.google.cloud.talent.v4beta1.Company.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getExternalId().isEmpty()) { + externalId_ = other.externalId_; + onChanged(); + } + if (other.size_ != 0) { + setSizeValue(other.getSizeValue()); + } + if (!other.getHeadquartersAddress().isEmpty()) { + headquartersAddress_ = other.headquartersAddress_; + onChanged(); + } + if (other.getHiringAgency() != false) { + setHiringAgency(other.getHiringAgency()); + } + if (!other.getEeoText().isEmpty()) { + eeoText_ = other.eeoText_; + onChanged(); + } + if (!other.getWebsiteUri().isEmpty()) { + websiteUri_ = other.websiteUri_; + onChanged(); + } + if (!other.getCareerSiteUri().isEmpty()) { + careerSiteUri_ = other.careerSiteUri_; + onChanged(); + } + if (!other.getImageUri().isEmpty()) { + imageUri_ = other.imageUri_; + onChanged(); + } + if (!other.keywordSearchableJobCustomAttributes_.isEmpty()) { + if (keywordSearchableJobCustomAttributes_.isEmpty()) { + keywordSearchableJobCustomAttributes_ = other.keywordSearchableJobCustomAttributes_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureKeywordSearchableJobCustomAttributesIsMutable(); + keywordSearchableJobCustomAttributes_.addAll(other.keywordSearchableJobCustomAttributes_); + } + onChanged(); + } + if (other.hasDerivedInfo()) { + mergeDerivedInfo(other.getDerivedInfo()); + } + if (other.getSuspended() != false) { + setSuspended(other.getSuspended()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Company parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Company) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required during company update.
+     * The resource name for a company. This is generated by the service when a
+     * company is created.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required during company update.
+     * The resource name for a company. This is generated by the service when a
+     * company is created.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required during company update.
+     * The resource name for a company. This is generated by the service when a
+     * company is created.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required during company update.
+     * The resource name for a company. This is generated by the service when a
+     * company is created.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required during company update.
+     * The resource name for a company. This is generated by the service when a
+     * company is created.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Required.
+     * The display name of the company, for example, "Google, LLC".
+     * 
+ * + * string display_name = 2; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The display name of the company, for example, "Google, LLC".
+     * 
+ * + * string display_name = 2; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The display name of the company, for example, "Google, LLC".
+     * 
+ * + * string display_name = 2; + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The display name of the company, for example, "Google, LLC".
+     * 
+ * + * string display_name = 2; + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The display name of the company, for example, "Google, LLC".
+     * 
+ * + * string display_name = 2; + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object externalId_ = ""; + /** + * + * + *
+     * Required.
+     * Client side company identifier, used to uniquely identify the
+     * company.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 3; + */ + public java.lang.String getExternalId() { + java.lang.Object ref = externalId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + externalId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * Client side company identifier, used to uniquely identify the
+     * company.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 3; + */ + public com.google.protobuf.ByteString getExternalIdBytes() { + java.lang.Object ref = externalId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * Client side company identifier, used to uniquely identify the
+     * company.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 3; + */ + public Builder setExternalId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + externalId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Client side company identifier, used to uniquely identify the
+     * company.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 3; + */ + public Builder clearExternalId() { + + externalId_ = getDefaultInstance().getExternalId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Client side company identifier, used to uniquely identify the
+     * company.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 3; + */ + public Builder setExternalIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + externalId_ = value; + onChanged(); + return this; + } + + private int size_ = 0; + /** + * + * + *
+     * Optional.
+     * The employer's company size.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompanySize size = 4; + */ + public int getSizeValue() { + return size_; + } + /** + * + * + *
+     * Optional.
+     * The employer's company size.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompanySize size = 4; + */ + public Builder setSizeValue(int value) { + size_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employer's company size.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompanySize size = 4; + */ + public com.google.cloud.talent.v4beta1.CompanySize getSize() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompanySize result = + com.google.cloud.talent.v4beta1.CompanySize.valueOf(size_); + return result == null ? com.google.cloud.talent.v4beta1.CompanySize.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional.
+     * The employer's company size.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompanySize size = 4; + */ + public Builder setSize(com.google.cloud.talent.v4beta1.CompanySize value) { + if (value == null) { + throw new NullPointerException(); + } + + size_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employer's company size.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompanySize size = 4; + */ + public Builder clearSize() { + + size_ = 0; + onChanged(); + return this; + } + + private java.lang.Object headquartersAddress_ = ""; + /** + * + * + *
+     * Optional.
+     * The street address of the company's main headquarters, which may be
+     * different from the job location. The service attempts
+     * to geolocate the provided address, and populates a more specific
+     * location wherever possible in
+     * [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location].
+     * 
+ * + * string headquarters_address = 5; + */ + public java.lang.String getHeadquartersAddress() { + java.lang.Object ref = headquartersAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + headquartersAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The street address of the company's main headquarters, which may be
+     * different from the job location. The service attempts
+     * to geolocate the provided address, and populates a more specific
+     * location wherever possible in
+     * [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location].
+     * 
+ * + * string headquarters_address = 5; + */ + public com.google.protobuf.ByteString getHeadquartersAddressBytes() { + java.lang.Object ref = headquartersAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + headquartersAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The street address of the company's main headquarters, which may be
+     * different from the job location. The service attempts
+     * to geolocate the provided address, and populates a more specific
+     * location wherever possible in
+     * [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location].
+     * 
+ * + * string headquarters_address = 5; + */ + public Builder setHeadquartersAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + headquartersAddress_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The street address of the company's main headquarters, which may be
+     * different from the job location. The service attempts
+     * to geolocate the provided address, and populates a more specific
+     * location wherever possible in
+     * [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location].
+     * 
+ * + * string headquarters_address = 5; + */ + public Builder clearHeadquartersAddress() { + + headquartersAddress_ = getDefaultInstance().getHeadquartersAddress(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The street address of the company's main headquarters, which may be
+     * different from the job location. The service attempts
+     * to geolocate the provided address, and populates a more specific
+     * location wherever possible in
+     * [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location].
+     * 
+ * + * string headquarters_address = 5; + */ + public Builder setHeadquartersAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + headquartersAddress_ = value; + onChanged(); + return this; + } + + private boolean hiringAgency_; + /** + * + * + *
+     * Optional.
+     * Set to true if it is the hiring agency that post jobs for other
+     * employers.
+     * Defaults to false if not provided.
+     * 
+ * + * bool hiring_agency = 6; + */ + public boolean getHiringAgency() { + return hiringAgency_; + } + /** + * + * + *
+     * Optional.
+     * Set to true if it is the hiring agency that post jobs for other
+     * employers.
+     * Defaults to false if not provided.
+     * 
+ * + * bool hiring_agency = 6; + */ + public Builder setHiringAgency(boolean value) { + + hiringAgency_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Set to true if it is the hiring agency that post jobs for other
+     * employers.
+     * Defaults to false if not provided.
+     * 
+ * + * bool hiring_agency = 6; + */ + public Builder clearHiringAgency() { + + hiringAgency_ = false; + onChanged(); + return this; + } + + private java.lang.Object eeoText_ = ""; + /** + * + * + *
+     * Optional.
+     * Equal Employment Opportunity legal disclaimer text to be
+     * associated with all jobs, and typically to be displayed in all
+     * roles.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * string eeo_text = 7; + */ + public java.lang.String getEeoText() { + java.lang.Object ref = eeoText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eeoText_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Equal Employment Opportunity legal disclaimer text to be
+     * associated with all jobs, and typically to be displayed in all
+     * roles.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * string eeo_text = 7; + */ + public com.google.protobuf.ByteString getEeoTextBytes() { + java.lang.Object ref = eeoText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eeoText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Equal Employment Opportunity legal disclaimer text to be
+     * associated with all jobs, and typically to be displayed in all
+     * roles.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * string eeo_text = 7; + */ + public Builder setEeoText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + eeoText_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Equal Employment Opportunity legal disclaimer text to be
+     * associated with all jobs, and typically to be displayed in all
+     * roles.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * string eeo_text = 7; + */ + public Builder clearEeoText() { + + eeoText_ = getDefaultInstance().getEeoText(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Equal Employment Opportunity legal disclaimer text to be
+     * associated with all jobs, and typically to be displayed in all
+     * roles.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * string eeo_text = 7; + */ + public Builder setEeoTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + eeoText_ = value; + onChanged(); + return this; + } + + private java.lang.Object websiteUri_ = ""; + /** + * + * + *
+     * Optional.
+     * The URI representing the company's primary web site or home page,
+     * for example, "https://www.google.com".
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string website_uri = 8; + */ + public java.lang.String getWebsiteUri() { + java.lang.Object ref = websiteUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + websiteUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The URI representing the company's primary web site or home page,
+     * for example, "https://www.google.com".
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string website_uri = 8; + */ + public com.google.protobuf.ByteString getWebsiteUriBytes() { + java.lang.Object ref = websiteUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + websiteUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The URI representing the company's primary web site or home page,
+     * for example, "https://www.google.com".
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string website_uri = 8; + */ + public Builder setWebsiteUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + websiteUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The URI representing the company's primary web site or home page,
+     * for example, "https://www.google.com".
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string website_uri = 8; + */ + public Builder clearWebsiteUri() { + + websiteUri_ = getDefaultInstance().getWebsiteUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The URI representing the company's primary web site or home page,
+     * for example, "https://www.google.com".
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string website_uri = 8; + */ + public Builder setWebsiteUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + websiteUri_ = value; + onChanged(); + return this; + } + + private java.lang.Object careerSiteUri_ = ""; + /** + * + * + *
+     * Optional.
+     * The URI to employer's career site or careers page on the employer's web
+     * site, for example, "https://careers.google.com".
+     * 
+ * + * string career_site_uri = 9; + */ + public java.lang.String getCareerSiteUri() { + java.lang.Object ref = careerSiteUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + careerSiteUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The URI to employer's career site or careers page on the employer's web
+     * site, for example, "https://careers.google.com".
+     * 
+ * + * string career_site_uri = 9; + */ + public com.google.protobuf.ByteString getCareerSiteUriBytes() { + java.lang.Object ref = careerSiteUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + careerSiteUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The URI to employer's career site or careers page on the employer's web
+     * site, for example, "https://careers.google.com".
+     * 
+ * + * string career_site_uri = 9; + */ + public Builder setCareerSiteUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + careerSiteUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The URI to employer's career site or careers page on the employer's web
+     * site, for example, "https://careers.google.com".
+     * 
+ * + * string career_site_uri = 9; + */ + public Builder clearCareerSiteUri() { + + careerSiteUri_ = getDefaultInstance().getCareerSiteUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The URI to employer's career site or careers page on the employer's web
+     * site, for example, "https://careers.google.com".
+     * 
+ * + * string career_site_uri = 9; + */ + public Builder setCareerSiteUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + careerSiteUri_ = value; + onChanged(); + return this; + } + + private java.lang.Object imageUri_ = ""; + /** + * + * + *
+     * Optional.
+     * A URI that hosts the employer's company logo.
+     * 
+ * + * string image_uri = 10; + */ + public java.lang.String getImageUri() { + java.lang.Object ref = imageUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A URI that hosts the employer's company logo.
+     * 
+ * + * string image_uri = 10; + */ + public com.google.protobuf.ByteString getImageUriBytes() { + java.lang.Object ref = imageUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A URI that hosts the employer's company logo.
+     * 
+ * + * string image_uri = 10; + */ + public Builder setImageUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + imageUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A URI that hosts the employer's company logo.
+     * 
+ * + * string image_uri = 10; + */ + public Builder clearImageUri() { + + imageUri_ = getDefaultInstance().getImageUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A URI that hosts the employer's company logo.
+     * 
+ * + * string image_uri = 10; + */ + public Builder setImageUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + imageUri_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList keywordSearchableJobCustomAttributes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureKeywordSearchableJobCustomAttributesIsMutable() { + if (!((bitField0_ & 0x00000400) == 0x00000400)) { + keywordSearchableJobCustomAttributes_ = + new com.google.protobuf.LazyStringArrayList(keywordSearchableJobCustomAttributes_); + bitField0_ |= 0x00000400; + } + } + /** + * + * + *
+     * Optional.
+     * A list of keys of filterable
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+     * whose corresponding `string_values` are used in keyword search. Jobs with
+     * `string_values` under these specified field keys are returned if any
+     * of the values matches the search keyword. Custom field values with
+     * parenthesis, brackets and special symbols won't be properly searchable,
+     * and those keyword queries need to be surrounded by quotes.
+     * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public com.google.protobuf.ProtocolStringList getKeywordSearchableJobCustomAttributesList() { + return keywordSearchableJobCustomAttributes_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional.
+     * A list of keys of filterable
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+     * whose corresponding `string_values` are used in keyword search. Jobs with
+     * `string_values` under these specified field keys are returned if any
+     * of the values matches the search keyword. Custom field values with
+     * parenthesis, brackets and special symbols won't be properly searchable,
+     * and those keyword queries need to be surrounded by quotes.
+     * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public int getKeywordSearchableJobCustomAttributesCount() { + return keywordSearchableJobCustomAttributes_.size(); + } + /** + * + * + *
+     * Optional.
+     * A list of keys of filterable
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+     * whose corresponding `string_values` are used in keyword search. Jobs with
+     * `string_values` under these specified field keys are returned if any
+     * of the values matches the search keyword. Custom field values with
+     * parenthesis, brackets and special symbols won't be properly searchable,
+     * and those keyword queries need to be surrounded by quotes.
+     * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public java.lang.String getKeywordSearchableJobCustomAttributes(int index) { + return keywordSearchableJobCustomAttributes_.get(index); + } + /** + * + * + *
+     * Optional.
+     * A list of keys of filterable
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+     * whose corresponding `string_values` are used in keyword search. Jobs with
+     * `string_values` under these specified field keys are returned if any
+     * of the values matches the search keyword. Custom field values with
+     * parenthesis, brackets and special symbols won't be properly searchable,
+     * and those keyword queries need to be surrounded by quotes.
+     * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public com.google.protobuf.ByteString getKeywordSearchableJobCustomAttributesBytes(int index) { + return keywordSearchableJobCustomAttributes_.getByteString(index); + } + /** + * + * + *
+     * Optional.
+     * A list of keys of filterable
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+     * whose corresponding `string_values` are used in keyword search. Jobs with
+     * `string_values` under these specified field keys are returned if any
+     * of the values matches the search keyword. Custom field values with
+     * parenthesis, brackets and special symbols won't be properly searchable,
+     * and those keyword queries need to be surrounded by quotes.
+     * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public Builder setKeywordSearchableJobCustomAttributes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeywordSearchableJobCustomAttributesIsMutable(); + keywordSearchableJobCustomAttributes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of keys of filterable
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+     * whose corresponding `string_values` are used in keyword search. Jobs with
+     * `string_values` under these specified field keys are returned if any
+     * of the values matches the search keyword. Custom field values with
+     * parenthesis, brackets and special symbols won't be properly searchable,
+     * and those keyword queries need to be surrounded by quotes.
+     * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public Builder addKeywordSearchableJobCustomAttributes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeywordSearchableJobCustomAttributesIsMutable(); + keywordSearchableJobCustomAttributes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of keys of filterable
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+     * whose corresponding `string_values` are used in keyword search. Jobs with
+     * `string_values` under these specified field keys are returned if any
+     * of the values matches the search keyword. Custom field values with
+     * parenthesis, brackets and special symbols won't be properly searchable,
+     * and those keyword queries need to be surrounded by quotes.
+     * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public Builder addAllKeywordSearchableJobCustomAttributes( + java.lang.Iterable values) { + ensureKeywordSearchableJobCustomAttributesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, keywordSearchableJobCustomAttributes_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of keys of filterable
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+     * whose corresponding `string_values` are used in keyword search. Jobs with
+     * `string_values` under these specified field keys are returned if any
+     * of the values matches the search keyword. Custom field values with
+     * parenthesis, brackets and special symbols won't be properly searchable,
+     * and those keyword queries need to be surrounded by quotes.
+     * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public Builder clearKeywordSearchableJobCustomAttributes() { + keywordSearchableJobCustomAttributes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of keys of filterable
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+     * whose corresponding `string_values` are used in keyword search. Jobs with
+     * `string_values` under these specified field keys are returned if any
+     * of the values matches the search keyword. Custom field values with
+     * parenthesis, brackets and special symbols won't be properly searchable,
+     * and those keyword queries need to be surrounded by quotes.
+     * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public Builder addKeywordSearchableJobCustomAttributesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureKeywordSearchableJobCustomAttributesIsMutable(); + keywordSearchableJobCustomAttributes_.add(value); + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.Company.DerivedInfo derivedInfo_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company.DerivedInfo, + com.google.cloud.talent.v4beta1.Company.DerivedInfo.Builder, + com.google.cloud.talent.v4beta1.Company.DerivedInfoOrBuilder> + derivedInfoBuilder_; + /** + * + * + *
+     * Output only. Derived details about the company.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + public boolean hasDerivedInfo() { + return derivedInfoBuilder_ != null || derivedInfo_ != null; + } + /** + * + * + *
+     * Output only. Derived details about the company.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + public com.google.cloud.talent.v4beta1.Company.DerivedInfo getDerivedInfo() { + if (derivedInfoBuilder_ == null) { + return derivedInfo_ == null + ? com.google.cloud.talent.v4beta1.Company.DerivedInfo.getDefaultInstance() + : derivedInfo_; + } else { + return derivedInfoBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Derived details about the company.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + public Builder setDerivedInfo(com.google.cloud.talent.v4beta1.Company.DerivedInfo value) { + if (derivedInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + derivedInfo_ = value; + onChanged(); + } else { + derivedInfoBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Derived details about the company.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + public Builder setDerivedInfo( + com.google.cloud.talent.v4beta1.Company.DerivedInfo.Builder builderForValue) { + if (derivedInfoBuilder_ == null) { + derivedInfo_ = builderForValue.build(); + onChanged(); + } else { + derivedInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Derived details about the company.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + public Builder mergeDerivedInfo(com.google.cloud.talent.v4beta1.Company.DerivedInfo value) { + if (derivedInfoBuilder_ == null) { + if (derivedInfo_ != null) { + derivedInfo_ = + com.google.cloud.talent.v4beta1.Company.DerivedInfo.newBuilder(derivedInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + derivedInfo_ = value; + } + onChanged(); + } else { + derivedInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Derived details about the company.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + public Builder clearDerivedInfo() { + if (derivedInfoBuilder_ == null) { + derivedInfo_ = null; + onChanged(); + } else { + derivedInfo_ = null; + derivedInfoBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Derived details about the company.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + public com.google.cloud.talent.v4beta1.Company.DerivedInfo.Builder getDerivedInfoBuilder() { + + onChanged(); + return getDerivedInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Derived details about the company.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + public com.google.cloud.talent.v4beta1.Company.DerivedInfoOrBuilder getDerivedInfoOrBuilder() { + if (derivedInfoBuilder_ != null) { + return derivedInfoBuilder_.getMessageOrBuilder(); + } else { + return derivedInfo_ == null + ? com.google.cloud.talent.v4beta1.Company.DerivedInfo.getDefaultInstance() + : derivedInfo_; + } + } + /** + * + * + *
+     * Output only. Derived details about the company.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company.DerivedInfo, + com.google.cloud.talent.v4beta1.Company.DerivedInfo.Builder, + com.google.cloud.talent.v4beta1.Company.DerivedInfoOrBuilder> + getDerivedInfoFieldBuilder() { + if (derivedInfoBuilder_ == null) { + derivedInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company.DerivedInfo, + com.google.cloud.talent.v4beta1.Company.DerivedInfo.Builder, + com.google.cloud.talent.v4beta1.Company.DerivedInfoOrBuilder>( + getDerivedInfo(), getParentForChildren(), isClean()); + derivedInfo_ = null; + } + return derivedInfoBuilder_; + } + + private boolean suspended_; + /** + * + * + *
+     * Output only. Indicates whether a company is flagged to be suspended from
+     * public availability by the service when job content appears suspicious,
+     * abusive, or spammy.
+     * 
+ * + * bool suspended = 13; + */ + public boolean getSuspended() { + return suspended_; + } + /** + * + * + *
+     * Output only. Indicates whether a company is flagged to be suspended from
+     * public availability by the service when job content appears suspicious,
+     * abusive, or spammy.
+     * 
+ * + * bool suspended = 13; + */ + public Builder setSuspended(boolean value) { + + suspended_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Indicates whether a company is flagged to be suspended from
+     * public availability by the service when job content appears suspicious,
+     * abusive, or spammy.
+     * 
+ * + * bool suspended = 13; + */ + public Builder clearSuspended() { + + suspended_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Company) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Company) + private static final com.google.cloud.talent.v4beta1.Company DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Company(); + } + + public static com.google.cloud.talent.v4beta1.Company getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Company parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Company(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Company getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyName.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyName.java new file mode 100644 index 000000000000..68ca5feb6ef0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyName.java @@ -0,0 +1,180 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.cloud.talent.v4beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class CompanyName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/companies/{company}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String company; + + public String getProject() { + return project; + } + + public String getCompany() { + return company; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private CompanyName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + company = Preconditions.checkNotNull(builder.getCompany()); + } + + public static CompanyName of(String project, String company) { + return newBuilder().setProject(project).setCompany(company).build(); + } + + public static String format(String project, String company) { + return newBuilder().setProject(project).setCompany(company).build().toString(); + } + + public static CompanyName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "CompanyName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("company")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (CompanyName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("company", company); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "company", company); + } + + /** Builder for CompanyName. */ + public static class Builder { + + private String project; + private String company; + + public String getProject() { + return project; + } + + public String getCompany() { + return company; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setCompany(String company) { + this.company = company; + return this; + } + + private Builder() {} + + private Builder(CompanyName companyName) { + project = companyName.project; + company = companyName.company; + } + + public CompanyName build() { + return new CompanyName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof CompanyName) { + CompanyName that = (CompanyName) o; + return (this.project.equals(that.project)) && (this.company.equals(that.company)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= company.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyOrBuilder.java new file mode 100644 index 000000000000..575187124d9f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyOrBuilder.java @@ -0,0 +1,374 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company.proto + +package com.google.cloud.talent.v4beta1; + +public interface CompanyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Company) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required during company update.
+   * The resource name for a company. This is generated by the service when a
+   * company is created.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required during company update.
+   * The resource name for a company. This is generated by the service when a
+   * company is created.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required.
+   * The display name of the company, for example, "Google, LLC".
+   * 
+ * + * string display_name = 2; + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required.
+   * The display name of the company, for example, "Google, LLC".
+   * 
+ * + * string display_name = 2; + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Required.
+   * Client side company identifier, used to uniquely identify the
+   * company.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string external_id = 3; + */ + java.lang.String getExternalId(); + /** + * + * + *
+   * Required.
+   * Client side company identifier, used to uniquely identify the
+   * company.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string external_id = 3; + */ + com.google.protobuf.ByteString getExternalIdBytes(); + + /** + * + * + *
+   * Optional.
+   * The employer's company size.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompanySize size = 4; + */ + int getSizeValue(); + /** + * + * + *
+   * Optional.
+   * The employer's company size.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompanySize size = 4; + */ + com.google.cloud.talent.v4beta1.CompanySize getSize(); + + /** + * + * + *
+   * Optional.
+   * The street address of the company's main headquarters, which may be
+   * different from the job location. The service attempts
+   * to geolocate the provided address, and populates a more specific
+   * location wherever possible in
+   * [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location].
+   * 
+ * + * string headquarters_address = 5; + */ + java.lang.String getHeadquartersAddress(); + /** + * + * + *
+   * Optional.
+   * The street address of the company's main headquarters, which may be
+   * different from the job location. The service attempts
+   * to geolocate the provided address, and populates a more specific
+   * location wherever possible in
+   * [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location].
+   * 
+ * + * string headquarters_address = 5; + */ + com.google.protobuf.ByteString getHeadquartersAddressBytes(); + + /** + * + * + *
+   * Optional.
+   * Set to true if it is the hiring agency that post jobs for other
+   * employers.
+   * Defaults to false if not provided.
+   * 
+ * + * bool hiring_agency = 6; + */ + boolean getHiringAgency(); + + /** + * + * + *
+   * Optional.
+   * Equal Employment Opportunity legal disclaimer text to be
+   * associated with all jobs, and typically to be displayed in all
+   * roles.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * string eeo_text = 7; + */ + java.lang.String getEeoText(); + /** + * + * + *
+   * Optional.
+   * Equal Employment Opportunity legal disclaimer text to be
+   * associated with all jobs, and typically to be displayed in all
+   * roles.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * string eeo_text = 7; + */ + com.google.protobuf.ByteString getEeoTextBytes(); + + /** + * + * + *
+   * Optional.
+   * The URI representing the company's primary web site or home page,
+   * for example, "https://www.google.com".
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string website_uri = 8; + */ + java.lang.String getWebsiteUri(); + /** + * + * + *
+   * Optional.
+   * The URI representing the company's primary web site or home page,
+   * for example, "https://www.google.com".
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string website_uri = 8; + */ + com.google.protobuf.ByteString getWebsiteUriBytes(); + + /** + * + * + *
+   * Optional.
+   * The URI to employer's career site or careers page on the employer's web
+   * site, for example, "https://careers.google.com".
+   * 
+ * + * string career_site_uri = 9; + */ + java.lang.String getCareerSiteUri(); + /** + * + * + *
+   * Optional.
+   * The URI to employer's career site or careers page on the employer's web
+   * site, for example, "https://careers.google.com".
+   * 
+ * + * string career_site_uri = 9; + */ + com.google.protobuf.ByteString getCareerSiteUriBytes(); + + /** + * + * + *
+   * Optional.
+   * A URI that hosts the employer's company logo.
+   * 
+ * + * string image_uri = 10; + */ + java.lang.String getImageUri(); + /** + * + * + *
+   * Optional.
+   * A URI that hosts the employer's company logo.
+   * 
+ * + * string image_uri = 10; + */ + com.google.protobuf.ByteString getImageUriBytes(); + + /** + * + * + *
+   * Optional.
+   * A list of keys of filterable
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+   * whose corresponding `string_values` are used in keyword search. Jobs with
+   * `string_values` under these specified field keys are returned if any
+   * of the values matches the search keyword. Custom field values with
+   * parenthesis, brackets and special symbols won't be properly searchable,
+   * and those keyword queries need to be surrounded by quotes.
+   * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + java.util.List getKeywordSearchableJobCustomAttributesList(); + /** + * + * + *
+   * Optional.
+   * A list of keys of filterable
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+   * whose corresponding `string_values` are used in keyword search. Jobs with
+   * `string_values` under these specified field keys are returned if any
+   * of the values matches the search keyword. Custom field values with
+   * parenthesis, brackets and special symbols won't be properly searchable,
+   * and those keyword queries need to be surrounded by quotes.
+   * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + int getKeywordSearchableJobCustomAttributesCount(); + /** + * + * + *
+   * Optional.
+   * A list of keys of filterable
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+   * whose corresponding `string_values` are used in keyword search. Jobs with
+   * `string_values` under these specified field keys are returned if any
+   * of the values matches the search keyword. Custom field values with
+   * parenthesis, brackets and special symbols won't be properly searchable,
+   * and those keyword queries need to be surrounded by quotes.
+   * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + java.lang.String getKeywordSearchableJobCustomAttributes(int index); + /** + * + * + *
+   * Optional.
+   * A list of keys of filterable
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+   * whose corresponding `string_values` are used in keyword search. Jobs with
+   * `string_values` under these specified field keys are returned if any
+   * of the values matches the search keyword. Custom field values with
+   * parenthesis, brackets and special symbols won't be properly searchable,
+   * and those keyword queries need to be surrounded by quotes.
+   * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + com.google.protobuf.ByteString getKeywordSearchableJobCustomAttributesBytes(int index); + + /** + * + * + *
+   * Output only. Derived details about the company.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + boolean hasDerivedInfo(); + /** + * + * + *
+   * Output only. Derived details about the company.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + com.google.cloud.talent.v4beta1.Company.DerivedInfo getDerivedInfo(); + /** + * + * + *
+   * Output only. Derived details about the company.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + com.google.cloud.talent.v4beta1.Company.DerivedInfoOrBuilder getDerivedInfoOrBuilder(); + + /** + * + * + *
+   * Output only. Indicates whether a company is flagged to be suspended from
+   * public availability by the service when job content appears suspicious,
+   * abusive, or spammy.
+   * 
+ * + * bool suspended = 13; + */ + boolean getSuspended(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyResourceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyResourceProto.java new file mode 100644 index 000000000000..c5c25a655b90 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyResourceProto.java @@ -0,0 +1,101 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company.proto + +package com.google.cloud.talent.v4beta1; + +public final class CompanyResourceProto { + private CompanyResourceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Company_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Company_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Company_DerivedInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Company_DerivedInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/talent/v4beta1/company.pr" + + "oto\022\033google.cloud.talent.v4beta1\032\034google" + + "/api/annotations.proto\032(google/cloud/tal" + + "ent/v4beta1/common.proto\"\344\003\n\007Company\022\014\n\004" + + "name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\023\n\013exte" + + "rnal_id\030\003 \001(\t\0226\n\004size\030\004 \001(\0162(.google.clo" + + "ud.talent.v4beta1.CompanySize\022\034\n\024headqua" + + "rters_address\030\005 \001(\t\022\025\n\rhiring_agency\030\006 \001" + + "(\010\022\020\n\010eeo_text\030\007 \001(\t\022\023\n\013website_uri\030\010 \001(" + + "\t\022\027\n\017career_site_uri\030\t \001(\t\022\021\n\timage_uri\030" + + "\n \001(\t\0220\n(keyword_searchable_job_custom_a" + + "ttributes\030\013 \003(\t\022F\n\014derived_info\030\014 \001(\01320." + + "google.cloud.talent.v4beta1.Company.Deri" + + "vedInfo\022\021\n\tsuspended\030\r \001(\010\032S\n\013DerivedInf" + + "o\022D\n\025headquarters_location\030\001 \001(\0132%.googl" + + "e.cloud.talent.v4beta1.LocationB\202\001\n\037com." + + "google.cloud.talent.v4beta1B\024CompanyReso" + + "urceProtoP\001ZAgoogle.golang.org/genproto/" + + "googleapis/cloud/talent/v4beta1;talent\242\002" + + "\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_Company_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_Company_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Company_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "ExternalId", + "Size", + "HeadquartersAddress", + "HiringAgency", + "EeoText", + "WebsiteUri", + "CareerSiteUri", + "ImageUri", + "KeywordSearchableJobCustomAttributes", + "DerivedInfo", + "Suspended", + }); + internal_static_google_cloud_talent_v4beta1_Company_DerivedInfo_descriptor = + internal_static_google_cloud_talent_v4beta1_Company_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_talent_v4beta1_Company_DerivedInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Company_DerivedInfo_descriptor, + new java.lang.String[] { + "HeadquartersLocation", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceProto.java new file mode 100644 index 000000000000..4b042810a7d3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceProto.java @@ -0,0 +1,173 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +public final class CompanyServiceProto { + private CompanyServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CreateCompanyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CreateCompanyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_GetCompanyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_GetCompanyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_UpdateCompanyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_UpdateCompanyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_DeleteCompanyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_DeleteCompanyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ListCompaniesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ListCompaniesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ListCompaniesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ListCompaniesResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/talent/v4beta1/company_se" + + "rvice.proto\022\033google.cloud.talent.v4beta1" + + "\032\034google/api/annotations.proto\032(google/c" + + "loud/talent/v4beta1/common.proto\032)google" + + "/cloud/talent/v4beta1/company.proto\032\033goo" + + "gle/protobuf/empty.proto\032 google/protobu" + + "f/field_mask.proto\"]\n\024CreateCompanyReque" + + "st\022\016\n\006parent\030\001 \001(\t\0225\n\007company\030\002 \001(\0132$.go" + + "ogle.cloud.talent.v4beta1.Company\"!\n\021Get" + + "CompanyRequest\022\014\n\004name\030\001 \001(\t\"~\n\024UpdateCo" + + "mpanyRequest\0225\n\007company\030\001 \001(\0132$.google.c" + + "loud.talent.v4beta1.Company\022/\n\013update_ma" + + "sk\030\002 \001(\0132\032.google.protobuf.FieldMask\"$\n\024" + + "DeleteCompanyRequest\022\014\n\004name\030\001 \001(\t\"h\n\024Li" + + "stCompaniesRequest\022\016\n\006parent\030\001 \001(\t\022\022\n\npa" + + "ge_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\031\n\021req" + + "uire_open_jobs\030\004 \001(\010\"\252\001\n\025ListCompaniesRe" + + "sponse\0227\n\tcompanies\030\001 \003(\0132$.google.cloud" + + ".talent.v4beta1.Company\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\022?\n\010metadata\030\003 \001(\0132-.google.clou" + + "d.talent.v4beta1.ResponseMetadata2\237\006\n\016Co" + + "mpanyService\022\233\001\n\rCreateCompany\0221.google." + + "cloud.talent.v4beta1.CreateCompanyReques" + + "t\032$.google.cloud.talent.v4beta1.Company\"" + + "1\202\323\344\223\002+\"&/v4beta1/{parent=projects/*}/co" + + "mpanies:\001*\022\222\001\n\nGetCompany\022..google.cloud" + + ".talent.v4beta1.GetCompanyRequest\032$.goog" + + "le.cloud.talent.v4beta1.Company\".\202\323\344\223\002(\022" + + "&/v4beta1/{name=projects/*/companies/*}\022" + + "\243\001\n\rUpdateCompany\0221.google.cloud.talent." + + "v4beta1.UpdateCompanyRequest\032$.google.cl" + + "oud.talent.v4beta1.Company\"9\202\323\344\223\00232./v4b" + + "eta1/{company.name=projects/*/companies/" + + "*}:\001*\022\212\001\n\rDeleteCompany\0221.google.cloud.t" + + "alent.v4beta1.DeleteCompanyRequest\032\026.goo" + + "gle.protobuf.Empty\".\202\323\344\223\002(*&/v4beta1/{na" + + "me=projects/*/companies/*}\022\246\001\n\rListCompa" + + "nies\0221.google.cloud.talent.v4beta1.ListC" + + "ompaniesRequest\0322.google.cloud.talent.v4" + + "beta1.ListCompaniesResponse\".\202\323\344\223\002(\022&/v4" + + "beta1/{parent=projects/*}/companiesB\201\001\n\037" + + "com.google.cloud.talent.v4beta1B\023Company" + + "ServiceProtoP\001ZAgoogle.golang.org/genpro" + + "to/googleapis/cloud/talent/v4beta1;talen" + + "t\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CompanyResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_CreateCompanyRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_CreateCompanyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CreateCompanyRequest_descriptor, + new java.lang.String[] { + "Parent", "Company", + }); + internal_static_google_cloud_talent_v4beta1_GetCompanyRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_talent_v4beta1_GetCompanyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_GetCompanyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_talent_v4beta1_UpdateCompanyRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_talent_v4beta1_UpdateCompanyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_UpdateCompanyRequest_descriptor, + new java.lang.String[] { + "Company", "UpdateMask", + }); + internal_static_google_cloud_talent_v4beta1_DeleteCompanyRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_talent_v4beta1_DeleteCompanyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_DeleteCompanyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_talent_v4beta1_ListCompaniesRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_talent_v4beta1_ListCompaniesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ListCompaniesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", "RequireOpenJobs", + }); + internal_static_google_cloud_talent_v4beta1_ListCompaniesResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_talent_v4beta1_ListCompaniesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ListCompaniesResponse_descriptor, + new java.lang.String[] { + "Companies", "NextPageToken", "Metadata", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CompanyResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanySize.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanySize.java new file mode 100644 index 000000000000..1205523e13dd --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanySize.java @@ -0,0 +1,259 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * An enum that represents the size of the company.
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.CompanySize} + */ +public enum CompanySize implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value if the size isn't specified.
+   * 
+ * + * COMPANY_SIZE_UNSPECIFIED = 0; + */ + COMPANY_SIZE_UNSPECIFIED(0), + /** + * + * + *
+   * The company has less than 50 employees.
+   * 
+ * + * MINI = 1; + */ + MINI(1), + /** + * + * + *
+   * The company has between 50 and 99 employees.
+   * 
+ * + * SMALL = 2; + */ + SMALL(2), + /** + * + * + *
+   * The company has between 100 and 499 employees.
+   * 
+ * + * SMEDIUM = 3; + */ + SMEDIUM(3), + /** + * + * + *
+   * The company has between 500 and 999 employees.
+   * 
+ * + * MEDIUM = 4; + */ + MEDIUM(4), + /** + * + * + *
+   * The company has between 1,000 and 4,999 employees.
+   * 
+ * + * BIG = 5; + */ + BIG(5), + /** + * + * + *
+   * The company has between 5,000 and 9,999 employees.
+   * 
+ * + * BIGGER = 6; + */ + BIGGER(6), + /** + * + * + *
+   * The company has 10,000 or more employees.
+   * 
+ * + * GIANT = 7; + */ + GIANT(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value if the size isn't specified.
+   * 
+ * + * COMPANY_SIZE_UNSPECIFIED = 0; + */ + public static final int COMPANY_SIZE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * The company has less than 50 employees.
+   * 
+ * + * MINI = 1; + */ + public static final int MINI_VALUE = 1; + /** + * + * + *
+   * The company has between 50 and 99 employees.
+   * 
+ * + * SMALL = 2; + */ + public static final int SMALL_VALUE = 2; + /** + * + * + *
+   * The company has between 100 and 499 employees.
+   * 
+ * + * SMEDIUM = 3; + */ + public static final int SMEDIUM_VALUE = 3; + /** + * + * + *
+   * The company has between 500 and 999 employees.
+   * 
+ * + * MEDIUM = 4; + */ + public static final int MEDIUM_VALUE = 4; + /** + * + * + *
+   * The company has between 1,000 and 4,999 employees.
+   * 
+ * + * BIG = 5; + */ + public static final int BIG_VALUE = 5; + /** + * + * + *
+   * The company has between 5,000 and 9,999 employees.
+   * 
+ * + * BIGGER = 6; + */ + public static final int BIGGER_VALUE = 6; + /** + * + * + *
+   * The company has 10,000 or more employees.
+   * 
+ * + * GIANT = 7; + */ + public static final int GIANT_VALUE = 7; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static CompanySize valueOf(int value) { + return forNumber(value); + } + + public static CompanySize forNumber(int value) { + switch (value) { + case 0: + return COMPANY_SIZE_UNSPECIFIED; + case 1: + return MINI; + case 2: + return SMALL; + case 3: + return SMEDIUM; + case 4: + return MEDIUM; + case 5: + return BIG; + case 6: + return BIGGER; + case 7: + return GIANT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CompanySize findValueByNumber(int number) { + return CompanySize.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(0); + } + + private static final CompanySize[] VALUES = values(); + + public static CompanySize valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CompanySize(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.CompanySize) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationFilter.java new file mode 100644 index 000000000000..a4f53092842f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationFilter.java @@ -0,0 +1,1603 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Filter on job compensation type and amount.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompensationFilter} + */ +public final class CompensationFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CompensationFilter) + CompensationFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompensationFilter.newBuilder() to construct. + private CompensationFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompensationFilter() { + type_ = 0; + units_ = java.util.Collections.emptyList(); + includeJobsWithUnspecifiedCompensationRange_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CompensationFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 16: + { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + units_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + units_.add(rawValue); + break; + } + case 18: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + units_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + units_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 26: + { + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + subBuilder = null; + if (range_ != null) { + subBuilder = range_.toBuilder(); + } + range_ = + input.readMessage( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(range_); + range_ = subBuilder.buildPartial(); + } + + break; + } + case 32: + { + includeJobsWithUnspecifiedCompensationRange_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + units_ = java.util.Collections.unmodifiableList(units_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_CompensationFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_CompensationFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompensationFilter.class, + com.google.cloud.talent.v4beta1.CompensationFilter.Builder.class); + } + + /** + * + * + *
+   * Specify the type of filtering.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.CompensationFilter.FilterType} + */ + public enum FilterType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Filter type unspecified. Position holder, INVALID, should never be used.
+     * 
+ * + * FILTER_TYPE_UNSPECIFIED = 0; + */ + FILTER_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Filter by `base compensation entry's` unit. A job is a match if and
+     * only if the job contains a base CompensationEntry and the base
+     * CompensationEntry's unit matches provided
+     * [units][google.cloud.talent.v4beta1.CompensationFilter.units]. Populate
+     * one or more
+     * [units][google.cloud.talent.v4beta1.CompensationFilter.units].
+     * See
+     * [CompensationInfo.CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for definition of base compensation entry.
+     * 
+ * + * UNIT_ONLY = 1; + */ + UNIT_ONLY(1), + /** + * + * + *
+     * Filter by `base compensation entry's` unit and amount / range. A job
+     * is a match if and only if the job contains a base CompensationEntry, and
+     * the base entry's unit matches provided [compensation_units][] and amount
+     * or range overlaps with provided [compensation_range][].
+     * See
+     * [CompensationInfo.CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for definition of base compensation entry.
+     * Set exactly one
+     * [units][google.cloud.talent.v4beta1.CompensationFilter.units] and
+     * populate [range][google.cloud.talent.v4beta1.CompensationFilter.range].
+     * 
+ * + * UNIT_AND_AMOUNT = 2; + */ + UNIT_AND_AMOUNT(2), + /** + * + * + *
+     * Filter by annualized base compensation amount and `base compensation
+     * entry's` unit. Populate
+     * [range][google.cloud.talent.v4beta1.CompensationFilter.range] and zero or
+     * more [units][google.cloud.talent.v4beta1.CompensationFilter.units].
+     * 
+ * + * ANNUALIZED_BASE_AMOUNT = 3; + */ + ANNUALIZED_BASE_AMOUNT(3), + /** + * + * + *
+     * Filter by annualized total compensation amount and `base compensation
+     * entry's` unit . Populate
+     * [range][google.cloud.talent.v4beta1.CompensationFilter.range] and zero or
+     * more [units][google.cloud.talent.v4beta1.CompensationFilter.units].
+     * 
+ * + * ANNUALIZED_TOTAL_AMOUNT = 4; + */ + ANNUALIZED_TOTAL_AMOUNT(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Filter type unspecified. Position holder, INVALID, should never be used.
+     * 
+ * + * FILTER_TYPE_UNSPECIFIED = 0; + */ + public static final int FILTER_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Filter by `base compensation entry's` unit. A job is a match if and
+     * only if the job contains a base CompensationEntry and the base
+     * CompensationEntry's unit matches provided
+     * [units][google.cloud.talent.v4beta1.CompensationFilter.units]. Populate
+     * one or more
+     * [units][google.cloud.talent.v4beta1.CompensationFilter.units].
+     * See
+     * [CompensationInfo.CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for definition of base compensation entry.
+     * 
+ * + * UNIT_ONLY = 1; + */ + public static final int UNIT_ONLY_VALUE = 1; + /** + * + * + *
+     * Filter by `base compensation entry's` unit and amount / range. A job
+     * is a match if and only if the job contains a base CompensationEntry, and
+     * the base entry's unit matches provided [compensation_units][] and amount
+     * or range overlaps with provided [compensation_range][].
+     * See
+     * [CompensationInfo.CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for definition of base compensation entry.
+     * Set exactly one
+     * [units][google.cloud.talent.v4beta1.CompensationFilter.units] and
+     * populate [range][google.cloud.talent.v4beta1.CompensationFilter.range].
+     * 
+ * + * UNIT_AND_AMOUNT = 2; + */ + public static final int UNIT_AND_AMOUNT_VALUE = 2; + /** + * + * + *
+     * Filter by annualized base compensation amount and `base compensation
+     * entry's` unit. Populate
+     * [range][google.cloud.talent.v4beta1.CompensationFilter.range] and zero or
+     * more [units][google.cloud.talent.v4beta1.CompensationFilter.units].
+     * 
+ * + * ANNUALIZED_BASE_AMOUNT = 3; + */ + public static final int ANNUALIZED_BASE_AMOUNT_VALUE = 3; + /** + * + * + *
+     * Filter by annualized total compensation amount and `base compensation
+     * entry's` unit . Populate
+     * [range][google.cloud.talent.v4beta1.CompensationFilter.range] and zero or
+     * more [units][google.cloud.talent.v4beta1.CompensationFilter.units].
+     * 
+ * + * ANNUALIZED_TOTAL_AMOUNT = 4; + */ + public static final int ANNUALIZED_TOTAL_AMOUNT_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static FilterType valueOf(int value) { + return forNumber(value); + } + + public static FilterType forNumber(int value) { + switch (value) { + case 0: + return FILTER_TYPE_UNSPECIFIED; + case 1: + return UNIT_ONLY; + case 2: + return UNIT_AND_AMOUNT; + case 3: + return ANNUALIZED_BASE_AMOUNT; + case 4: + return ANNUALIZED_TOTAL_AMOUNT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FilterType findValueByNumber(int number) { + return FilterType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompensationFilter.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final FilterType[] VALUES = values(); + + public static FilterType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private FilterType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.CompensationFilter.FilterType) + } + + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + * + * + *
+   * Required.
+   * Type of filter.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter.FilterType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Required.
+   * Type of filter.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter.FilterType type = 1; + */ + public com.google.cloud.talent.v4beta1.CompensationFilter.FilterType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompensationFilter.FilterType result = + com.google.cloud.talent.v4beta1.CompensationFilter.FilterType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.CompensationFilter.FilterType.UNRECOGNIZED + : result; + } + + public static final int UNITS_FIELD_NUMBER = 2; + private java.util.List units_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit> + units_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit>() { + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit convert( + java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit result = + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.valueOf(from); + return result == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Required.
+   * Specify desired `base compensation entry's`
+   * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + */ + public java.util.List + getUnitsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit>( + units_, units_converter_); + } + /** + * + * + *
+   * Required.
+   * Specify desired `base compensation entry's`
+   * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + */ + public int getUnitsCount() { + return units_.size(); + } + /** + * + * + *
+   * Required.
+   * Specify desired `base compensation entry's`
+   * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit getUnits(int index) { + return units_converter_.convert(units_.get(index)); + } + /** + * + * + *
+   * Required.
+   * Specify desired `base compensation entry's`
+   * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + */ + public java.util.List getUnitsValueList() { + return units_; + } + /** + * + * + *
+   * Required.
+   * Specify desired `base compensation entry's`
+   * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + */ + public int getUnitsValue(int index) { + return units_.get(index); + } + + private int unitsMemoizedSerializedSize; + + public static final int RANGE_FIELD_NUMBER = 3; + private com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range_; + /** + * + * + *
+   * Optional.
+   * Compensation range.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + public boolean hasRange() { + return range_ != null; + } + /** + * + * + *
+   * Optional.
+   * Compensation range.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange getRange() { + return range_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.getDefaultInstance() + : range_; + } + /** + * + * + *
+   * Optional.
+   * Compensation range.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder + getRangeOrBuilder() { + return getRange(); + } + + public static final int INCLUDE_JOBS_WITH_UNSPECIFIED_COMPENSATION_RANGE_FIELD_NUMBER = 4; + private boolean includeJobsWithUnspecifiedCompensationRange_; + /** + * + * + *
+   * Optional.
+   * Whether to include jobs whose compensation range is unspecified.
+   * 
+ * + * bool include_jobs_with_unspecified_compensation_range = 4; + */ + public boolean getIncludeJobsWithUnspecifiedCompensationRange() { + return includeJobsWithUnspecifiedCompensationRange_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (type_ + != com.google.cloud.talent.v4beta1.CompensationFilter.FilterType.FILTER_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, type_); + } + if (getUnitsList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(unitsMemoizedSerializedSize); + } + for (int i = 0; i < units_.size(); i++) { + output.writeEnumNoTag(units_.get(i)); + } + if (range_ != null) { + output.writeMessage(3, getRange()); + } + if (includeJobsWithUnspecifiedCompensationRange_ != false) { + output.writeBool(4, includeJobsWithUnspecifiedCompensationRange_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ + != com.google.cloud.talent.v4beta1.CompensationFilter.FilterType.FILTER_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + { + int dataSize = 0; + for (int i = 0; i < units_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(units_.get(i)); + } + size += dataSize; + if (!getUnitsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + unitsMemoizedSerializedSize = dataSize; + } + if (range_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRange()); + } + if (includeJobsWithUnspecifiedCompensationRange_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 4, includeJobsWithUnspecifiedCompensationRange_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.CompensationFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CompensationFilter other = + (com.google.cloud.talent.v4beta1.CompensationFilter) obj; + + boolean result = true; + result = result && type_ == other.type_; + result = result && units_.equals(other.units_); + result = result && (hasRange() == other.hasRange()); + if (hasRange()) { + result = result && getRange().equals(other.getRange()); + } + result = + result + && (getIncludeJobsWithUnspecifiedCompensationRange() + == other.getIncludeJobsWithUnspecifiedCompensationRange()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (getUnitsCount() > 0) { + hash = (37 * hash) + UNITS_FIELD_NUMBER; + hash = (53 * hash) + units_.hashCode(); + } + if (hasRange()) { + hash = (37 * hash) + RANGE_FIELD_NUMBER; + hash = (53 * hash) + getRange().hashCode(); + } + hash = (37 * hash) + INCLUDE_JOBS_WITH_UNSPECIFIED_COMPENSATION_RANGE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean( + getIncludeJobsWithUnspecifiedCompensationRange()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.CompensationFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Filter on job compensation type and amount.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompensationFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CompensationFilter) + com.google.cloud.talent.v4beta1.CompensationFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_CompensationFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_CompensationFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompensationFilter.class, + com.google.cloud.talent.v4beta1.CompensationFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.CompensationFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = 0; + + units_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + if (rangeBuilder_ == null) { + range_ = null; + } else { + range_ = null; + rangeBuilder_ = null; + } + includeJobsWithUnspecifiedCompensationRange_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_CompensationFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CompensationFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationFilter build() { + com.google.cloud.talent.v4beta1.CompensationFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationFilter buildPartial() { + com.google.cloud.talent.v4beta1.CompensationFilter result = + new com.google.cloud.talent.v4beta1.CompensationFilter(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.type_ = type_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + units_ = java.util.Collections.unmodifiableList(units_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.units_ = units_; + if (rangeBuilder_ == null) { + result.range_ = range_; + } else { + result.range_ = rangeBuilder_.build(); + } + result.includeJobsWithUnspecifiedCompensationRange_ = + includeJobsWithUnspecifiedCompensationRange_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CompensationFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.CompensationFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.CompensationFilter other) { + if (other == com.google.cloud.talent.v4beta1.CompensationFilter.getDefaultInstance()) + return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.units_.isEmpty()) { + if (units_.isEmpty()) { + units_ = other.units_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnitsIsMutable(); + units_.addAll(other.units_); + } + onChanged(); + } + if (other.hasRange()) { + mergeRange(other.getRange()); + } + if (other.getIncludeJobsWithUnspecifiedCompensationRange() != false) { + setIncludeJobsWithUnspecifiedCompensationRange( + other.getIncludeJobsWithUnspecifiedCompensationRange()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.CompensationFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.CompensationFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int type_ = 0; + /** + * + * + *
+     * Required.
+     * Type of filter.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter.FilterType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Required.
+     * Type of filter.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter.FilterType type = 1; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Type of filter.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter.FilterType type = 1; + */ + public com.google.cloud.talent.v4beta1.CompensationFilter.FilterType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompensationFilter.FilterType result = + com.google.cloud.talent.v4beta1.CompensationFilter.FilterType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.CompensationFilter.FilterType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required.
+     * Type of filter.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter.FilterType type = 1; + */ + public Builder setType(com.google.cloud.talent.v4beta1.CompensationFilter.FilterType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Type of filter.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter.FilterType type = 1; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private java.util.List units_ = java.util.Collections.emptyList(); + + private void ensureUnitsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + units_ = new java.util.ArrayList(units_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public java.util.List + getUnitsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit>( + units_, units_converter_); + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public int getUnitsCount() { + return units_.size(); + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit getUnits(int index) { + return units_converter_.convert(units_.get(index)); + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public Builder setUnits( + int index, com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnitsIsMutable(); + units_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public Builder addUnits( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnitsIsMutable(); + units_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public Builder addAllUnits( + java.lang.Iterable< + ? extends com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit> + values) { + ensureUnitsIsMutable(); + for (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit value : values) { + units_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public Builder clearUnits() { + units_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public java.util.List getUnitsValueList() { + return java.util.Collections.unmodifiableList(units_); + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public int getUnitsValue(int index) { + return units_.get(index); + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public Builder setUnitsValue(int index, int value) { + ensureUnitsIsMutable(); + units_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public Builder addUnitsValue(int value) { + ensureUnitsIsMutable(); + units_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public Builder addAllUnitsValue(java.lang.Iterable values) { + ensureUnitsIsMutable(); + for (int value : values) { + units_.add(value); + } + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder> + rangeBuilder_; + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + public boolean hasRange() { + return rangeBuilder_ != null || range_ != null; + } + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange getRange() { + if (rangeBuilder_ == null) { + return range_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance() + : range_; + } else { + return rangeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + public Builder setRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) { + if (rangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + range_ = value; + onChanged(); + } else { + rangeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + public Builder setRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + builderForValue) { + if (rangeBuilder_ == null) { + range_ = builderForValue.build(); + onChanged(); + } else { + rangeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + public Builder mergeRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) { + if (rangeBuilder_ == null) { + if (range_ != null) { + range_ = + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.newBuilder(range_) + .mergeFrom(value) + .buildPartial(); + } else { + range_ = value; + } + onChanged(); + } else { + rangeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + public Builder clearRange() { + if (rangeBuilder_ == null) { + range_ = null; + onChanged(); + } else { + range_ = null; + rangeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + getRangeBuilder() { + + onChanged(); + return getRangeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder + getRangeOrBuilder() { + if (rangeBuilder_ != null) { + return rangeBuilder_.getMessageOrBuilder(); + } else { + return range_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance() + : range_; + } + } + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder> + getRangeFieldBuilder() { + if (rangeBuilder_ == null) { + rangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder>( + getRange(), getParentForChildren(), isClean()); + range_ = null; + } + return rangeBuilder_; + } + + private boolean includeJobsWithUnspecifiedCompensationRange_; + /** + * + * + *
+     * Optional.
+     * Whether to include jobs whose compensation range is unspecified.
+     * 
+ * + * bool include_jobs_with_unspecified_compensation_range = 4; + */ + public boolean getIncludeJobsWithUnspecifiedCompensationRange() { + return includeJobsWithUnspecifiedCompensationRange_; + } + /** + * + * + *
+     * Optional.
+     * Whether to include jobs whose compensation range is unspecified.
+     * 
+ * + * bool include_jobs_with_unspecified_compensation_range = 4; + */ + public Builder setIncludeJobsWithUnspecifiedCompensationRange(boolean value) { + + includeJobsWithUnspecifiedCompensationRange_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Whether to include jobs whose compensation range is unspecified.
+     * 
+ * + * bool include_jobs_with_unspecified_compensation_range = 4; + */ + public Builder clearIncludeJobsWithUnspecifiedCompensationRange() { + + includeJobsWithUnspecifiedCompensationRange_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CompensationFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompensationFilter) + private static final com.google.cloud.talent.v4beta1.CompensationFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CompensationFilter(); + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompensationFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompensationFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationFilterOrBuilder.java new file mode 100644 index 000000000000..1671e6012df1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationFilterOrBuilder.java @@ -0,0 +1,140 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface CompensationFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CompensationFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * Type of filter.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter.FilterType type = 1; + */ + int getTypeValue(); + /** + * + * + *
+   * Required.
+   * Type of filter.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter.FilterType type = 1; + */ + com.google.cloud.talent.v4beta1.CompensationFilter.FilterType getType(); + + /** + * + * + *
+   * Required.
+   * Specify desired `base compensation entry's`
+   * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + */ + java.util.List getUnitsList(); + /** + * + * + *
+   * Required.
+   * Specify desired `base compensation entry's`
+   * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + */ + int getUnitsCount(); + /** + * + * + *
+   * Required.
+   * Specify desired `base compensation entry's`
+   * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit getUnits(int index); + /** + * + * + *
+   * Required.
+   * Specify desired `base compensation entry's`
+   * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + */ + java.util.List getUnitsValueList(); + /** + * + * + *
+   * Required.
+   * Specify desired `base compensation entry's`
+   * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + */ + int getUnitsValue(int index); + + /** + * + * + *
+   * Optional.
+   * Compensation range.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + boolean hasRange(); + /** + * + * + *
+   * Optional.
+   * Compensation range.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange getRange(); + /** + * + * + *
+   * Optional.
+   * Compensation range.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder getRangeOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Whether to include jobs whose compensation range is unspecified.
+   * 
+ * + * bool include_jobs_with_unspecified_compensation_range = 4; + */ + boolean getIncludeJobsWithUnspecifiedCompensationRange(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationInfo.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationInfo.java new file mode 100644 index 000000000000..2882f322f519 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationInfo.java @@ -0,0 +1,5809 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Job compensation details.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompensationInfo} + */ +public final class CompensationInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CompensationInfo) + CompensationInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompensationInfo.newBuilder() to construct. + private CompensationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompensationInfo() { + entries_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CompensationInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + entries_ = + new java.util.ArrayList< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry>(); + mutable_bitField0_ |= 0x00000001; + } + entries_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.parser(), + extensionRegistry)); + break; + } + case 18: + { + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + subBuilder = null; + if (annualizedBaseCompensationRange_ != null) { + subBuilder = annualizedBaseCompensationRange_.toBuilder(); + } + annualizedBaseCompensationRange_ = + input.readMessage( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annualizedBaseCompensationRange_); + annualizedBaseCompensationRange_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + subBuilder = null; + if (annualizedTotalCompensationRange_ != null) { + subBuilder = annualizedTotalCompensationRange_.toBuilder(); + } + annualizedTotalCompensationRange_ = + input.readMessage( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annualizedTotalCompensationRange_); + annualizedTotalCompensationRange_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + entries_ = java.util.Collections.unmodifiableList(entries_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompensationInfo.class, + com.google.cloud.talent.v4beta1.CompensationInfo.Builder.class); + } + + /** + * + * + *
+   * The type of compensation.
+   * For compensation amounts specified in non-monetary amounts,
+   * describe the compensation scheme in the
+   * [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description].
+   * For example, tipping format is described in
+   * [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description]
+   * (for example, "expect 15-20% tips based on customer bill.") and an estimate
+   * of the tips provided in
+   * [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
+   * or
+   * [CompensationEntry.range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range]
+   * ($10 per hour).
+   * For example, equity is described in
+   * [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description]
+   * (for example, "1% - 2% equity vesting over 4 years, 1 year cliff") and
+   * value estimated in
+   * [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
+   * or
+   * [CompensationEntry.range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range].
+   * If no value estimate is possible, units are
+   * [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED]
+   * and then further clarified in
+   * [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description]
+   * field.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.CompensationInfo.CompensationType} + */ + public enum CompensationType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * COMPENSATION_TYPE_UNSPECIFIED = 0; + */ + COMPENSATION_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Base compensation: Refers to the fixed amount of money paid to an
+     * employee by an employer in return for work performed. Base compensation
+     * does not include benefits, bonuses or any other potential compensation
+     * from an employer.
+     * 
+ * + * BASE = 1; + */ + BASE(1), + /** + * + * + *
+     * Bonus.
+     * 
+ * + * BONUS = 2; + */ + BONUS(2), + /** + * + * + *
+     * Signing bonus.
+     * 
+ * + * SIGNING_BONUS = 3; + */ + SIGNING_BONUS(3), + /** + * + * + *
+     * Equity.
+     * 
+ * + * EQUITY = 4; + */ + EQUITY(4), + /** + * + * + *
+     * Profit sharing.
+     * 
+ * + * PROFIT_SHARING = 5; + */ + PROFIT_SHARING(5), + /** + * + * + *
+     * Commission.
+     * 
+ * + * COMMISSIONS = 6; + */ + COMMISSIONS(6), + /** + * + * + *
+     * Tips.
+     * 
+ * + * TIPS = 7; + */ + TIPS(7), + /** + * + * + *
+     * Other compensation type.
+     * 
+ * + * OTHER_COMPENSATION_TYPE = 8; + */ + OTHER_COMPENSATION_TYPE(8), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * COMPENSATION_TYPE_UNSPECIFIED = 0; + */ + public static final int COMPENSATION_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Base compensation: Refers to the fixed amount of money paid to an
+     * employee by an employer in return for work performed. Base compensation
+     * does not include benefits, bonuses or any other potential compensation
+     * from an employer.
+     * 
+ * + * BASE = 1; + */ + public static final int BASE_VALUE = 1; + /** + * + * + *
+     * Bonus.
+     * 
+ * + * BONUS = 2; + */ + public static final int BONUS_VALUE = 2; + /** + * + * + *
+     * Signing bonus.
+     * 
+ * + * SIGNING_BONUS = 3; + */ + public static final int SIGNING_BONUS_VALUE = 3; + /** + * + * + *
+     * Equity.
+     * 
+ * + * EQUITY = 4; + */ + public static final int EQUITY_VALUE = 4; + /** + * + * + *
+     * Profit sharing.
+     * 
+ * + * PROFIT_SHARING = 5; + */ + public static final int PROFIT_SHARING_VALUE = 5; + /** + * + * + *
+     * Commission.
+     * 
+ * + * COMMISSIONS = 6; + */ + public static final int COMMISSIONS_VALUE = 6; + /** + * + * + *
+     * Tips.
+     * 
+ * + * TIPS = 7; + */ + public static final int TIPS_VALUE = 7; + /** + * + * + *
+     * Other compensation type.
+     * 
+ * + * OTHER_COMPENSATION_TYPE = 8; + */ + public static final int OTHER_COMPENSATION_TYPE_VALUE = 8; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static CompensationType valueOf(int value) { + return forNumber(value); + } + + public static CompensationType forNumber(int value) { + switch (value) { + case 0: + return COMPENSATION_TYPE_UNSPECIFIED; + case 1: + return BASE; + case 2: + return BONUS; + case 3: + return SIGNING_BONUS; + case 4: + return EQUITY; + case 5: + return PROFIT_SHARING; + case 6: + return COMMISSIONS; + case 7: + return TIPS; + case 8: + return OTHER_COMPENSATION_TYPE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CompensationType findValueByNumber(int number) { + return CompensationType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompensationInfo.getDescriptor().getEnumTypes().get(0); + } + + private static final CompensationType[] VALUES = values(); + + public static CompensationType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CompensationType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.CompensationInfo.CompensationType) + } + + /** + * + * + *
+   * Pay frequency.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit} + */ + public enum CompensationUnit implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * COMPENSATION_UNIT_UNSPECIFIED = 0; + */ + COMPENSATION_UNIT_UNSPECIFIED(0), + /** + * + * + *
+     * Hourly.
+     * 
+ * + * HOURLY = 1; + */ + HOURLY(1), + /** + * + * + *
+     * Daily.
+     * 
+ * + * DAILY = 2; + */ + DAILY(2), + /** + * + * + *
+     * Weekly
+     * 
+ * + * WEEKLY = 3; + */ + WEEKLY(3), + /** + * + * + *
+     * Monthly.
+     * 
+ * + * MONTHLY = 4; + */ + MONTHLY(4), + /** + * + * + *
+     * Yearly.
+     * 
+ * + * YEARLY = 5; + */ + YEARLY(5), + /** + * + * + *
+     * One time.
+     * 
+ * + * ONE_TIME = 6; + */ + ONE_TIME(6), + /** + * + * + *
+     * Other compensation units.
+     * 
+ * + * OTHER_COMPENSATION_UNIT = 7; + */ + OTHER_COMPENSATION_UNIT(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * COMPENSATION_UNIT_UNSPECIFIED = 0; + */ + public static final int COMPENSATION_UNIT_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Hourly.
+     * 
+ * + * HOURLY = 1; + */ + public static final int HOURLY_VALUE = 1; + /** + * + * + *
+     * Daily.
+     * 
+ * + * DAILY = 2; + */ + public static final int DAILY_VALUE = 2; + /** + * + * + *
+     * Weekly
+     * 
+ * + * WEEKLY = 3; + */ + public static final int WEEKLY_VALUE = 3; + /** + * + * + *
+     * Monthly.
+     * 
+ * + * MONTHLY = 4; + */ + public static final int MONTHLY_VALUE = 4; + /** + * + * + *
+     * Yearly.
+     * 
+ * + * YEARLY = 5; + */ + public static final int YEARLY_VALUE = 5; + /** + * + * + *
+     * One time.
+     * 
+ * + * ONE_TIME = 6; + */ + public static final int ONE_TIME_VALUE = 6; + /** + * + * + *
+     * Other compensation units.
+     * 
+ * + * OTHER_COMPENSATION_UNIT = 7; + */ + public static final int OTHER_COMPENSATION_UNIT_VALUE = 7; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static CompensationUnit valueOf(int value) { + return forNumber(value); + } + + public static CompensationUnit forNumber(int value) { + switch (value) { + case 0: + return COMPENSATION_UNIT_UNSPECIFIED; + case 1: + return HOURLY; + case 2: + return DAILY; + case 3: + return WEEKLY; + case 4: + return MONTHLY; + case 5: + return YEARLY; + case 6: + return ONE_TIME; + case 7: + return OTHER_COMPENSATION_UNIT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CompensationUnit findValueByNumber(int number) { + return CompensationUnit.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompensationInfo.getDescriptor().getEnumTypes().get(1); + } + + private static final CompensationUnit[] VALUES = values(); + + public static CompensationUnit valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CompensationUnit(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit) + } + + public interface CompensationEntryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional.
+     * Compensation type.
+     * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1; + */ + int getTypeValue(); + /** + * + * + *
+     * Optional.
+     * Compensation type.
+     * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1; + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType getType(); + + /** + * + * + *
+     * Optional.
+     * Frequency of the specified amount.
+     * Default is
+     * [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2; + */ + int getUnitValue(); + /** + * + * + *
+     * Optional.
+     * Frequency of the specified amount.
+     * Default is
+     * [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2; + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit getUnit(); + + /** + * + * + *
+     * Optional.
+     * Compensation amount.
+     * 
+ * + * .google.type.Money amount = 3; + */ + boolean hasAmount(); + /** + * + * + *
+     * Optional.
+     * Compensation amount.
+     * 
+ * + * .google.type.Money amount = 3; + */ + com.google.type.Money getAmount(); + /** + * + * + *
+     * Optional.
+     * Compensation amount.
+     * 
+ * + * .google.type.Money amount = 3; + */ + com.google.type.MoneyOrBuilder getAmountOrBuilder(); + + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + boolean hasRange(); + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange getRange(); + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder getRangeOrBuilder(); + + /** + * + * + *
+     * Optional.
+     * Compensation description.  For example, could
+     * indicate equity terms or provide additional context to an estimated
+     * bonus.
+     * 
+ * + * string description = 5; + */ + java.lang.String getDescription(); + /** + * + * + *
+     * Optional.
+     * Compensation description.  For example, could
+     * indicate equity terms or provide additional context to an estimated
+     * bonus.
+     * 
+ * + * string description = 5; + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+     * Optional.
+     * Expected number of units paid each year. If not specified, when
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+     * is FULLTIME, a default value is inferred based on
+     * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+     * Default values:
+     * - HOURLY: 2080
+     * - DAILY: 260
+     * - WEEKLY: 52
+     * - MONTHLY: 12
+     * - ANNUAL: 1
+     * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + boolean hasExpectedUnitsPerYear(); + /** + * + * + *
+     * Optional.
+     * Expected number of units paid each year. If not specified, when
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+     * is FULLTIME, a default value is inferred based on
+     * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+     * Default values:
+     * - HOURLY: 2080
+     * - DAILY: 260
+     * - WEEKLY: 52
+     * - MONTHLY: 12
+     * - ANNUAL: 1
+     * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + com.google.protobuf.DoubleValue getExpectedUnitsPerYear(); + /** + * + * + *
+     * Optional.
+     * Expected number of units paid each year. If not specified, when
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+     * is FULLTIME, a default value is inferred based on
+     * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+     * Default values:
+     * - HOURLY: 2080
+     * - DAILY: 260
+     * - WEEKLY: 52
+     * - MONTHLY: 12
+     * - ANNUAL: 1
+     * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + com.google.protobuf.DoubleValueOrBuilder getExpectedUnitsPerYearOrBuilder(); + + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.CompensationAmountCase + getCompensationAmountCase(); + } + /** + * + * + *
+   * A compensation entry that represents one component of compensation, such
+   * as base pay, bonus, or other compensation type.
+   * Annualization: One compensation entry can be annualized if
+   * - it contains valid
+   * [amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
+   * or
+   * [range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range].
+   * - and its
+   * [expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year]
+   * is set or can be derived. Its annualized range is determined as
+   * ([amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
+   * or
+   * [range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range])
+   * times
+   * [expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry} + */ + public static final class CompensationEntry extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry) + CompensationEntryOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompensationEntry.newBuilder() to construct. + private CompensationEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompensationEntry() { + type_ = 0; + unit_ = 0; + description_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CompensationEntry( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + unit_ = rawValue; + break; + } + case 26: + { + com.google.type.Money.Builder subBuilder = null; + if (compensationAmountCase_ == 3) { + subBuilder = ((com.google.type.Money) compensationAmount_).toBuilder(); + } + compensationAmount_ = + input.readMessage(com.google.type.Money.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.type.Money) compensationAmount_); + compensationAmount_ = subBuilder.buildPartial(); + } + compensationAmountCase_ = 3; + break; + } + case 34: + { + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + subBuilder = null; + if (compensationAmountCase_ == 4) { + subBuilder = + ((com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + compensationAmount_) + .toBuilder(); + } + compensationAmount_ = + input.readMessage( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + compensationAmount_); + compensationAmount_ = subBuilder.buildPartial(); + } + compensationAmountCase_ = 4; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 50: + { + com.google.protobuf.DoubleValue.Builder subBuilder = null; + if (expectedUnitsPerYear_ != null) { + subBuilder = expectedUnitsPerYear_.toBuilder(); + } + expectedUnitsPerYear_ = + input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expectedUnitsPerYear_); + expectedUnitsPerYear_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.class, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder.class); + } + + private int compensationAmountCase_ = 0; + private java.lang.Object compensationAmount_; + + public enum CompensationAmountCase implements com.google.protobuf.Internal.EnumLite { + AMOUNT(3), + RANGE(4), + COMPENSATIONAMOUNT_NOT_SET(0); + private final int value; + + private CompensationAmountCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static CompensationAmountCase valueOf(int value) { + return forNumber(value); + } + + public static CompensationAmountCase forNumber(int value) { + switch (value) { + case 3: + return AMOUNT; + case 4: + return RANGE; + case 0: + return COMPENSATIONAMOUNT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public CompensationAmountCase getCompensationAmountCase() { + return CompensationAmountCase.forNumber(compensationAmountCase_); + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + * + * + *
+     * Optional.
+     * Compensation type.
+     * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Optional.
+     * Compensation type.
+     * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType result = + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType.UNRECOGNIZED + : result; + } + + public static final int UNIT_FIELD_NUMBER = 2; + private int unit_; + /** + * + * + *
+     * Optional.
+     * Frequency of the specified amount.
+     * Default is
+     * [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2; + */ + public int getUnitValue() { + return unit_; + } + /** + * + * + *
+     * Optional.
+     * Frequency of the specified amount.
+     * Default is
+     * [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit getUnit() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit result = + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.valueOf(unit_); + return result == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.UNRECOGNIZED + : result; + } + + public static final int AMOUNT_FIELD_NUMBER = 3; + /** + * + * + *
+     * Optional.
+     * Compensation amount.
+     * 
+ * + * .google.type.Money amount = 3; + */ + public boolean hasAmount() { + return compensationAmountCase_ == 3; + } + /** + * + * + *
+     * Optional.
+     * Compensation amount.
+     * 
+ * + * .google.type.Money amount = 3; + */ + public com.google.type.Money getAmount() { + if (compensationAmountCase_ == 3) { + return (com.google.type.Money) compensationAmount_; + } + return com.google.type.Money.getDefaultInstance(); + } + /** + * + * + *
+     * Optional.
+     * Compensation amount.
+     * 
+ * + * .google.type.Money amount = 3; + */ + public com.google.type.MoneyOrBuilder getAmountOrBuilder() { + if (compensationAmountCase_ == 3) { + return (com.google.type.Money) compensationAmount_; + } + return com.google.type.Money.getDefaultInstance(); + } + + public static final int RANGE_FIELD_NUMBER = 4; + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + public boolean hasRange() { + return compensationAmountCase_ == 4; + } + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange getRange() { + if (compensationAmountCase_ == 4) { + return (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + compensationAmount_; + } + return com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance(); + } + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder + getRangeOrBuilder() { + if (compensationAmountCase_ == 4) { + return (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + compensationAmount_; + } + return com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance(); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 5; + private volatile java.lang.Object description_; + /** + * + * + *
+     * Optional.
+     * Compensation description.  For example, could
+     * indicate equity terms or provide additional context to an estimated
+     * bonus.
+     * 
+ * + * string description = 5; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+     * Optional.
+     * Compensation description.  For example, could
+     * indicate equity terms or provide additional context to an estimated
+     * bonus.
+     * 
+ * + * string description = 5; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPECTED_UNITS_PER_YEAR_FIELD_NUMBER = 6; + private com.google.protobuf.DoubleValue expectedUnitsPerYear_; + /** + * + * + *
+     * Optional.
+     * Expected number of units paid each year. If not specified, when
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+     * is FULLTIME, a default value is inferred based on
+     * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+     * Default values:
+     * - HOURLY: 2080
+     * - DAILY: 260
+     * - WEEKLY: 52
+     * - MONTHLY: 12
+     * - ANNUAL: 1
+     * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + public boolean hasExpectedUnitsPerYear() { + return expectedUnitsPerYear_ != null; + } + /** + * + * + *
+     * Optional.
+     * Expected number of units paid each year. If not specified, when
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+     * is FULLTIME, a default value is inferred based on
+     * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+     * Default values:
+     * - HOURLY: 2080
+     * - DAILY: 260
+     * - WEEKLY: 52
+     * - MONTHLY: 12
+     * - ANNUAL: 1
+     * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + public com.google.protobuf.DoubleValue getExpectedUnitsPerYear() { + return expectedUnitsPerYear_ == null + ? com.google.protobuf.DoubleValue.getDefaultInstance() + : expectedUnitsPerYear_; + } + /** + * + * + *
+     * Optional.
+     * Expected number of units paid each year. If not specified, when
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+     * is FULLTIME, a default value is inferred based on
+     * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+     * Default values:
+     * - HOURLY: 2080
+     * - DAILY: 260
+     * - WEEKLY: 52
+     * - MONTHLY: 12
+     * - ANNUAL: 1
+     * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + public com.google.protobuf.DoubleValueOrBuilder getExpectedUnitsPerYearOrBuilder() { + return getExpectedUnitsPerYear(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (type_ + != com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType + .COMPENSATION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, type_); + } + if (unit_ + != com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit + .COMPENSATION_UNIT_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, unit_); + } + if (compensationAmountCase_ == 3) { + output.writeMessage(3, (com.google.type.Money) compensationAmount_); + } + if (compensationAmountCase_ == 4) { + output.writeMessage( + 4, + (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + compensationAmount_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); + } + if (expectedUnitsPerYear_ != null) { + output.writeMessage(6, getExpectedUnitsPerYear()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ + != com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType + .COMPENSATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + if (unit_ + != com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit + .COMPENSATION_UNIT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, unit_); + } + if (compensationAmountCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.type.Money) compensationAmount_); + } + if (compensationAmountCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + compensationAmount_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); + } + if (expectedUnitsPerYear_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, getExpectedUnitsPerYear()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry other = + (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry) obj; + + boolean result = true; + result = result && type_ == other.type_; + result = result && unit_ == other.unit_; + result = result && getDescription().equals(other.getDescription()); + result = result && (hasExpectedUnitsPerYear() == other.hasExpectedUnitsPerYear()); + if (hasExpectedUnitsPerYear()) { + result = result && getExpectedUnitsPerYear().equals(other.getExpectedUnitsPerYear()); + } + result = result && getCompensationAmountCase().equals(other.getCompensationAmountCase()); + if (!result) return false; + switch (compensationAmountCase_) { + case 3: + result = result && getAmount().equals(other.getAmount()); + break; + case 4: + result = result && getRange().equals(other.getRange()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + UNIT_FIELD_NUMBER; + hash = (53 * hash) + unit_; + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasExpectedUnitsPerYear()) { + hash = (37 * hash) + EXPECTED_UNITS_PER_YEAR_FIELD_NUMBER; + hash = (53 * hash) + getExpectedUnitsPerYear().hashCode(); + } + switch (compensationAmountCase_) { + case 3: + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAmount().hashCode(); + break; + case 4: + hash = (37 * hash) + RANGE_FIELD_NUMBER; + hash = (53 * hash) + getRange().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * A compensation entry that represents one component of compensation, such
+     * as base pay, bonus, or other compensation type.
+     * Annualization: One compensation entry can be annualized if
+     * - it contains valid
+     * [amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
+     * or
+     * [range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range].
+     * - and its
+     * [expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year]
+     * is set or can be derived. Its annualized range is determined as
+     * ([amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
+     * or
+     * [range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range])
+     * times
+     * [expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry) + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.class, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder.class); + } + + // Construct using + // com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = 0; + + unit_ = 0; + + description_ = ""; + + if (expectedUnitsPerYearBuilder_ == null) { + expectedUnitsPerYear_ = null; + } else { + expectedUnitsPerYear_ = null; + expectedUnitsPerYearBuilder_ = null; + } + compensationAmountCase_ = 0; + compensationAmount_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry + getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry build() { + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry buildPartial() { + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry result = + new com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry(this); + result.type_ = type_; + result.unit_ = unit_; + if (compensationAmountCase_ == 3) { + if (amountBuilder_ == null) { + result.compensationAmount_ = compensationAmount_; + } else { + result.compensationAmount_ = amountBuilder_.build(); + } + } + if (compensationAmountCase_ == 4) { + if (rangeBuilder_ == null) { + result.compensationAmount_ = compensationAmount_; + } else { + result.compensationAmount_ = rangeBuilder_.build(); + } + } + result.description_ = description_; + if (expectedUnitsPerYearBuilder_ == null) { + result.expectedUnitsPerYear_ = expectedUnitsPerYear_; + } else { + result.expectedUnitsPerYear_ = expectedUnitsPerYearBuilder_.build(); + } + result.compensationAmountCase_ = compensationAmountCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry) { + return mergeFrom( + (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry other) { + if (other + == com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry + .getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.unit_ != 0) { + setUnitValue(other.getUnitValue()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.hasExpectedUnitsPerYear()) { + mergeExpectedUnitsPerYear(other.getExpectedUnitsPerYear()); + } + switch (other.getCompensationAmountCase()) { + case AMOUNT: + { + mergeAmount(other.getAmount()); + break; + } + case RANGE: + { + mergeRange(other.getRange()); + break; + } + case COMPENSATIONAMOUNT_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int compensationAmountCase_ = 0; + private java.lang.Object compensationAmount_; + + public CompensationAmountCase getCompensationAmountCase() { + return CompensationAmountCase.forNumber(compensationAmountCase_); + } + + public Builder clearCompensationAmount() { + compensationAmountCase_ = 0; + compensationAmount_ = null; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * + * + *
+       * Optional.
+       * Compensation type.
+       * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+       * Optional.
+       * Compensation type.
+       * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation type.
+       * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType result = + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Optional.
+       * Compensation type.
+       * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1; + */ + public Builder setType( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation type.
+       * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private int unit_ = 0; + /** + * + * + *
+       * Optional.
+       * Frequency of the specified amount.
+       * Default is
+       * [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2; + */ + public int getUnitValue() { + return unit_; + } + /** + * + * + *
+       * Optional.
+       * Frequency of the specified amount.
+       * Default is
+       * [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2; + */ + public Builder setUnitValue(int value) { + unit_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Frequency of the specified amount.
+       * Default is
+       * [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit getUnit() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit result = + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.valueOf(unit_); + return result == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Optional.
+       * Frequency of the specified amount.
+       * Default is
+       * [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2; + */ + public Builder setUnit( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit value) { + if (value == null) { + throw new NullPointerException(); + } + + unit_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Frequency of the specified amount.
+       * Default is
+       * [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2; + */ + public Builder clearUnit() { + + unit_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + amountBuilder_; + /** + * + * + *
+       * Optional.
+       * Compensation amount.
+       * 
+ * + * .google.type.Money amount = 3; + */ + public boolean hasAmount() { + return compensationAmountCase_ == 3; + } + /** + * + * + *
+       * Optional.
+       * Compensation amount.
+       * 
+ * + * .google.type.Money amount = 3; + */ + public com.google.type.Money getAmount() { + if (amountBuilder_ == null) { + if (compensationAmountCase_ == 3) { + return (com.google.type.Money) compensationAmount_; + } + return com.google.type.Money.getDefaultInstance(); + } else { + if (compensationAmountCase_ == 3) { + return amountBuilder_.getMessage(); + } + return com.google.type.Money.getDefaultInstance(); + } + } + /** + * + * + *
+       * Optional.
+       * Compensation amount.
+       * 
+ * + * .google.type.Money amount = 3; + */ + public Builder setAmount(com.google.type.Money value) { + if (amountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + compensationAmount_ = value; + onChanged(); + } else { + amountBuilder_.setMessage(value); + } + compensationAmountCase_ = 3; + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation amount.
+       * 
+ * + * .google.type.Money amount = 3; + */ + public Builder setAmount(com.google.type.Money.Builder builderForValue) { + if (amountBuilder_ == null) { + compensationAmount_ = builderForValue.build(); + onChanged(); + } else { + amountBuilder_.setMessage(builderForValue.build()); + } + compensationAmountCase_ = 3; + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation amount.
+       * 
+ * + * .google.type.Money amount = 3; + */ + public Builder mergeAmount(com.google.type.Money value) { + if (amountBuilder_ == null) { + if (compensationAmountCase_ == 3 + && compensationAmount_ != com.google.type.Money.getDefaultInstance()) { + compensationAmount_ = + com.google.type.Money.newBuilder((com.google.type.Money) compensationAmount_) + .mergeFrom(value) + .buildPartial(); + } else { + compensationAmount_ = value; + } + onChanged(); + } else { + if (compensationAmountCase_ == 3) { + amountBuilder_.mergeFrom(value); + } + amountBuilder_.setMessage(value); + } + compensationAmountCase_ = 3; + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation amount.
+       * 
+ * + * .google.type.Money amount = 3; + */ + public Builder clearAmount() { + if (amountBuilder_ == null) { + if (compensationAmountCase_ == 3) { + compensationAmountCase_ = 0; + compensationAmount_ = null; + onChanged(); + } + } else { + if (compensationAmountCase_ == 3) { + compensationAmountCase_ = 0; + compensationAmount_ = null; + } + amountBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation amount.
+       * 
+ * + * .google.type.Money amount = 3; + */ + public com.google.type.Money.Builder getAmountBuilder() { + return getAmountFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional.
+       * Compensation amount.
+       * 
+ * + * .google.type.Money amount = 3; + */ + public com.google.type.MoneyOrBuilder getAmountOrBuilder() { + if ((compensationAmountCase_ == 3) && (amountBuilder_ != null)) { + return amountBuilder_.getMessageOrBuilder(); + } else { + if (compensationAmountCase_ == 3) { + return (com.google.type.Money) compensationAmount_; + } + return com.google.type.Money.getDefaultInstance(); + } + } + /** + * + * + *
+       * Optional.
+       * Compensation amount.
+       * 
+ * + * .google.type.Money amount = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + getAmountFieldBuilder() { + if (amountBuilder_ == null) { + if (!(compensationAmountCase_ == 3)) { + compensationAmount_ = com.google.type.Money.getDefaultInstance(); + } + amountBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, + com.google.type.Money.Builder, + com.google.type.MoneyOrBuilder>( + (com.google.type.Money) compensationAmount_, getParentForChildren(), isClean()); + compensationAmount_ = null; + } + compensationAmountCase_ = 3; + onChanged(); + ; + return amountBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder> + rangeBuilder_; + /** + * + * + *
+       * Optional.
+       * Compensation range.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + public boolean hasRange() { + return compensationAmountCase_ == 4; + } + /** + * + * + *
+       * Optional.
+       * Compensation range.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange getRange() { + if (rangeBuilder_ == null) { + if (compensationAmountCase_ == 4) { + return (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + compensationAmount_; + } + return com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance(); + } else { + if (compensationAmountCase_ == 4) { + return rangeBuilder_.getMessage(); + } + return com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance(); + } + } + /** + * + * + *
+       * Optional.
+       * Compensation range.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + public Builder setRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) { + if (rangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + compensationAmount_ = value; + onChanged(); + } else { + rangeBuilder_.setMessage(value); + } + compensationAmountCase_ = 4; + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation range.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + public Builder setRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + builderForValue) { + if (rangeBuilder_ == null) { + compensationAmount_ = builderForValue.build(); + onChanged(); + } else { + rangeBuilder_.setMessage(builderForValue.build()); + } + compensationAmountCase_ = 4; + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation range.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + public Builder mergeRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) { + if (rangeBuilder_ == null) { + if (compensationAmountCase_ == 4 + && compensationAmount_ + != com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance()) { + compensationAmount_ = + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.newBuilder( + (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + compensationAmount_) + .mergeFrom(value) + .buildPartial(); + } else { + compensationAmount_ = value; + } + onChanged(); + } else { + if (compensationAmountCase_ == 4) { + rangeBuilder_.mergeFrom(value); + } + rangeBuilder_.setMessage(value); + } + compensationAmountCase_ = 4; + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation range.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + public Builder clearRange() { + if (rangeBuilder_ == null) { + if (compensationAmountCase_ == 4) { + compensationAmountCase_ = 0; + compensationAmount_ = null; + onChanged(); + } + } else { + if (compensationAmountCase_ == 4) { + compensationAmountCase_ = 0; + compensationAmount_ = null; + } + rangeBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation range.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + getRangeBuilder() { + return getRangeFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional.
+       * Compensation range.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder + getRangeOrBuilder() { + if ((compensationAmountCase_ == 4) && (rangeBuilder_ != null)) { + return rangeBuilder_.getMessageOrBuilder(); + } else { + if (compensationAmountCase_ == 4) { + return (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + compensationAmount_; + } + return com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance(); + } + } + /** + * + * + *
+       * Optional.
+       * Compensation range.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder> + getRangeFieldBuilder() { + if (rangeBuilder_ == null) { + if (!(compensationAmountCase_ == 4)) { + compensationAmount_ = + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance(); + } + rangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder>( + (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + compensationAmount_, + getParentForChildren(), + isClean()); + compensationAmount_ = null; + } + compensationAmountCase_ = 4; + onChanged(); + ; + return rangeBuilder_; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+       * Optional.
+       * Compensation description.  For example, could
+       * indicate equity terms or provide additional context to an estimated
+       * bonus.
+       * 
+ * + * string description = 5; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional.
+       * Compensation description.  For example, could
+       * indicate equity terms or provide additional context to an estimated
+       * bonus.
+       * 
+ * + * string description = 5; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional.
+       * Compensation description.  For example, could
+       * indicate equity terms or provide additional context to an estimated
+       * bonus.
+       * 
+ * + * string description = 5; + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation description.  For example, could
+       * indicate equity terms or provide additional context to an estimated
+       * bonus.
+       * 
+ * + * string description = 5; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation description.  For example, could
+       * indicate equity terms or provide additional context to an estimated
+       * bonus.
+       * 
+ * + * string description = 5; + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.DoubleValue expectedUnitsPerYear_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, + com.google.protobuf.DoubleValue.Builder, + com.google.protobuf.DoubleValueOrBuilder> + expectedUnitsPerYearBuilder_; + /** + * + * + *
+       * Optional.
+       * Expected number of units paid each year. If not specified, when
+       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+       * is FULLTIME, a default value is inferred based on
+       * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+       * Default values:
+       * - HOURLY: 2080
+       * - DAILY: 260
+       * - WEEKLY: 52
+       * - MONTHLY: 12
+       * - ANNUAL: 1
+       * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + public boolean hasExpectedUnitsPerYear() { + return expectedUnitsPerYearBuilder_ != null || expectedUnitsPerYear_ != null; + } + /** + * + * + *
+       * Optional.
+       * Expected number of units paid each year. If not specified, when
+       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+       * is FULLTIME, a default value is inferred based on
+       * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+       * Default values:
+       * - HOURLY: 2080
+       * - DAILY: 260
+       * - WEEKLY: 52
+       * - MONTHLY: 12
+       * - ANNUAL: 1
+       * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + public com.google.protobuf.DoubleValue getExpectedUnitsPerYear() { + if (expectedUnitsPerYearBuilder_ == null) { + return expectedUnitsPerYear_ == null + ? com.google.protobuf.DoubleValue.getDefaultInstance() + : expectedUnitsPerYear_; + } else { + return expectedUnitsPerYearBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Optional.
+       * Expected number of units paid each year. If not specified, when
+       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+       * is FULLTIME, a default value is inferred based on
+       * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+       * Default values:
+       * - HOURLY: 2080
+       * - DAILY: 260
+       * - WEEKLY: 52
+       * - MONTHLY: 12
+       * - ANNUAL: 1
+       * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + public Builder setExpectedUnitsPerYear(com.google.protobuf.DoubleValue value) { + if (expectedUnitsPerYearBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expectedUnitsPerYear_ = value; + onChanged(); + } else { + expectedUnitsPerYearBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * Expected number of units paid each year. If not specified, when
+       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+       * is FULLTIME, a default value is inferred based on
+       * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+       * Default values:
+       * - HOURLY: 2080
+       * - DAILY: 260
+       * - WEEKLY: 52
+       * - MONTHLY: 12
+       * - ANNUAL: 1
+       * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + public Builder setExpectedUnitsPerYear( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (expectedUnitsPerYearBuilder_ == null) { + expectedUnitsPerYear_ = builderForValue.build(); + onChanged(); + } else { + expectedUnitsPerYearBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * Expected number of units paid each year. If not specified, when
+       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+       * is FULLTIME, a default value is inferred based on
+       * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+       * Default values:
+       * - HOURLY: 2080
+       * - DAILY: 260
+       * - WEEKLY: 52
+       * - MONTHLY: 12
+       * - ANNUAL: 1
+       * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + public Builder mergeExpectedUnitsPerYear(com.google.protobuf.DoubleValue value) { + if (expectedUnitsPerYearBuilder_ == null) { + if (expectedUnitsPerYear_ != null) { + expectedUnitsPerYear_ = + com.google.protobuf.DoubleValue.newBuilder(expectedUnitsPerYear_) + .mergeFrom(value) + .buildPartial(); + } else { + expectedUnitsPerYear_ = value; + } + onChanged(); + } else { + expectedUnitsPerYearBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * Expected number of units paid each year. If not specified, when
+       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+       * is FULLTIME, a default value is inferred based on
+       * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+       * Default values:
+       * - HOURLY: 2080
+       * - DAILY: 260
+       * - WEEKLY: 52
+       * - MONTHLY: 12
+       * - ANNUAL: 1
+       * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + public Builder clearExpectedUnitsPerYear() { + if (expectedUnitsPerYearBuilder_ == null) { + expectedUnitsPerYear_ = null; + onChanged(); + } else { + expectedUnitsPerYear_ = null; + expectedUnitsPerYearBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * Expected number of units paid each year. If not specified, when
+       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+       * is FULLTIME, a default value is inferred based on
+       * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+       * Default values:
+       * - HOURLY: 2080
+       * - DAILY: 260
+       * - WEEKLY: 52
+       * - MONTHLY: 12
+       * - ANNUAL: 1
+       * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + public com.google.protobuf.DoubleValue.Builder getExpectedUnitsPerYearBuilder() { + + onChanged(); + return getExpectedUnitsPerYearFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional.
+       * Expected number of units paid each year. If not specified, when
+       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+       * is FULLTIME, a default value is inferred based on
+       * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+       * Default values:
+       * - HOURLY: 2080
+       * - DAILY: 260
+       * - WEEKLY: 52
+       * - MONTHLY: 12
+       * - ANNUAL: 1
+       * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + public com.google.protobuf.DoubleValueOrBuilder getExpectedUnitsPerYearOrBuilder() { + if (expectedUnitsPerYearBuilder_ != null) { + return expectedUnitsPerYearBuilder_.getMessageOrBuilder(); + } else { + return expectedUnitsPerYear_ == null + ? com.google.protobuf.DoubleValue.getDefaultInstance() + : expectedUnitsPerYear_; + } + } + /** + * + * + *
+       * Optional.
+       * Expected number of units paid each year. If not specified, when
+       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+       * is FULLTIME, a default value is inferred based on
+       * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+       * Default values:
+       * - HOURLY: 2080
+       * - DAILY: 260
+       * - WEEKLY: 52
+       * - MONTHLY: 12
+       * - ANNUAL: 1
+       * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, + com.google.protobuf.DoubleValue.Builder, + com.google.protobuf.DoubleValueOrBuilder> + getExpectedUnitsPerYearFieldBuilder() { + if (expectedUnitsPerYearBuilder_ == null) { + expectedUnitsPerYearBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, + com.google.protobuf.DoubleValue.Builder, + com.google.protobuf.DoubleValueOrBuilder>( + getExpectedUnitsPerYear(), getParentForChildren(), isClean()); + expectedUnitsPerYear_ = null; + } + return expectedUnitsPerYearBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry) + private static final com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry(); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompensationEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompensationEntry(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface CompensationRangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional.
+     * The maximum amount of compensation. If left empty, the value is set
+     * to a maximal compensation value and the currency code is set to
+     * match the [currency code][google.type.Money.currency_code] of
+     * min_compensation.
+     * 
+ * + * .google.type.Money max_compensation = 2; + */ + boolean hasMaxCompensation(); + /** + * + * + *
+     * Optional.
+     * The maximum amount of compensation. If left empty, the value is set
+     * to a maximal compensation value and the currency code is set to
+     * match the [currency code][google.type.Money.currency_code] of
+     * min_compensation.
+     * 
+ * + * .google.type.Money max_compensation = 2; + */ + com.google.type.Money getMaxCompensation(); + /** + * + * + *
+     * Optional.
+     * The maximum amount of compensation. If left empty, the value is set
+     * to a maximal compensation value and the currency code is set to
+     * match the [currency code][google.type.Money.currency_code] of
+     * min_compensation.
+     * 
+ * + * .google.type.Money max_compensation = 2; + */ + com.google.type.MoneyOrBuilder getMaxCompensationOrBuilder(); + + /** + * + * + *
+     * Optional.
+     * The minimum amount of compensation. If left empty, the value is set
+     * to zero and the currency code is set to match the
+     * [currency code][google.type.Money.currency_code] of max_compensation.
+     * 
+ * + * .google.type.Money min_compensation = 1; + */ + boolean hasMinCompensation(); + /** + * + * + *
+     * Optional.
+     * The minimum amount of compensation. If left empty, the value is set
+     * to zero and the currency code is set to match the
+     * [currency code][google.type.Money.currency_code] of max_compensation.
+     * 
+ * + * .google.type.Money min_compensation = 1; + */ + com.google.type.Money getMinCompensation(); + /** + * + * + *
+     * Optional.
+     * The minimum amount of compensation. If left empty, the value is set
+     * to zero and the currency code is set to match the
+     * [currency code][google.type.Money.currency_code] of max_compensation.
+     * 
+ * + * .google.type.Money min_compensation = 1; + */ + com.google.type.MoneyOrBuilder getMinCompensationOrBuilder(); + } + /** + * + * + *
+   * Compensation range.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompensationInfo.CompensationRange} + */ + public static final class CompensationRange extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + CompensationRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompensationRange.newBuilder() to construct. + private CompensationRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompensationRange() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CompensationRange( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.type.Money.Builder subBuilder = null; + if (minCompensation_ != null) { + subBuilder = minCompensation_.toBuilder(); + } + minCompensation_ = + input.readMessage(com.google.type.Money.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(minCompensation_); + minCompensation_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.type.Money.Builder subBuilder = null; + if (maxCompensation_ != null) { + subBuilder = maxCompensation_.toBuilder(); + } + maxCompensation_ = + input.readMessage(com.google.type.Money.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maxCompensation_); + maxCompensation_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.class, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder.class); + } + + public static final int MAX_COMPENSATION_FIELD_NUMBER = 2; + private com.google.type.Money maxCompensation_; + /** + * + * + *
+     * Optional.
+     * The maximum amount of compensation. If left empty, the value is set
+     * to a maximal compensation value and the currency code is set to
+     * match the [currency code][google.type.Money.currency_code] of
+     * min_compensation.
+     * 
+ * + * .google.type.Money max_compensation = 2; + */ + public boolean hasMaxCompensation() { + return maxCompensation_ != null; + } + /** + * + * + *
+     * Optional.
+     * The maximum amount of compensation. If left empty, the value is set
+     * to a maximal compensation value and the currency code is set to
+     * match the [currency code][google.type.Money.currency_code] of
+     * min_compensation.
+     * 
+ * + * .google.type.Money max_compensation = 2; + */ + public com.google.type.Money getMaxCompensation() { + return maxCompensation_ == null + ? com.google.type.Money.getDefaultInstance() + : maxCompensation_; + } + /** + * + * + *
+     * Optional.
+     * The maximum amount of compensation. If left empty, the value is set
+     * to a maximal compensation value and the currency code is set to
+     * match the [currency code][google.type.Money.currency_code] of
+     * min_compensation.
+     * 
+ * + * .google.type.Money max_compensation = 2; + */ + public com.google.type.MoneyOrBuilder getMaxCompensationOrBuilder() { + return getMaxCompensation(); + } + + public static final int MIN_COMPENSATION_FIELD_NUMBER = 1; + private com.google.type.Money minCompensation_; + /** + * + * + *
+     * Optional.
+     * The minimum amount of compensation. If left empty, the value is set
+     * to zero and the currency code is set to match the
+     * [currency code][google.type.Money.currency_code] of max_compensation.
+     * 
+ * + * .google.type.Money min_compensation = 1; + */ + public boolean hasMinCompensation() { + return minCompensation_ != null; + } + /** + * + * + *
+     * Optional.
+     * The minimum amount of compensation. If left empty, the value is set
+     * to zero and the currency code is set to match the
+     * [currency code][google.type.Money.currency_code] of max_compensation.
+     * 
+ * + * .google.type.Money min_compensation = 1; + */ + public com.google.type.Money getMinCompensation() { + return minCompensation_ == null + ? com.google.type.Money.getDefaultInstance() + : minCompensation_; + } + /** + * + * + *
+     * Optional.
+     * The minimum amount of compensation. If left empty, the value is set
+     * to zero and the currency code is set to match the
+     * [currency code][google.type.Money.currency_code] of max_compensation.
+     * 
+ * + * .google.type.Money min_compensation = 1; + */ + public com.google.type.MoneyOrBuilder getMinCompensationOrBuilder() { + return getMinCompensation(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (minCompensation_ != null) { + output.writeMessage(1, getMinCompensation()); + } + if (maxCompensation_ != null) { + output.writeMessage(2, getMaxCompensation()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (minCompensation_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMinCompensation()); + } + if (maxCompensation_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxCompensation()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange other = + (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) obj; + + boolean result = true; + result = result && (hasMaxCompensation() == other.hasMaxCompensation()); + if (hasMaxCompensation()) { + result = result && getMaxCompensation().equals(other.getMaxCompensation()); + } + result = result && (hasMinCompensation() == other.hasMinCompensation()); + if (hasMinCompensation()) { + result = result && getMinCompensation().equals(other.getMinCompensation()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMaxCompensation()) { + hash = (37 * hash) + MAX_COMPENSATION_FIELD_NUMBER; + hash = (53 * hash) + getMaxCompensation().hashCode(); + } + if (hasMinCompensation()) { + hash = (37 * hash) + MIN_COMPENSATION_FIELD_NUMBER; + hash = (53 * hash) + getMinCompensation().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Compensation range.
+     * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompensationInfo.CompensationRange} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.class, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder.class); + } + + // Construct using + // com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (maxCompensationBuilder_ == null) { + maxCompensation_ = null; + } else { + maxCompensation_ = null; + maxCompensationBuilder_ = null; + } + if (minCompensationBuilder_ == null) { + minCompensation_ = null; + } else { + minCompensation_ = null; + minCompensationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange build() { + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange buildPartial() { + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange result = + new com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange(this); + if (maxCompensationBuilder_ == null) { + result.maxCompensation_ = maxCompensation_; + } else { + result.maxCompensation_ = maxCompensationBuilder_.build(); + } + if (minCompensationBuilder_ == null) { + result.minCompensation_ = minCompensation_; + } else { + result.minCompensation_ = minCompensationBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) { + return mergeFrom( + (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange other) { + if (other + == com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance()) return this; + if (other.hasMaxCompensation()) { + mergeMaxCompensation(other.getMaxCompensation()); + } + if (other.hasMinCompensation()) { + mergeMinCompensation(other.getMinCompensation()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.type.Money maxCompensation_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + maxCompensationBuilder_; + /** + * + * + *
+       * Optional.
+       * The maximum amount of compensation. If left empty, the value is set
+       * to a maximal compensation value and the currency code is set to
+       * match the [currency code][google.type.Money.currency_code] of
+       * min_compensation.
+       * 
+ * + * .google.type.Money max_compensation = 2; + */ + public boolean hasMaxCompensation() { + return maxCompensationBuilder_ != null || maxCompensation_ != null; + } + /** + * + * + *
+       * Optional.
+       * The maximum amount of compensation. If left empty, the value is set
+       * to a maximal compensation value and the currency code is set to
+       * match the [currency code][google.type.Money.currency_code] of
+       * min_compensation.
+       * 
+ * + * .google.type.Money max_compensation = 2; + */ + public com.google.type.Money getMaxCompensation() { + if (maxCompensationBuilder_ == null) { + return maxCompensation_ == null + ? com.google.type.Money.getDefaultInstance() + : maxCompensation_; + } else { + return maxCompensationBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Optional.
+       * The maximum amount of compensation. If left empty, the value is set
+       * to a maximal compensation value and the currency code is set to
+       * match the [currency code][google.type.Money.currency_code] of
+       * min_compensation.
+       * 
+ * + * .google.type.Money max_compensation = 2; + */ + public Builder setMaxCompensation(com.google.type.Money value) { + if (maxCompensationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maxCompensation_ = value; + onChanged(); + } else { + maxCompensationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * The maximum amount of compensation. If left empty, the value is set
+       * to a maximal compensation value and the currency code is set to
+       * match the [currency code][google.type.Money.currency_code] of
+       * min_compensation.
+       * 
+ * + * .google.type.Money max_compensation = 2; + */ + public Builder setMaxCompensation(com.google.type.Money.Builder builderForValue) { + if (maxCompensationBuilder_ == null) { + maxCompensation_ = builderForValue.build(); + onChanged(); + } else { + maxCompensationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * The maximum amount of compensation. If left empty, the value is set
+       * to a maximal compensation value and the currency code is set to
+       * match the [currency code][google.type.Money.currency_code] of
+       * min_compensation.
+       * 
+ * + * .google.type.Money max_compensation = 2; + */ + public Builder mergeMaxCompensation(com.google.type.Money value) { + if (maxCompensationBuilder_ == null) { + if (maxCompensation_ != null) { + maxCompensation_ = + com.google.type.Money.newBuilder(maxCompensation_).mergeFrom(value).buildPartial(); + } else { + maxCompensation_ = value; + } + onChanged(); + } else { + maxCompensationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * The maximum amount of compensation. If left empty, the value is set
+       * to a maximal compensation value and the currency code is set to
+       * match the [currency code][google.type.Money.currency_code] of
+       * min_compensation.
+       * 
+ * + * .google.type.Money max_compensation = 2; + */ + public Builder clearMaxCompensation() { + if (maxCompensationBuilder_ == null) { + maxCompensation_ = null; + onChanged(); + } else { + maxCompensation_ = null; + maxCompensationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * The maximum amount of compensation. If left empty, the value is set
+       * to a maximal compensation value and the currency code is set to
+       * match the [currency code][google.type.Money.currency_code] of
+       * min_compensation.
+       * 
+ * + * .google.type.Money max_compensation = 2; + */ + public com.google.type.Money.Builder getMaxCompensationBuilder() { + + onChanged(); + return getMaxCompensationFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional.
+       * The maximum amount of compensation. If left empty, the value is set
+       * to a maximal compensation value and the currency code is set to
+       * match the [currency code][google.type.Money.currency_code] of
+       * min_compensation.
+       * 
+ * + * .google.type.Money max_compensation = 2; + */ + public com.google.type.MoneyOrBuilder getMaxCompensationOrBuilder() { + if (maxCompensationBuilder_ != null) { + return maxCompensationBuilder_.getMessageOrBuilder(); + } else { + return maxCompensation_ == null + ? com.google.type.Money.getDefaultInstance() + : maxCompensation_; + } + } + /** + * + * + *
+       * Optional.
+       * The maximum amount of compensation. If left empty, the value is set
+       * to a maximal compensation value and the currency code is set to
+       * match the [currency code][google.type.Money.currency_code] of
+       * min_compensation.
+       * 
+ * + * .google.type.Money max_compensation = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + getMaxCompensationFieldBuilder() { + if (maxCompensationBuilder_ == null) { + maxCompensationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, + com.google.type.Money.Builder, + com.google.type.MoneyOrBuilder>( + getMaxCompensation(), getParentForChildren(), isClean()); + maxCompensation_ = null; + } + return maxCompensationBuilder_; + } + + private com.google.type.Money minCompensation_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + minCompensationBuilder_; + /** + * + * + *
+       * Optional.
+       * The minimum amount of compensation. If left empty, the value is set
+       * to zero and the currency code is set to match the
+       * [currency code][google.type.Money.currency_code] of max_compensation.
+       * 
+ * + * .google.type.Money min_compensation = 1; + */ + public boolean hasMinCompensation() { + return minCompensationBuilder_ != null || minCompensation_ != null; + } + /** + * + * + *
+       * Optional.
+       * The minimum amount of compensation. If left empty, the value is set
+       * to zero and the currency code is set to match the
+       * [currency code][google.type.Money.currency_code] of max_compensation.
+       * 
+ * + * .google.type.Money min_compensation = 1; + */ + public com.google.type.Money getMinCompensation() { + if (minCompensationBuilder_ == null) { + return minCompensation_ == null + ? com.google.type.Money.getDefaultInstance() + : minCompensation_; + } else { + return minCompensationBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Optional.
+       * The minimum amount of compensation. If left empty, the value is set
+       * to zero and the currency code is set to match the
+       * [currency code][google.type.Money.currency_code] of max_compensation.
+       * 
+ * + * .google.type.Money min_compensation = 1; + */ + public Builder setMinCompensation(com.google.type.Money value) { + if (minCompensationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + minCompensation_ = value; + onChanged(); + } else { + minCompensationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * The minimum amount of compensation. If left empty, the value is set
+       * to zero and the currency code is set to match the
+       * [currency code][google.type.Money.currency_code] of max_compensation.
+       * 
+ * + * .google.type.Money min_compensation = 1; + */ + public Builder setMinCompensation(com.google.type.Money.Builder builderForValue) { + if (minCompensationBuilder_ == null) { + minCompensation_ = builderForValue.build(); + onChanged(); + } else { + minCompensationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * The minimum amount of compensation. If left empty, the value is set
+       * to zero and the currency code is set to match the
+       * [currency code][google.type.Money.currency_code] of max_compensation.
+       * 
+ * + * .google.type.Money min_compensation = 1; + */ + public Builder mergeMinCompensation(com.google.type.Money value) { + if (minCompensationBuilder_ == null) { + if (minCompensation_ != null) { + minCompensation_ = + com.google.type.Money.newBuilder(minCompensation_).mergeFrom(value).buildPartial(); + } else { + minCompensation_ = value; + } + onChanged(); + } else { + minCompensationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * The minimum amount of compensation. If left empty, the value is set
+       * to zero and the currency code is set to match the
+       * [currency code][google.type.Money.currency_code] of max_compensation.
+       * 
+ * + * .google.type.Money min_compensation = 1; + */ + public Builder clearMinCompensation() { + if (minCompensationBuilder_ == null) { + minCompensation_ = null; + onChanged(); + } else { + minCompensation_ = null; + minCompensationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * The minimum amount of compensation. If left empty, the value is set
+       * to zero and the currency code is set to match the
+       * [currency code][google.type.Money.currency_code] of max_compensation.
+       * 
+ * + * .google.type.Money min_compensation = 1; + */ + public com.google.type.Money.Builder getMinCompensationBuilder() { + + onChanged(); + return getMinCompensationFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional.
+       * The minimum amount of compensation. If left empty, the value is set
+       * to zero and the currency code is set to match the
+       * [currency code][google.type.Money.currency_code] of max_compensation.
+       * 
+ * + * .google.type.Money min_compensation = 1; + */ + public com.google.type.MoneyOrBuilder getMinCompensationOrBuilder() { + if (minCompensationBuilder_ != null) { + return minCompensationBuilder_.getMessageOrBuilder(); + } else { + return minCompensation_ == null + ? com.google.type.Money.getDefaultInstance() + : minCompensation_; + } + } + /** + * + * + *
+       * Optional.
+       * The minimum amount of compensation. If left empty, the value is set
+       * to zero and the currency code is set to match the
+       * [currency code][google.type.Money.currency_code] of max_compensation.
+       * 
+ * + * .google.type.Money min_compensation = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + getMinCompensationFieldBuilder() { + if (minCompensationBuilder_ == null) { + minCompensationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, + com.google.type.Money.Builder, + com.google.type.MoneyOrBuilder>( + getMinCompensation(), getParentForChildren(), isClean()); + minCompensation_ = null; + } + return minCompensationBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + private static final com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange(); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompensationRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompensationRange(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int ENTRIES_FIELD_NUMBER = 1; + private java.util.List + entries_; + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * At most one entry can be of type
+   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+   * which is referred as ** base compensation entry ** for the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public java.util.List + getEntriesList() { + return entries_; + } + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * At most one entry can be of type
+   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+   * which is referred as ** base compensation entry ** for the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder> + getEntriesOrBuilderList() { + return entries_; + } + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * At most one entry can be of type
+   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+   * which is referred as ** base compensation entry ** for the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public int getEntriesCount() { + return entries_.size(); + } + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * At most one entry can be of type
+   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+   * which is referred as ** base compensation entry ** for the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry getEntries(int index) { + return entries_.get(index); + } + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * At most one entry can be of type
+   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+   * which is referred as ** base compensation entry ** for the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder + getEntriesOrBuilder(int index) { + return entries_.get(index); + } + + public static final int ANNUALIZED_BASE_COMPENSATION_RANGE_FIELD_NUMBER = 2; + private com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + annualizedBaseCompensationRange_; + /** + * + * + *
+   * Output only. Annualized base compensation range. Computed as
+   * base compensation entry's [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + public boolean hasAnnualizedBaseCompensationRange() { + return annualizedBaseCompensationRange_ != null; + } + /** + * + * + *
+   * Output only. Annualized base compensation range. Computed as
+   * base compensation entry's [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + getAnnualizedBaseCompensationRange() { + return annualizedBaseCompensationRange_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.getDefaultInstance() + : annualizedBaseCompensationRange_; + } + /** + * + * + *
+   * Output only. Annualized base compensation range. Computed as
+   * base compensation entry's [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder + getAnnualizedBaseCompensationRangeOrBuilder() { + return getAnnualizedBaseCompensationRange(); + } + + public static final int ANNUALIZED_TOTAL_COMPENSATION_RANGE_FIELD_NUMBER = 3; + private com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + annualizedTotalCompensationRange_; + /** + * + * + *
+   * Output only. Annualized total compensation range. Computed as
+   * all compensation entries' [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + public boolean hasAnnualizedTotalCompensationRange() { + return annualizedTotalCompensationRange_ != null; + } + /** + * + * + *
+   * Output only. Annualized total compensation range. Computed as
+   * all compensation entries' [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + getAnnualizedTotalCompensationRange() { + return annualizedTotalCompensationRange_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.getDefaultInstance() + : annualizedTotalCompensationRange_; + } + /** + * + * + *
+   * Output only. Annualized total compensation range. Computed as
+   * all compensation entries' [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder + getAnnualizedTotalCompensationRangeOrBuilder() { + return getAnnualizedTotalCompensationRange(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < entries_.size(); i++) { + output.writeMessage(1, entries_.get(i)); + } + if (annualizedBaseCompensationRange_ != null) { + output.writeMessage(2, getAnnualizedBaseCompensationRange()); + } + if (annualizedTotalCompensationRange_ != null) { + output.writeMessage(3, getAnnualizedTotalCompensationRange()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < entries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entries_.get(i)); + } + if (annualizedBaseCompensationRange_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getAnnualizedBaseCompensationRange()); + } + if (annualizedTotalCompensationRange_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getAnnualizedTotalCompensationRange()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.CompensationInfo)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CompensationInfo other = + (com.google.cloud.talent.v4beta1.CompensationInfo) obj; + + boolean result = true; + result = result && getEntriesList().equals(other.getEntriesList()); + result = + result + && (hasAnnualizedBaseCompensationRange() == other.hasAnnualizedBaseCompensationRange()); + if (hasAnnualizedBaseCompensationRange()) { + result = + result + && getAnnualizedBaseCompensationRange() + .equals(other.getAnnualizedBaseCompensationRange()); + } + result = + result + && (hasAnnualizedTotalCompensationRange() + == other.hasAnnualizedTotalCompensationRange()); + if (hasAnnualizedTotalCompensationRange()) { + result = + result + && getAnnualizedTotalCompensationRange() + .equals(other.getAnnualizedTotalCompensationRange()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEntriesCount() > 0) { + hash = (37 * hash) + ENTRIES_FIELD_NUMBER; + hash = (53 * hash) + getEntriesList().hashCode(); + } + if (hasAnnualizedBaseCompensationRange()) { + hash = (37 * hash) + ANNUALIZED_BASE_COMPENSATION_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getAnnualizedBaseCompensationRange().hashCode(); + } + if (hasAnnualizedTotalCompensationRange()) { + hash = (37 * hash) + ANNUALIZED_TOTAL_COMPENSATION_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getAnnualizedTotalCompensationRange().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.CompensationInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Job compensation details.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompensationInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CompensationInfo) + com.google.cloud.talent.v4beta1.CompensationInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompensationInfo.class, + com.google.cloud.talent.v4beta1.CompensationInfo.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.CompensationInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEntriesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (entriesBuilder_ == null) { + entries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + entriesBuilder_.clear(); + } + if (annualizedBaseCompensationRangeBuilder_ == null) { + annualizedBaseCompensationRange_ = null; + } else { + annualizedBaseCompensationRange_ = null; + annualizedBaseCompensationRangeBuilder_ = null; + } + if (annualizedTotalCompensationRangeBuilder_ == null) { + annualizedTotalCompensationRange_ = null; + } else { + annualizedTotalCompensationRange_ = null; + annualizedTotalCompensationRangeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationInfo getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CompensationInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationInfo build() { + com.google.cloud.talent.v4beta1.CompensationInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationInfo buildPartial() { + com.google.cloud.talent.v4beta1.CompensationInfo result = + new com.google.cloud.talent.v4beta1.CompensationInfo(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (entriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + entries_ = java.util.Collections.unmodifiableList(entries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.entries_ = entries_; + } else { + result.entries_ = entriesBuilder_.build(); + } + if (annualizedBaseCompensationRangeBuilder_ == null) { + result.annualizedBaseCompensationRange_ = annualizedBaseCompensationRange_; + } else { + result.annualizedBaseCompensationRange_ = annualizedBaseCompensationRangeBuilder_.build(); + } + if (annualizedTotalCompensationRangeBuilder_ == null) { + result.annualizedTotalCompensationRange_ = annualizedTotalCompensationRange_; + } else { + result.annualizedTotalCompensationRange_ = annualizedTotalCompensationRangeBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CompensationInfo) { + return mergeFrom((com.google.cloud.talent.v4beta1.CompensationInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.CompensationInfo other) { + if (other == com.google.cloud.talent.v4beta1.CompensationInfo.getDefaultInstance()) + return this; + if (entriesBuilder_ == null) { + if (!other.entries_.isEmpty()) { + if (entries_.isEmpty()) { + entries_ = other.entries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEntriesIsMutable(); + entries_.addAll(other.entries_); + } + onChanged(); + } + } else { + if (!other.entries_.isEmpty()) { + if (entriesBuilder_.isEmpty()) { + entriesBuilder_.dispose(); + entriesBuilder_ = null; + entries_ = other.entries_; + bitField0_ = (bitField0_ & ~0x00000001); + entriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEntriesFieldBuilder() + : null; + } else { + entriesBuilder_.addAllMessages(other.entries_); + } + } + } + if (other.hasAnnualizedBaseCompensationRange()) { + mergeAnnualizedBaseCompensationRange(other.getAnnualizedBaseCompensationRange()); + } + if (other.hasAnnualizedTotalCompensationRange()) { + mergeAnnualizedTotalCompensationRange(other.getAnnualizedTotalCompensationRange()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.CompensationInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.CompensationInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + entries_ = java.util.Collections.emptyList(); + + private void ensureEntriesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + entries_ = + new java.util.ArrayList< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry>(entries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder> + entriesBuilder_; + + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public java.util.List + getEntriesList() { + if (entriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(entries_); + } else { + return entriesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public int getEntriesCount() { + if (entriesBuilder_ == null) { + return entries_.size(); + } else { + return entriesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry getEntries( + int index) { + if (entriesBuilder_ == null) { + return entries_.get(index); + } else { + return entriesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public Builder setEntries( + int index, com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.set(index, value); + onChanged(); + } else { + entriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public Builder setEntries( + int index, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.set(index, builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public Builder addEntries( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.add(value); + onChanged(); + } else { + entriesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public Builder addEntries( + int index, com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.add(index, value); + onChanged(); + } else { + entriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public Builder addEntries( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public Builder addEntries( + int index, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(index, builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public Builder addAllEntries( + java.lang.Iterable< + ? extends com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry> + values) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_); + onChanged(); + } else { + entriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public Builder clearEntries() { + if (entriesBuilder_ == null) { + entries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + entriesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public Builder removeEntries(int index) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.remove(index); + onChanged(); + } else { + entriesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder + getEntriesBuilder(int index) { + return getEntriesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder + getEntriesOrBuilder(int index) { + if (entriesBuilder_ == null) { + return entries_.get(index); + } else { + return entriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder> + getEntriesOrBuilderList() { + if (entriesBuilder_ != null) { + return entriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(entries_); + } + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder + addEntriesBuilder() { + return getEntriesFieldBuilder() + .addBuilder( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry + .getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder + addEntriesBuilder(int index) { + return getEntriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry + .getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public java.util.List< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder> + getEntriesBuilderList() { + return getEntriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder> + getEntriesFieldBuilder() { + if (entriesBuilder_ == null) { + entriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder>( + entries_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + entries_ = null; + } + return entriesBuilder_; + } + + private com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + annualizedBaseCompensationRange_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder> + annualizedBaseCompensationRangeBuilder_; + /** + * + * + *
+     * Output only. Annualized base compensation range. Computed as
+     * base compensation entry's [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + public boolean hasAnnualizedBaseCompensationRange() { + return annualizedBaseCompensationRangeBuilder_ != null + || annualizedBaseCompensationRange_ != null; + } + /** + * + * + *
+     * Output only. Annualized base compensation range. Computed as
+     * base compensation entry's [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + getAnnualizedBaseCompensationRange() { + if (annualizedBaseCompensationRangeBuilder_ == null) { + return annualizedBaseCompensationRange_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance() + : annualizedBaseCompensationRange_; + } else { + return annualizedBaseCompensationRangeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Annualized base compensation range. Computed as
+     * base compensation entry's [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + public Builder setAnnualizedBaseCompensationRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) { + if (annualizedBaseCompensationRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + annualizedBaseCompensationRange_ = value; + onChanged(); + } else { + annualizedBaseCompensationRangeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Annualized base compensation range. Computed as
+     * base compensation entry's [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + public Builder setAnnualizedBaseCompensationRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + builderForValue) { + if (annualizedBaseCompensationRangeBuilder_ == null) { + annualizedBaseCompensationRange_ = builderForValue.build(); + onChanged(); + } else { + annualizedBaseCompensationRangeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Annualized base compensation range. Computed as
+     * base compensation entry's [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + public Builder mergeAnnualizedBaseCompensationRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) { + if (annualizedBaseCompensationRangeBuilder_ == null) { + if (annualizedBaseCompensationRange_ != null) { + annualizedBaseCompensationRange_ = + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.newBuilder( + annualizedBaseCompensationRange_) + .mergeFrom(value) + .buildPartial(); + } else { + annualizedBaseCompensationRange_ = value; + } + onChanged(); + } else { + annualizedBaseCompensationRangeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Annualized base compensation range. Computed as
+     * base compensation entry's [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + public Builder clearAnnualizedBaseCompensationRange() { + if (annualizedBaseCompensationRangeBuilder_ == null) { + annualizedBaseCompensationRange_ = null; + onChanged(); + } else { + annualizedBaseCompensationRange_ = null; + annualizedBaseCompensationRangeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Annualized base compensation range. Computed as
+     * base compensation entry's [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + getAnnualizedBaseCompensationRangeBuilder() { + + onChanged(); + return getAnnualizedBaseCompensationRangeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Annualized base compensation range. Computed as
+     * base compensation entry's [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder + getAnnualizedBaseCompensationRangeOrBuilder() { + if (annualizedBaseCompensationRangeBuilder_ != null) { + return annualizedBaseCompensationRangeBuilder_.getMessageOrBuilder(); + } else { + return annualizedBaseCompensationRange_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance() + : annualizedBaseCompensationRange_; + } + } + /** + * + * + *
+     * Output only. Annualized base compensation range. Computed as
+     * base compensation entry's [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder> + getAnnualizedBaseCompensationRangeFieldBuilder() { + if (annualizedBaseCompensationRangeBuilder_ == null) { + annualizedBaseCompensationRangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder>( + getAnnualizedBaseCompensationRange(), getParentForChildren(), isClean()); + annualizedBaseCompensationRange_ = null; + } + return annualizedBaseCompensationRangeBuilder_; + } + + private com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + annualizedTotalCompensationRange_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder> + annualizedTotalCompensationRangeBuilder_; + /** + * + * + *
+     * Output only. Annualized total compensation range. Computed as
+     * all compensation entries' [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + public boolean hasAnnualizedTotalCompensationRange() { + return annualizedTotalCompensationRangeBuilder_ != null + || annualizedTotalCompensationRange_ != null; + } + /** + * + * + *
+     * Output only. Annualized total compensation range. Computed as
+     * all compensation entries' [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + getAnnualizedTotalCompensationRange() { + if (annualizedTotalCompensationRangeBuilder_ == null) { + return annualizedTotalCompensationRange_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance() + : annualizedTotalCompensationRange_; + } else { + return annualizedTotalCompensationRangeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Annualized total compensation range. Computed as
+     * all compensation entries' [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + public Builder setAnnualizedTotalCompensationRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) { + if (annualizedTotalCompensationRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + annualizedTotalCompensationRange_ = value; + onChanged(); + } else { + annualizedTotalCompensationRangeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Annualized total compensation range. Computed as
+     * all compensation entries' [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + public Builder setAnnualizedTotalCompensationRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + builderForValue) { + if (annualizedTotalCompensationRangeBuilder_ == null) { + annualizedTotalCompensationRange_ = builderForValue.build(); + onChanged(); + } else { + annualizedTotalCompensationRangeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Annualized total compensation range. Computed as
+     * all compensation entries' [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + public Builder mergeAnnualizedTotalCompensationRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) { + if (annualizedTotalCompensationRangeBuilder_ == null) { + if (annualizedTotalCompensationRange_ != null) { + annualizedTotalCompensationRange_ = + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.newBuilder( + annualizedTotalCompensationRange_) + .mergeFrom(value) + .buildPartial(); + } else { + annualizedTotalCompensationRange_ = value; + } + onChanged(); + } else { + annualizedTotalCompensationRangeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Annualized total compensation range. Computed as
+     * all compensation entries' [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + public Builder clearAnnualizedTotalCompensationRange() { + if (annualizedTotalCompensationRangeBuilder_ == null) { + annualizedTotalCompensationRange_ = null; + onChanged(); + } else { + annualizedTotalCompensationRange_ = null; + annualizedTotalCompensationRangeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Annualized total compensation range. Computed as
+     * all compensation entries' [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + getAnnualizedTotalCompensationRangeBuilder() { + + onChanged(); + return getAnnualizedTotalCompensationRangeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Annualized total compensation range. Computed as
+     * all compensation entries' [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder + getAnnualizedTotalCompensationRangeOrBuilder() { + if (annualizedTotalCompensationRangeBuilder_ != null) { + return annualizedTotalCompensationRangeBuilder_.getMessageOrBuilder(); + } else { + return annualizedTotalCompensationRange_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance() + : annualizedTotalCompensationRange_; + } + } + /** + * + * + *
+     * Output only. Annualized total compensation range. Computed as
+     * all compensation entries' [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder> + getAnnualizedTotalCompensationRangeFieldBuilder() { + if (annualizedTotalCompensationRangeBuilder_ == null) { + annualizedTotalCompensationRangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder>( + getAnnualizedTotalCompensationRange(), getParentForChildren(), isClean()); + annualizedTotalCompensationRange_ = null; + } + return annualizedTotalCompensationRangeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CompensationInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompensationInfo) + private static final com.google.cloud.talent.v4beta1.CompensationInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CompensationInfo(); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompensationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompensationInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationInfoOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationInfoOrBuilder.java new file mode 100644 index 000000000000..899c5cc7fca6 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationInfoOrBuilder.java @@ -0,0 +1,198 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +public interface CompensationInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CompensationInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * At most one entry can be of type
+   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+   * which is referred as ** base compensation entry ** for the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + java.util.List + getEntriesList(); + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * At most one entry can be of type
+   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+   * which is referred as ** base compensation entry ** for the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry getEntries(int index); + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * At most one entry can be of type
+   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+   * which is referred as ** base compensation entry ** for the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + int getEntriesCount(); + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * At most one entry can be of type
+   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+   * which is referred as ** base compensation entry ** for the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + java.util.List< + ? extends com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder> + getEntriesOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * At most one entry can be of type
+   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+   * which is referred as ** base compensation entry ** for the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder getEntriesOrBuilder( + int index); + + /** + * + * + *
+   * Output only. Annualized base compensation range. Computed as
+   * base compensation entry's [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + boolean hasAnnualizedBaseCompensationRange(); + /** + * + * + *
+   * Output only. Annualized base compensation range. Computed as
+   * base compensation entry's [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + getAnnualizedBaseCompensationRange(); + /** + * + * + *
+   * Output only. Annualized base compensation range. Computed as
+   * base compensation entry's [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder + getAnnualizedBaseCompensationRangeOrBuilder(); + + /** + * + * + *
+   * Output only. Annualized total compensation range. Computed as
+   * all compensation entries' [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + boolean hasAnnualizedTotalCompensationRange(); + /** + * + * + *
+   * Output only. Annualized total compensation range. Computed as
+   * all compensation entries' [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + getAnnualizedTotalCompensationRange(); + /** + * + * + *
+   * Output only. Annualized total compensation range. Computed as
+   * all compensation entries' [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder + getAnnualizedTotalCompensationRangeOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequest.java new file mode 100644 index 000000000000..f363034e4261 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequest.java @@ -0,0 +1,2228 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/completion_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Auto-complete parameters.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompleteQueryRequest} + */ +public final class CompleteQueryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CompleteQueryRequest) + CompleteQueryRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompleteQueryRequest.newBuilder() to construct. + private CompleteQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompleteQueryRequest() { + name_ = ""; + query_ = ""; + languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + pageSize_ = 0; + companyName_ = ""; + scope_ = 0; + type_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CompleteQueryRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + query_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + languageCodes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + languageCodes_.add(s); + break; + } + case 32: + { + pageSize_ = input.readInt32(); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + companyName_ = s; + break; + } + case 48: + { + int rawValue = input.readEnum(); + + scope_ = rawValue; + break; + } + case 56: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + languageCodes_ = languageCodes_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompleteQueryRequest.class, + com.google.cloud.talent.v4beta1.CompleteQueryRequest.Builder.class); + } + + /** + * + * + *
+   * Enum to specify the scope of completion.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope} + */ + public enum CompletionScope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * COMPLETION_SCOPE_UNSPECIFIED = 0; + */ + COMPLETION_SCOPE_UNSPECIFIED(0), + /** + * + * + *
+     * Suggestions are based only on the data provided by the client.
+     * 
+ * + * TENANT = 1; + */ + TENANT(1), + /** + * + * + *
+     * Suggestions are based on all jobs data in the system that's visible to
+     * the client
+     * 
+ * + * PUBLIC = 2; + */ + PUBLIC(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * COMPLETION_SCOPE_UNSPECIFIED = 0; + */ + public static final int COMPLETION_SCOPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Suggestions are based only on the data provided by the client.
+     * 
+ * + * TENANT = 1; + */ + public static final int TENANT_VALUE = 1; + /** + * + * + *
+     * Suggestions are based on all jobs data in the system that's visible to
+     * the client
+     * 
+ * + * PUBLIC = 2; + */ + public static final int PUBLIC_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static CompletionScope valueOf(int value) { + return forNumber(value); + } + + public static CompletionScope forNumber(int value) { + switch (value) { + case 0: + return COMPLETION_SCOPE_UNSPECIFIED; + case 1: + return TENANT; + case 2: + return PUBLIC; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CompletionScope findValueByNumber(int number) { + return CompletionScope.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompleteQueryRequest.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final CompletionScope[] VALUES = values(); + + public static CompletionScope valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CompletionScope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope) + } + + /** + * + * + *
+   * Enum to specify auto-completion topics.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType} + */ + public enum CompletionType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * COMPLETION_TYPE_UNSPECIFIED = 0; + */ + COMPLETION_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Only suggest job titles.
+     * 
+ * + * JOB_TITLE = 1; + */ + JOB_TITLE(1), + /** + * + * + *
+     * Only suggest company names.
+     * 
+ * + * COMPANY_NAME = 2; + */ + COMPANY_NAME(2), + /** + * + * + *
+     * Suggest both job titles and company names.
+     * 
+ * + * COMBINED = 3; + */ + COMBINED(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * COMPLETION_TYPE_UNSPECIFIED = 0; + */ + public static final int COMPLETION_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Only suggest job titles.
+     * 
+ * + * JOB_TITLE = 1; + */ + public static final int JOB_TITLE_VALUE = 1; + /** + * + * + *
+     * Only suggest company names.
+     * 
+ * + * COMPANY_NAME = 2; + */ + public static final int COMPANY_NAME_VALUE = 2; + /** + * + * + *
+     * Suggest both job titles and company names.
+     * 
+ * + * COMBINED = 3; + */ + public static final int COMBINED_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static CompletionType valueOf(int value) { + return forNumber(value); + } + + public static CompletionType forNumber(int value) { + switch (value) { + case 0: + return COMPLETION_TYPE_UNSPECIFIED; + case 1: + return JOB_TITLE; + case 2: + return COMPANY_NAME; + case 3: + return COMBINED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CompletionType findValueByNumber(int number) { + return CompletionType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompleteQueryRequest.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final CompletionType[] VALUES = values(); + + public static CompletionType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CompletionType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required.
+   * Resource name of project the completion is performed within.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * Resource name of project the completion is performed within.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_FIELD_NUMBER = 2; + private volatile java.lang.Object query_; + /** + * + * + *
+   * Required.
+   * The query used to generate suggestions.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string query = 2; + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The query used to generate suggestions.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string query = 2; + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LANGUAGE_CODES_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList languageCodes_; + /** + * + * + *
+   * Optional.
+   * The list of languages of the query. This is
+   * the BCP-47 language code, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * For
+   * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+   * type, only companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * or companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * repeated string language_codes = 3; + */ + public com.google.protobuf.ProtocolStringList getLanguageCodesList() { + return languageCodes_; + } + /** + * + * + *
+   * Optional.
+   * The list of languages of the query. This is
+   * the BCP-47 language code, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * For
+   * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+   * type, only companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * or companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * repeated string language_codes = 3; + */ + public int getLanguageCodesCount() { + return languageCodes_.size(); + } + /** + * + * + *
+   * Optional.
+   * The list of languages of the query. This is
+   * the BCP-47 language code, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * For
+   * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+   * type, only companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * or companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * repeated string language_codes = 3; + */ + public java.lang.String getLanguageCodes(int index) { + return languageCodes_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The list of languages of the query. This is
+   * the BCP-47 language code, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * For
+   * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+   * type, only companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * or companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * repeated string language_codes = 3; + */ + public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { + return languageCodes_.getByteString(index); + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 4; + private int pageSize_; + /** + * + * + *
+   * Required.
+   * Completion result count.
+   * The maximum allowed page size is 10.
+   * 
+ * + * int32 page_size = 4; + */ + public int getPageSize() { + return pageSize_; + } + + public static final int COMPANY_NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object companyName_; + /** + * + * + *
+   * Optional.
+   * If provided, restricts completion to specified company.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string company_name = 5; + */ + public java.lang.String getCompanyName() { + java.lang.Object ref = companyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + companyName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * If provided, restricts completion to specified company.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string company_name = 5; + */ + public com.google.protobuf.ByteString getCompanyNameBytes() { + java.lang.Object ref = companyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + companyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCOPE_FIELD_NUMBER = 6; + private int scope_; + /** + * + * + *
+   * Optional.
+   * The scope of the completion. The defaults is
+   * [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC].
+   * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope scope = 6; + */ + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+   * Optional.
+   * The scope of the completion. The defaults is
+   * [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC].
+   * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope scope = 6; + */ + public com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope getScope() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope result = + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.valueOf(scope_); + return result == null + ? com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.UNRECOGNIZED + : result; + } + + public static final int TYPE_FIELD_NUMBER = 7; + private int type_; + /** + * + * + *
+   * Optional.
+   * The completion topic. The default is
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED].
+   * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 7; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Optional.
+   * The completion topic. The default is
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED].
+   * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 7; + */ + public com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType result = + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getQueryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, query_); + } + for (int i = 0; i < languageCodes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languageCodes_.getRaw(i)); + } + if (pageSize_ != 0) { + output.writeInt32(4, pageSize_); + } + if (!getCompanyNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, companyName_); + } + if (scope_ + != com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope + .COMPLETION_SCOPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, scope_); + } + if (type_ + != com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType + .COMPLETION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, type_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getQueryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, query_); + } + { + int dataSize = 0; + for (int i = 0; i < languageCodes_.size(); i++) { + dataSize += computeStringSizeNoTag(languageCodes_.getRaw(i)); + } + size += dataSize; + size += 1 * getLanguageCodesList().size(); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + } + if (!getCompanyNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, companyName_); + } + if (scope_ + != com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope + .COMPLETION_SCOPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, scope_); + } + if (type_ + != com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType + .COMPLETION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, type_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.CompleteQueryRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CompleteQueryRequest other = + (com.google.cloud.talent.v4beta1.CompleteQueryRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && getQuery().equals(other.getQuery()); + result = result && getLanguageCodesList().equals(other.getLanguageCodesList()); + result = result && (getPageSize() == other.getPageSize()); + result = result && getCompanyName().equals(other.getCompanyName()); + result = result && scope_ == other.scope_; + result = result && type_ == other.type_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + if (getLanguageCodesCount() > 0) { + hash = (37 * hash) + LANGUAGE_CODES_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCodesList().hashCode(); + } + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + COMPANY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCompanyName().hashCode(); + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.CompleteQueryRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Auto-complete parameters.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompleteQueryRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CompleteQueryRequest) + com.google.cloud.talent.v4beta1.CompleteQueryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompleteQueryRequest.class, + com.google.cloud.talent.v4beta1.CompleteQueryRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.CompleteQueryRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + query_ = ""; + + languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + + companyName_ = ""; + + scope_ = 0; + + type_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompleteQueryRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CompleteQueryRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompleteQueryRequest build() { + com.google.cloud.talent.v4beta1.CompleteQueryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompleteQueryRequest buildPartial() { + com.google.cloud.talent.v4beta1.CompleteQueryRequest result = + new com.google.cloud.talent.v4beta1.CompleteQueryRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + result.query_ = query_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + languageCodes_ = languageCodes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.languageCodes_ = languageCodes_; + result.pageSize_ = pageSize_; + result.companyName_ = companyName_; + result.scope_ = scope_; + result.type_ = type_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CompleteQueryRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.CompleteQueryRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.CompleteQueryRequest other) { + if (other == com.google.cloud.talent.v4beta1.CompleteQueryRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + onChanged(); + } + if (!other.languageCodes_.isEmpty()) { + if (languageCodes_.isEmpty()) { + languageCodes_ = other.languageCodes_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureLanguageCodesIsMutable(); + languageCodes_.addAll(other.languageCodes_); + } + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getCompanyName().isEmpty()) { + companyName_ = other.companyName_; + onChanged(); + } + if (other.scope_ != 0) { + setScopeValue(other.getScopeValue()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.CompleteQueryRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.CompleteQueryRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required.
+     * Resource name of project the completion is performed within.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of project the completion is performed within.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of project the completion is performed within.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of project the completion is performed within.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of project the completion is performed within.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object query_ = ""; + /** + * + * + *
+     * Required.
+     * The query used to generate suggestions.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string query = 2; + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The query used to generate suggestions.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string query = 2; + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The query used to generate suggestions.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string query = 2; + */ + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + query_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The query used to generate suggestions.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string query = 2; + */ + public Builder clearQuery() { + + query_ = getDefaultInstance().getQuery(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The query used to generate suggestions.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string query = 2; + */ + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + query_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList languageCodes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureLanguageCodesIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + languageCodes_ = new com.google.protobuf.LazyStringArrayList(languageCodes_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * Optional.
+     * The list of languages of the query. This is
+     * the BCP-47 language code, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * For
+     * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+     * type, only companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * or companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * repeated string language_codes = 3; + */ + public com.google.protobuf.ProtocolStringList getLanguageCodesList() { + return languageCodes_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional.
+     * The list of languages of the query. This is
+     * the BCP-47 language code, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * For
+     * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+     * type, only companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * or companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * repeated string language_codes = 3; + */ + public int getLanguageCodesCount() { + return languageCodes_.size(); + } + /** + * + * + *
+     * Optional.
+     * The list of languages of the query. This is
+     * the BCP-47 language code, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * For
+     * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+     * type, only companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * or companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * repeated string language_codes = 3; + */ + public java.lang.String getLanguageCodes(int index) { + return languageCodes_.get(index); + } + /** + * + * + *
+     * Optional.
+     * The list of languages of the query. This is
+     * the BCP-47 language code, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * For
+     * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+     * type, only companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * or companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * repeated string language_codes = 3; + */ + public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { + return languageCodes_.getByteString(index); + } + /** + * + * + *
+     * Optional.
+     * The list of languages of the query. This is
+     * the BCP-47 language code, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * For
+     * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+     * type, only companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * or companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * repeated string language_codes = 3; + */ + public Builder setLanguageCodes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLanguageCodesIsMutable(); + languageCodes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The list of languages of the query. This is
+     * the BCP-47 language code, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * For
+     * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+     * type, only companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * or companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * repeated string language_codes = 3; + */ + public Builder addLanguageCodes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLanguageCodesIsMutable(); + languageCodes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The list of languages of the query. This is
+     * the BCP-47 language code, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * For
+     * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+     * type, only companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * or companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * repeated string language_codes = 3; + */ + public Builder addAllLanguageCodes(java.lang.Iterable values) { + ensureLanguageCodesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageCodes_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The list of languages of the query. This is
+     * the BCP-47 language code, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * For
+     * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+     * type, only companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * or companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * repeated string language_codes = 3; + */ + public Builder clearLanguageCodes() { + languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The list of languages of the query. This is
+     * the BCP-47 language code, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * For
+     * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+     * type, only companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * or companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * repeated string language_codes = 3; + */ + public Builder addLanguageCodesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLanguageCodesIsMutable(); + languageCodes_.add(value); + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Required.
+     * Completion result count.
+     * The maximum allowed page size is 10.
+     * 
+ * + * int32 page_size = 4; + */ + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Required.
+     * Completion result count.
+     * The maximum allowed page size is 10.
+     * 
+ * + * int32 page_size = 4; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Completion result count.
+     * The maximum allowed page size is 10.
+     * 
+ * + * int32 page_size = 4; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object companyName_ = ""; + /** + * + * + *
+     * Optional.
+     * If provided, restricts completion to specified company.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string company_name = 5; + */ + public java.lang.String getCompanyName() { + java.lang.Object ref = companyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + companyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * If provided, restricts completion to specified company.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string company_name = 5; + */ + public com.google.protobuf.ByteString getCompanyNameBytes() { + java.lang.Object ref = companyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + companyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * If provided, restricts completion to specified company.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string company_name = 5; + */ + public Builder setCompanyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + companyName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * If provided, restricts completion to specified company.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string company_name = 5; + */ + public Builder clearCompanyName() { + + companyName_ = getDefaultInstance().getCompanyName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * If provided, restricts completion to specified company.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string company_name = 5; + */ + public Builder setCompanyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + companyName_ = value; + onChanged(); + return this; + } + + private int scope_ = 0; + /** + * + * + *
+     * Optional.
+     * The scope of the completion. The defaults is
+     * [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope scope = 6; + */ + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+     * Optional.
+     * The scope of the completion. The defaults is
+     * [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope scope = 6; + */ + public Builder setScopeValue(int value) { + scope_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The scope of the completion. The defaults is
+     * [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope scope = 6; + */ + public com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope getScope() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope result = + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.valueOf(scope_); + return result == null + ? com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * The scope of the completion. The defaults is
+     * [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope scope = 6; + */ + public Builder setScope( + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope value) { + if (value == null) { + throw new NullPointerException(); + } + + scope_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The scope of the completion. The defaults is
+     * [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope scope = 6; + */ + public Builder clearScope() { + + scope_ = 0; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * + * + *
+     * Optional.
+     * The completion topic. The default is
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 7; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Optional.
+     * The completion topic. The default is
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 7; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The completion topic. The default is
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 7; + */ + public com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType result = + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * The completion topic. The default is
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 7; + */ + public Builder setType( + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The completion topic. The default is
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 7; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CompleteQueryRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompleteQueryRequest) + private static final com.google.cloud.talent.v4beta1.CompleteQueryRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CompleteQueryRequest(); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompleteQueryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompleteQueryRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompleteQueryRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequestOrBuilder.java new file mode 100644 index 000000000000..982aa5ea5358 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequestOrBuilder.java @@ -0,0 +1,281 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/completion_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface CompleteQueryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CompleteQueryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * Resource name of project the completion is performed within.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required.
+   * Resource name of project the completion is performed within.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required.
+   * The query used to generate suggestions.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string query = 2; + */ + java.lang.String getQuery(); + /** + * + * + *
+   * Required.
+   * The query used to generate suggestions.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string query = 2; + */ + com.google.protobuf.ByteString getQueryBytes(); + + /** + * + * + *
+   * Optional.
+   * The list of languages of the query. This is
+   * the BCP-47 language code, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * For
+   * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+   * type, only companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * or companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * repeated string language_codes = 3; + */ + java.util.List getLanguageCodesList(); + /** + * + * + *
+   * Optional.
+   * The list of languages of the query. This is
+   * the BCP-47 language code, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * For
+   * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+   * type, only companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * or companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * repeated string language_codes = 3; + */ + int getLanguageCodesCount(); + /** + * + * + *
+   * Optional.
+   * The list of languages of the query. This is
+   * the BCP-47 language code, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * For
+   * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+   * type, only companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * or companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * repeated string language_codes = 3; + */ + java.lang.String getLanguageCodes(int index); + /** + * + * + *
+   * Optional.
+   * The list of languages of the query. This is
+   * the BCP-47 language code, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * For
+   * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+   * type, only companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * or companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * repeated string language_codes = 3; + */ + com.google.protobuf.ByteString getLanguageCodesBytes(int index); + + /** + * + * + *
+   * Required.
+   * Completion result count.
+   * The maximum allowed page size is 10.
+   * 
+ * + * int32 page_size = 4; + */ + int getPageSize(); + + /** + * + * + *
+   * Optional.
+   * If provided, restricts completion to specified company.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string company_name = 5; + */ + java.lang.String getCompanyName(); + /** + * + * + *
+   * Optional.
+   * If provided, restricts completion to specified company.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string company_name = 5; + */ + com.google.protobuf.ByteString getCompanyNameBytes(); + + /** + * + * + *
+   * Optional.
+   * The scope of the completion. The defaults is
+   * [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC].
+   * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope scope = 6; + */ + int getScopeValue(); + /** + * + * + *
+   * Optional.
+   * The scope of the completion. The defaults is
+   * [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC].
+   * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope scope = 6; + */ + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope getScope(); + + /** + * + * + *
+   * Optional.
+   * The completion topic. The default is
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED].
+   * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 7; + */ + int getTypeValue(); + /** + * + * + *
+   * Optional.
+   * The completion topic. The default is
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED].
+   * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 7; + */ + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType getType(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryResponse.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryResponse.java new file mode 100644 index 000000000000..10807621f658 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryResponse.java @@ -0,0 +1,2284 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/completion_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Output only.
+ * Response of auto-complete query.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompleteQueryResponse} + */ +public final class CompleteQueryResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CompleteQueryResponse) + CompleteQueryResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompleteQueryResponse.newBuilder() to construct. + private CompleteQueryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompleteQueryResponse() { + completionResults_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CompleteQueryResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + completionResults_ = + new java.util.ArrayList< + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult>(); + mutable_bitField0_ |= 0x00000001; + } + completionResults_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + .parser(), + extensionRegistry)); + break; + } + case 18: + { + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = + input.readMessage( + com.google.cloud.talent.v4beta1.ResponseMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + completionResults_ = java.util.Collections.unmodifiableList(completionResults_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompleteQueryResponse.class, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.Builder.class); + } + + public interface CompletionResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The suggestion for the query.
+     * 
+ * + * string suggestion = 1; + */ + java.lang.String getSuggestion(); + /** + * + * + *
+     * The suggestion for the query.
+     * 
+ * + * string suggestion = 1; + */ + com.google.protobuf.ByteString getSuggestionBytes(); + + /** + * + * + *
+     * The completion topic.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 2; + */ + int getTypeValue(); + /** + * + * + *
+     * The completion topic.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 2; + */ + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType getType(); + + /** + * + * + *
+     * The URI of the company image for [CompletionType.COMPANY_NAME][].
+     * 
+ * + * string image_uri = 3; + */ + java.lang.String getImageUri(); + /** + * + * + *
+     * The URI of the company image for [CompletionType.COMPANY_NAME][].
+     * 
+ * + * string image_uri = 3; + */ + com.google.protobuf.ByteString getImageUriBytes(); + } + /** + * + * + *
+   * Output only.
+   * Resource that represents completion results.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult} + */ + public static final class CompletionResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult) + CompletionResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompletionResult.newBuilder() to construct. + private CompletionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompletionResult() { + suggestion_ = ""; + type_ = 0; + imageUri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CompletionResult( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + suggestion_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + imageUri_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_CompletionResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_CompletionResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.class, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder.class); + } + + public static final int SUGGESTION_FIELD_NUMBER = 1; + private volatile java.lang.Object suggestion_; + /** + * + * + *
+     * The suggestion for the query.
+     * 
+ * + * string suggestion = 1; + */ + public java.lang.String getSuggestion() { + java.lang.Object ref = suggestion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestion_ = s; + return s; + } + } + /** + * + * + *
+     * The suggestion for the query.
+     * 
+ * + * string suggestion = 1; + */ + public com.google.protobuf.ByteString getSuggestionBytes() { + java.lang.Object ref = suggestion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + suggestion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_; + /** + * + * + *
+     * The completion topic.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 2; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * The completion topic.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 2; + */ + public com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType result = + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.UNRECOGNIZED + : result; + } + + public static final int IMAGE_URI_FIELD_NUMBER = 3; + private volatile java.lang.Object imageUri_; + /** + * + * + *
+     * The URI of the company image for [CompletionType.COMPANY_NAME][].
+     * 
+ * + * string image_uri = 3; + */ + public java.lang.String getImageUri() { + java.lang.Object ref = imageUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageUri_ = s; + return s; + } + } + /** + * + * + *
+     * The URI of the company image for [CompletionType.COMPANY_NAME][].
+     * 
+ * + * string image_uri = 3; + */ + public com.google.protobuf.ByteString getImageUriBytes() { + java.lang.Object ref = imageUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getSuggestionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, suggestion_); + } + if (type_ + != com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType + .COMPLETION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, type_); + } + if (!getImageUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, imageUri_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSuggestionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, suggestion_); + } + if (type_ + != com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType + .COMPLETION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + } + if (!getImageUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, imageUri_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult other = + (com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult) obj; + + boolean result = true; + result = result && getSuggestion().equals(other.getSuggestion()); + result = result && type_ == other.type_; + result = result && getImageUri().equals(other.getImageUri()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SUGGESTION_FIELD_NUMBER; + hash = (53 * hash) + getSuggestion().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + IMAGE_URI_FIELD_NUMBER; + hash = (53 * hash) + getImageUri().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Output only.
+     * Resource that represents completion results.
+     * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult) + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_CompletionResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_CompletionResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.class, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder + .class); + } + + // Construct using + // com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + suggestion_ = ""; + + type_ = 0; + + imageUri_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_CompletionResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult build() { + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult buildPartial() { + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult result = + new com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult(this); + result.suggestion_ = suggestion_; + result.type_ = type_; + result.imageUri_ = imageUri_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult) { + return mergeFrom( + (com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult other) { + if (other + == com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + .getDefaultInstance()) return this; + if (!other.getSuggestion().isEmpty()) { + suggestion_ = other.suggestion_; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getImageUri().isEmpty()) { + imageUri_ = other.imageUri_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object suggestion_ = ""; + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + */ + public java.lang.String getSuggestion() { + java.lang.Object ref = suggestion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + */ + public com.google.protobuf.ByteString getSuggestionBytes() { + java.lang.Object ref = suggestion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + suggestion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + */ + public Builder setSuggestion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + suggestion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + */ + public Builder clearSuggestion() { + + suggestion_ = getDefaultInstance().getSuggestion(); + onChanged(); + return this; + } + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + */ + public Builder setSuggestionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + suggestion_ = value; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * + * + *
+       * The completion topic.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 2; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+       * The completion topic.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 2; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The completion topic.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 2; + */ + public com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType result = + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * The completion topic.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 2; + */ + public Builder setType( + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * The completion topic.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 2; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object imageUri_ = ""; + /** + * + * + *
+       * The URI of the company image for [CompletionType.COMPANY_NAME][].
+       * 
+ * + * string image_uri = 3; + */ + public java.lang.String getImageUri() { + java.lang.Object ref = imageUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The URI of the company image for [CompletionType.COMPANY_NAME][].
+       * 
+ * + * string image_uri = 3; + */ + public com.google.protobuf.ByteString getImageUriBytes() { + java.lang.Object ref = imageUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The URI of the company image for [CompletionType.COMPANY_NAME][].
+       * 
+ * + * string image_uri = 3; + */ + public Builder setImageUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + imageUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The URI of the company image for [CompletionType.COMPANY_NAME][].
+       * 
+ * + * string image_uri = 3; + */ + public Builder clearImageUri() { + + imageUri_ = getDefaultInstance().getImageUri(); + onChanged(); + return this; + } + /** + * + * + *
+       * The URI of the company image for [CompletionType.COMPANY_NAME][].
+       * 
+ * + * string image_uri = 3; + */ + public Builder setImageUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + imageUri_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult) + private static final com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult(); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompletionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompletionResult(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int COMPLETION_RESULTS_FIELD_NUMBER = 1; + private java.util.List + completionResults_; + /** + * + * + *
+   * Results of the matching job/company candidates.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public java.util.List + getCompletionResultsList() { + return completionResults_; + } + /** + * + * + *
+   * Results of the matching job/company candidates.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResultOrBuilder> + getCompletionResultsOrBuilderList() { + return completionResults_; + } + /** + * + * + *
+   * Results of the matching job/company candidates.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public int getCompletionResultsCount() { + return completionResults_.size(); + } + /** + * + * + *
+   * Results of the matching job/company candidates.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + getCompletionResults(int index) { + return completionResults_.get(index); + } + /** + * + * + *
+   * Results of the matching job/company candidates.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResultOrBuilder + getCompletionResultsOrBuilder(int index) { + return completionResults_.get(index); + } + + public static final int METADATA_FIELD_NUMBER = 2; + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_; + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < completionResults_.size(); i++) { + output.writeMessage(1, completionResults_.get(i)); + } + if (metadata_ != null) { + output.writeMessage(2, getMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < completionResults_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, completionResults_.get(i)); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMetadata()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.CompleteQueryResponse)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CompleteQueryResponse other = + (com.google.cloud.talent.v4beta1.CompleteQueryResponse) obj; + + boolean result = true; + result = result && getCompletionResultsList().equals(other.getCompletionResultsList()); + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata().equals(other.getMetadata()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCompletionResultsCount() > 0) { + hash = (37 * hash) + COMPLETION_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getCompletionResultsList().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.CompleteQueryResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Output only.
+   * Response of auto-complete query.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompleteQueryResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CompleteQueryResponse) + com.google.cloud.talent.v4beta1.CompleteQueryResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompleteQueryResponse.class, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.CompleteQueryResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCompletionResultsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (completionResultsBuilder_ == null) { + completionResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + completionResultsBuilder_.clear(); + } + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompleteQueryResponse getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CompleteQueryResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompleteQueryResponse build() { + com.google.cloud.talent.v4beta1.CompleteQueryResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompleteQueryResponse buildPartial() { + com.google.cloud.talent.v4beta1.CompleteQueryResponse result = + new com.google.cloud.talent.v4beta1.CompleteQueryResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (completionResultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + completionResults_ = java.util.Collections.unmodifiableList(completionResults_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.completionResults_ = completionResults_; + } else { + result.completionResults_ = completionResultsBuilder_.build(); + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CompleteQueryResponse) { + return mergeFrom((com.google.cloud.talent.v4beta1.CompleteQueryResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.CompleteQueryResponse other) { + if (other == com.google.cloud.talent.v4beta1.CompleteQueryResponse.getDefaultInstance()) + return this; + if (completionResultsBuilder_ == null) { + if (!other.completionResults_.isEmpty()) { + if (completionResults_.isEmpty()) { + completionResults_ = other.completionResults_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCompletionResultsIsMutable(); + completionResults_.addAll(other.completionResults_); + } + onChanged(); + } + } else { + if (!other.completionResults_.isEmpty()) { + if (completionResultsBuilder_.isEmpty()) { + completionResultsBuilder_.dispose(); + completionResultsBuilder_ = null; + completionResults_ = other.completionResults_; + bitField0_ = (bitField0_ & ~0x00000001); + completionResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCompletionResultsFieldBuilder() + : null; + } else { + completionResultsBuilder_.addAllMessages(other.completionResults_); + } + } + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.CompleteQueryResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.CompleteQueryResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + completionResults_ = java.util.Collections.emptyList(); + + private void ensureCompletionResultsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + completionResults_ = + new java.util.ArrayList< + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult>( + completionResults_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResultOrBuilder> + completionResultsBuilder_; + + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public java.util.List + getCompletionResultsList() { + if (completionResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(completionResults_); + } else { + return completionResultsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public int getCompletionResultsCount() { + if (completionResultsBuilder_ == null) { + return completionResults_.size(); + } else { + return completionResultsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + getCompletionResults(int index) { + if (completionResultsBuilder_ == null) { + return completionResults_.get(index); + } else { + return completionResultsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public Builder setCompletionResults( + int index, com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult value) { + if (completionResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompletionResultsIsMutable(); + completionResults_.set(index, value); + onChanged(); + } else { + completionResultsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public Builder setCompletionResults( + int index, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder + builderForValue) { + if (completionResultsBuilder_ == null) { + ensureCompletionResultsIsMutable(); + completionResults_.set(index, builderForValue.build()); + onChanged(); + } else { + completionResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public Builder addCompletionResults( + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult value) { + if (completionResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompletionResultsIsMutable(); + completionResults_.add(value); + onChanged(); + } else { + completionResultsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public Builder addCompletionResults( + int index, com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult value) { + if (completionResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompletionResultsIsMutable(); + completionResults_.add(index, value); + onChanged(); + } else { + completionResultsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public Builder addCompletionResults( + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder + builderForValue) { + if (completionResultsBuilder_ == null) { + ensureCompletionResultsIsMutable(); + completionResults_.add(builderForValue.build()); + onChanged(); + } else { + completionResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public Builder addCompletionResults( + int index, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder + builderForValue) { + if (completionResultsBuilder_ == null) { + ensureCompletionResultsIsMutable(); + completionResults_.add(index, builderForValue.build()); + onChanged(); + } else { + completionResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public Builder addAllCompletionResults( + java.lang.Iterable< + ? extends com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult> + values) { + if (completionResultsBuilder_ == null) { + ensureCompletionResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, completionResults_); + onChanged(); + } else { + completionResultsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public Builder clearCompletionResults() { + if (completionResultsBuilder_ == null) { + completionResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + completionResultsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public Builder removeCompletionResults(int index) { + if (completionResultsBuilder_ == null) { + ensureCompletionResultsIsMutable(); + completionResults_.remove(index); + onChanged(); + } else { + completionResultsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder + getCompletionResultsBuilder(int index) { + return getCompletionResultsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResultOrBuilder + getCompletionResultsOrBuilder(int index) { + if (completionResultsBuilder_ == null) { + return completionResults_.get(index); + } else { + return completionResultsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResultOrBuilder> + getCompletionResultsOrBuilderList() { + if (completionResultsBuilder_ != null) { + return completionResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(completionResults_); + } + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder + addCompletionResultsBuilder() { + return getCompletionResultsFieldBuilder() + .addBuilder( + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + .getDefaultInstance()); + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder + addCompletionResultsBuilder(int index) { + return getCompletionResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + .getDefaultInstance()); + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public java.util.List< + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder> + getCompletionResultsBuilderList() { + return getCompletionResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResultOrBuilder> + getCompletionResultsFieldBuilder() { + if (completionResultsBuilder_ == null) { + completionResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResultOrBuilder>( + completionResults_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + completionResults_ = null; + } + return completionResultsBuilder_; + } + + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + metadataBuilder_; + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + public Builder setMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + public Builder setMetadata( + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + public Builder mergeMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.cloud.talent.v4beta1.ResponseMetadata.newBuilder(metadata_) + .mergeFrom(value) + .buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CompleteQueryResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompleteQueryResponse) + private static final com.google.cloud.talent.v4beta1.CompleteQueryResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CompleteQueryResponse(); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompleteQueryResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompleteQueryResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompleteQueryResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryResponseOrBuilder.java new file mode 100644 index 000000000000..11a04a8fe6c9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryResponseOrBuilder.java @@ -0,0 +1,110 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/completion_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface CompleteQueryResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CompleteQueryResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Results of the matching job/company candidates.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + java.util.List + getCompletionResultsList(); + /** + * + * + *
+   * Results of the matching job/company candidates.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult getCompletionResults( + int index); + /** + * + * + *
+   * Results of the matching job/company candidates.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + int getCompletionResultsCount(); + /** + * + * + *
+   * Results of the matching job/company candidates.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + java.util.List< + ? extends com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResultOrBuilder> + getCompletionResultsOrBuilderList(); + /** + * + * + *
+   * Results of the matching job/company candidates.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResultOrBuilder + getCompletionResultsOrBuilder(int index); + + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + boolean hasMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompletionServiceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompletionServiceProto.java new file mode 100644 index 000000000000..71b87989a667 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompletionServiceProto.java @@ -0,0 +1,120 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/completion_service.proto + +package com.google.cloud.talent.v4beta1; + +public final class CompletionServiceProto { + private CompletionServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CompleteQueryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CompleteQueryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_CompletionResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_CompletionResult_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/talent/v4beta1/completion" + + "_service.proto\022\033google.cloud.talent.v4be" + + "ta1\032\034google/api/annotations.proto\032(googl" + + "e/cloud/talent/v4beta1/common.proto\"\305\003\n\024" + + "CompleteQueryRequest\022\014\n\004name\030\001 \001(\t\022\r\n\005qu" + + "ery\030\002 \001(\t\022\026\n\016language_codes\030\003 \003(\t\022\021\n\tpag" + + "e_size\030\004 \001(\005\022\024\n\014company_name\030\005 \001(\t\022P\n\005sc" + + "ope\030\006 \001(\0162A.google.cloud.talent.v4beta1." + + "CompleteQueryRequest.CompletionScope\022N\n\004" + + "type\030\007 \001(\0162@.google.cloud.talent.v4beta1" + + ".CompleteQueryRequest.CompletionType\"K\n\017" + + "CompletionScope\022 \n\034COMPLETION_SCOPE_UNSP" + + "ECIFIED\020\000\022\n\n\006TENANT\020\001\022\n\n\006PUBLIC\020\002\"`\n\016Com" + + "pletionType\022\037\n\033COMPLETION_TYPE_UNSPECIFI" + + "ED\020\000\022\r\n\tJOB_TITLE\020\001\022\020\n\014COMPANY_NAME\020\002\022\014\n" + + "\010COMBINED\020\003\"\305\002\n\025CompleteQueryResponse\022_\n" + + "\022completion_results\030\001 \003(\0132C.google.cloud" + + ".talent.v4beta1.CompleteQueryResponse.Co" + + "mpletionResult\022?\n\010metadata\030\002 \001(\0132-.googl" + + "e.cloud.talent.v4beta1.ResponseMetadata\032" + + "\211\001\n\020CompletionResult\022\022\n\nsuggestion\030\001 \001(\t" + + "\022N\n\004type\030\002 \001(\0162@.google.cloud.talent.v4b" + + "eta1.CompleteQueryRequest.CompletionType" + + "\022\021\n\timage_uri\030\003 \001(\t2\262\001\n\nCompletion\022\243\001\n\rC" + + "ompleteQuery\0221.google.cloud.talent.v4bet" + + "a1.CompleteQueryRequest\0322.google.cloud.t" + + "alent.v4beta1.CompleteQueryResponse\"+\202\323\344" + + "\223\002%\022#/v4beta1/{name=projects/*}:complete" + + "B\204\001\n\037com.google.cloud.talent.v4beta1B\026Co" + + "mpletionServiceProtoP\001ZAgoogle.golang.or" + + "g/genproto/googleapis/cloud/talent/v4bet" + + "a1;talent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_CompleteQueryRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_CompleteQueryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CompleteQueryRequest_descriptor, + new java.lang.String[] { + "Name", "Query", "LanguageCodes", "PageSize", "CompanyName", "Scope", "Type", + }); + internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_descriptor, + new java.lang.String[] { + "CompletionResults", "Metadata", + }); + internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_CompletionResult_descriptor = + internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_CompletionResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_CompletionResult_descriptor, + new java.lang.String[] { + "Suggestion", "Type", "ImageUri", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ContactInfoUsage.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ContactInfoUsage.java new file mode 100644 index 000000000000..49c59a2d0bd5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ContactInfoUsage.java @@ -0,0 +1,171 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Enum that represents the usage of the contact information.
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.ContactInfoUsage} + */ +public enum ContactInfoUsage implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value.
+   * 
+ * + * CONTACT_INFO_USAGE_UNSPECIFIED = 0; + */ + CONTACT_INFO_USAGE_UNSPECIFIED(0), + /** + * + * + *
+   * Personal use.
+   * 
+ * + * PERSONAL = 1; + */ + PERSONAL(1), + /** + * + * + *
+   * Work use.
+   * 
+ * + * WORK = 2; + */ + WORK(2), + /** + * + * + *
+   * School use.
+   * 
+ * + * SCHOOL = 3; + */ + SCHOOL(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value.
+   * 
+ * + * CONTACT_INFO_USAGE_UNSPECIFIED = 0; + */ + public static final int CONTACT_INFO_USAGE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Personal use.
+   * 
+ * + * PERSONAL = 1; + */ + public static final int PERSONAL_VALUE = 1; + /** + * + * + *
+   * Work use.
+   * 
+ * + * WORK = 2; + */ + public static final int WORK_VALUE = 2; + /** + * + * + *
+   * School use.
+   * 
+ * + * SCHOOL = 3; + */ + public static final int SCHOOL_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static ContactInfoUsage valueOf(int value) { + return forNumber(value); + } + + public static ContactInfoUsage forNumber(int value) { + switch (value) { + case 0: + return CONTACT_INFO_USAGE_UNSPECIFIED; + case 1: + return PERSONAL; + case 2: + return WORK; + case 3: + return SCHOOL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ContactInfoUsage findValueByNumber(int number) { + return ContactInfoUsage.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(8); + } + + private static final ContactInfoUsage[] VALUES = values(); + + public static ContactInfoUsage valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ContactInfoUsage(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.ContactInfoUsage) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateClientEventRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateClientEventRequest.java new file mode 100644 index 000000000000..fc01eee2b685 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateClientEventRequest.java @@ -0,0 +1,891 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/event_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * The report event request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CreateClientEventRequest} + */ +public final class CreateClientEventRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CreateClientEventRequest) + CreateClientEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateClientEventRequest.newBuilder() to construct. + private CreateClientEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateClientEventRequest() { + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateClientEventRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.cloud.talent.v4beta1.ClientEvent.Builder subBuilder = null; + if (clientEvent_ != null) { + subBuilder = clientEvent_.toBuilder(); + } + clientEvent_ = + input.readMessage( + com.google.cloud.talent.v4beta1.ClientEvent.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(clientEvent_); + clientEvent_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.EventServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateClientEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.EventServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateClientEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CreateClientEventRequest.class, + com.google.cloud.talent.v4beta1.CreateClientEventRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Parent project name.
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Parent project name.
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_EVENT_FIELD_NUMBER = 2; + private com.google.cloud.talent.v4beta1.ClientEvent clientEvent_; + /** + * + * + *
+   * Required.
+   * Events issued when end user interacts with customer's application that
+   * uses Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + public boolean hasClientEvent() { + return clientEvent_ != null; + } + /** + * + * + *
+   * Required.
+   * Events issued when end user interacts with customer's application that
+   * uses Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + public com.google.cloud.talent.v4beta1.ClientEvent getClientEvent() { + return clientEvent_ == null + ? com.google.cloud.talent.v4beta1.ClientEvent.getDefaultInstance() + : clientEvent_; + } + /** + * + * + *
+   * Required.
+   * Events issued when end user interacts with customer's application that
+   * uses Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + public com.google.cloud.talent.v4beta1.ClientEventOrBuilder getClientEventOrBuilder() { + return getClientEvent(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (clientEvent_ != null) { + output.writeMessage(2, getClientEvent()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (clientEvent_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getClientEvent()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.CreateClientEventRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CreateClientEventRequest other = + (com.google.cloud.talent.v4beta1.CreateClientEventRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && (hasClientEvent() == other.hasClientEvent()); + if (hasClientEvent()) { + result = result && getClientEvent().equals(other.getClientEvent()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasClientEvent()) { + hash = (37 * hash) + CLIENT_EVENT_FIELD_NUMBER; + hash = (53 * hash) + getClientEvent().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.CreateClientEventRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The report event request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CreateClientEventRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CreateClientEventRequest) + com.google.cloud.talent.v4beta1.CreateClientEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.EventServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateClientEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.EventServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateClientEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CreateClientEventRequest.class, + com.google.cloud.talent.v4beta1.CreateClientEventRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.CreateClientEventRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (clientEventBuilder_ == null) { + clientEvent_ = null; + } else { + clientEvent_ = null; + clientEventBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.EventServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateClientEventRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateClientEventRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CreateClientEventRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateClientEventRequest build() { + com.google.cloud.talent.v4beta1.CreateClientEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateClientEventRequest buildPartial() { + com.google.cloud.talent.v4beta1.CreateClientEventRequest result = + new com.google.cloud.talent.v4beta1.CreateClientEventRequest(this); + result.parent_ = parent_; + if (clientEventBuilder_ == null) { + result.clientEvent_ = clientEvent_; + } else { + result.clientEvent_ = clientEventBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CreateClientEventRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.CreateClientEventRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.CreateClientEventRequest other) { + if (other == com.google.cloud.talent.v4beta1.CreateClientEventRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasClientEvent()) { + mergeClientEvent(other.getClientEvent()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.CreateClientEventRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.CreateClientEventRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Parent project name.
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Parent project name.
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Parent project name.
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Parent project name.
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Parent project name.
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.ClientEvent clientEvent_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ClientEvent, + com.google.cloud.talent.v4beta1.ClientEvent.Builder, + com.google.cloud.talent.v4beta1.ClientEventOrBuilder> + clientEventBuilder_; + /** + * + * + *
+     * Required.
+     * Events issued when end user interacts with customer's application that
+     * uses Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + public boolean hasClientEvent() { + return clientEventBuilder_ != null || clientEvent_ != null; + } + /** + * + * + *
+     * Required.
+     * Events issued when end user interacts with customer's application that
+     * uses Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + public com.google.cloud.talent.v4beta1.ClientEvent getClientEvent() { + if (clientEventBuilder_ == null) { + return clientEvent_ == null + ? com.google.cloud.talent.v4beta1.ClientEvent.getDefaultInstance() + : clientEvent_; + } else { + return clientEventBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * Events issued when end user interacts with customer's application that
+     * uses Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + public Builder setClientEvent(com.google.cloud.talent.v4beta1.ClientEvent value) { + if (clientEventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + clientEvent_ = value; + onChanged(); + } else { + clientEventBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * Events issued when end user interacts with customer's application that
+     * uses Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + public Builder setClientEvent( + com.google.cloud.talent.v4beta1.ClientEvent.Builder builderForValue) { + if (clientEventBuilder_ == null) { + clientEvent_ = builderForValue.build(); + onChanged(); + } else { + clientEventBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * Events issued when end user interacts with customer's application that
+     * uses Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + public Builder mergeClientEvent(com.google.cloud.talent.v4beta1.ClientEvent value) { + if (clientEventBuilder_ == null) { + if (clientEvent_ != null) { + clientEvent_ = + com.google.cloud.talent.v4beta1.ClientEvent.newBuilder(clientEvent_) + .mergeFrom(value) + .buildPartial(); + } else { + clientEvent_ = value; + } + onChanged(); + } else { + clientEventBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * Events issued when end user interacts with customer's application that
+     * uses Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + public Builder clearClientEvent() { + if (clientEventBuilder_ == null) { + clientEvent_ = null; + onChanged(); + } else { + clientEvent_ = null; + clientEventBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * Events issued when end user interacts with customer's application that
+     * uses Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + public com.google.cloud.talent.v4beta1.ClientEvent.Builder getClientEventBuilder() { + + onChanged(); + return getClientEventFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * Events issued when end user interacts with customer's application that
+     * uses Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + public com.google.cloud.talent.v4beta1.ClientEventOrBuilder getClientEventOrBuilder() { + if (clientEventBuilder_ != null) { + return clientEventBuilder_.getMessageOrBuilder(); + } else { + return clientEvent_ == null + ? com.google.cloud.talent.v4beta1.ClientEvent.getDefaultInstance() + : clientEvent_; + } + } + /** + * + * + *
+     * Required.
+     * Events issued when end user interacts with customer's application that
+     * uses Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ClientEvent, + com.google.cloud.talent.v4beta1.ClientEvent.Builder, + com.google.cloud.talent.v4beta1.ClientEventOrBuilder> + getClientEventFieldBuilder() { + if (clientEventBuilder_ == null) { + clientEventBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ClientEvent, + com.google.cloud.talent.v4beta1.ClientEvent.Builder, + com.google.cloud.talent.v4beta1.ClientEventOrBuilder>( + getClientEvent(), getParentForChildren(), isClean()); + clientEvent_ = null; + } + return clientEventBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CreateClientEventRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CreateClientEventRequest) + private static final com.google.cloud.talent.v4beta1.CreateClientEventRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CreateClientEventRequest(); + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateClientEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateClientEventRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateClientEventRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateClientEventRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateClientEventRequestOrBuilder.java new file mode 100644 index 000000000000..fc28ad9c1563 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateClientEventRequestOrBuilder.java @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/event_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface CreateClientEventRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CreateClientEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Parent project name.
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Parent project name.
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required.
+   * Events issued when end user interacts with customer's application that
+   * uses Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + boolean hasClientEvent(); + /** + * + * + *
+   * Required.
+   * Events issued when end user interacts with customer's application that
+   * uses Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + com.google.cloud.talent.v4beta1.ClientEvent getClientEvent(); + /** + * + * + *
+   * Required.
+   * Events issued when end user interacts with customer's application that
+   * uses Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + com.google.cloud.talent.v4beta1.ClientEventOrBuilder getClientEventOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateCompanyRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateCompanyRequest.java new file mode 100644 index 000000000000..3d96e5681665 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateCompanyRequest.java @@ -0,0 +1,898 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * The Request of the CreateCompany method.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CreateCompanyRequest} + */ +public final class CreateCompanyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CreateCompanyRequest) + CreateCompanyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateCompanyRequest.newBuilder() to construct. + private CreateCompanyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateCompanyRequest() { + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateCompanyRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.cloud.talent.v4beta1.Company.Builder subBuilder = null; + if (company_ != null) { + subBuilder = company_.toBuilder(); + } + company_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Company.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(company_); + company_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateCompanyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateCompanyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CreateCompanyRequest.class, + com.google.cloud.talent.v4beta1.CreateCompanyRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the company is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the company is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPANY_FIELD_NUMBER = 2; + private com.google.cloud.talent.v4beta1.Company company_; + /** + * + * + *
+   * Required.
+   * The company to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + public boolean hasCompany() { + return company_ != null; + } + /** + * + * + *
+   * Required.
+   * The company to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + public com.google.cloud.talent.v4beta1.Company getCompany() { + return company_ == null + ? com.google.cloud.talent.v4beta1.Company.getDefaultInstance() + : company_; + } + /** + * + * + *
+   * Required.
+   * The company to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + public com.google.cloud.talent.v4beta1.CompanyOrBuilder getCompanyOrBuilder() { + return getCompany(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (company_ != null) { + output.writeMessage(2, getCompany()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (company_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCompany()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.CreateCompanyRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CreateCompanyRequest other = + (com.google.cloud.talent.v4beta1.CreateCompanyRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && (hasCompany() == other.hasCompany()); + if (hasCompany()) { + result = result && getCompany().equals(other.getCompany()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasCompany()) { + hash = (37 * hash) + COMPANY_FIELD_NUMBER; + hash = (53 * hash) + getCompany().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.CreateCompanyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The Request of the CreateCompany method.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CreateCompanyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CreateCompanyRequest) + com.google.cloud.talent.v4beta1.CreateCompanyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateCompanyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateCompanyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CreateCompanyRequest.class, + com.google.cloud.talent.v4beta1.CreateCompanyRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.CreateCompanyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (companyBuilder_ == null) { + company_ = null; + } else { + company_ = null; + companyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateCompanyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateCompanyRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CreateCompanyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateCompanyRequest build() { + com.google.cloud.talent.v4beta1.CreateCompanyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateCompanyRequest buildPartial() { + com.google.cloud.talent.v4beta1.CreateCompanyRequest result = + new com.google.cloud.talent.v4beta1.CreateCompanyRequest(this); + result.parent_ = parent_; + if (companyBuilder_ == null) { + result.company_ = company_; + } else { + result.company_ = companyBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CreateCompanyRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.CreateCompanyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.CreateCompanyRequest other) { + if (other == com.google.cloud.talent.v4beta1.CreateCompanyRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasCompany()) { + mergeCompany(other.getCompany()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.CreateCompanyRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.CreateCompanyRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the company is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the company is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the company is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the company is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the company is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.Company company_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company, + com.google.cloud.talent.v4beta1.Company.Builder, + com.google.cloud.talent.v4beta1.CompanyOrBuilder> + companyBuilder_; + /** + * + * + *
+     * Required.
+     * The company to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + public boolean hasCompany() { + return companyBuilder_ != null || company_ != null; + } + /** + * + * + *
+     * Required.
+     * The company to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + public com.google.cloud.talent.v4beta1.Company getCompany() { + if (companyBuilder_ == null) { + return company_ == null + ? com.google.cloud.talent.v4beta1.Company.getDefaultInstance() + : company_; + } else { + return companyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The company to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + public Builder setCompany(com.google.cloud.talent.v4beta1.Company value) { + if (companyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + company_ = value; + onChanged(); + } else { + companyBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The company to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + public Builder setCompany(com.google.cloud.talent.v4beta1.Company.Builder builderForValue) { + if (companyBuilder_ == null) { + company_ = builderForValue.build(); + onChanged(); + } else { + companyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The company to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + public Builder mergeCompany(com.google.cloud.talent.v4beta1.Company value) { + if (companyBuilder_ == null) { + if (company_ != null) { + company_ = + com.google.cloud.talent.v4beta1.Company.newBuilder(company_) + .mergeFrom(value) + .buildPartial(); + } else { + company_ = value; + } + onChanged(); + } else { + companyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The company to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + public Builder clearCompany() { + if (companyBuilder_ == null) { + company_ = null; + onChanged(); + } else { + company_ = null; + companyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The company to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + public com.google.cloud.talent.v4beta1.Company.Builder getCompanyBuilder() { + + onChanged(); + return getCompanyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The company to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + public com.google.cloud.talent.v4beta1.CompanyOrBuilder getCompanyOrBuilder() { + if (companyBuilder_ != null) { + return companyBuilder_.getMessageOrBuilder(); + } else { + return company_ == null + ? com.google.cloud.talent.v4beta1.Company.getDefaultInstance() + : company_; + } + } + /** + * + * + *
+     * Required.
+     * The company to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company, + com.google.cloud.talent.v4beta1.Company.Builder, + com.google.cloud.talent.v4beta1.CompanyOrBuilder> + getCompanyFieldBuilder() { + if (companyBuilder_ == null) { + companyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company, + com.google.cloud.talent.v4beta1.Company.Builder, + com.google.cloud.talent.v4beta1.CompanyOrBuilder>( + getCompany(), getParentForChildren(), isClean()); + company_ = null; + } + return companyBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CreateCompanyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CreateCompanyRequest) + private static final com.google.cloud.talent.v4beta1.CreateCompanyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CreateCompanyRequest(); + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCompanyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateCompanyRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateCompanyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateCompanyRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateCompanyRequestOrBuilder.java new file mode 100644 index 000000000000..66c77cc47271 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateCompanyRequestOrBuilder.java @@ -0,0 +1,71 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface CreateCompanyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CreateCompanyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the company is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the company is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required.
+   * The company to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + boolean hasCompany(); + /** + * + * + *
+   * Required.
+   * The company to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + com.google.cloud.talent.v4beta1.Company getCompany(); + /** + * + * + *
+   * Required.
+   * The company to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + com.google.cloud.talent.v4beta1.CompanyOrBuilder getCompanyOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateJobRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateJobRequest.java new file mode 100644 index 000000000000..ef27d7e96821 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateJobRequest.java @@ -0,0 +1,891 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Create job request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CreateJobRequest} + */ +public final class CreateJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CreateJobRequest) + CreateJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateJobRequest.newBuilder() to construct. + private CreateJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateJobRequest() { + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateJobRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.cloud.talent.v4beta1.Job.Builder subBuilder = null; + if (job_ != null) { + subBuilder = job_.toBuilder(); + } + job_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Job.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(job_); + job_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CreateJobRequest.class, + com.google.cloud.talent.v4beta1.CreateJobRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOB_FIELD_NUMBER = 2; + private com.google.cloud.talent.v4beta1.Job job_; + /** + * + * + *
+   * Required.
+   * The Job to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + public boolean hasJob() { + return job_ != null; + } + /** + * + * + *
+   * Required.
+   * The Job to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + public com.google.cloud.talent.v4beta1.Job getJob() { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } + /** + * + * + *
+   * Required.
+   * The Job to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + public com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder() { + return getJob(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (job_ != null) { + output.writeMessage(2, getJob()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (job_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getJob()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.CreateJobRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CreateJobRequest other = + (com.google.cloud.talent.v4beta1.CreateJobRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && (hasJob() == other.hasJob()); + if (hasJob()) { + result = result && getJob().equals(other.getJob()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasJob()) { + hash = (37 * hash) + JOB_FIELD_NUMBER; + hash = (53 * hash) + getJob().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.CreateJobRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Create job request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CreateJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CreateJobRequest) + com.google.cloud.talent.v4beta1.CreateJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CreateJobRequest.class, + com.google.cloud.talent.v4beta1.CreateJobRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.CreateJobRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (jobBuilder_ == null) { + job_ = null; + } else { + job_ = null; + jobBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateJobRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CreateJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateJobRequest build() { + com.google.cloud.talent.v4beta1.CreateJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateJobRequest buildPartial() { + com.google.cloud.talent.v4beta1.CreateJobRequest result = + new com.google.cloud.talent.v4beta1.CreateJobRequest(this); + result.parent_ = parent_; + if (jobBuilder_ == null) { + result.job_ = job_; + } else { + result.job_ = jobBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CreateJobRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.CreateJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.CreateJobRequest other) { + if (other == com.google.cloud.talent.v4beta1.CreateJobRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasJob()) { + mergeJob(other.getJob()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.CreateJobRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.CreateJobRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.Job job_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder> + jobBuilder_; + /** + * + * + *
+     * Required.
+     * The Job to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + public boolean hasJob() { + return jobBuilder_ != null || job_ != null; + } + /** + * + * + *
+     * Required.
+     * The Job to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + public com.google.cloud.talent.v4beta1.Job getJob() { + if (jobBuilder_ == null) { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } else { + return jobBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The Job to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + public Builder setJob(com.google.cloud.talent.v4beta1.Job value) { + if (jobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + job_ = value; + onChanged(); + } else { + jobBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The Job to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + public Builder setJob(com.google.cloud.talent.v4beta1.Job.Builder builderForValue) { + if (jobBuilder_ == null) { + job_ = builderForValue.build(); + onChanged(); + } else { + jobBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The Job to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + public Builder mergeJob(com.google.cloud.talent.v4beta1.Job value) { + if (jobBuilder_ == null) { + if (job_ != null) { + job_ = + com.google.cloud.talent.v4beta1.Job.newBuilder(job_).mergeFrom(value).buildPartial(); + } else { + job_ = value; + } + onChanged(); + } else { + jobBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The Job to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + public Builder clearJob() { + if (jobBuilder_ == null) { + job_ = null; + onChanged(); + } else { + job_ = null; + jobBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The Job to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + public com.google.cloud.talent.v4beta1.Job.Builder getJobBuilder() { + + onChanged(); + return getJobFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The Job to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + public com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder() { + if (jobBuilder_ != null) { + return jobBuilder_.getMessageOrBuilder(); + } else { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } + } + /** + * + * + *
+     * Required.
+     * The Job to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder> + getJobFieldBuilder() { + if (jobBuilder_ == null) { + jobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder>( + getJob(), getParentForChildren(), isClean()); + job_ = null; + } + return jobBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CreateJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CreateJobRequest) + private static final com.google.cloud.talent.v4beta1.CreateJobRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CreateJobRequest(); + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateJobRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateJobRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateJobRequestOrBuilder.java new file mode 100644 index 000000000000..d26387c15ca5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateJobRequestOrBuilder.java @@ -0,0 +1,71 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface CreateJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CreateJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required.
+   * The Job to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + boolean hasJob(); + /** + * + * + *
+   * Required.
+   * The Job to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + com.google.cloud.talent.v4beta1.Job getJob(); + /** + * + * + *
+   * Required.
+   * The Job to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateProfileRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateProfileRequest.java new file mode 100644 index 000000000000..4bc6ce2c11d5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateProfileRequest.java @@ -0,0 +1,898 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Create profile request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CreateProfileRequest} + */ +public final class CreateProfileRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CreateProfileRequest) + CreateProfileRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateProfileRequest.newBuilder() to construct. + private CreateProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateProfileRequest() { + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateProfileRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.cloud.talent.v4beta1.Profile.Builder subBuilder = null; + if (profile_ != null) { + subBuilder = profile_.toBuilder(); + } + profile_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Profile.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(profile_); + profile_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CreateProfileRequest.class, + com.google.cloud.talent.v4beta1.CreateProfileRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * The name of the tenant this profile belongs to.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The name of the tenant this profile belongs to.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROFILE_FIELD_NUMBER = 2; + private com.google.cloud.talent.v4beta1.Profile profile_; + /** + * + * + *
+   * Required.
+   * The profile to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + public boolean hasProfile() { + return profile_ != null; + } + /** + * + * + *
+   * Required.
+   * The profile to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + public com.google.cloud.talent.v4beta1.Profile getProfile() { + return profile_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : profile_; + } + /** + * + * + *
+   * Required.
+   * The profile to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder() { + return getProfile(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (profile_ != null) { + output.writeMessage(2, getProfile()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (profile_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProfile()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.CreateProfileRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CreateProfileRequest other = + (com.google.cloud.talent.v4beta1.CreateProfileRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && (hasProfile() == other.hasProfile()); + if (hasProfile()) { + result = result && getProfile().equals(other.getProfile()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasProfile()) { + hash = (37 * hash) + PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getProfile().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.CreateProfileRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Create profile request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CreateProfileRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CreateProfileRequest) + com.google.cloud.talent.v4beta1.CreateProfileRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CreateProfileRequest.class, + com.google.cloud.talent.v4beta1.CreateProfileRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.CreateProfileRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (profileBuilder_ == null) { + profile_ = null; + } else { + profile_ = null; + profileBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateProfileRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CreateProfileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateProfileRequest build() { + com.google.cloud.talent.v4beta1.CreateProfileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateProfileRequest buildPartial() { + com.google.cloud.talent.v4beta1.CreateProfileRequest result = + new com.google.cloud.talent.v4beta1.CreateProfileRequest(this); + result.parent_ = parent_; + if (profileBuilder_ == null) { + result.profile_ = profile_; + } else { + result.profile_ = profileBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CreateProfileRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.CreateProfileRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.CreateProfileRequest other) { + if (other == com.google.cloud.talent.v4beta1.CreateProfileRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasProfile()) { + mergeProfile(other.getProfile()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.CreateProfileRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.CreateProfileRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * The name of the tenant this profile belongs to.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The name of the tenant this profile belongs to.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The name of the tenant this profile belongs to.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The name of the tenant this profile belongs to.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The name of the tenant this profile belongs to.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.Profile profile_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + profileBuilder_; + /** + * + * + *
+     * Required.
+     * The profile to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + public boolean hasProfile() { + return profileBuilder_ != null || profile_ != null; + } + /** + * + * + *
+     * Required.
+     * The profile to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + public com.google.cloud.talent.v4beta1.Profile getProfile() { + if (profileBuilder_ == null) { + return profile_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : profile_; + } else { + return profileBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The profile to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + public Builder setProfile(com.google.cloud.talent.v4beta1.Profile value) { + if (profileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profile_ = value; + onChanged(); + } else { + profileBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The profile to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + public Builder setProfile(com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { + if (profileBuilder_ == null) { + profile_ = builderForValue.build(); + onChanged(); + } else { + profileBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The profile to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + public Builder mergeProfile(com.google.cloud.talent.v4beta1.Profile value) { + if (profileBuilder_ == null) { + if (profile_ != null) { + profile_ = + com.google.cloud.talent.v4beta1.Profile.newBuilder(profile_) + .mergeFrom(value) + .buildPartial(); + } else { + profile_ = value; + } + onChanged(); + } else { + profileBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The profile to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + public Builder clearProfile() { + if (profileBuilder_ == null) { + profile_ = null; + onChanged(); + } else { + profile_ = null; + profileBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The profile to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + public com.google.cloud.talent.v4beta1.Profile.Builder getProfileBuilder() { + + onChanged(); + return getProfileFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The profile to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder() { + if (profileBuilder_ != null) { + return profileBuilder_.getMessageOrBuilder(); + } else { + return profile_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : profile_; + } + } + /** + * + * + *
+     * Required.
+     * The profile to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + getProfileFieldBuilder() { + if (profileBuilder_ == null) { + profileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder>( + getProfile(), getParentForChildren(), isClean()); + profile_ = null; + } + return profileBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CreateProfileRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CreateProfileRequest) + private static final com.google.cloud.talent.v4beta1.CreateProfileRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CreateProfileRequest(); + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateProfileRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateProfileRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateProfileRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateProfileRequestOrBuilder.java new file mode 100644 index 000000000000..99906e3c1cbb --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateProfileRequestOrBuilder.java @@ -0,0 +1,71 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface CreateProfileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CreateProfileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The name of the tenant this profile belongs to.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * The name of the tenant this profile belongs to.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required.
+   * The profile to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + boolean hasProfile(); + /** + * + * + *
+   * Required.
+   * The profile to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + com.google.cloud.talent.v4beta1.Profile getProfile(); + /** + * + * + *
+   * Required.
+   * The profile to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateTenantRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateTenantRequest.java new file mode 100644 index 000000000000..2c99d90fa316 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateTenantRequest.java @@ -0,0 +1,896 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * The Request of the CreateTenant method.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CreateTenantRequest} + */ +public final class CreateTenantRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CreateTenantRequest) + CreateTenantRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateTenantRequest.newBuilder() to construct. + private CreateTenantRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateTenantRequest() { + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateTenantRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.cloud.talent.v4beta1.Tenant.Builder subBuilder = null; + if (tenant_ != null) { + subBuilder = tenant_.toBuilder(); + } + tenant_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Tenant.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tenant_); + tenant_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateTenantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateTenantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CreateTenantRequest.class, + com.google.cloud.talent.v4beta1.CreateTenantRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the tenant is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the tenant is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TENANT_FIELD_NUMBER = 2; + private com.google.cloud.talent.v4beta1.Tenant tenant_; + /** + * + * + *
+   * Required.
+   * The tenant to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + public boolean hasTenant() { + return tenant_ != null; + } + /** + * + * + *
+   * Required.
+   * The tenant to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + public com.google.cloud.talent.v4beta1.Tenant getTenant() { + return tenant_ == null ? com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance() : tenant_; + } + /** + * + * + *
+   * Required.
+   * The tenant to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + public com.google.cloud.talent.v4beta1.TenantOrBuilder getTenantOrBuilder() { + return getTenant(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (tenant_ != null) { + output.writeMessage(2, getTenant()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (tenant_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTenant()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.CreateTenantRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CreateTenantRequest other = + (com.google.cloud.talent.v4beta1.CreateTenantRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && (hasTenant() == other.hasTenant()); + if (hasTenant()) { + result = result && getTenant().equals(other.getTenant()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasTenant()) { + hash = (37 * hash) + TENANT_FIELD_NUMBER; + hash = (53 * hash) + getTenant().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.CreateTenantRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The Request of the CreateTenant method.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CreateTenantRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CreateTenantRequest) + com.google.cloud.talent.v4beta1.CreateTenantRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateTenantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateTenantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CreateTenantRequest.class, + com.google.cloud.talent.v4beta1.CreateTenantRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.CreateTenantRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (tenantBuilder_ == null) { + tenant_ = null; + } else { + tenant_ = null; + tenantBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateTenantRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateTenantRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CreateTenantRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateTenantRequest build() { + com.google.cloud.talent.v4beta1.CreateTenantRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateTenantRequest buildPartial() { + com.google.cloud.talent.v4beta1.CreateTenantRequest result = + new com.google.cloud.talent.v4beta1.CreateTenantRequest(this); + result.parent_ = parent_; + if (tenantBuilder_ == null) { + result.tenant_ = tenant_; + } else { + result.tenant_ = tenantBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CreateTenantRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.CreateTenantRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.CreateTenantRequest other) { + if (other == com.google.cloud.talent.v4beta1.CreateTenantRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasTenant()) { + mergeTenant(other.getTenant()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.CreateTenantRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.CreateTenantRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the tenant is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the tenant is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the tenant is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the tenant is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the tenant is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.Tenant tenant_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Tenant, + com.google.cloud.talent.v4beta1.Tenant.Builder, + com.google.cloud.talent.v4beta1.TenantOrBuilder> + tenantBuilder_; + /** + * + * + *
+     * Required.
+     * The tenant to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + public boolean hasTenant() { + return tenantBuilder_ != null || tenant_ != null; + } + /** + * + * + *
+     * Required.
+     * The tenant to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + public com.google.cloud.talent.v4beta1.Tenant getTenant() { + if (tenantBuilder_ == null) { + return tenant_ == null + ? com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance() + : tenant_; + } else { + return tenantBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The tenant to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + public Builder setTenant(com.google.cloud.talent.v4beta1.Tenant value) { + if (tenantBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tenant_ = value; + onChanged(); + } else { + tenantBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The tenant to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + public Builder setTenant(com.google.cloud.talent.v4beta1.Tenant.Builder builderForValue) { + if (tenantBuilder_ == null) { + tenant_ = builderForValue.build(); + onChanged(); + } else { + tenantBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The tenant to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + public Builder mergeTenant(com.google.cloud.talent.v4beta1.Tenant value) { + if (tenantBuilder_ == null) { + if (tenant_ != null) { + tenant_ = + com.google.cloud.talent.v4beta1.Tenant.newBuilder(tenant_) + .mergeFrom(value) + .buildPartial(); + } else { + tenant_ = value; + } + onChanged(); + } else { + tenantBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The tenant to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + public Builder clearTenant() { + if (tenantBuilder_ == null) { + tenant_ = null; + onChanged(); + } else { + tenant_ = null; + tenantBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The tenant to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + public com.google.cloud.talent.v4beta1.Tenant.Builder getTenantBuilder() { + + onChanged(); + return getTenantFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The tenant to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + public com.google.cloud.talent.v4beta1.TenantOrBuilder getTenantOrBuilder() { + if (tenantBuilder_ != null) { + return tenantBuilder_.getMessageOrBuilder(); + } else { + return tenant_ == null + ? com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance() + : tenant_; + } + } + /** + * + * + *
+     * Required.
+     * The tenant to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Tenant, + com.google.cloud.talent.v4beta1.Tenant.Builder, + com.google.cloud.talent.v4beta1.TenantOrBuilder> + getTenantFieldBuilder() { + if (tenantBuilder_ == null) { + tenantBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Tenant, + com.google.cloud.talent.v4beta1.Tenant.Builder, + com.google.cloud.talent.v4beta1.TenantOrBuilder>( + getTenant(), getParentForChildren(), isClean()); + tenant_ = null; + } + return tenantBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CreateTenantRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CreateTenantRequest) + private static final com.google.cloud.talent.v4beta1.CreateTenantRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CreateTenantRequest(); + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTenantRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateTenantRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateTenantRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateTenantRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateTenantRequestOrBuilder.java new file mode 100644 index 000000000000..418f88b7ef4b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateTenantRequestOrBuilder.java @@ -0,0 +1,71 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface CreateTenantRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CreateTenantRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the tenant is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the tenant is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required.
+   * The tenant to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + boolean hasTenant(); + /** + * + * + *
+   * Required.
+   * The tenant to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + com.google.cloud.talent.v4beta1.Tenant getTenant(); + /** + * + * + *
+   * Required.
+   * The tenant to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + com.google.cloud.talent.v4beta1.TenantOrBuilder getTenantOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CustomAttribute.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CustomAttribute.java new file mode 100644 index 000000000000..dfa5c3b82e5e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CustomAttribute.java @@ -0,0 +1,1202 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Custom attribute values that are either filterable or non-filterable.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CustomAttribute} + */ +public final class CustomAttribute extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CustomAttribute) + CustomAttributeOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomAttribute.newBuilder() to construct. + private CustomAttribute(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomAttribute() { + stringValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + longValues_ = java.util.Collections.emptyList(); + filterable_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CustomAttribute( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + stringValues_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + stringValues_.add(s); + break; + } + case 16: + { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + longValues_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + longValues_.add(input.readInt64()); + break; + } + case 18: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) + && input.getBytesUntilLimit() > 0) { + longValues_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + while (input.getBytesUntilLimit() > 0) { + longValues_.add(input.readInt64()); + } + input.popLimit(limit); + break; + } + case 24: + { + filterable_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + stringValues_ = stringValues_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + longValues_ = java.util.Collections.unmodifiableList(longValues_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CustomAttribute_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CustomAttribute_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CustomAttribute.class, + com.google.cloud.talent.v4beta1.CustomAttribute.Builder.class); + } + + private int bitField0_; + public static final int STRING_VALUES_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList stringValues_; + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+   * `CASE_INSENSITIVE_MATCH`) search.
+   * For filterable `string_value`s, a maximum total number of 200 values
+   * is allowed, with each `string_value` has a byte size of no more than
+   * 255B. For unfilterable `string_values`, the maximum total byte size of
+   * unfilterable `string_values` is 50KB.
+   * Empty string isn't allowed.
+   * 
+ * + * repeated string string_values = 1; + */ + public com.google.protobuf.ProtocolStringList getStringValuesList() { + return stringValues_; + } + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+   * `CASE_INSENSITIVE_MATCH`) search.
+   * For filterable `string_value`s, a maximum total number of 200 values
+   * is allowed, with each `string_value` has a byte size of no more than
+   * 255B. For unfilterable `string_values`, the maximum total byte size of
+   * unfilterable `string_values` is 50KB.
+   * Empty string isn't allowed.
+   * 
+ * + * repeated string string_values = 1; + */ + public int getStringValuesCount() { + return stringValues_.size(); + } + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+   * `CASE_INSENSITIVE_MATCH`) search.
+   * For filterable `string_value`s, a maximum total number of 200 values
+   * is allowed, with each `string_value` has a byte size of no more than
+   * 255B. For unfilterable `string_values`, the maximum total byte size of
+   * unfilterable `string_values` is 50KB.
+   * Empty string isn't allowed.
+   * 
+ * + * repeated string string_values = 1; + */ + public java.lang.String getStringValues(int index) { + return stringValues_.get(index); + } + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+   * `CASE_INSENSITIVE_MATCH`) search.
+   * For filterable `string_value`s, a maximum total number of 200 values
+   * is allowed, with each `string_value` has a byte size of no more than
+   * 255B. For unfilterable `string_values`, the maximum total byte size of
+   * unfilterable `string_values` is 50KB.
+   * Empty string isn't allowed.
+   * 
+ * + * repeated string string_values = 1; + */ + public com.google.protobuf.ByteString getStringValuesBytes(int index) { + return stringValues_.getByteString(index); + } + + public static final int LONG_VALUES_FIELD_NUMBER = 2; + private java.util.List longValues_; + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform number range search.
+   * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+   * Currently at most 1
+   * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+   * supported.
+   * 
+ * + * repeated int64 long_values = 2; + */ + public java.util.List getLongValuesList() { + return longValues_; + } + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform number range search.
+   * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+   * Currently at most 1
+   * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+   * supported.
+   * 
+ * + * repeated int64 long_values = 2; + */ + public int getLongValuesCount() { + return longValues_.size(); + } + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform number range search.
+   * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+   * Currently at most 1
+   * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+   * supported.
+   * 
+ * + * repeated int64 long_values = 2; + */ + public long getLongValues(int index) { + return longValues_.get(index); + } + + private int longValuesMemoizedSerializedSize = -1; + + public static final int FILTERABLE_FIELD_NUMBER = 3; + private boolean filterable_; + /** + * + * + *
+   * Optional.
+   * If the `filterable` flag is true, custom field values are searchable.
+   * If false, values are not searchable.
+   * Default is false.
+   * 
+ * + * bool filterable = 3; + */ + public boolean getFilterable() { + return filterable_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + for (int i = 0; i < stringValues_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stringValues_.getRaw(i)); + } + if (getLongValuesList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(longValuesMemoizedSerializedSize); + } + for (int i = 0; i < longValues_.size(); i++) { + output.writeInt64NoTag(longValues_.get(i)); + } + if (filterable_ != false) { + output.writeBool(3, filterable_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < stringValues_.size(); i++) { + dataSize += computeStringSizeNoTag(stringValues_.getRaw(i)); + } + size += dataSize; + size += 1 * getStringValuesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < longValues_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag(longValues_.get(i)); + } + size += dataSize; + if (!getLongValuesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + longValuesMemoizedSerializedSize = dataSize; + } + if (filterable_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, filterable_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.CustomAttribute)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CustomAttribute other = + (com.google.cloud.talent.v4beta1.CustomAttribute) obj; + + boolean result = true; + result = result && getStringValuesList().equals(other.getStringValuesList()); + result = result && getLongValuesList().equals(other.getLongValuesList()); + result = result && (getFilterable() == other.getFilterable()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getStringValuesCount() > 0) { + hash = (37 * hash) + STRING_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getStringValuesList().hashCode(); + } + if (getLongValuesCount() > 0) { + hash = (37 * hash) + LONG_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getLongValuesList().hashCode(); + } + hash = (37 * hash) + FILTERABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFilterable()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.CustomAttribute prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Custom attribute values that are either filterable or non-filterable.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CustomAttribute} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CustomAttribute) + com.google.cloud.talent.v4beta1.CustomAttributeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CustomAttribute_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CustomAttribute_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CustomAttribute.class, + com.google.cloud.talent.v4beta1.CustomAttribute.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.CustomAttribute.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + stringValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + longValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + filterable_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CustomAttribute_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CustomAttribute getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CustomAttribute.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CustomAttribute build() { + com.google.cloud.talent.v4beta1.CustomAttribute result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CustomAttribute buildPartial() { + com.google.cloud.talent.v4beta1.CustomAttribute result = + new com.google.cloud.talent.v4beta1.CustomAttribute(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + stringValues_ = stringValues_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.stringValues_ = stringValues_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + longValues_ = java.util.Collections.unmodifiableList(longValues_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.longValues_ = longValues_; + result.filterable_ = filterable_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CustomAttribute) { + return mergeFrom((com.google.cloud.talent.v4beta1.CustomAttribute) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.CustomAttribute other) { + if (other == com.google.cloud.talent.v4beta1.CustomAttribute.getDefaultInstance()) + return this; + if (!other.stringValues_.isEmpty()) { + if (stringValues_.isEmpty()) { + stringValues_ = other.stringValues_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStringValuesIsMutable(); + stringValues_.addAll(other.stringValues_); + } + onChanged(); + } + if (!other.longValues_.isEmpty()) { + if (longValues_.isEmpty()) { + longValues_ = other.longValues_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureLongValuesIsMutable(); + longValues_.addAll(other.longValues_); + } + onChanged(); + } + if (other.getFilterable() != false) { + setFilterable(other.getFilterable()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.CustomAttribute parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.CustomAttribute) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList stringValues_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureStringValuesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + stringValues_ = new com.google.protobuf.LazyStringArrayList(stringValues_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+     * `CASE_INSENSITIVE_MATCH`) search.
+     * For filterable `string_value`s, a maximum total number of 200 values
+     * is allowed, with each `string_value` has a byte size of no more than
+     * 255B. For unfilterable `string_values`, the maximum total byte size of
+     * unfilterable `string_values` is 50KB.
+     * Empty string isn't allowed.
+     * 
+ * + * repeated string string_values = 1; + */ + public com.google.protobuf.ProtocolStringList getStringValuesList() { + return stringValues_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+     * `CASE_INSENSITIVE_MATCH`) search.
+     * For filterable `string_value`s, a maximum total number of 200 values
+     * is allowed, with each `string_value` has a byte size of no more than
+     * 255B. For unfilterable `string_values`, the maximum total byte size of
+     * unfilterable `string_values` is 50KB.
+     * Empty string isn't allowed.
+     * 
+ * + * repeated string string_values = 1; + */ + public int getStringValuesCount() { + return stringValues_.size(); + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+     * `CASE_INSENSITIVE_MATCH`) search.
+     * For filterable `string_value`s, a maximum total number of 200 values
+     * is allowed, with each `string_value` has a byte size of no more than
+     * 255B. For unfilterable `string_values`, the maximum total byte size of
+     * unfilterable `string_values` is 50KB.
+     * Empty string isn't allowed.
+     * 
+ * + * repeated string string_values = 1; + */ + public java.lang.String getStringValues(int index) { + return stringValues_.get(index); + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+     * `CASE_INSENSITIVE_MATCH`) search.
+     * For filterable `string_value`s, a maximum total number of 200 values
+     * is allowed, with each `string_value` has a byte size of no more than
+     * 255B. For unfilterable `string_values`, the maximum total byte size of
+     * unfilterable `string_values` is 50KB.
+     * Empty string isn't allowed.
+     * 
+ * + * repeated string string_values = 1; + */ + public com.google.protobuf.ByteString getStringValuesBytes(int index) { + return stringValues_.getByteString(index); + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+     * `CASE_INSENSITIVE_MATCH`) search.
+     * For filterable `string_value`s, a maximum total number of 200 values
+     * is allowed, with each `string_value` has a byte size of no more than
+     * 255B. For unfilterable `string_values`, the maximum total byte size of
+     * unfilterable `string_values` is 50KB.
+     * Empty string isn't allowed.
+     * 
+ * + * repeated string string_values = 1; + */ + public Builder setStringValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureStringValuesIsMutable(); + stringValues_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+     * `CASE_INSENSITIVE_MATCH`) search.
+     * For filterable `string_value`s, a maximum total number of 200 values
+     * is allowed, with each `string_value` has a byte size of no more than
+     * 255B. For unfilterable `string_values`, the maximum total byte size of
+     * unfilterable `string_values` is 50KB.
+     * Empty string isn't allowed.
+     * 
+ * + * repeated string string_values = 1; + */ + public Builder addStringValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureStringValuesIsMutable(); + stringValues_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+     * `CASE_INSENSITIVE_MATCH`) search.
+     * For filterable `string_value`s, a maximum total number of 200 values
+     * is allowed, with each `string_value` has a byte size of no more than
+     * 255B. For unfilterable `string_values`, the maximum total byte size of
+     * unfilterable `string_values` is 50KB.
+     * Empty string isn't allowed.
+     * 
+ * + * repeated string string_values = 1; + */ + public Builder addAllStringValues(java.lang.Iterable values) { + ensureStringValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stringValues_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+     * `CASE_INSENSITIVE_MATCH`) search.
+     * For filterable `string_value`s, a maximum total number of 200 values
+     * is allowed, with each `string_value` has a byte size of no more than
+     * 255B. For unfilterable `string_values`, the maximum total byte size of
+     * unfilterable `string_values` is 50KB.
+     * Empty string isn't allowed.
+     * 
+ * + * repeated string string_values = 1; + */ + public Builder clearStringValues() { + stringValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+     * `CASE_INSENSITIVE_MATCH`) search.
+     * For filterable `string_value`s, a maximum total number of 200 values
+     * is allowed, with each `string_value` has a byte size of no more than
+     * 255B. For unfilterable `string_values`, the maximum total byte size of
+     * unfilterable `string_values` is 50KB.
+     * Empty string isn't allowed.
+     * 
+ * + * repeated string string_values = 1; + */ + public Builder addStringValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureStringValuesIsMutable(); + stringValues_.add(value); + onChanged(); + return this; + } + + private java.util.List longValues_ = java.util.Collections.emptyList(); + + private void ensureLongValuesIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + longValues_ = new java.util.ArrayList(longValues_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform number range search.
+     * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+     * Currently at most 1
+     * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+     * supported.
+     * 
+ * + * repeated int64 long_values = 2; + */ + public java.util.List getLongValuesList() { + return java.util.Collections.unmodifiableList(longValues_); + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform number range search.
+     * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+     * Currently at most 1
+     * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+     * supported.
+     * 
+ * + * repeated int64 long_values = 2; + */ + public int getLongValuesCount() { + return longValues_.size(); + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform number range search.
+     * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+     * Currently at most 1
+     * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+     * supported.
+     * 
+ * + * repeated int64 long_values = 2; + */ + public long getLongValues(int index) { + return longValues_.get(index); + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform number range search.
+     * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+     * Currently at most 1
+     * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+     * supported.
+     * 
+ * + * repeated int64 long_values = 2; + */ + public Builder setLongValues(int index, long value) { + ensureLongValuesIsMutable(); + longValues_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform number range search.
+     * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+     * Currently at most 1
+     * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+     * supported.
+     * 
+ * + * repeated int64 long_values = 2; + */ + public Builder addLongValues(long value) { + ensureLongValuesIsMutable(); + longValues_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform number range search.
+     * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+     * Currently at most 1
+     * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+     * supported.
+     * 
+ * + * repeated int64 long_values = 2; + */ + public Builder addAllLongValues(java.lang.Iterable values) { + ensureLongValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, longValues_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform number range search.
+     * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+     * Currently at most 1
+     * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+     * supported.
+     * 
+ * + * repeated int64 long_values = 2; + */ + public Builder clearLongValues() { + longValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + private boolean filterable_; + /** + * + * + *
+     * Optional.
+     * If the `filterable` flag is true, custom field values are searchable.
+     * If false, values are not searchable.
+     * Default is false.
+     * 
+ * + * bool filterable = 3; + */ + public boolean getFilterable() { + return filterable_; + } + /** + * + * + *
+     * Optional.
+     * If the `filterable` flag is true, custom field values are searchable.
+     * If false, values are not searchable.
+     * Default is false.
+     * 
+ * + * bool filterable = 3; + */ + public Builder setFilterable(boolean value) { + + filterable_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * If the `filterable` flag is true, custom field values are searchable.
+     * If false, values are not searchable.
+     * Default is false.
+     * 
+ * + * bool filterable = 3; + */ + public Builder clearFilterable() { + + filterable_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CustomAttribute) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CustomAttribute) + private static final com.google.cloud.talent.v4beta1.CustomAttribute DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CustomAttribute(); + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomAttribute parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomAttribute(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CustomAttribute getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CustomAttributeOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CustomAttributeOrBuilder.java new file mode 100644 index 000000000000..6df759d1bea8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CustomAttributeOrBuilder.java @@ -0,0 +1,160 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +public interface CustomAttributeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CustomAttribute) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+   * `CASE_INSENSITIVE_MATCH`) search.
+   * For filterable `string_value`s, a maximum total number of 200 values
+   * is allowed, with each `string_value` has a byte size of no more than
+   * 255B. For unfilterable `string_values`, the maximum total byte size of
+   * unfilterable `string_values` is 50KB.
+   * Empty string isn't allowed.
+   * 
+ * + * repeated string string_values = 1; + */ + java.util.List getStringValuesList(); + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+   * `CASE_INSENSITIVE_MATCH`) search.
+   * For filterable `string_value`s, a maximum total number of 200 values
+   * is allowed, with each `string_value` has a byte size of no more than
+   * 255B. For unfilterable `string_values`, the maximum total byte size of
+   * unfilterable `string_values` is 50KB.
+   * Empty string isn't allowed.
+   * 
+ * + * repeated string string_values = 1; + */ + int getStringValuesCount(); + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+   * `CASE_INSENSITIVE_MATCH`) search.
+   * For filterable `string_value`s, a maximum total number of 200 values
+   * is allowed, with each `string_value` has a byte size of no more than
+   * 255B. For unfilterable `string_values`, the maximum total byte size of
+   * unfilterable `string_values` is 50KB.
+   * Empty string isn't allowed.
+   * 
+ * + * repeated string string_values = 1; + */ + java.lang.String getStringValues(int index); + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+   * `CASE_INSENSITIVE_MATCH`) search.
+   * For filterable `string_value`s, a maximum total number of 200 values
+   * is allowed, with each `string_value` has a byte size of no more than
+   * 255B. For unfilterable `string_values`, the maximum total byte size of
+   * unfilterable `string_values` is 50KB.
+   * Empty string isn't allowed.
+   * 
+ * + * repeated string string_values = 1; + */ + com.google.protobuf.ByteString getStringValuesBytes(int index); + + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform number range search.
+   * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+   * Currently at most 1
+   * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+   * supported.
+   * 
+ * + * repeated int64 long_values = 2; + */ + java.util.List getLongValuesList(); + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform number range search.
+   * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+   * Currently at most 1
+   * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+   * supported.
+   * 
+ * + * repeated int64 long_values = 2; + */ + int getLongValuesCount(); + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform number range search.
+   * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+   * Currently at most 1
+   * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+   * supported.
+   * 
+ * + * repeated int64 long_values = 2; + */ + long getLongValues(int index); + + /** + * + * + *
+   * Optional.
+   * If the `filterable` flag is true, custom field values are searchable.
+   * If false, values are not searchable.
+   * Default is false.
+   * 
+ * + * bool filterable = 3; + */ + boolean getFilterable(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Degree.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Degree.java new file mode 100644 index 000000000000..68640edd5605 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Degree.java @@ -0,0 +1,1041 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents a degree pursuing or acquired by a candidate.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Degree} + */ +public final class Degree extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Degree) + DegreeOrBuilder { + private static final long serialVersionUID = 0L; + // Use Degree.newBuilder() to construct. + private Degree(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Degree() { + degreeType_ = 0; + degreeName_ = ""; + fieldsOfStudy_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Degree( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + degreeType_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + degreeName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + fieldsOfStudy_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + fieldsOfStudy_.add(s); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + fieldsOfStudy_ = fieldsOfStudy_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Degree_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Degree_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Degree.class, + com.google.cloud.talent.v4beta1.Degree.Builder.class); + } + + private int bitField0_; + public static final int DEGREE_TYPE_FIELD_NUMBER = 1; + private int degreeType_; + /** + * + * + *
+   * Optional.
+   * ISCED degree type.
+   * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; + */ + public int getDegreeTypeValue() { + return degreeType_; + } + /** + * + * + *
+   * Optional.
+   * ISCED degree type.
+   * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; + */ + public com.google.cloud.talent.v4beta1.DegreeType getDegreeType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.DegreeType result = + com.google.cloud.talent.v4beta1.DegreeType.valueOf(degreeType_); + return result == null ? com.google.cloud.talent.v4beta1.DegreeType.UNRECOGNIZED : result; + } + + public static final int DEGREE_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object degreeName_; + /** + * + * + *
+   * Optional.
+   * Full Degree name.
+   * For example, "B.S.", "Master of Arts", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string degree_name = 2; + */ + public java.lang.String getDegreeName() { + java.lang.Object ref = degreeName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + degreeName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Full Degree name.
+   * For example, "B.S.", "Master of Arts", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string degree_name = 2; + */ + public com.google.protobuf.ByteString getDegreeNameBytes() { + java.lang.Object ref = degreeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + degreeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIELDS_OF_STUDY_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList fieldsOfStudy_; + /** + * + * + *
+   * Optional.
+   * Fields of study for the degree.
+   * For example, "Computer science", "engineering".
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string fields_of_study = 3; + */ + public com.google.protobuf.ProtocolStringList getFieldsOfStudyList() { + return fieldsOfStudy_; + } + /** + * + * + *
+   * Optional.
+   * Fields of study for the degree.
+   * For example, "Computer science", "engineering".
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string fields_of_study = 3; + */ + public int getFieldsOfStudyCount() { + return fieldsOfStudy_.size(); + } + /** + * + * + *
+   * Optional.
+   * Fields of study for the degree.
+   * For example, "Computer science", "engineering".
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string fields_of_study = 3; + */ + public java.lang.String getFieldsOfStudy(int index) { + return fieldsOfStudy_.get(index); + } + /** + * + * + *
+   * Optional.
+   * Fields of study for the degree.
+   * For example, "Computer science", "engineering".
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string fields_of_study = 3; + */ + public com.google.protobuf.ByteString getFieldsOfStudyBytes(int index) { + return fieldsOfStudy_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (degreeType_ + != com.google.cloud.talent.v4beta1.DegreeType.DEGREE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, degreeType_); + } + if (!getDegreeNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, degreeName_); + } + for (int i = 0; i < fieldsOfStudy_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fieldsOfStudy_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (degreeType_ + != com.google.cloud.talent.v4beta1.DegreeType.DEGREE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, degreeType_); + } + if (!getDegreeNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, degreeName_); + } + { + int dataSize = 0; + for (int i = 0; i < fieldsOfStudy_.size(); i++) { + dataSize += computeStringSizeNoTag(fieldsOfStudy_.getRaw(i)); + } + size += dataSize; + size += 1 * getFieldsOfStudyList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Degree)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Degree other = (com.google.cloud.talent.v4beta1.Degree) obj; + + boolean result = true; + result = result && degreeType_ == other.degreeType_; + result = result && getDegreeName().equals(other.getDegreeName()); + result = result && getFieldsOfStudyList().equals(other.getFieldsOfStudyList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DEGREE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + degreeType_; + hash = (37 * hash) + DEGREE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDegreeName().hashCode(); + if (getFieldsOfStudyCount() > 0) { + hash = (37 * hash) + FIELDS_OF_STUDY_FIELD_NUMBER; + hash = (53 * hash) + getFieldsOfStudyList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Degree parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Degree parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Degree parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Degree parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Degree parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Degree parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Degree parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Degree parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Degree parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Degree parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Degree parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Degree parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.Degree prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Resource that represents a degree pursuing or acquired by a candidate.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Degree} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Degree) + com.google.cloud.talent.v4beta1.DegreeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Degree_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Degree_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Degree.class, + com.google.cloud.talent.v4beta1.Degree.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Degree.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + degreeType_ = 0; + + degreeName_ = ""; + + fieldsOfStudy_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Degree_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Degree getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Degree.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Degree build() { + com.google.cloud.talent.v4beta1.Degree result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Degree buildPartial() { + com.google.cloud.talent.v4beta1.Degree result = + new com.google.cloud.talent.v4beta1.Degree(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.degreeType_ = degreeType_; + result.degreeName_ = degreeName_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + fieldsOfStudy_ = fieldsOfStudy_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.fieldsOfStudy_ = fieldsOfStudy_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Degree) { + return mergeFrom((com.google.cloud.talent.v4beta1.Degree) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Degree other) { + if (other == com.google.cloud.talent.v4beta1.Degree.getDefaultInstance()) return this; + if (other.degreeType_ != 0) { + setDegreeTypeValue(other.getDegreeTypeValue()); + } + if (!other.getDegreeName().isEmpty()) { + degreeName_ = other.degreeName_; + onChanged(); + } + if (!other.fieldsOfStudy_.isEmpty()) { + if (fieldsOfStudy_.isEmpty()) { + fieldsOfStudy_ = other.fieldsOfStudy_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureFieldsOfStudyIsMutable(); + fieldsOfStudy_.addAll(other.fieldsOfStudy_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Degree parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Degree) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int degreeType_ = 0; + /** + * + * + *
+     * Optional.
+     * ISCED degree type.
+     * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; + */ + public int getDegreeTypeValue() { + return degreeType_; + } + /** + * + * + *
+     * Optional.
+     * ISCED degree type.
+     * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; + */ + public Builder setDegreeTypeValue(int value) { + degreeType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * ISCED degree type.
+     * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; + */ + public com.google.cloud.talent.v4beta1.DegreeType getDegreeType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.DegreeType result = + com.google.cloud.talent.v4beta1.DegreeType.valueOf(degreeType_); + return result == null ? com.google.cloud.talent.v4beta1.DegreeType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional.
+     * ISCED degree type.
+     * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; + */ + public Builder setDegreeType(com.google.cloud.talent.v4beta1.DegreeType value) { + if (value == null) { + throw new NullPointerException(); + } + + degreeType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * ISCED degree type.
+     * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; + */ + public Builder clearDegreeType() { + + degreeType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object degreeName_ = ""; + /** + * + * + *
+     * Optional.
+     * Full Degree name.
+     * For example, "B.S.", "Master of Arts", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string degree_name = 2; + */ + public java.lang.String getDegreeName() { + java.lang.Object ref = degreeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + degreeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Full Degree name.
+     * For example, "B.S.", "Master of Arts", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string degree_name = 2; + */ + public com.google.protobuf.ByteString getDegreeNameBytes() { + java.lang.Object ref = degreeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + degreeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Full Degree name.
+     * For example, "B.S.", "Master of Arts", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string degree_name = 2; + */ + public Builder setDegreeName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + degreeName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Full Degree name.
+     * For example, "B.S.", "Master of Arts", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string degree_name = 2; + */ + public Builder clearDegreeName() { + + degreeName_ = getDefaultInstance().getDegreeName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Full Degree name.
+     * For example, "B.S.", "Master of Arts", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string degree_name = 2; + */ + public Builder setDegreeNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + degreeName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList fieldsOfStudy_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureFieldsOfStudyIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + fieldsOfStudy_ = new com.google.protobuf.LazyStringArrayList(fieldsOfStudy_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * Optional.
+     * Fields of study for the degree.
+     * For example, "Computer science", "engineering".
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string fields_of_study = 3; + */ + public com.google.protobuf.ProtocolStringList getFieldsOfStudyList() { + return fieldsOfStudy_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional.
+     * Fields of study for the degree.
+     * For example, "Computer science", "engineering".
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string fields_of_study = 3; + */ + public int getFieldsOfStudyCount() { + return fieldsOfStudy_.size(); + } + /** + * + * + *
+     * Optional.
+     * Fields of study for the degree.
+     * For example, "Computer science", "engineering".
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string fields_of_study = 3; + */ + public java.lang.String getFieldsOfStudy(int index) { + return fieldsOfStudy_.get(index); + } + /** + * + * + *
+     * Optional.
+     * Fields of study for the degree.
+     * For example, "Computer science", "engineering".
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string fields_of_study = 3; + */ + public com.google.protobuf.ByteString getFieldsOfStudyBytes(int index) { + return fieldsOfStudy_.getByteString(index); + } + /** + * + * + *
+     * Optional.
+     * Fields of study for the degree.
+     * For example, "Computer science", "engineering".
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string fields_of_study = 3; + */ + public Builder setFieldsOfStudy(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsOfStudyIsMutable(); + fieldsOfStudy_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Fields of study for the degree.
+     * For example, "Computer science", "engineering".
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string fields_of_study = 3; + */ + public Builder addFieldsOfStudy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsOfStudyIsMutable(); + fieldsOfStudy_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Fields of study for the degree.
+     * For example, "Computer science", "engineering".
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string fields_of_study = 3; + */ + public Builder addAllFieldsOfStudy(java.lang.Iterable values) { + ensureFieldsOfStudyIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fieldsOfStudy_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Fields of study for the degree.
+     * For example, "Computer science", "engineering".
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string fields_of_study = 3; + */ + public Builder clearFieldsOfStudy() { + fieldsOfStudy_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Fields of study for the degree.
+     * For example, "Computer science", "engineering".
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string fields_of_study = 3; + */ + public Builder addFieldsOfStudyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureFieldsOfStudyIsMutable(); + fieldsOfStudy_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Degree) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Degree) + private static final com.google.cloud.talent.v4beta1.Degree DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Degree(); + } + + public static com.google.cloud.talent.v4beta1.Degree getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Degree parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Degree(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Degree getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DegreeOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DegreeOrBuilder.java new file mode 100644 index 000000000000..26e9210bef3a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DegreeOrBuilder.java @@ -0,0 +1,113 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface DegreeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Degree) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * ISCED degree type.
+   * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; + */ + int getDegreeTypeValue(); + /** + * + * + *
+   * Optional.
+   * ISCED degree type.
+   * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; + */ + com.google.cloud.talent.v4beta1.DegreeType getDegreeType(); + + /** + * + * + *
+   * Optional.
+   * Full Degree name.
+   * For example, "B.S.", "Master of Arts", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string degree_name = 2; + */ + java.lang.String getDegreeName(); + /** + * + * + *
+   * Optional.
+   * Full Degree name.
+   * For example, "B.S.", "Master of Arts", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string degree_name = 2; + */ + com.google.protobuf.ByteString getDegreeNameBytes(); + + /** + * + * + *
+   * Optional.
+   * Fields of study for the degree.
+   * For example, "Computer science", "engineering".
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string fields_of_study = 3; + */ + java.util.List getFieldsOfStudyList(); + /** + * + * + *
+   * Optional.
+   * Fields of study for the degree.
+   * For example, "Computer science", "engineering".
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string fields_of_study = 3; + */ + int getFieldsOfStudyCount(); + /** + * + * + *
+   * Optional.
+   * Fields of study for the degree.
+   * For example, "Computer science", "engineering".
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string fields_of_study = 3; + */ + java.lang.String getFieldsOfStudy(int index); + /** + * + * + *
+   * Optional.
+   * Fields of study for the degree.
+   * For example, "Computer science", "engineering".
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string fields_of_study = 3; + */ + com.google.protobuf.ByteString getFieldsOfStudyBytes(int index); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DegreeType.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DegreeType.java new file mode 100644 index 000000000000..7e7be0b66092 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DegreeType.java @@ -0,0 +1,330 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Educational degree level defined in International Standard Classification
+ * of Education (ISCED).
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.DegreeType} + */ +public enum DegreeType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value. Represents no degree, or early childhood education.
+   * Maps to ISCED code 0.
+   * Ex) Kindergarten
+   * 
+ * + * DEGREE_TYPE_UNSPECIFIED = 0; + */ + DEGREE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Primary education which is typically the first stage of compulsory
+   * education. ISCED code 1.
+   * Ex) Elementary school
+   * 
+ * + * PRIMARY_EDUCATION = 1; + */ + PRIMARY_EDUCATION(1), + /** + * + * + *
+   * Lower secondary education; First stage of secondary education building on
+   * primary education, typically with a more subject-oriented curriculum.
+   * ISCED code 2.
+   * Ex) Middle school
+   * 
+ * + * LOWER_SECONDARY_EDUCATION = 2; + */ + LOWER_SECONDARY_EDUCATION(2), + /** + * + * + *
+   * Middle education; Second/final stage of secondary education preparing for
+   * tertiary education and/or providing skills relevant to employment.
+   * Usually with an increased range of subject options and streams. ISCED
+   * code 3.
+   * Ex) High school
+   * 
+ * + * UPPER_SECONDARY_EDUCATION = 3; + */ + UPPER_SECONDARY_EDUCATION(3), + /** + * + * + *
+   * Adult Remedial Education; Programmes providing learning experiences that
+   * build on secondary education and prepare for labour market entry and/or
+   * tertiary education. The content is broader than secondary but not as
+   * complex as tertiary education. ISCED code 4.
+   * 
+ * + * ADULT_REMEDIAL_EDUCATION = 4; + */ + ADULT_REMEDIAL_EDUCATION(4), + /** + * + * + *
+   * Associate's or equivalent; Short first tertiary programmes that are
+   * typically practically-based, occupationally-specific and prepare for
+   * labour market entry. These programmes may also provide a pathway to other
+   * tertiary programmes. ISCED code 5.
+   * 
+ * + * ASSOCIATES_OR_EQUIVALENT = 5; + */ + ASSOCIATES_OR_EQUIVALENT(5), + /** + * + * + *
+   * Bachelor's or equivalent; Programmes designed to provide intermediate
+   * academic and/or professional knowledge, skills and competencies leading
+   * to a first tertiary degree or equivalent qualification. ISCED code 6.
+   * 
+ * + * BACHELORS_OR_EQUIVALENT = 6; + */ + BACHELORS_OR_EQUIVALENT(6), + /** + * + * + *
+   * Master's or equivalent; Programmes designed to provide advanced academic
+   * and/or professional knowledge, skills and competencies leading to a
+   * second tertiary degree or equivalent qualification. ISCED code 7.
+   * 
+ * + * MASTERS_OR_EQUIVALENT = 7; + */ + MASTERS_OR_EQUIVALENT(7), + /** + * + * + *
+   * Doctoral or equivalent; Programmes designed primarily to lead to an
+   * advanced research qualification, usually concluding with the submission
+   * and defense of a substantive dissertation of publishable quality based on
+   * original research. ISCED code 8.
+   * 
+ * + * DOCTORAL_OR_EQUIVALENT = 8; + */ + DOCTORAL_OR_EQUIVALENT(8), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value. Represents no degree, or early childhood education.
+   * Maps to ISCED code 0.
+   * Ex) Kindergarten
+   * 
+ * + * DEGREE_TYPE_UNSPECIFIED = 0; + */ + public static final int DEGREE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Primary education which is typically the first stage of compulsory
+   * education. ISCED code 1.
+   * Ex) Elementary school
+   * 
+ * + * PRIMARY_EDUCATION = 1; + */ + public static final int PRIMARY_EDUCATION_VALUE = 1; + /** + * + * + *
+   * Lower secondary education; First stage of secondary education building on
+   * primary education, typically with a more subject-oriented curriculum.
+   * ISCED code 2.
+   * Ex) Middle school
+   * 
+ * + * LOWER_SECONDARY_EDUCATION = 2; + */ + public static final int LOWER_SECONDARY_EDUCATION_VALUE = 2; + /** + * + * + *
+   * Middle education; Second/final stage of secondary education preparing for
+   * tertiary education and/or providing skills relevant to employment.
+   * Usually with an increased range of subject options and streams. ISCED
+   * code 3.
+   * Ex) High school
+   * 
+ * + * UPPER_SECONDARY_EDUCATION = 3; + */ + public static final int UPPER_SECONDARY_EDUCATION_VALUE = 3; + /** + * + * + *
+   * Adult Remedial Education; Programmes providing learning experiences that
+   * build on secondary education and prepare for labour market entry and/or
+   * tertiary education. The content is broader than secondary but not as
+   * complex as tertiary education. ISCED code 4.
+   * 
+ * + * ADULT_REMEDIAL_EDUCATION = 4; + */ + public static final int ADULT_REMEDIAL_EDUCATION_VALUE = 4; + /** + * + * + *
+   * Associate's or equivalent; Short first tertiary programmes that are
+   * typically practically-based, occupationally-specific and prepare for
+   * labour market entry. These programmes may also provide a pathway to other
+   * tertiary programmes. ISCED code 5.
+   * 
+ * + * ASSOCIATES_OR_EQUIVALENT = 5; + */ + public static final int ASSOCIATES_OR_EQUIVALENT_VALUE = 5; + /** + * + * + *
+   * Bachelor's or equivalent; Programmes designed to provide intermediate
+   * academic and/or professional knowledge, skills and competencies leading
+   * to a first tertiary degree or equivalent qualification. ISCED code 6.
+   * 
+ * + * BACHELORS_OR_EQUIVALENT = 6; + */ + public static final int BACHELORS_OR_EQUIVALENT_VALUE = 6; + /** + * + * + *
+   * Master's or equivalent; Programmes designed to provide advanced academic
+   * and/or professional knowledge, skills and competencies leading to a
+   * second tertiary degree or equivalent qualification. ISCED code 7.
+   * 
+ * + * MASTERS_OR_EQUIVALENT = 7; + */ + public static final int MASTERS_OR_EQUIVALENT_VALUE = 7; + /** + * + * + *
+   * Doctoral or equivalent; Programmes designed primarily to lead to an
+   * advanced research qualification, usually concluding with the submission
+   * and defense of a substantive dissertation of publishable quality based on
+   * original research. ISCED code 8.
+   * 
+ * + * DOCTORAL_OR_EQUIVALENT = 8; + */ + public static final int DOCTORAL_OR_EQUIVALENT_VALUE = 8; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static DegreeType valueOf(int value) { + return forNumber(value); + } + + public static DegreeType forNumber(int value) { + switch (value) { + case 0: + return DEGREE_TYPE_UNSPECIFIED; + case 1: + return PRIMARY_EDUCATION; + case 2: + return LOWER_SECONDARY_EDUCATION; + case 3: + return UPPER_SECONDARY_EDUCATION; + case 4: + return ADULT_REMEDIAL_EDUCATION; + case 5: + return ASSOCIATES_OR_EQUIVALENT; + case 6: + return BACHELORS_OR_EQUIVALENT; + case 7: + return MASTERS_OR_EQUIVALENT; + case 8: + return DOCTORAL_OR_EQUIVALENT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DegreeType findValueByNumber(int number) { + return DegreeType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(2); + } + + private static final DegreeType[] VALUES = values(); + + public static DegreeType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DegreeType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.DegreeType) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteCompanyRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteCompanyRequest.java new file mode 100644 index 000000000000..7833f2f99391 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteCompanyRequest.java @@ -0,0 +1,620 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Request to delete a company.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.DeleteCompanyRequest} + */ +public final class DeleteCompanyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.DeleteCompanyRequest) + DeleteCompanyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteCompanyRequest.newBuilder() to construct. + private DeleteCompanyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteCompanyRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteCompanyRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteCompanyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteCompanyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.DeleteCompanyRequest.class, + com.google.cloud.talent.v4beta1.DeleteCompanyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required.
+   * The resource name of the company to be deleted.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the company to be deleted.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.DeleteCompanyRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.DeleteCompanyRequest other = + (com.google.cloud.talent.v4beta1.DeleteCompanyRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.DeleteCompanyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request to delete a company.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.DeleteCompanyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.DeleteCompanyRequest) + com.google.cloud.talent.v4beta1.DeleteCompanyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteCompanyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteCompanyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.DeleteCompanyRequest.class, + com.google.cloud.talent.v4beta1.DeleteCompanyRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.DeleteCompanyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteCompanyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteCompanyRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.DeleteCompanyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteCompanyRequest build() { + com.google.cloud.talent.v4beta1.DeleteCompanyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteCompanyRequest buildPartial() { + com.google.cloud.talent.v4beta1.DeleteCompanyRequest result = + new com.google.cloud.talent.v4beta1.DeleteCompanyRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.DeleteCompanyRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.DeleteCompanyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.DeleteCompanyRequest other) { + if (other == com.google.cloud.talent.v4beta1.DeleteCompanyRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.DeleteCompanyRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.DeleteCompanyRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the company to be deleted.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the company to be deleted.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the company to be deleted.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the company to be deleted.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the company to be deleted.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.DeleteCompanyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.DeleteCompanyRequest) + private static final com.google.cloud.talent.v4beta1.DeleteCompanyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.DeleteCompanyRequest(); + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCompanyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteCompanyRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteCompanyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteCompanyRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteCompanyRequestOrBuilder.java new file mode 100644 index 000000000000..c58559744c28 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteCompanyRequestOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface DeleteCompanyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.DeleteCompanyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the company to be deleted.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required.
+   * The resource name of the company to be deleted.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteJobRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteJobRequest.java new file mode 100644 index 000000000000..686a3020320c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteJobRequest.java @@ -0,0 +1,621 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Delete job request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.DeleteJobRequest} + */ +public final class DeleteJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.DeleteJobRequest) + DeleteJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteJobRequest.newBuilder() to construct. + private DeleteJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteJobRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteJobRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.DeleteJobRequest.class, + com.google.cloud.talent.v4beta1.DeleteJobRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required.
+   * The resource name of the job to be deleted.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the job to be deleted.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.DeleteJobRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.DeleteJobRequest other = + (com.google.cloud.talent.v4beta1.DeleteJobRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.DeleteJobRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Delete job request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.DeleteJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.DeleteJobRequest) + com.google.cloud.talent.v4beta1.DeleteJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.DeleteJobRequest.class, + com.google.cloud.talent.v4beta1.DeleteJobRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.DeleteJobRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteJobRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.DeleteJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteJobRequest build() { + com.google.cloud.talent.v4beta1.DeleteJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteJobRequest buildPartial() { + com.google.cloud.talent.v4beta1.DeleteJobRequest result = + new com.google.cloud.talent.v4beta1.DeleteJobRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.DeleteJobRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.DeleteJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.DeleteJobRequest other) { + if (other == com.google.cloud.talent.v4beta1.DeleteJobRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.DeleteJobRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.DeleteJobRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the job to be deleted.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the job to be deleted.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the job to be deleted.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the job to be deleted.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the job to be deleted.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.DeleteJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.DeleteJobRequest) + private static final com.google.cloud.talent.v4beta1.DeleteJobRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.DeleteJobRequest(); + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteJobRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteJobRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteJobRequestOrBuilder.java new file mode 100644 index 000000000000..5d5d2736def3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteJobRequestOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface DeleteJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.DeleteJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the job to be deleted.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required.
+   * The resource name of the job to be deleted.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteProfileRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteProfileRequest.java new file mode 100644 index 000000000000..382bffe0e76c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteProfileRequest.java @@ -0,0 +1,627 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Delete profile request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.DeleteProfileRequest} + */ +public final class DeleteProfileRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.DeleteProfileRequest) + DeleteProfileRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteProfileRequest.newBuilder() to construct. + private DeleteProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteProfileRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteProfileRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.DeleteProfileRequest.class, + com.google.cloud.talent.v4beta1.DeleteProfileRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required.
+   * Resource name of the profile to be deleted.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * Resource name of the profile to be deleted.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.DeleteProfileRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.DeleteProfileRequest other = + (com.google.cloud.talent.v4beta1.DeleteProfileRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.DeleteProfileRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Delete profile request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.DeleteProfileRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.DeleteProfileRequest) + com.google.cloud.talent.v4beta1.DeleteProfileRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.DeleteProfileRequest.class, + com.google.cloud.talent.v4beta1.DeleteProfileRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.DeleteProfileRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteProfileRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.DeleteProfileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteProfileRequest build() { + com.google.cloud.talent.v4beta1.DeleteProfileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteProfileRequest buildPartial() { + com.google.cloud.talent.v4beta1.DeleteProfileRequest result = + new com.google.cloud.talent.v4beta1.DeleteProfileRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.DeleteProfileRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.DeleteProfileRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.DeleteProfileRequest other) { + if (other == com.google.cloud.talent.v4beta1.DeleteProfileRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.DeleteProfileRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.DeleteProfileRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required.
+     * Resource name of the profile to be deleted.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the profile to be deleted.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the profile to be deleted.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the profile to be deleted.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the profile to be deleted.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.DeleteProfileRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.DeleteProfileRequest) + private static final com.google.cloud.talent.v4beta1.DeleteProfileRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.DeleteProfileRequest(); + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteProfileRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteProfileRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteProfileRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteProfileRequestOrBuilder.java new file mode 100644 index 000000000000..98e1a1f74cb9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteProfileRequestOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface DeleteProfileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.DeleteProfileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * Resource name of the profile to be deleted.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required.
+   * Resource name of the profile to be deleted.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteTenantRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteTenantRequest.java new file mode 100644 index 000000000000..4739050142e8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteTenantRequest.java @@ -0,0 +1,620 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Request to delete a tenant.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.DeleteTenantRequest} + */ +public final class DeleteTenantRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.DeleteTenantRequest) + DeleteTenantRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteTenantRequest.newBuilder() to construct. + private DeleteTenantRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteTenantRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteTenantRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteTenantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteTenantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.DeleteTenantRequest.class, + com.google.cloud.talent.v4beta1.DeleteTenantRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to be deleted.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to be deleted.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.DeleteTenantRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.DeleteTenantRequest other = + (com.google.cloud.talent.v4beta1.DeleteTenantRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.DeleteTenantRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request to delete a tenant.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.DeleteTenantRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.DeleteTenantRequest) + com.google.cloud.talent.v4beta1.DeleteTenantRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteTenantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteTenantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.DeleteTenantRequest.class, + com.google.cloud.talent.v4beta1.DeleteTenantRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.DeleteTenantRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteTenantRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteTenantRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.DeleteTenantRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteTenantRequest build() { + com.google.cloud.talent.v4beta1.DeleteTenantRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteTenantRequest buildPartial() { + com.google.cloud.talent.v4beta1.DeleteTenantRequest result = + new com.google.cloud.talent.v4beta1.DeleteTenantRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.DeleteTenantRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.DeleteTenantRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.DeleteTenantRequest other) { + if (other == com.google.cloud.talent.v4beta1.DeleteTenantRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.DeleteTenantRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.DeleteTenantRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to be deleted.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to be deleted.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to be deleted.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to be deleted.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to be deleted.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.DeleteTenantRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.DeleteTenantRequest) + private static final com.google.cloud.talent.v4beta1.DeleteTenantRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.DeleteTenantRequest(); + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteTenantRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteTenantRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteTenantRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteTenantRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteTenantRequestOrBuilder.java new file mode 100644 index 000000000000..eb671bb335c3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteTenantRequestOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface DeleteTenantRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.DeleteTenantRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to be deleted.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to be deleted.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeviceInfo.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeviceInfo.java new file mode 100644 index 000000000000..98de700c318a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeviceInfo.java @@ -0,0 +1,998 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Device information collected from the job seeker, candidate, or
+ * other entity conducting the job search. Providing this information improves
+ * the quality of the search results across devices.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.DeviceInfo} + */ +public final class DeviceInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.DeviceInfo) + DeviceInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeviceInfo.newBuilder() to construct. + private DeviceInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeviceInfo() { + deviceType_ = 0; + id_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeviceInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + deviceType_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_DeviceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_DeviceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.DeviceInfo.class, + com.google.cloud.talent.v4beta1.DeviceInfo.Builder.class); + } + + /** + * + * + *
+   * An enumeration describing an API access portal and exposure mechanism.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.DeviceInfo.DeviceType} + */ + public enum DeviceType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The device type isn't specified.
+     * 
+ * + * DEVICE_TYPE_UNSPECIFIED = 0; + */ + DEVICE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * A desktop web browser, such as, Chrome, Firefox, Safari, or Internet
+     * Explorer)
+     * 
+ * + * WEB = 1; + */ + WEB(1), + /** + * + * + *
+     * A mobile device web browser, such as a phone or tablet with a Chrome
+     * browser.
+     * 
+ * + * MOBILE_WEB = 2; + */ + MOBILE_WEB(2), + /** + * + * + *
+     * An Android device native application.
+     * 
+ * + * ANDROID = 3; + */ + ANDROID(3), + /** + * + * + *
+     * An iOS device native application.
+     * 
+ * + * IOS = 4; + */ + IOS(4), + /** + * + * + *
+     * A bot, as opposed to a device operated by human beings, such as a web
+     * crawler.
+     * 
+ * + * BOT = 5; + */ + BOT(5), + /** + * + * + *
+     * Other devices types.
+     * 
+ * + * OTHER = 6; + */ + OTHER(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The device type isn't specified.
+     * 
+ * + * DEVICE_TYPE_UNSPECIFIED = 0; + */ + public static final int DEVICE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * A desktop web browser, such as, Chrome, Firefox, Safari, or Internet
+     * Explorer)
+     * 
+ * + * WEB = 1; + */ + public static final int WEB_VALUE = 1; + /** + * + * + *
+     * A mobile device web browser, such as a phone or tablet with a Chrome
+     * browser.
+     * 
+ * + * MOBILE_WEB = 2; + */ + public static final int MOBILE_WEB_VALUE = 2; + /** + * + * + *
+     * An Android device native application.
+     * 
+ * + * ANDROID = 3; + */ + public static final int ANDROID_VALUE = 3; + /** + * + * + *
+     * An iOS device native application.
+     * 
+ * + * IOS = 4; + */ + public static final int IOS_VALUE = 4; + /** + * + * + *
+     * A bot, as opposed to a device operated by human beings, such as a web
+     * crawler.
+     * 
+ * + * BOT = 5; + */ + public static final int BOT_VALUE = 5; + /** + * + * + *
+     * Other devices types.
+     * 
+ * + * OTHER = 6; + */ + public static final int OTHER_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static DeviceType valueOf(int value) { + return forNumber(value); + } + + public static DeviceType forNumber(int value) { + switch (value) { + case 0: + return DEVICE_TYPE_UNSPECIFIED; + case 1: + return WEB; + case 2: + return MOBILE_WEB; + case 3: + return ANDROID; + case 4: + return IOS; + case 5: + return BOT; + case 6: + return OTHER; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DeviceType findValueByNumber(int number) { + return DeviceType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.DeviceInfo.getDescriptor().getEnumTypes().get(0); + } + + private static final DeviceType[] VALUES = values(); + + public static DeviceType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DeviceType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.DeviceInfo.DeviceType) + } + + public static final int DEVICE_TYPE_FIELD_NUMBER = 1; + private int deviceType_; + /** + * + * + *
+   * Optional.
+   * Type of the device.
+   * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo.DeviceType device_type = 1; + */ + public int getDeviceTypeValue() { + return deviceType_; + } + /** + * + * + *
+   * Optional.
+   * Type of the device.
+   * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo.DeviceType device_type = 1; + */ + public com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType getDeviceType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType result = + com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType.valueOf(deviceType_); + return result == null + ? com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType.UNRECOGNIZED + : result; + } + + public static final int ID_FIELD_NUMBER = 2; + private volatile java.lang.Object id_; + /** + * + * + *
+   * Optional.
+   * A device-specific ID. The ID must be a unique identifier that
+   * distinguishes the device from other devices.
+   * 
+ * + * string id = 2; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * A device-specific ID. The ID must be a unique identifier that
+   * distinguishes the device from other devices.
+   * 
+ * + * string id = 2; + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (deviceType_ + != com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType.DEVICE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, deviceType_); + } + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (deviceType_ + != com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType.DEVICE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, deviceType_); + } + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.DeviceInfo)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.DeviceInfo other = + (com.google.cloud.talent.v4beta1.DeviceInfo) obj; + + boolean result = true; + result = result && deviceType_ == other.deviceType_; + result = result && getId().equals(other.getId()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DEVICE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + deviceType_; + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.DeviceInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Device information collected from the job seeker, candidate, or
+   * other entity conducting the job search. Providing this information improves
+   * the quality of the search results across devices.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.DeviceInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.DeviceInfo) + com.google.cloud.talent.v4beta1.DeviceInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_DeviceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_DeviceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.DeviceInfo.class, + com.google.cloud.talent.v4beta1.DeviceInfo.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.DeviceInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + deviceType_ = 0; + + id_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_DeviceInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeviceInfo getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.DeviceInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeviceInfo build() { + com.google.cloud.talent.v4beta1.DeviceInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeviceInfo buildPartial() { + com.google.cloud.talent.v4beta1.DeviceInfo result = + new com.google.cloud.talent.v4beta1.DeviceInfo(this); + result.deviceType_ = deviceType_; + result.id_ = id_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.DeviceInfo) { + return mergeFrom((com.google.cloud.talent.v4beta1.DeviceInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.DeviceInfo other) { + if (other == com.google.cloud.talent.v4beta1.DeviceInfo.getDefaultInstance()) return this; + if (other.deviceType_ != 0) { + setDeviceTypeValue(other.getDeviceTypeValue()); + } + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.DeviceInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.DeviceInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int deviceType_ = 0; + /** + * + * + *
+     * Optional.
+     * Type of the device.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo.DeviceType device_type = 1; + */ + public int getDeviceTypeValue() { + return deviceType_; + } + /** + * + * + *
+     * Optional.
+     * Type of the device.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo.DeviceType device_type = 1; + */ + public Builder setDeviceTypeValue(int value) { + deviceType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Type of the device.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo.DeviceType device_type = 1; + */ + public com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType getDeviceType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType result = + com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType.valueOf(deviceType_); + return result == null + ? com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * Type of the device.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo.DeviceType device_type = 1; + */ + public Builder setDeviceType(com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType value) { + if (value == null) { + throw new NullPointerException(); + } + + deviceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Type of the device.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo.DeviceType device_type = 1; + */ + public Builder clearDeviceType() { + + deviceType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object id_ = ""; + /** + * + * + *
+     * Optional.
+     * A device-specific ID. The ID must be a unique identifier that
+     * distinguishes the device from other devices.
+     * 
+ * + * string id = 2; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A device-specific ID. The ID must be a unique identifier that
+     * distinguishes the device from other devices.
+     * 
+ * + * string id = 2; + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A device-specific ID. The ID must be a unique identifier that
+     * distinguishes the device from other devices.
+     * 
+ * + * string id = 2; + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A device-specific ID. The ID must be a unique identifier that
+     * distinguishes the device from other devices.
+     * 
+ * + * string id = 2; + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A device-specific ID. The ID must be a unique identifier that
+     * distinguishes the device from other devices.
+     * 
+ * + * string id = 2; + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.DeviceInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.DeviceInfo) + private static final com.google.cloud.talent.v4beta1.DeviceInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.DeviceInfo(); + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeviceInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeviceInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeviceInfoOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeviceInfoOrBuilder.java new file mode 100644 index 000000000000..7596f3c6061d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeviceInfoOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +public interface DeviceInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.DeviceInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * Type of the device.
+   * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo.DeviceType device_type = 1; + */ + int getDeviceTypeValue(); + /** + * + * + *
+   * Optional.
+   * Type of the device.
+   * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo.DeviceType device_type = 1; + */ + com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType getDeviceType(); + + /** + * + * + *
+   * Optional.
+   * A device-specific ID. The ID must be a unique identifier that
+   * distinguishes the device from other devices.
+   * 
+ * + * string id = 2; + */ + java.lang.String getId(); + /** + * + * + *
+   * Optional.
+   * A device-specific ID. The ID must be a unique identifier that
+   * distinguishes the device from other devices.
+   * 
+ * + * string id = 2; + */ + com.google.protobuf.ByteString getIdBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationFilter.java new file mode 100644 index 000000000000..63a5deb31220 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationFilter.java @@ -0,0 +1,1029 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Education filter of the search.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.EducationFilter} + */ +public final class EducationFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.EducationFilter) + EducationFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use EducationFilter.newBuilder() to construct. + private EducationFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EducationFilter() { + school_ = ""; + fieldOfStudy_ = ""; + degreeType_ = 0; + negated_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EducationFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + school_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + fieldOfStudy_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); + + degreeType_ = rawValue; + break; + } + case 48: + { + negated_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_EducationFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_EducationFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.EducationFilter.class, + com.google.cloud.talent.v4beta1.EducationFilter.Builder.class); + } + + public static final int SCHOOL_FIELD_NUMBER = 1; + private volatile java.lang.Object school_; + /** + * + * + *
+   * Optional.
+   * The school name. For example "MIT", "University of California, Berkeley".
+   * 
+ * + * string school = 1; + */ + public java.lang.String getSchool() { + java.lang.Object ref = school_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + school_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The school name. For example "MIT", "University of California, Berkeley".
+   * 
+ * + * string school = 1; + */ + public com.google.protobuf.ByteString getSchoolBytes() { + java.lang.Object ref = school_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + school_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIELD_OF_STUDY_FIELD_NUMBER = 2; + private volatile java.lang.Object fieldOfStudy_; + /** + * + * + *
+   * Optional.
+   * The field of study. This is to search against value provided in
+   * [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study].
+   * For example "Computer Science", "Mathematics".
+   * 
+ * + * string field_of_study = 2; + */ + public java.lang.String getFieldOfStudy() { + java.lang.Object ref = fieldOfStudy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldOfStudy_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The field of study. This is to search against value provided in
+   * [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study].
+   * For example "Computer Science", "Mathematics".
+   * 
+ * + * string field_of_study = 2; + */ + public com.google.protobuf.ByteString getFieldOfStudyBytes() { + java.lang.Object ref = fieldOfStudy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldOfStudy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEGREE_TYPE_FIELD_NUMBER = 3; + private int degreeType_; + /** + * + * + *
+   * Optional.
+   * Education degree in ISCED code. Each value in degree covers a specific
+   * level of education, without any expansion to upper nor lower levels of
+   * education degree.
+   * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; + */ + public int getDegreeTypeValue() { + return degreeType_; + } + /** + * + * + *
+   * Optional.
+   * Education degree in ISCED code. Each value in degree covers a specific
+   * level of education, without any expansion to upper nor lower levels of
+   * education degree.
+   * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; + */ + public com.google.cloud.talent.v4beta1.DegreeType getDegreeType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.DegreeType result = + com.google.cloud.talent.v4beta1.DegreeType.valueOf(degreeType_); + return result == null ? com.google.cloud.talent.v4beta1.DegreeType.UNRECOGNIZED : result; + } + + public static final int NEGATED_FIELD_NUMBER = 6; + private boolean negated_; + /** + * + * + *
+   * Optional.
+   * Whether to apply negation to the filter so profiles matching the filter
+   * is excluded.
+   * 
+ * + * bool negated = 6; + */ + public boolean getNegated() { + return negated_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getSchoolBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, school_); + } + if (!getFieldOfStudyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fieldOfStudy_); + } + if (degreeType_ + != com.google.cloud.talent.v4beta1.DegreeType.DEGREE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, degreeType_); + } + if (negated_ != false) { + output.writeBool(6, negated_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSchoolBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, school_); + } + if (!getFieldOfStudyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fieldOfStudy_); + } + if (degreeType_ + != com.google.cloud.talent.v4beta1.DegreeType.DEGREE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, degreeType_); + } + if (negated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, negated_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.EducationFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.EducationFilter other = + (com.google.cloud.talent.v4beta1.EducationFilter) obj; + + boolean result = true; + result = result && getSchool().equals(other.getSchool()); + result = result && getFieldOfStudy().equals(other.getFieldOfStudy()); + result = result && degreeType_ == other.degreeType_; + result = result && (getNegated() == other.getNegated()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SCHOOL_FIELD_NUMBER; + hash = (53 * hash) + getSchool().hashCode(); + hash = (37 * hash) + FIELD_OF_STUDY_FIELD_NUMBER; + hash = (53 * hash) + getFieldOfStudy().hashCode(); + hash = (37 * hash) + DEGREE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + degreeType_; + hash = (37 * hash) + NEGATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EducationFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EducationFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.EducationFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Education filter of the search.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.EducationFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.EducationFilter) + com.google.cloud.talent.v4beta1.EducationFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_EducationFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_EducationFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.EducationFilter.class, + com.google.cloud.talent.v4beta1.EducationFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.EducationFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + school_ = ""; + + fieldOfStudy_ = ""; + + degreeType_ = 0; + + negated_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_EducationFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EducationFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.EducationFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EducationFilter build() { + com.google.cloud.talent.v4beta1.EducationFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EducationFilter buildPartial() { + com.google.cloud.talent.v4beta1.EducationFilter result = + new com.google.cloud.talent.v4beta1.EducationFilter(this); + result.school_ = school_; + result.fieldOfStudy_ = fieldOfStudy_; + result.degreeType_ = degreeType_; + result.negated_ = negated_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.EducationFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.EducationFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.EducationFilter other) { + if (other == com.google.cloud.talent.v4beta1.EducationFilter.getDefaultInstance()) + return this; + if (!other.getSchool().isEmpty()) { + school_ = other.school_; + onChanged(); + } + if (!other.getFieldOfStudy().isEmpty()) { + fieldOfStudy_ = other.fieldOfStudy_; + onChanged(); + } + if (other.degreeType_ != 0) { + setDegreeTypeValue(other.getDegreeTypeValue()); + } + if (other.getNegated() != false) { + setNegated(other.getNegated()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.EducationFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.EducationFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object school_ = ""; + /** + * + * + *
+     * Optional.
+     * The school name. For example "MIT", "University of California, Berkeley".
+     * 
+ * + * string school = 1; + */ + public java.lang.String getSchool() { + java.lang.Object ref = school_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + school_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The school name. For example "MIT", "University of California, Berkeley".
+     * 
+ * + * string school = 1; + */ + public com.google.protobuf.ByteString getSchoolBytes() { + java.lang.Object ref = school_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + school_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The school name. For example "MIT", "University of California, Berkeley".
+     * 
+ * + * string school = 1; + */ + public Builder setSchool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + school_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The school name. For example "MIT", "University of California, Berkeley".
+     * 
+ * + * string school = 1; + */ + public Builder clearSchool() { + + school_ = getDefaultInstance().getSchool(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The school name. For example "MIT", "University of California, Berkeley".
+     * 
+ * + * string school = 1; + */ + public Builder setSchoolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + school_ = value; + onChanged(); + return this; + } + + private java.lang.Object fieldOfStudy_ = ""; + /** + * + * + *
+     * Optional.
+     * The field of study. This is to search against value provided in
+     * [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study].
+     * For example "Computer Science", "Mathematics".
+     * 
+ * + * string field_of_study = 2; + */ + public java.lang.String getFieldOfStudy() { + java.lang.Object ref = fieldOfStudy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldOfStudy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The field of study. This is to search against value provided in
+     * [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study].
+     * For example "Computer Science", "Mathematics".
+     * 
+ * + * string field_of_study = 2; + */ + public com.google.protobuf.ByteString getFieldOfStudyBytes() { + java.lang.Object ref = fieldOfStudy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldOfStudy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The field of study. This is to search against value provided in
+     * [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study].
+     * For example "Computer Science", "Mathematics".
+     * 
+ * + * string field_of_study = 2; + */ + public Builder setFieldOfStudy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + fieldOfStudy_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The field of study. This is to search against value provided in
+     * [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study].
+     * For example "Computer Science", "Mathematics".
+     * 
+ * + * string field_of_study = 2; + */ + public Builder clearFieldOfStudy() { + + fieldOfStudy_ = getDefaultInstance().getFieldOfStudy(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The field of study. This is to search against value provided in
+     * [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study].
+     * For example "Computer Science", "Mathematics".
+     * 
+ * + * string field_of_study = 2; + */ + public Builder setFieldOfStudyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + fieldOfStudy_ = value; + onChanged(); + return this; + } + + private int degreeType_ = 0; + /** + * + * + *
+     * Optional.
+     * Education degree in ISCED code. Each value in degree covers a specific
+     * level of education, without any expansion to upper nor lower levels of
+     * education degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; + */ + public int getDegreeTypeValue() { + return degreeType_; + } + /** + * + * + *
+     * Optional.
+     * Education degree in ISCED code. Each value in degree covers a specific
+     * level of education, without any expansion to upper nor lower levels of
+     * education degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; + */ + public Builder setDegreeTypeValue(int value) { + degreeType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Education degree in ISCED code. Each value in degree covers a specific
+     * level of education, without any expansion to upper nor lower levels of
+     * education degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; + */ + public com.google.cloud.talent.v4beta1.DegreeType getDegreeType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.DegreeType result = + com.google.cloud.talent.v4beta1.DegreeType.valueOf(degreeType_); + return result == null ? com.google.cloud.talent.v4beta1.DegreeType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional.
+     * Education degree in ISCED code. Each value in degree covers a specific
+     * level of education, without any expansion to upper nor lower levels of
+     * education degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; + */ + public Builder setDegreeType(com.google.cloud.talent.v4beta1.DegreeType value) { + if (value == null) { + throw new NullPointerException(); + } + + degreeType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Education degree in ISCED code. Each value in degree covers a specific
+     * level of education, without any expansion to upper nor lower levels of
+     * education degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; + */ + public Builder clearDegreeType() { + + degreeType_ = 0; + onChanged(); + return this; + } + + private boolean negated_; + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * is excluded.
+     * 
+ * + * bool negated = 6; + */ + public boolean getNegated() { + return negated_; + } + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * is excluded.
+     * 
+ * + * bool negated = 6; + */ + public Builder setNegated(boolean value) { + + negated_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * is excluded.
+     * 
+ * + * bool negated = 6; + */ + public Builder clearNegated() { + + negated_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.EducationFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.EducationFilter) + private static final com.google.cloud.talent.v4beta1.EducationFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.EducationFilter(); + } + + public static com.google.cloud.talent.v4beta1.EducationFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EducationFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EducationFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EducationFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationFilterOrBuilder.java new file mode 100644 index 000000000000..74bc7f5aa97b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationFilterOrBuilder.java @@ -0,0 +1,100 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface EducationFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.EducationFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The school name. For example "MIT", "University of California, Berkeley".
+   * 
+ * + * string school = 1; + */ + java.lang.String getSchool(); + /** + * + * + *
+   * Optional.
+   * The school name. For example "MIT", "University of California, Berkeley".
+   * 
+ * + * string school = 1; + */ + com.google.protobuf.ByteString getSchoolBytes(); + + /** + * + * + *
+   * Optional.
+   * The field of study. This is to search against value provided in
+   * [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study].
+   * For example "Computer Science", "Mathematics".
+   * 
+ * + * string field_of_study = 2; + */ + java.lang.String getFieldOfStudy(); + /** + * + * + *
+   * Optional.
+   * The field of study. This is to search against value provided in
+   * [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study].
+   * For example "Computer Science", "Mathematics".
+   * 
+ * + * string field_of_study = 2; + */ + com.google.protobuf.ByteString getFieldOfStudyBytes(); + + /** + * + * + *
+   * Optional.
+   * Education degree in ISCED code. Each value in degree covers a specific
+   * level of education, without any expansion to upper nor lower levels of
+   * education degree.
+   * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; + */ + int getDegreeTypeValue(); + /** + * + * + *
+   * Optional.
+   * Education degree in ISCED code. Each value in degree covers a specific
+   * level of education, without any expansion to upper nor lower levels of
+   * education degree.
+   * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; + */ + com.google.cloud.talent.v4beta1.DegreeType getDegreeType(); + + /** + * + * + *
+   * Optional.
+   * Whether to apply negation to the filter so profiles matching the filter
+   * is excluded.
+   * 
+ * + * bool negated = 6; + */ + boolean getNegated(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationRecord.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationRecord.java new file mode 100644 index 000000000000..a839d523931a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationRecord.java @@ -0,0 +1,3095 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents an education record of a candidate.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.EducationRecord} + */ +public final class EducationRecord extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.EducationRecord) + EducationRecordOrBuilder { + private static final long serialVersionUID = 0L; + // Use EducationRecord.newBuilder() to construct. + private EducationRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EducationRecord() { + schoolName_ = ""; + description_ = ""; + schoolNameSnippet_ = ""; + degreeSnippet_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EducationRecord( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.type.Date.Builder subBuilder = null; + if (startDate_ != null) { + subBuilder = startDate_.toBuilder(); + } + startDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startDate_); + startDate_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.type.Date.Builder subBuilder = null; + if (endDate_ != null) { + subBuilder = endDate_.toBuilder(); + } + endDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endDate_); + endDate_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.type.Date.Builder subBuilder = null; + if (expectedGraduationDate_ != null) { + subBuilder = expectedGraduationDate_.toBuilder(); + } + expectedGraduationDate_ = + input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expectedGraduationDate_); + expectedGraduationDate_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + schoolName_ = s; + break; + } + case 42: + { + com.google.cloud.talent.v4beta1.Address.Builder subBuilder = null; + if (address_ != null) { + subBuilder = address_.toBuilder(); + } + address_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Address.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(address_); + address_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + degreeCase_ = 6; + degree_ = s; + break; + } + case 58: + { + com.google.cloud.talent.v4beta1.Degree.Builder subBuilder = null; + if (degreeCase_ == 7) { + subBuilder = ((com.google.cloud.talent.v4beta1.Degree) degree_).toBuilder(); + } + degree_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Degree.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.talent.v4beta1.Degree) degree_); + degree_ = subBuilder.buildPartial(); + } + degreeCase_ = 7; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 74: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (isCurrent_ != null) { + subBuilder = isCurrent_.toBuilder(); + } + isCurrent_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(isCurrent_); + isCurrent_ = subBuilder.buildPartial(); + } + + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + + schoolNameSnippet_ = s; + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + + degreeSnippet_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_EducationRecord_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_EducationRecord_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.EducationRecord.class, + com.google.cloud.talent.v4beta1.EducationRecord.Builder.class); + } + + private int degreeCase_ = 0; + private java.lang.Object degree_; + + public enum DegreeCase implements com.google.protobuf.Internal.EnumLite { + DEGREE_DESCRIPTION(6), + STRUCTURED_DEGREE(7), + DEGREE_NOT_SET(0); + private final int value; + + private DegreeCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static DegreeCase valueOf(int value) { + return forNumber(value); + } + + public static DegreeCase forNumber(int value) { + switch (value) { + case 6: + return DEGREE_DESCRIPTION; + case 7: + return STRUCTURED_DEGREE; + case 0: + return DEGREE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DegreeCase getDegreeCase() { + return DegreeCase.forNumber(degreeCase_); + } + + public static final int START_DATE_FIELD_NUMBER = 1; + private com.google.type.Date startDate_; + /** + * + * + *
+   * Optional.
+   * The start date of the education.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + public boolean hasStartDate() { + return startDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * The start date of the education.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.Date getStartDate() { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } + /** + * + * + *
+   * Optional.
+   * The start date of the education.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.DateOrBuilder getStartDateOrBuilder() { + return getStartDate(); + } + + public static final int END_DATE_FIELD_NUMBER = 2; + private com.google.type.Date endDate_; + /** + * + * + *
+   * Optional.
+   * The end date of the education.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + public boolean hasEndDate() { + return endDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * The end date of the education.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.Date getEndDate() { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } + /** + * + * + *
+   * Optional.
+   * The end date of the education.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.DateOrBuilder getEndDateOrBuilder() { + return getEndDate(); + } + + public static final int EXPECTED_GRADUATION_DATE_FIELD_NUMBER = 3; + private com.google.type.Date expectedGraduationDate_; + /** + * + * + *
+   * Optional.
+   * The expected graduation date if currently pursuing a degree.
+   * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + public boolean hasExpectedGraduationDate() { + return expectedGraduationDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * The expected graduation date if currently pursuing a degree.
+   * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + public com.google.type.Date getExpectedGraduationDate() { + return expectedGraduationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : expectedGraduationDate_; + } + /** + * + * + *
+   * Optional.
+   * The expected graduation date if currently pursuing a degree.
+   * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + public com.google.type.DateOrBuilder getExpectedGraduationDateOrBuilder() { + return getExpectedGraduationDate(); + } + + public static final int SCHOOL_NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object schoolName_; + /** + * + * + *
+   * Optional.
+   * The name of the school or institution.
+   * For example, "Stanford University", "UC Berkeley", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string school_name = 4; + */ + public java.lang.String getSchoolName() { + java.lang.Object ref = schoolName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schoolName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The name of the school or institution.
+   * For example, "Stanford University", "UC Berkeley", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string school_name = 4; + */ + public com.google.protobuf.ByteString getSchoolNameBytes() { + java.lang.Object ref = schoolName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schoolName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDRESS_FIELD_NUMBER = 5; + private com.google.cloud.talent.v4beta1.Address address_; + /** + * + * + *
+   * Optional.
+   * The physical address of the education institution.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public boolean hasAddress() { + return address_ != null; + } + /** + * + * + *
+   * Optional.
+   * The physical address of the education institution.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public com.google.cloud.talent.v4beta1.Address getAddress() { + return address_ == null + ? com.google.cloud.talent.v4beta1.Address.getDefaultInstance() + : address_; + } + /** + * + * + *
+   * Optional.
+   * The physical address of the education institution.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressOrBuilder() { + return getAddress(); + } + + public static final int DEGREE_DESCRIPTION_FIELD_NUMBER = 6; + /** + * + * + *
+   * Optional.
+   * The full description of the degree.
+   * For example, "Master of Science in Computer Science", "B.S in Math".
+   * Number of characters allowed is 100.
+   * 
+ * + * string degree_description = 6; + */ + public java.lang.String getDegreeDescription() { + java.lang.Object ref = ""; + if (degreeCase_ == 6) { + ref = degree_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (degreeCase_ == 6) { + degree_ = s; + } + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The full description of the degree.
+   * For example, "Master of Science in Computer Science", "B.S in Math".
+   * Number of characters allowed is 100.
+   * 
+ * + * string degree_description = 6; + */ + public com.google.protobuf.ByteString getDegreeDescriptionBytes() { + java.lang.Object ref = ""; + if (degreeCase_ == 6) { + ref = degree_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (degreeCase_ == 6) { + degree_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STRUCTURED_DEGREE_FIELD_NUMBER = 7; + /** + * + * + *
+   * Optional.
+   * The structured notation of the degree.
+   * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + public boolean hasStructuredDegree() { + return degreeCase_ == 7; + } + /** + * + * + *
+   * Optional.
+   * The structured notation of the degree.
+   * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + public com.google.cloud.talent.v4beta1.Degree getStructuredDegree() { + if (degreeCase_ == 7) { + return (com.google.cloud.talent.v4beta1.Degree) degree_; + } + return com.google.cloud.talent.v4beta1.Degree.getDefaultInstance(); + } + /** + * + * + *
+   * Optional.
+   * The structured notation of the degree.
+   * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + public com.google.cloud.talent.v4beta1.DegreeOrBuilder getStructuredDegreeOrBuilder() { + if (degreeCase_ == 7) { + return (com.google.cloud.talent.v4beta1.Degree) degree_; + } + return com.google.cloud.talent.v4beta1.Degree.getDefaultInstance(); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 8; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Optional.
+   * The description of the education.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 8; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The description of the education.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 8; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_CURRENT_FIELD_NUMBER = 9; + private com.google.protobuf.BoolValue isCurrent_; + /** + * + * + *
+   * Optional.
+   * If this education is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + public boolean hasIsCurrent() { + return isCurrent_ != null; + } + /** + * + * + *
+   * Optional.
+   * If this education is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + public com.google.protobuf.BoolValue getIsCurrent() { + return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; + } + /** + * + * + *
+   * Optional.
+   * If this education is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + public com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder() { + return getIsCurrent(); + } + + public static final int SCHOOL_NAME_SNIPPET_FIELD_NUMBER = 10; + private volatile java.lang.Object schoolNameSnippet_; + /** + * + * + *
+   * Output only. The school name snippet shows how the
+   * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is
+   * related to a search query in search result. It's empty if the
+   * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name]
+   * isn't related to the search query.
+   * 
+ * + * string school_name_snippet = 10; + */ + public java.lang.String getSchoolNameSnippet() { + java.lang.Object ref = schoolNameSnippet_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schoolNameSnippet_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The school name snippet shows how the
+   * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is
+   * related to a search query in search result. It's empty if the
+   * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name]
+   * isn't related to the search query.
+   * 
+ * + * string school_name_snippet = 10; + */ + public com.google.protobuf.ByteString getSchoolNameSnippetBytes() { + java.lang.Object ref = schoolNameSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schoolNameSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEGREE_SNIPPET_FIELD_NUMBER = 11; + private volatile java.lang.Object degreeSnippet_; + /** + * + * + *
+   * Output only. The job description snippet shows how the
+   * [degree][google.cloud.talent.v4beta1.degree] is related to a search query
+   * in search result. It's empty if the
+   * [degree][google.cloud.talent.v4beta1.degree] isn't related to the search
+   * query.
+   * 
+ * + * string degree_snippet = 11; + */ + public java.lang.String getDegreeSnippet() { + java.lang.Object ref = degreeSnippet_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + degreeSnippet_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The job description snippet shows how the
+   * [degree][google.cloud.talent.v4beta1.degree] is related to a search query
+   * in search result. It's empty if the
+   * [degree][google.cloud.talent.v4beta1.degree] isn't related to the search
+   * query.
+   * 
+ * + * string degree_snippet = 11; + */ + public com.google.protobuf.ByteString getDegreeSnippetBytes() { + java.lang.Object ref = degreeSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + degreeSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (startDate_ != null) { + output.writeMessage(1, getStartDate()); + } + if (endDate_ != null) { + output.writeMessage(2, getEndDate()); + } + if (expectedGraduationDate_ != null) { + output.writeMessage(3, getExpectedGraduationDate()); + } + if (!getSchoolNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, schoolName_); + } + if (address_ != null) { + output.writeMessage(5, getAddress()); + } + if (degreeCase_ == 6) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, degree_); + } + if (degreeCase_ == 7) { + output.writeMessage(7, (com.google.cloud.talent.v4beta1.Degree) degree_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, description_); + } + if (isCurrent_ != null) { + output.writeMessage(9, getIsCurrent()); + } + if (!getSchoolNameSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, schoolNameSnippet_); + } + if (!getDegreeSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, degreeSnippet_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartDate()); + } + if (endDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndDate()); + } + if (expectedGraduationDate_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExpectedGraduationDate()); + } + if (!getSchoolNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, schoolName_); + } + if (address_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAddress()); + } + if (degreeCase_ == 6) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, degree_); + } + if (degreeCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.talent.v4beta1.Degree) degree_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, description_); + } + if (isCurrent_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getIsCurrent()); + } + if (!getSchoolNameSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, schoolNameSnippet_); + } + if (!getDegreeSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, degreeSnippet_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.EducationRecord)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.EducationRecord other = + (com.google.cloud.talent.v4beta1.EducationRecord) obj; + + boolean result = true; + result = result && (hasStartDate() == other.hasStartDate()); + if (hasStartDate()) { + result = result && getStartDate().equals(other.getStartDate()); + } + result = result && (hasEndDate() == other.hasEndDate()); + if (hasEndDate()) { + result = result && getEndDate().equals(other.getEndDate()); + } + result = result && (hasExpectedGraduationDate() == other.hasExpectedGraduationDate()); + if (hasExpectedGraduationDate()) { + result = result && getExpectedGraduationDate().equals(other.getExpectedGraduationDate()); + } + result = result && getSchoolName().equals(other.getSchoolName()); + result = result && (hasAddress() == other.hasAddress()); + if (hasAddress()) { + result = result && getAddress().equals(other.getAddress()); + } + result = result && getDescription().equals(other.getDescription()); + result = result && (hasIsCurrent() == other.hasIsCurrent()); + if (hasIsCurrent()) { + result = result && getIsCurrent().equals(other.getIsCurrent()); + } + result = result && getSchoolNameSnippet().equals(other.getSchoolNameSnippet()); + result = result && getDegreeSnippet().equals(other.getDegreeSnippet()); + result = result && getDegreeCase().equals(other.getDegreeCase()); + if (!result) return false; + switch (degreeCase_) { + case 6: + result = result && getDegreeDescription().equals(other.getDegreeDescription()); + break; + case 7: + result = result && getStructuredDegree().equals(other.getStructuredDegree()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartDate()) { + hash = (37 * hash) + START_DATE_FIELD_NUMBER; + hash = (53 * hash) + getStartDate().hashCode(); + } + if (hasEndDate()) { + hash = (37 * hash) + END_DATE_FIELD_NUMBER; + hash = (53 * hash) + getEndDate().hashCode(); + } + if (hasExpectedGraduationDate()) { + hash = (37 * hash) + EXPECTED_GRADUATION_DATE_FIELD_NUMBER; + hash = (53 * hash) + getExpectedGraduationDate().hashCode(); + } + hash = (37 * hash) + SCHOOL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getSchoolName().hashCode(); + if (hasAddress()) { + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasIsCurrent()) { + hash = (37 * hash) + IS_CURRENT_FIELD_NUMBER; + hash = (53 * hash) + getIsCurrent().hashCode(); + } + hash = (37 * hash) + SCHOOL_NAME_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getSchoolNameSnippet().hashCode(); + hash = (37 * hash) + DEGREE_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getDegreeSnippet().hashCode(); + switch (degreeCase_) { + case 6: + hash = (37 * hash) + DEGREE_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDegreeDescription().hashCode(); + break; + case 7: + hash = (37 * hash) + STRUCTURED_DEGREE_FIELD_NUMBER; + hash = (53 * hash) + getStructuredDegree().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EducationRecord parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EducationRecord parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.EducationRecord prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Resource that represents an education record of a candidate.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.EducationRecord} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.EducationRecord) + com.google.cloud.talent.v4beta1.EducationRecordOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_EducationRecord_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_EducationRecord_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.EducationRecord.class, + com.google.cloud.talent.v4beta1.EducationRecord.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.EducationRecord.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (startDateBuilder_ == null) { + startDate_ = null; + } else { + startDate_ = null; + startDateBuilder_ = null; + } + if (endDateBuilder_ == null) { + endDate_ = null; + } else { + endDate_ = null; + endDateBuilder_ = null; + } + if (expectedGraduationDateBuilder_ == null) { + expectedGraduationDate_ = null; + } else { + expectedGraduationDate_ = null; + expectedGraduationDateBuilder_ = null; + } + schoolName_ = ""; + + if (addressBuilder_ == null) { + address_ = null; + } else { + address_ = null; + addressBuilder_ = null; + } + description_ = ""; + + if (isCurrentBuilder_ == null) { + isCurrent_ = null; + } else { + isCurrent_ = null; + isCurrentBuilder_ = null; + } + schoolNameSnippet_ = ""; + + degreeSnippet_ = ""; + + degreeCase_ = 0; + degree_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_EducationRecord_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EducationRecord getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.EducationRecord.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EducationRecord build() { + com.google.cloud.talent.v4beta1.EducationRecord result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EducationRecord buildPartial() { + com.google.cloud.talent.v4beta1.EducationRecord result = + new com.google.cloud.talent.v4beta1.EducationRecord(this); + if (startDateBuilder_ == null) { + result.startDate_ = startDate_; + } else { + result.startDate_ = startDateBuilder_.build(); + } + if (endDateBuilder_ == null) { + result.endDate_ = endDate_; + } else { + result.endDate_ = endDateBuilder_.build(); + } + if (expectedGraduationDateBuilder_ == null) { + result.expectedGraduationDate_ = expectedGraduationDate_; + } else { + result.expectedGraduationDate_ = expectedGraduationDateBuilder_.build(); + } + result.schoolName_ = schoolName_; + if (addressBuilder_ == null) { + result.address_ = address_; + } else { + result.address_ = addressBuilder_.build(); + } + if (degreeCase_ == 6) { + result.degree_ = degree_; + } + if (degreeCase_ == 7) { + if (structuredDegreeBuilder_ == null) { + result.degree_ = degree_; + } else { + result.degree_ = structuredDegreeBuilder_.build(); + } + } + result.description_ = description_; + if (isCurrentBuilder_ == null) { + result.isCurrent_ = isCurrent_; + } else { + result.isCurrent_ = isCurrentBuilder_.build(); + } + result.schoolNameSnippet_ = schoolNameSnippet_; + result.degreeSnippet_ = degreeSnippet_; + result.degreeCase_ = degreeCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.EducationRecord) { + return mergeFrom((com.google.cloud.talent.v4beta1.EducationRecord) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.EducationRecord other) { + if (other == com.google.cloud.talent.v4beta1.EducationRecord.getDefaultInstance()) + return this; + if (other.hasStartDate()) { + mergeStartDate(other.getStartDate()); + } + if (other.hasEndDate()) { + mergeEndDate(other.getEndDate()); + } + if (other.hasExpectedGraduationDate()) { + mergeExpectedGraduationDate(other.getExpectedGraduationDate()); + } + if (!other.getSchoolName().isEmpty()) { + schoolName_ = other.schoolName_; + onChanged(); + } + if (other.hasAddress()) { + mergeAddress(other.getAddress()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.hasIsCurrent()) { + mergeIsCurrent(other.getIsCurrent()); + } + if (!other.getSchoolNameSnippet().isEmpty()) { + schoolNameSnippet_ = other.schoolNameSnippet_; + onChanged(); + } + if (!other.getDegreeSnippet().isEmpty()) { + degreeSnippet_ = other.degreeSnippet_; + onChanged(); + } + switch (other.getDegreeCase()) { + case DEGREE_DESCRIPTION: + { + degreeCase_ = 6; + degree_ = other.degree_; + onChanged(); + break; + } + case STRUCTURED_DEGREE: + { + mergeStructuredDegree(other.getStructuredDegree()); + break; + } + case DEGREE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.EducationRecord parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.EducationRecord) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int degreeCase_ = 0; + private java.lang.Object degree_; + + public DegreeCase getDegreeCase() { + return DegreeCase.forNumber(degreeCase_); + } + + public Builder clearDegree() { + degreeCase_ = 0; + degree_ = null; + onChanged(); + return this; + } + + private com.google.type.Date startDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + startDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The start date of the education.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public boolean hasStartDate() { + return startDateBuilder_ != null || startDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The start date of the education.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.Date getStartDate() { + if (startDateBuilder_ == null) { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } else { + return startDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The start date of the education.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder setStartDate(com.google.type.Date value) { + if (startDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startDate_ = value; + onChanged(); + } else { + startDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The start date of the education.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder setStartDate(com.google.type.Date.Builder builderForValue) { + if (startDateBuilder_ == null) { + startDate_ = builderForValue.build(); + onChanged(); + } else { + startDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The start date of the education.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder mergeStartDate(com.google.type.Date value) { + if (startDateBuilder_ == null) { + if (startDate_ != null) { + startDate_ = com.google.type.Date.newBuilder(startDate_).mergeFrom(value).buildPartial(); + } else { + startDate_ = value; + } + onChanged(); + } else { + startDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The start date of the education.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder clearStartDate() { + if (startDateBuilder_ == null) { + startDate_ = null; + onChanged(); + } else { + startDate_ = null; + startDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The start date of the education.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.Date.Builder getStartDateBuilder() { + + onChanged(); + return getStartDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The start date of the education.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.DateOrBuilder getStartDateOrBuilder() { + if (startDateBuilder_ != null) { + return startDateBuilder_.getMessageOrBuilder(); + } else { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } + } + /** + * + * + *
+     * Optional.
+     * The start date of the education.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getStartDateFieldBuilder() { + if (startDateBuilder_ == null) { + startDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getStartDate(), getParentForChildren(), isClean()); + startDate_ = null; + } + return startDateBuilder_; + } + + private com.google.type.Date endDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + endDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The end date of the education.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public boolean hasEndDate() { + return endDateBuilder_ != null || endDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The end date of the education.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.Date getEndDate() { + if (endDateBuilder_ == null) { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } else { + return endDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The end date of the education.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder setEndDate(com.google.type.Date value) { + if (endDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endDate_ = value; + onChanged(); + } else { + endDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The end date of the education.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder setEndDate(com.google.type.Date.Builder builderForValue) { + if (endDateBuilder_ == null) { + endDate_ = builderForValue.build(); + onChanged(); + } else { + endDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The end date of the education.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder mergeEndDate(com.google.type.Date value) { + if (endDateBuilder_ == null) { + if (endDate_ != null) { + endDate_ = com.google.type.Date.newBuilder(endDate_).mergeFrom(value).buildPartial(); + } else { + endDate_ = value; + } + onChanged(); + } else { + endDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The end date of the education.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder clearEndDate() { + if (endDateBuilder_ == null) { + endDate_ = null; + onChanged(); + } else { + endDate_ = null; + endDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The end date of the education.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.Date.Builder getEndDateBuilder() { + + onChanged(); + return getEndDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The end date of the education.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.DateOrBuilder getEndDateOrBuilder() { + if (endDateBuilder_ != null) { + return endDateBuilder_.getMessageOrBuilder(); + } else { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } + } + /** + * + * + *
+     * Optional.
+     * The end date of the education.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getEndDateFieldBuilder() { + if (endDateBuilder_ == null) { + endDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getEndDate(), getParentForChildren(), isClean()); + endDate_ = null; + } + return endDateBuilder_; + } + + private com.google.type.Date expectedGraduationDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + expectedGraduationDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The expected graduation date if currently pursuing a degree.
+     * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + public boolean hasExpectedGraduationDate() { + return expectedGraduationDateBuilder_ != null || expectedGraduationDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The expected graduation date if currently pursuing a degree.
+     * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + public com.google.type.Date getExpectedGraduationDate() { + if (expectedGraduationDateBuilder_ == null) { + return expectedGraduationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : expectedGraduationDate_; + } else { + return expectedGraduationDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The expected graduation date if currently pursuing a degree.
+     * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + public Builder setExpectedGraduationDate(com.google.type.Date value) { + if (expectedGraduationDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expectedGraduationDate_ = value; + onChanged(); + } else { + expectedGraduationDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The expected graduation date if currently pursuing a degree.
+     * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + public Builder setExpectedGraduationDate(com.google.type.Date.Builder builderForValue) { + if (expectedGraduationDateBuilder_ == null) { + expectedGraduationDate_ = builderForValue.build(); + onChanged(); + } else { + expectedGraduationDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The expected graduation date if currently pursuing a degree.
+     * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + public Builder mergeExpectedGraduationDate(com.google.type.Date value) { + if (expectedGraduationDateBuilder_ == null) { + if (expectedGraduationDate_ != null) { + expectedGraduationDate_ = + com.google.type.Date.newBuilder(expectedGraduationDate_) + .mergeFrom(value) + .buildPartial(); + } else { + expectedGraduationDate_ = value; + } + onChanged(); + } else { + expectedGraduationDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The expected graduation date if currently pursuing a degree.
+     * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + public Builder clearExpectedGraduationDate() { + if (expectedGraduationDateBuilder_ == null) { + expectedGraduationDate_ = null; + onChanged(); + } else { + expectedGraduationDate_ = null; + expectedGraduationDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The expected graduation date if currently pursuing a degree.
+     * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + public com.google.type.Date.Builder getExpectedGraduationDateBuilder() { + + onChanged(); + return getExpectedGraduationDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The expected graduation date if currently pursuing a degree.
+     * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + public com.google.type.DateOrBuilder getExpectedGraduationDateOrBuilder() { + if (expectedGraduationDateBuilder_ != null) { + return expectedGraduationDateBuilder_.getMessageOrBuilder(); + } else { + return expectedGraduationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : expectedGraduationDate_; + } + } + /** + * + * + *
+     * Optional.
+     * The expected graduation date if currently pursuing a degree.
+     * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getExpectedGraduationDateFieldBuilder() { + if (expectedGraduationDateBuilder_ == null) { + expectedGraduationDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getExpectedGraduationDate(), getParentForChildren(), isClean()); + expectedGraduationDate_ = null; + } + return expectedGraduationDateBuilder_; + } + + private java.lang.Object schoolName_ = ""; + /** + * + * + *
+     * Optional.
+     * The name of the school or institution.
+     * For example, "Stanford University", "UC Berkeley", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string school_name = 4; + */ + public java.lang.String getSchoolName() { + java.lang.Object ref = schoolName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schoolName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The name of the school or institution.
+     * For example, "Stanford University", "UC Berkeley", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string school_name = 4; + */ + public com.google.protobuf.ByteString getSchoolNameBytes() { + java.lang.Object ref = schoolName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schoolName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The name of the school or institution.
+     * For example, "Stanford University", "UC Berkeley", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string school_name = 4; + */ + public Builder setSchoolName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + schoolName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The name of the school or institution.
+     * For example, "Stanford University", "UC Berkeley", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string school_name = 4; + */ + public Builder clearSchoolName() { + + schoolName_ = getDefaultInstance().getSchoolName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The name of the school or institution.
+     * For example, "Stanford University", "UC Berkeley", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string school_name = 4; + */ + public Builder setSchoolNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + schoolName_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.Address address_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Address, + com.google.cloud.talent.v4beta1.Address.Builder, + com.google.cloud.talent.v4beta1.AddressOrBuilder> + addressBuilder_; + /** + * + * + *
+     * Optional.
+     * The physical address of the education institution.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public boolean hasAddress() { + return addressBuilder_ != null || address_ != null; + } + /** + * + * + *
+     * Optional.
+     * The physical address of the education institution.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public com.google.cloud.talent.v4beta1.Address getAddress() { + if (addressBuilder_ == null) { + return address_ == null + ? com.google.cloud.talent.v4beta1.Address.getDefaultInstance() + : address_; + } else { + return addressBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The physical address of the education institution.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public Builder setAddress(com.google.cloud.talent.v4beta1.Address value) { + if (addressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + address_ = value; + onChanged(); + } else { + addressBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The physical address of the education institution.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public Builder setAddress(com.google.cloud.talent.v4beta1.Address.Builder builderForValue) { + if (addressBuilder_ == null) { + address_ = builderForValue.build(); + onChanged(); + } else { + addressBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The physical address of the education institution.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public Builder mergeAddress(com.google.cloud.talent.v4beta1.Address value) { + if (addressBuilder_ == null) { + if (address_ != null) { + address_ = + com.google.cloud.talent.v4beta1.Address.newBuilder(address_) + .mergeFrom(value) + .buildPartial(); + } else { + address_ = value; + } + onChanged(); + } else { + addressBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The physical address of the education institution.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public Builder clearAddress() { + if (addressBuilder_ == null) { + address_ = null; + onChanged(); + } else { + address_ = null; + addressBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The physical address of the education institution.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public com.google.cloud.talent.v4beta1.Address.Builder getAddressBuilder() { + + onChanged(); + return getAddressFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The physical address of the education institution.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressOrBuilder() { + if (addressBuilder_ != null) { + return addressBuilder_.getMessageOrBuilder(); + } else { + return address_ == null + ? com.google.cloud.talent.v4beta1.Address.getDefaultInstance() + : address_; + } + } + /** + * + * + *
+     * Optional.
+     * The physical address of the education institution.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Address, + com.google.cloud.talent.v4beta1.Address.Builder, + com.google.cloud.talent.v4beta1.AddressOrBuilder> + getAddressFieldBuilder() { + if (addressBuilder_ == null) { + addressBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Address, + com.google.cloud.talent.v4beta1.Address.Builder, + com.google.cloud.talent.v4beta1.AddressOrBuilder>( + getAddress(), getParentForChildren(), isClean()); + address_ = null; + } + return addressBuilder_; + } + + /** + * + * + *
+     * Optional.
+     * The full description of the degree.
+     * For example, "Master of Science in Computer Science", "B.S in Math".
+     * Number of characters allowed is 100.
+     * 
+ * + * string degree_description = 6; + */ + public java.lang.String getDegreeDescription() { + java.lang.Object ref = ""; + if (degreeCase_ == 6) { + ref = degree_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (degreeCase_ == 6) { + degree_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The full description of the degree.
+     * For example, "Master of Science in Computer Science", "B.S in Math".
+     * Number of characters allowed is 100.
+     * 
+ * + * string degree_description = 6; + */ + public com.google.protobuf.ByteString getDegreeDescriptionBytes() { + java.lang.Object ref = ""; + if (degreeCase_ == 6) { + ref = degree_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (degreeCase_ == 6) { + degree_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The full description of the degree.
+     * For example, "Master of Science in Computer Science", "B.S in Math".
+     * Number of characters allowed is 100.
+     * 
+ * + * string degree_description = 6; + */ + public Builder setDegreeDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + degreeCase_ = 6; + degree_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The full description of the degree.
+     * For example, "Master of Science in Computer Science", "B.S in Math".
+     * Number of characters allowed is 100.
+     * 
+ * + * string degree_description = 6; + */ + public Builder clearDegreeDescription() { + if (degreeCase_ == 6) { + degreeCase_ = 0; + degree_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The full description of the degree.
+     * For example, "Master of Science in Computer Science", "B.S in Math".
+     * Number of characters allowed is 100.
+     * 
+ * + * string degree_description = 6; + */ + public Builder setDegreeDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + degreeCase_ = 6; + degree_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Degree, + com.google.cloud.talent.v4beta1.Degree.Builder, + com.google.cloud.talent.v4beta1.DegreeOrBuilder> + structuredDegreeBuilder_; + /** + * + * + *
+     * Optional.
+     * The structured notation of the degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + public boolean hasStructuredDegree() { + return degreeCase_ == 7; + } + /** + * + * + *
+     * Optional.
+     * The structured notation of the degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + public com.google.cloud.talent.v4beta1.Degree getStructuredDegree() { + if (structuredDegreeBuilder_ == null) { + if (degreeCase_ == 7) { + return (com.google.cloud.talent.v4beta1.Degree) degree_; + } + return com.google.cloud.talent.v4beta1.Degree.getDefaultInstance(); + } else { + if (degreeCase_ == 7) { + return structuredDegreeBuilder_.getMessage(); + } + return com.google.cloud.talent.v4beta1.Degree.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional.
+     * The structured notation of the degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + public Builder setStructuredDegree(com.google.cloud.talent.v4beta1.Degree value) { + if (structuredDegreeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + degree_ = value; + onChanged(); + } else { + structuredDegreeBuilder_.setMessage(value); + } + degreeCase_ = 7; + return this; + } + /** + * + * + *
+     * Optional.
+     * The structured notation of the degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + public Builder setStructuredDegree( + com.google.cloud.talent.v4beta1.Degree.Builder builderForValue) { + if (structuredDegreeBuilder_ == null) { + degree_ = builderForValue.build(); + onChanged(); + } else { + structuredDegreeBuilder_.setMessage(builderForValue.build()); + } + degreeCase_ = 7; + return this; + } + /** + * + * + *
+     * Optional.
+     * The structured notation of the degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + public Builder mergeStructuredDegree(com.google.cloud.talent.v4beta1.Degree value) { + if (structuredDegreeBuilder_ == null) { + if (degreeCase_ == 7 + && degree_ != com.google.cloud.talent.v4beta1.Degree.getDefaultInstance()) { + degree_ = + com.google.cloud.talent.v4beta1.Degree.newBuilder( + (com.google.cloud.talent.v4beta1.Degree) degree_) + .mergeFrom(value) + .buildPartial(); + } else { + degree_ = value; + } + onChanged(); + } else { + if (degreeCase_ == 7) { + structuredDegreeBuilder_.mergeFrom(value); + } + structuredDegreeBuilder_.setMessage(value); + } + degreeCase_ = 7; + return this; + } + /** + * + * + *
+     * Optional.
+     * The structured notation of the degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + public Builder clearStructuredDegree() { + if (structuredDegreeBuilder_ == null) { + if (degreeCase_ == 7) { + degreeCase_ = 0; + degree_ = null; + onChanged(); + } + } else { + if (degreeCase_ == 7) { + degreeCase_ = 0; + degree_ = null; + } + structuredDegreeBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The structured notation of the degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + public com.google.cloud.talent.v4beta1.Degree.Builder getStructuredDegreeBuilder() { + return getStructuredDegreeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The structured notation of the degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + public com.google.cloud.talent.v4beta1.DegreeOrBuilder getStructuredDegreeOrBuilder() { + if ((degreeCase_ == 7) && (structuredDegreeBuilder_ != null)) { + return structuredDegreeBuilder_.getMessageOrBuilder(); + } else { + if (degreeCase_ == 7) { + return (com.google.cloud.talent.v4beta1.Degree) degree_; + } + return com.google.cloud.talent.v4beta1.Degree.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional.
+     * The structured notation of the degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Degree, + com.google.cloud.talent.v4beta1.Degree.Builder, + com.google.cloud.talent.v4beta1.DegreeOrBuilder> + getStructuredDegreeFieldBuilder() { + if (structuredDegreeBuilder_ == null) { + if (!(degreeCase_ == 7)) { + degree_ = com.google.cloud.talent.v4beta1.Degree.getDefaultInstance(); + } + structuredDegreeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Degree, + com.google.cloud.talent.v4beta1.Degree.Builder, + com.google.cloud.talent.v4beta1.DegreeOrBuilder>( + (com.google.cloud.talent.v4beta1.Degree) degree_, + getParentForChildren(), + isClean()); + degree_ = null; + } + degreeCase_ = 7; + onChanged(); + ; + return structuredDegreeBuilder_; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Optional.
+     * The description of the education.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 8; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The description of the education.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 8; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The description of the education.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 8; + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The description of the education.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 8; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The description of the education.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 8; + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.BoolValue isCurrent_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + isCurrentBuilder_; + /** + * + * + *
+     * Optional.
+     * If this education is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + public boolean hasIsCurrent() { + return isCurrentBuilder_ != null || isCurrent_ != null; + } + /** + * + * + *
+     * Optional.
+     * If this education is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + public com.google.protobuf.BoolValue getIsCurrent() { + if (isCurrentBuilder_ == null) { + return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; + } else { + return isCurrentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * If this education is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + public Builder setIsCurrent(com.google.protobuf.BoolValue value) { + if (isCurrentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + isCurrent_ = value; + onChanged(); + } else { + isCurrentBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this education is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + public Builder setIsCurrent(com.google.protobuf.BoolValue.Builder builderForValue) { + if (isCurrentBuilder_ == null) { + isCurrent_ = builderForValue.build(); + onChanged(); + } else { + isCurrentBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this education is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + public Builder mergeIsCurrent(com.google.protobuf.BoolValue value) { + if (isCurrentBuilder_ == null) { + if (isCurrent_ != null) { + isCurrent_ = + com.google.protobuf.BoolValue.newBuilder(isCurrent_).mergeFrom(value).buildPartial(); + } else { + isCurrent_ = value; + } + onChanged(); + } else { + isCurrentBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this education is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + public Builder clearIsCurrent() { + if (isCurrentBuilder_ == null) { + isCurrent_ = null; + onChanged(); + } else { + isCurrent_ = null; + isCurrentBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this education is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + public com.google.protobuf.BoolValue.Builder getIsCurrentBuilder() { + + onChanged(); + return getIsCurrentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * If this education is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + public com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder() { + if (isCurrentBuilder_ != null) { + return isCurrentBuilder_.getMessageOrBuilder(); + } else { + return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; + } + } + /** + * + * + *
+     * Optional.
+     * If this education is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getIsCurrentFieldBuilder() { + if (isCurrentBuilder_ == null) { + isCurrentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getIsCurrent(), getParentForChildren(), isClean()); + isCurrent_ = null; + } + return isCurrentBuilder_; + } + + private java.lang.Object schoolNameSnippet_ = ""; + /** + * + * + *
+     * Output only. The school name snippet shows how the
+     * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is
+     * related to a search query in search result. It's empty if the
+     * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name]
+     * isn't related to the search query.
+     * 
+ * + * string school_name_snippet = 10; + */ + public java.lang.String getSchoolNameSnippet() { + java.lang.Object ref = schoolNameSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schoolNameSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The school name snippet shows how the
+     * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is
+     * related to a search query in search result. It's empty if the
+     * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name]
+     * isn't related to the search query.
+     * 
+ * + * string school_name_snippet = 10; + */ + public com.google.protobuf.ByteString getSchoolNameSnippetBytes() { + java.lang.Object ref = schoolNameSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schoolNameSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The school name snippet shows how the
+     * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is
+     * related to a search query in search result. It's empty if the
+     * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name]
+     * isn't related to the search query.
+     * 
+ * + * string school_name_snippet = 10; + */ + public Builder setSchoolNameSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + schoolNameSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The school name snippet shows how the
+     * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is
+     * related to a search query in search result. It's empty if the
+     * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name]
+     * isn't related to the search query.
+     * 
+ * + * string school_name_snippet = 10; + */ + public Builder clearSchoolNameSnippet() { + + schoolNameSnippet_ = getDefaultInstance().getSchoolNameSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The school name snippet shows how the
+     * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is
+     * related to a search query in search result. It's empty if the
+     * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name]
+     * isn't related to the search query.
+     * 
+ * + * string school_name_snippet = 10; + */ + public Builder setSchoolNameSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + schoolNameSnippet_ = value; + onChanged(); + return this; + } + + private java.lang.Object degreeSnippet_ = ""; + /** + * + * + *
+     * Output only. The job description snippet shows how the
+     * [degree][google.cloud.talent.v4beta1.degree] is related to a search query
+     * in search result. It's empty if the
+     * [degree][google.cloud.talent.v4beta1.degree] isn't related to the search
+     * query.
+     * 
+ * + * string degree_snippet = 11; + */ + public java.lang.String getDegreeSnippet() { + java.lang.Object ref = degreeSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + degreeSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The job description snippet shows how the
+     * [degree][google.cloud.talent.v4beta1.degree] is related to a search query
+     * in search result. It's empty if the
+     * [degree][google.cloud.talent.v4beta1.degree] isn't related to the search
+     * query.
+     * 
+ * + * string degree_snippet = 11; + */ + public com.google.protobuf.ByteString getDegreeSnippetBytes() { + java.lang.Object ref = degreeSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + degreeSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The job description snippet shows how the
+     * [degree][google.cloud.talent.v4beta1.degree] is related to a search query
+     * in search result. It's empty if the
+     * [degree][google.cloud.talent.v4beta1.degree] isn't related to the search
+     * query.
+     * 
+ * + * string degree_snippet = 11; + */ + public Builder setDegreeSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + degreeSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The job description snippet shows how the
+     * [degree][google.cloud.talent.v4beta1.degree] is related to a search query
+     * in search result. It's empty if the
+     * [degree][google.cloud.talent.v4beta1.degree] isn't related to the search
+     * query.
+     * 
+ * + * string degree_snippet = 11; + */ + public Builder clearDegreeSnippet() { + + degreeSnippet_ = getDefaultInstance().getDegreeSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The job description snippet shows how the
+     * [degree][google.cloud.talent.v4beta1.degree] is related to a search query
+     * in search result. It's empty if the
+     * [degree][google.cloud.talent.v4beta1.degree] isn't related to the search
+     * query.
+     * 
+ * + * string degree_snippet = 11; + */ + public Builder setDegreeSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + degreeSnippet_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.EducationRecord) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.EducationRecord) + private static final com.google.cloud.talent.v4beta1.EducationRecord DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.EducationRecord(); + } + + public static com.google.cloud.talent.v4beta1.EducationRecord getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EducationRecord parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EducationRecord(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EducationRecord getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationRecordOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationRecordOrBuilder.java new file mode 100644 index 000000000000..b3f7734d507e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationRecordOrBuilder.java @@ -0,0 +1,353 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface EducationRecordOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.EducationRecord) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The start date of the education.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + boolean hasStartDate(); + /** + * + * + *
+   * Optional.
+   * The start date of the education.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + com.google.type.Date getStartDate(); + /** + * + * + *
+   * Optional.
+   * The start date of the education.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + com.google.type.DateOrBuilder getStartDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The end date of the education.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + boolean hasEndDate(); + /** + * + * + *
+   * Optional.
+   * The end date of the education.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + com.google.type.Date getEndDate(); + /** + * + * + *
+   * Optional.
+   * The end date of the education.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + com.google.type.DateOrBuilder getEndDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The expected graduation date if currently pursuing a degree.
+   * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + boolean hasExpectedGraduationDate(); + /** + * + * + *
+   * Optional.
+   * The expected graduation date if currently pursuing a degree.
+   * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + com.google.type.Date getExpectedGraduationDate(); + /** + * + * + *
+   * Optional.
+   * The expected graduation date if currently pursuing a degree.
+   * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + com.google.type.DateOrBuilder getExpectedGraduationDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The name of the school or institution.
+   * For example, "Stanford University", "UC Berkeley", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string school_name = 4; + */ + java.lang.String getSchoolName(); + /** + * + * + *
+   * Optional.
+   * The name of the school or institution.
+   * For example, "Stanford University", "UC Berkeley", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string school_name = 4; + */ + com.google.protobuf.ByteString getSchoolNameBytes(); + + /** + * + * + *
+   * Optional.
+   * The physical address of the education institution.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + boolean hasAddress(); + /** + * + * + *
+   * Optional.
+   * The physical address of the education institution.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + com.google.cloud.talent.v4beta1.Address getAddress(); + /** + * + * + *
+   * Optional.
+   * The physical address of the education institution.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The full description of the degree.
+   * For example, "Master of Science in Computer Science", "B.S in Math".
+   * Number of characters allowed is 100.
+   * 
+ * + * string degree_description = 6; + */ + java.lang.String getDegreeDescription(); + /** + * + * + *
+   * Optional.
+   * The full description of the degree.
+   * For example, "Master of Science in Computer Science", "B.S in Math".
+   * Number of characters allowed is 100.
+   * 
+ * + * string degree_description = 6; + */ + com.google.protobuf.ByteString getDegreeDescriptionBytes(); + + /** + * + * + *
+   * Optional.
+   * The structured notation of the degree.
+   * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + boolean hasStructuredDegree(); + /** + * + * + *
+   * Optional.
+   * The structured notation of the degree.
+   * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + com.google.cloud.talent.v4beta1.Degree getStructuredDegree(); + /** + * + * + *
+   * Optional.
+   * The structured notation of the degree.
+   * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + com.google.cloud.talent.v4beta1.DegreeOrBuilder getStructuredDegreeOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The description of the education.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 8; + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Optional.
+   * The description of the education.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 8; + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional.
+   * If this education is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + boolean hasIsCurrent(); + /** + * + * + *
+   * Optional.
+   * If this education is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + com.google.protobuf.BoolValue getIsCurrent(); + /** + * + * + *
+   * Optional.
+   * If this education is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder(); + + /** + * + * + *
+   * Output only. The school name snippet shows how the
+   * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is
+   * related to a search query in search result. It's empty if the
+   * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name]
+   * isn't related to the search query.
+   * 
+ * + * string school_name_snippet = 10; + */ + java.lang.String getSchoolNameSnippet(); + /** + * + * + *
+   * Output only. The school name snippet shows how the
+   * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is
+   * related to a search query in search result. It's empty if the
+   * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name]
+   * isn't related to the search query.
+   * 
+ * + * string school_name_snippet = 10; + */ + com.google.protobuf.ByteString getSchoolNameSnippetBytes(); + + /** + * + * + *
+   * Output only. The job description snippet shows how the
+   * [degree][google.cloud.talent.v4beta1.degree] is related to a search query
+   * in search result. It's empty if the
+   * [degree][google.cloud.talent.v4beta1.degree] isn't related to the search
+   * query.
+   * 
+ * + * string degree_snippet = 11; + */ + java.lang.String getDegreeSnippet(); + /** + * + * + *
+   * Output only. The job description snippet shows how the
+   * [degree][google.cloud.talent.v4beta1.degree] is related to a search query
+   * in search result. It's empty if the
+   * [degree][google.cloud.talent.v4beta1.degree] isn't related to the search
+   * query.
+   * 
+ * + * string degree_snippet = 11; + */ + com.google.protobuf.ByteString getDegreeSnippetBytes(); + + public com.google.cloud.talent.v4beta1.EducationRecord.DegreeCase getDegreeCase(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Email.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Email.java new file mode 100644 index 000000000000..8d5623f7194d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Email.java @@ -0,0 +1,751 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents a person's email address.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Email} + */ +public final class Email extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Email) + EmailOrBuilder { + private static final long serialVersionUID = 0L; + // Use Email.newBuilder() to construct. + private Email(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Email() { + usage_ = 0; + emailAddress_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Email( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + usage_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + emailAddress_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Email_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Email_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Email.class, + com.google.cloud.talent.v4beta1.Email.Builder.class); + } + + public static final int USAGE_FIELD_NUMBER = 1; + private int usage_; + /** + * + * + *
+   * Optional.
+   * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public int getUsageValue() { + return usage_; + } + /** + * + * + *
+   * Optional.
+   * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.ContactInfoUsage result = + com.google.cloud.talent.v4beta1.ContactInfoUsage.valueOf(usage_); + return result == null ? com.google.cloud.talent.v4beta1.ContactInfoUsage.UNRECOGNIZED : result; + } + + public static final int EMAIL_ADDRESS_FIELD_NUMBER = 2; + private volatile java.lang.Object emailAddress_; + /** + * + * + *
+   * Optional.
+   * Email address.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string email_address = 2; + */ + public java.lang.String getEmailAddress() { + java.lang.Object ref = emailAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + emailAddress_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Email address.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string email_address = 2; + */ + public com.google.protobuf.ByteString getEmailAddressBytes() { + java.lang.Object ref = emailAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + emailAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (usage_ + != com.google.cloud.talent.v4beta1.ContactInfoUsage.CONTACT_INFO_USAGE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, usage_); + } + if (!getEmailAddressBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, emailAddress_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (usage_ + != com.google.cloud.talent.v4beta1.ContactInfoUsage.CONTACT_INFO_USAGE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, usage_); + } + if (!getEmailAddressBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, emailAddress_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Email)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Email other = (com.google.cloud.talent.v4beta1.Email) obj; + + boolean result = true; + result = result && usage_ == other.usage_; + result = result && getEmailAddress().equals(other.getEmailAddress()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USAGE_FIELD_NUMBER; + hash = (53 * hash) + usage_; + hash = (37 * hash) + EMAIL_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getEmailAddress().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Email parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Email parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Email parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Email parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Email parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Email parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Email parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Email parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Email parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Email parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Email parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Email parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.Email prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Resource that represents a person's email address.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Email} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Email) + com.google.cloud.talent.v4beta1.EmailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Email_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Email_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Email.class, + com.google.cloud.talent.v4beta1.Email.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Email.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + usage_ = 0; + + emailAddress_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Email_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Email getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Email.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Email build() { + com.google.cloud.talent.v4beta1.Email result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Email buildPartial() { + com.google.cloud.talent.v4beta1.Email result = + new com.google.cloud.talent.v4beta1.Email(this); + result.usage_ = usage_; + result.emailAddress_ = emailAddress_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Email) { + return mergeFrom((com.google.cloud.talent.v4beta1.Email) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Email other) { + if (other == com.google.cloud.talent.v4beta1.Email.getDefaultInstance()) return this; + if (other.usage_ != 0) { + setUsageValue(other.getUsageValue()); + } + if (!other.getEmailAddress().isEmpty()) { + emailAddress_ = other.emailAddress_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Email parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Email) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int usage_ = 0; + /** + * + * + *
+     * Optional.
+     * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public int getUsageValue() { + return usage_; + } + /** + * + * + *
+     * Optional.
+     * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder setUsageValue(int value) { + usage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.ContactInfoUsage result = + com.google.cloud.talent.v4beta1.ContactInfoUsage.valueOf(usage_); + return result == null + ? com.google.cloud.talent.v4beta1.ContactInfoUsage.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder setUsage(com.google.cloud.talent.v4beta1.ContactInfoUsage value) { + if (value == null) { + throw new NullPointerException(); + } + + usage_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder clearUsage() { + + usage_ = 0; + onChanged(); + return this; + } + + private java.lang.Object emailAddress_ = ""; + /** + * + * + *
+     * Optional.
+     * Email address.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string email_address = 2; + */ + public java.lang.String getEmailAddress() { + java.lang.Object ref = emailAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + emailAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Email address.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string email_address = 2; + */ + public com.google.protobuf.ByteString getEmailAddressBytes() { + java.lang.Object ref = emailAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + emailAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Email address.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string email_address = 2; + */ + public Builder setEmailAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + emailAddress_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Email address.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string email_address = 2; + */ + public Builder clearEmailAddress() { + + emailAddress_ = getDefaultInstance().getEmailAddress(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Email address.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string email_address = 2; + */ + public Builder setEmailAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + emailAddress_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Email) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Email) + private static final com.google.cloud.talent.v4beta1.Email DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Email(); + } + + public static com.google.cloud.talent.v4beta1.Email getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Email parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Email(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Email getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmailOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmailOrBuilder.java new file mode 100644 index 000000000000..0a978ab2843e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmailOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface EmailOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Email) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + int getUsageValue(); + /** + * + * + *
+   * Optional.
+   * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage(); + + /** + * + * + *
+   * Optional.
+   * Email address.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string email_address = 2; + */ + java.lang.String getEmailAddress(); + /** + * + * + *
+   * Optional.
+   * Email address.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string email_address = 2; + */ + com.google.protobuf.ByteString getEmailAddressBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilter.java new file mode 100644 index 000000000000..1bcb27c02484 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilter.java @@ -0,0 +1,1047 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Employer filter of the search.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.EmployerFilter} + */ +public final class EmployerFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.EmployerFilter) + EmployerFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use EmployerFilter.newBuilder() to construct. + private EmployerFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EmployerFilter() { + employer_ = ""; + mode_ = 0; + negated_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EmployerFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + employer_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + mode_ = rawValue; + break; + } + case 24: + { + negated_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_EmployerFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_EmployerFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.EmployerFilter.class, + com.google.cloud.talent.v4beta1.EmployerFilter.Builder.class); + } + + /** + * + * + *
+   * Enum indicating which set of
+   * [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records]
+   * to search against.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode} + */ + public enum EmployerFilterMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * EMPLOYER_FILTER_MODE_UNSPECIFIED = 0; + */ + EMPLOYER_FILTER_MODE_UNSPECIFIED(0), + /** + * + * + *
+     * Apply to all employers in
+     * [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * ALL_EMPLOYMENT_RECORDS = 1; + */ + ALL_EMPLOYMENT_RECORDS(1), + /** + * + * + *
+     * Apply only to current employer in
+     * [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * CURRENT_EMPLOYMENT_RECORDS_ONLY = 2; + */ + CURRENT_EMPLOYMENT_RECORDS_ONLY(2), + /** + * + * + *
+     * Apply only to past (not current) employers in
+     * [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * PAST_EMPLOYMENT_RECORDS_ONLY = 3; + */ + PAST_EMPLOYMENT_RECORDS_ONLY(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * EMPLOYER_FILTER_MODE_UNSPECIFIED = 0; + */ + public static final int EMPLOYER_FILTER_MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Apply to all employers in
+     * [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * ALL_EMPLOYMENT_RECORDS = 1; + */ + public static final int ALL_EMPLOYMENT_RECORDS_VALUE = 1; + /** + * + * + *
+     * Apply only to current employer in
+     * [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * CURRENT_EMPLOYMENT_RECORDS_ONLY = 2; + */ + public static final int CURRENT_EMPLOYMENT_RECORDS_ONLY_VALUE = 2; + /** + * + * + *
+     * Apply only to past (not current) employers in
+     * [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * PAST_EMPLOYMENT_RECORDS_ONLY = 3; + */ + public static final int PAST_EMPLOYMENT_RECORDS_ONLY_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static EmployerFilterMode valueOf(int value) { + return forNumber(value); + } + + public static EmployerFilterMode forNumber(int value) { + switch (value) { + case 0: + return EMPLOYER_FILTER_MODE_UNSPECIFIED; + case 1: + return ALL_EMPLOYMENT_RECORDS; + case 2: + return CURRENT_EMPLOYMENT_RECORDS_ONLY; + case 3: + return PAST_EMPLOYMENT_RECORDS_ONLY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EmployerFilterMode findValueByNumber(int number) { + return EmployerFilterMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.EmployerFilter.getDescriptor().getEnumTypes().get(0); + } + + private static final EmployerFilterMode[] VALUES = values(); + + public static EmployerFilterMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private EmployerFilterMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode) + } + + public static final int EMPLOYER_FIELD_NUMBER = 1; + private volatile java.lang.Object employer_; + /** + * + * + *
+   * Required.
+   * The name of the employer, for example "Google", "Alphabet".
+   * 
+ * + * string employer = 1; + */ + public java.lang.String getEmployer() { + java.lang.Object ref = employer_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + employer_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The name of the employer, for example "Google", "Alphabet".
+   * 
+ * + * string employer = 1; + */ + public com.google.protobuf.ByteString getEmployerBytes() { + java.lang.Object ref = employer_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + employer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODE_FIELD_NUMBER = 2; + private int mode_; + /** + * + * + *
+   * Optional.
+   * Define set of
+   * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search
+   * against.
+   * Defaults to
+   * [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS].
+   * 
+ * + * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; + */ + public int getModeValue() { + return mode_; + } + /** + * + * + *
+   * Optional.
+   * Define set of
+   * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search
+   * against.
+   * Defaults to
+   * [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS].
+   * 
+ * + * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; + */ + public com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode getMode() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode result = + com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.valueOf(mode_); + return result == null + ? com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.UNRECOGNIZED + : result; + } + + public static final int NEGATED_FIELD_NUMBER = 3; + private boolean negated_; + /** + * + * + *
+   * Optional.
+   * Whether to apply negation to the filter so profiles matching the filter
+   * is excluded.
+   * 
+ * + * bool negated = 3; + */ + public boolean getNegated() { + return negated_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getEmployerBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, employer_); + } + if (mode_ + != com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode + .EMPLOYER_FILTER_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, mode_); + } + if (negated_ != false) { + output.writeBool(3, negated_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getEmployerBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, employer_); + } + if (mode_ + != com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode + .EMPLOYER_FILTER_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, mode_); + } + if (negated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, negated_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.EmployerFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.EmployerFilter other = + (com.google.cloud.talent.v4beta1.EmployerFilter) obj; + + boolean result = true; + result = result && getEmployer().equals(other.getEmployer()); + result = result && mode_ == other.mode_; + result = result && (getNegated() == other.getNegated()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + EMPLOYER_FIELD_NUMBER; + hash = (53 * hash) + getEmployer().hashCode(); + hash = (37 * hash) + MODE_FIELD_NUMBER; + hash = (53 * hash) + mode_; + hash = (37 * hash) + NEGATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.EmployerFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Employer filter of the search.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.EmployerFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.EmployerFilter) + com.google.cloud.talent.v4beta1.EmployerFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_EmployerFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_EmployerFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.EmployerFilter.class, + com.google.cloud.talent.v4beta1.EmployerFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.EmployerFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + employer_ = ""; + + mode_ = 0; + + negated_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_EmployerFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EmployerFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.EmployerFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EmployerFilter build() { + com.google.cloud.talent.v4beta1.EmployerFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EmployerFilter buildPartial() { + com.google.cloud.talent.v4beta1.EmployerFilter result = + new com.google.cloud.talent.v4beta1.EmployerFilter(this); + result.employer_ = employer_; + result.mode_ = mode_; + result.negated_ = negated_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.EmployerFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.EmployerFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.EmployerFilter other) { + if (other == com.google.cloud.talent.v4beta1.EmployerFilter.getDefaultInstance()) return this; + if (!other.getEmployer().isEmpty()) { + employer_ = other.employer_; + onChanged(); + } + if (other.mode_ != 0) { + setModeValue(other.getModeValue()); + } + if (other.getNegated() != false) { + setNegated(other.getNegated()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.EmployerFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.EmployerFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object employer_ = ""; + /** + * + * + *
+     * Required.
+     * The name of the employer, for example "Google", "Alphabet".
+     * 
+ * + * string employer = 1; + */ + public java.lang.String getEmployer() { + java.lang.Object ref = employer_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + employer_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The name of the employer, for example "Google", "Alphabet".
+     * 
+ * + * string employer = 1; + */ + public com.google.protobuf.ByteString getEmployerBytes() { + java.lang.Object ref = employer_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + employer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The name of the employer, for example "Google", "Alphabet".
+     * 
+ * + * string employer = 1; + */ + public Builder setEmployer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + employer_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The name of the employer, for example "Google", "Alphabet".
+     * 
+ * + * string employer = 1; + */ + public Builder clearEmployer() { + + employer_ = getDefaultInstance().getEmployer(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The name of the employer, for example "Google", "Alphabet".
+     * 
+ * + * string employer = 1; + */ + public Builder setEmployerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + employer_ = value; + onChanged(); + return this; + } + + private int mode_ = 0; + /** + * + * + *
+     * Optional.
+     * Define set of
+     * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search
+     * against.
+     * Defaults to
+     * [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS].
+     * 
+ * + * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; + */ + public int getModeValue() { + return mode_; + } + /** + * + * + *
+     * Optional.
+     * Define set of
+     * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search
+     * against.
+     * Defaults to
+     * [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS].
+     * 
+ * + * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; + */ + public Builder setModeValue(int value) { + mode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Define set of
+     * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search
+     * against.
+     * Defaults to
+     * [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS].
+     * 
+ * + * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; + */ + public com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode getMode() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode result = + com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.valueOf(mode_); + return result == null + ? com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * Define set of
+     * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search
+     * against.
+     * Defaults to
+     * [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS].
+     * 
+ * + * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; + */ + public Builder setMode( + com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode value) { + if (value == null) { + throw new NullPointerException(); + } + + mode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Define set of
+     * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search
+     * against.
+     * Defaults to
+     * [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS].
+     * 
+ * + * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; + */ + public Builder clearMode() { + + mode_ = 0; + onChanged(); + return this; + } + + private boolean negated_; + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * is excluded.
+     * 
+ * + * bool negated = 3; + */ + public boolean getNegated() { + return negated_; + } + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * is excluded.
+     * 
+ * + * bool negated = 3; + */ + public Builder setNegated(boolean value) { + + negated_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * is excluded.
+     * 
+ * + * bool negated = 3; + */ + public Builder clearNegated() { + + negated_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.EmployerFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.EmployerFilter) + private static final com.google.cloud.talent.v4beta1.EmployerFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.EmployerFilter(); + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmployerFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EmployerFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EmployerFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilterOrBuilder.java new file mode 100644 index 000000000000..4401704a75af --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilterOrBuilder.java @@ -0,0 +1,77 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface EmployerFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.EmployerFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The name of the employer, for example "Google", "Alphabet".
+   * 
+ * + * string employer = 1; + */ + java.lang.String getEmployer(); + /** + * + * + *
+   * Required.
+   * The name of the employer, for example "Google", "Alphabet".
+   * 
+ * + * string employer = 1; + */ + com.google.protobuf.ByteString getEmployerBytes(); + + /** + * + * + *
+   * Optional.
+   * Define set of
+   * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search
+   * against.
+   * Defaults to
+   * [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS].
+   * 
+ * + * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; + */ + int getModeValue(); + /** + * + * + *
+   * Optional.
+   * Define set of
+   * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search
+   * against.
+   * Defaults to
+   * [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS].
+   * 
+ * + * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; + */ + com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode getMode(); + + /** + * + * + *
+   * Optional.
+   * Whether to apply negation to the filter so profiles matching the filter
+   * is excluded.
+   * 
+ * + * bool negated = 3; + */ + boolean getNegated(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecord.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecord.java new file mode 100644 index 000000000000..5455e7e9e686 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecord.java @@ -0,0 +1,3481 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents an employment record of a candidate.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.EmploymentRecord} + */ +public final class EmploymentRecord extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.EmploymentRecord) + EmploymentRecordOrBuilder { + private static final long serialVersionUID = 0L; + // Use EmploymentRecord.newBuilder() to construct. + private EmploymentRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EmploymentRecord() { + employerName_ = ""; + divisionName_ = ""; + jobTitle_ = ""; + jobDescription_ = ""; + jobTitleSnippet_ = ""; + jobDescriptionSnippet_ = ""; + employerNameSnippet_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EmploymentRecord( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.type.Date.Builder subBuilder = null; + if (startDate_ != null) { + subBuilder = startDate_.toBuilder(); + } + startDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startDate_); + startDate_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.type.Date.Builder subBuilder = null; + if (endDate_ != null) { + subBuilder = endDate_.toBuilder(); + } + endDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endDate_); + endDate_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + employerName_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + divisionName_ = s; + break; + } + case 42: + { + com.google.cloud.talent.v4beta1.Address.Builder subBuilder = null; + if (address_ != null) { + subBuilder = address_.toBuilder(); + } + address_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Address.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(address_); + address_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobTitle_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobDescription_ = s; + break; + } + case 66: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (isSupervisedPosition_ != null) { + subBuilder = isSupervisedPosition_.toBuilder(); + } + isSupervisedPosition_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(isSupervisedPosition_); + isSupervisedPosition_ = subBuilder.buildPartial(); + } + + break; + } + case 74: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (isSelfEmployed_ != null) { + subBuilder = isSelfEmployed_.toBuilder(); + } + isSelfEmployed_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(isSelfEmployed_); + isSelfEmployed_ = subBuilder.buildPartial(); + } + + break; + } + case 82: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (isCurrent_ != null) { + subBuilder = isCurrent_.toBuilder(); + } + isCurrent_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(isCurrent_); + isCurrent_ = subBuilder.buildPartial(); + } + + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobTitleSnippet_ = s; + break; + } + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobDescriptionSnippet_ = s; + break; + } + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + + employerNameSnippet_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_EmploymentRecord_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_EmploymentRecord_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.EmploymentRecord.class, + com.google.cloud.talent.v4beta1.EmploymentRecord.Builder.class); + } + + public static final int START_DATE_FIELD_NUMBER = 1; + private com.google.type.Date startDate_; + /** + * + * + *
+   * Optional.
+   * Start date of the employment.
+   * It can be a partial date (only year, or only year and month), but must be
+   * valid. Otherwise an error is thrown.
+   * Examples:
+   * {"year": 2017, "month": 2, "day": 28} is valid.
+   * {"year": 2020, "month": 1, "date": 31} is valid.
+   * {"year": 2018, "month": 12} is valid (partial date).
+   * {"year": 2018} is valid (partial date).
+   * {"year": 2015, "day": 21} is not valid (month is missing but day is
+   * presented).
+   * {"year": 2018, "month": 13} is not valid (invalid month).
+   * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+   * 
+ * + * .google.type.Date start_date = 1; + */ + public boolean hasStartDate() { + return startDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * Start date of the employment.
+   * It can be a partial date (only year, or only year and month), but must be
+   * valid. Otherwise an error is thrown.
+   * Examples:
+   * {"year": 2017, "month": 2, "day": 28} is valid.
+   * {"year": 2020, "month": 1, "date": 31} is valid.
+   * {"year": 2018, "month": 12} is valid (partial date).
+   * {"year": 2018} is valid (partial date).
+   * {"year": 2015, "day": 21} is not valid (month is missing but day is
+   * presented).
+   * {"year": 2018, "month": 13} is not valid (invalid month).
+   * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+   * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.Date getStartDate() { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } + /** + * + * + *
+   * Optional.
+   * Start date of the employment.
+   * It can be a partial date (only year, or only year and month), but must be
+   * valid. Otherwise an error is thrown.
+   * Examples:
+   * {"year": 2017, "month": 2, "day": 28} is valid.
+   * {"year": 2020, "month": 1, "date": 31} is valid.
+   * {"year": 2018, "month": 12} is valid (partial date).
+   * {"year": 2018} is valid (partial date).
+   * {"year": 2015, "day": 21} is not valid (month is missing but day is
+   * presented).
+   * {"year": 2018, "month": 13} is not valid (invalid month).
+   * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+   * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.DateOrBuilder getStartDateOrBuilder() { + return getStartDate(); + } + + public static final int END_DATE_FIELD_NUMBER = 2; + private com.google.type.Date endDate_; + /** + * + * + *
+   * Optional.
+   * End date of the employment.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + public boolean hasEndDate() { + return endDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * End date of the employment.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.Date getEndDate() { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } + /** + * + * + *
+   * Optional.
+   * End date of the employment.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.DateOrBuilder getEndDateOrBuilder() { + return getEndDate(); + } + + public static final int EMPLOYER_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object employerName_; + /** + * + * + *
+   * Optional.
+   * The name of the employer company/organization.
+   * For example, "Google", "Alphabet", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string employer_name = 3; + */ + public java.lang.String getEmployerName() { + java.lang.Object ref = employerName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + employerName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The name of the employer company/organization.
+   * For example, "Google", "Alphabet", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string employer_name = 3; + */ + public com.google.protobuf.ByteString getEmployerNameBytes() { + java.lang.Object ref = employerName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + employerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIVISION_NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object divisionName_; + /** + * + * + *
+   * Optional.
+   * The division name of the employment.
+   * For example, division, department, client, etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string division_name = 4; + */ + public java.lang.String getDivisionName() { + java.lang.Object ref = divisionName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + divisionName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The division name of the employment.
+   * For example, division, department, client, etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string division_name = 4; + */ + public com.google.protobuf.ByteString getDivisionNameBytes() { + java.lang.Object ref = divisionName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + divisionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDRESS_FIELD_NUMBER = 5; + private com.google.cloud.talent.v4beta1.Address address_; + /** + * + * + *
+   * Optional.
+   * The physical address of the employer.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public boolean hasAddress() { + return address_ != null; + } + /** + * + * + *
+   * Optional.
+   * The physical address of the employer.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public com.google.cloud.talent.v4beta1.Address getAddress() { + return address_ == null + ? com.google.cloud.talent.v4beta1.Address.getDefaultInstance() + : address_; + } + /** + * + * + *
+   * Optional.
+   * The physical address of the employer.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressOrBuilder() { + return getAddress(); + } + + public static final int JOB_TITLE_FIELD_NUMBER = 6; + private volatile java.lang.Object jobTitle_; + /** + * + * + *
+   * Optional.
+   * The job title of the employment.
+   * For example, "Software Engineer", "Data Scientist", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string job_title = 6; + */ + public java.lang.String getJobTitle() { + java.lang.Object ref = jobTitle_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobTitle_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The job title of the employment.
+   * For example, "Software Engineer", "Data Scientist", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string job_title = 6; + */ + public com.google.protobuf.ByteString getJobTitleBytes() { + java.lang.Object ref = jobTitle_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitle_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOB_DESCRIPTION_FIELD_NUMBER = 7; + private volatile java.lang.Object jobDescription_; + /** + * + * + *
+   * Optional.
+   * The description of job content.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string job_description = 7; + */ + public java.lang.String getJobDescription() { + java.lang.Object ref = jobDescription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobDescription_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The description of job content.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string job_description = 7; + */ + public com.google.protobuf.ByteString getJobDescriptionBytes() { + java.lang.Object ref = jobDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_SUPERVISED_POSITION_FIELD_NUMBER = 8; + private com.google.protobuf.BoolValue isSupervisedPosition_; + /** + * + * + *
+   * Optional.
+   * If it's a supervised position.
+   * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + public boolean hasIsSupervisedPosition() { + return isSupervisedPosition_ != null; + } + /** + * + * + *
+   * Optional.
+   * If it's a supervised position.
+   * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + public com.google.protobuf.BoolValue getIsSupervisedPosition() { + return isSupervisedPosition_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : isSupervisedPosition_; + } + /** + * + * + *
+   * Optional.
+   * If it's a supervised position.
+   * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + public com.google.protobuf.BoolValueOrBuilder getIsSupervisedPositionOrBuilder() { + return getIsSupervisedPosition(); + } + + public static final int IS_SELF_EMPLOYED_FIELD_NUMBER = 9; + private com.google.protobuf.BoolValue isSelfEmployed_; + /** + * + * + *
+   * Optional.
+   * If this employment is self-employed.
+   * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + public boolean hasIsSelfEmployed() { + return isSelfEmployed_ != null; + } + /** + * + * + *
+   * Optional.
+   * If this employment is self-employed.
+   * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + public com.google.protobuf.BoolValue getIsSelfEmployed() { + return isSelfEmployed_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : isSelfEmployed_; + } + /** + * + * + *
+   * Optional.
+   * If this employment is self-employed.
+   * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + public com.google.protobuf.BoolValueOrBuilder getIsSelfEmployedOrBuilder() { + return getIsSelfEmployed(); + } + + public static final int IS_CURRENT_FIELD_NUMBER = 10; + private com.google.protobuf.BoolValue isCurrent_; + /** + * + * + *
+   * Optional.
+   * If this employment is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + public boolean hasIsCurrent() { + return isCurrent_ != null; + } + /** + * + * + *
+   * Optional.
+   * If this employment is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + public com.google.protobuf.BoolValue getIsCurrent() { + return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; + } + /** + * + * + *
+   * Optional.
+   * If this employment is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + public com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder() { + return getIsCurrent(); + } + + public static final int JOB_TITLE_SNIPPET_FIELD_NUMBER = 11; + private volatile java.lang.Object jobTitleSnippet_; + /** + * + * + *
+   * Output only. The job title snippet shows how the
+   * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is
+   * related to a search query. It's empty if the
+   * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't
+   * related to the search query.
+   * 
+ * + * string job_title_snippet = 11; + */ + public java.lang.String getJobTitleSnippet() { + java.lang.Object ref = jobTitleSnippet_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobTitleSnippet_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The job title snippet shows how the
+   * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is
+   * related to a search query. It's empty if the
+   * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't
+   * related to the search query.
+   * 
+ * + * string job_title_snippet = 11; + */ + public com.google.protobuf.ByteString getJobTitleSnippetBytes() { + java.lang.Object ref = jobTitleSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitleSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOB_DESCRIPTION_SNIPPET_FIELD_NUMBER = 12; + private volatile java.lang.Object jobDescriptionSnippet_; + /** + * + * + *
+   * Output only. The job description snippet shows how the
+   * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+   * is related to a search query. It's empty if the
+   * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+   * isn't related to the search query.
+   * 
+ * + * string job_description_snippet = 12; + */ + public java.lang.String getJobDescriptionSnippet() { + java.lang.Object ref = jobDescriptionSnippet_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobDescriptionSnippet_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The job description snippet shows how the
+   * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+   * is related to a search query. It's empty if the
+   * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+   * isn't related to the search query.
+   * 
+ * + * string job_description_snippet = 12; + */ + public com.google.protobuf.ByteString getJobDescriptionSnippetBytes() { + java.lang.Object ref = jobDescriptionSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobDescriptionSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EMPLOYER_NAME_SNIPPET_FIELD_NUMBER = 13; + private volatile java.lang.Object employerNameSnippet_; + /** + * + * + *
+   * Output only. The employer name snippet shows how the
+   * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+   * is related to a search query. It's empty if the
+   * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+   * isn't related to the search query.
+   * 
+ * + * string employer_name_snippet = 13; + */ + public java.lang.String getEmployerNameSnippet() { + java.lang.Object ref = employerNameSnippet_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + employerNameSnippet_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The employer name snippet shows how the
+   * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+   * is related to a search query. It's empty if the
+   * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+   * isn't related to the search query.
+   * 
+ * + * string employer_name_snippet = 13; + */ + public com.google.protobuf.ByteString getEmployerNameSnippetBytes() { + java.lang.Object ref = employerNameSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + employerNameSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (startDate_ != null) { + output.writeMessage(1, getStartDate()); + } + if (endDate_ != null) { + output.writeMessage(2, getEndDate()); + } + if (!getEmployerNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, employerName_); + } + if (!getDivisionNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, divisionName_); + } + if (address_ != null) { + output.writeMessage(5, getAddress()); + } + if (!getJobTitleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, jobTitle_); + } + if (!getJobDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, jobDescription_); + } + if (isSupervisedPosition_ != null) { + output.writeMessage(8, getIsSupervisedPosition()); + } + if (isSelfEmployed_ != null) { + output.writeMessage(9, getIsSelfEmployed()); + } + if (isCurrent_ != null) { + output.writeMessage(10, getIsCurrent()); + } + if (!getJobTitleSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, jobTitleSnippet_); + } + if (!getJobDescriptionSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, jobDescriptionSnippet_); + } + if (!getEmployerNameSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, employerNameSnippet_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartDate()); + } + if (endDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndDate()); + } + if (!getEmployerNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, employerName_); + } + if (!getDivisionNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, divisionName_); + } + if (address_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAddress()); + } + if (!getJobTitleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, jobTitle_); + } + if (!getJobDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, jobDescription_); + } + if (isSupervisedPosition_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, getIsSupervisedPosition()); + } + if (isSelfEmployed_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getIsSelfEmployed()); + } + if (isCurrent_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getIsCurrent()); + } + if (!getJobTitleSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, jobTitleSnippet_); + } + if (!getJobDescriptionSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, jobDescriptionSnippet_); + } + if (!getEmployerNameSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, employerNameSnippet_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.EmploymentRecord)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.EmploymentRecord other = + (com.google.cloud.talent.v4beta1.EmploymentRecord) obj; + + boolean result = true; + result = result && (hasStartDate() == other.hasStartDate()); + if (hasStartDate()) { + result = result && getStartDate().equals(other.getStartDate()); + } + result = result && (hasEndDate() == other.hasEndDate()); + if (hasEndDate()) { + result = result && getEndDate().equals(other.getEndDate()); + } + result = result && getEmployerName().equals(other.getEmployerName()); + result = result && getDivisionName().equals(other.getDivisionName()); + result = result && (hasAddress() == other.hasAddress()); + if (hasAddress()) { + result = result && getAddress().equals(other.getAddress()); + } + result = result && getJobTitle().equals(other.getJobTitle()); + result = result && getJobDescription().equals(other.getJobDescription()); + result = result && (hasIsSupervisedPosition() == other.hasIsSupervisedPosition()); + if (hasIsSupervisedPosition()) { + result = result && getIsSupervisedPosition().equals(other.getIsSupervisedPosition()); + } + result = result && (hasIsSelfEmployed() == other.hasIsSelfEmployed()); + if (hasIsSelfEmployed()) { + result = result && getIsSelfEmployed().equals(other.getIsSelfEmployed()); + } + result = result && (hasIsCurrent() == other.hasIsCurrent()); + if (hasIsCurrent()) { + result = result && getIsCurrent().equals(other.getIsCurrent()); + } + result = result && getJobTitleSnippet().equals(other.getJobTitleSnippet()); + result = result && getJobDescriptionSnippet().equals(other.getJobDescriptionSnippet()); + result = result && getEmployerNameSnippet().equals(other.getEmployerNameSnippet()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartDate()) { + hash = (37 * hash) + START_DATE_FIELD_NUMBER; + hash = (53 * hash) + getStartDate().hashCode(); + } + if (hasEndDate()) { + hash = (37 * hash) + END_DATE_FIELD_NUMBER; + hash = (53 * hash) + getEndDate().hashCode(); + } + hash = (37 * hash) + EMPLOYER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getEmployerName().hashCode(); + hash = (37 * hash) + DIVISION_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDivisionName().hashCode(); + if (hasAddress()) { + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + } + hash = (37 * hash) + JOB_TITLE_FIELD_NUMBER; + hash = (53 * hash) + getJobTitle().hashCode(); + hash = (37 * hash) + JOB_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getJobDescription().hashCode(); + if (hasIsSupervisedPosition()) { + hash = (37 * hash) + IS_SUPERVISED_POSITION_FIELD_NUMBER; + hash = (53 * hash) + getIsSupervisedPosition().hashCode(); + } + if (hasIsSelfEmployed()) { + hash = (37 * hash) + IS_SELF_EMPLOYED_FIELD_NUMBER; + hash = (53 * hash) + getIsSelfEmployed().hashCode(); + } + if (hasIsCurrent()) { + hash = (37 * hash) + IS_CURRENT_FIELD_NUMBER; + hash = (53 * hash) + getIsCurrent().hashCode(); + } + hash = (37 * hash) + JOB_TITLE_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getJobTitleSnippet().hashCode(); + hash = (37 * hash) + JOB_DESCRIPTION_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getJobDescriptionSnippet().hashCode(); + hash = (37 * hash) + EMPLOYER_NAME_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getEmployerNameSnippet().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.EmploymentRecord prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Resource that represents an employment record of a candidate.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.EmploymentRecord} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.EmploymentRecord) + com.google.cloud.talent.v4beta1.EmploymentRecordOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_EmploymentRecord_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_EmploymentRecord_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.EmploymentRecord.class, + com.google.cloud.talent.v4beta1.EmploymentRecord.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.EmploymentRecord.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (startDateBuilder_ == null) { + startDate_ = null; + } else { + startDate_ = null; + startDateBuilder_ = null; + } + if (endDateBuilder_ == null) { + endDate_ = null; + } else { + endDate_ = null; + endDateBuilder_ = null; + } + employerName_ = ""; + + divisionName_ = ""; + + if (addressBuilder_ == null) { + address_ = null; + } else { + address_ = null; + addressBuilder_ = null; + } + jobTitle_ = ""; + + jobDescription_ = ""; + + if (isSupervisedPositionBuilder_ == null) { + isSupervisedPosition_ = null; + } else { + isSupervisedPosition_ = null; + isSupervisedPositionBuilder_ = null; + } + if (isSelfEmployedBuilder_ == null) { + isSelfEmployed_ = null; + } else { + isSelfEmployed_ = null; + isSelfEmployedBuilder_ = null; + } + if (isCurrentBuilder_ == null) { + isCurrent_ = null; + } else { + isCurrent_ = null; + isCurrentBuilder_ = null; + } + jobTitleSnippet_ = ""; + + jobDescriptionSnippet_ = ""; + + employerNameSnippet_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_EmploymentRecord_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EmploymentRecord getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.EmploymentRecord.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EmploymentRecord build() { + com.google.cloud.talent.v4beta1.EmploymentRecord result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EmploymentRecord buildPartial() { + com.google.cloud.talent.v4beta1.EmploymentRecord result = + new com.google.cloud.talent.v4beta1.EmploymentRecord(this); + if (startDateBuilder_ == null) { + result.startDate_ = startDate_; + } else { + result.startDate_ = startDateBuilder_.build(); + } + if (endDateBuilder_ == null) { + result.endDate_ = endDate_; + } else { + result.endDate_ = endDateBuilder_.build(); + } + result.employerName_ = employerName_; + result.divisionName_ = divisionName_; + if (addressBuilder_ == null) { + result.address_ = address_; + } else { + result.address_ = addressBuilder_.build(); + } + result.jobTitle_ = jobTitle_; + result.jobDescription_ = jobDescription_; + if (isSupervisedPositionBuilder_ == null) { + result.isSupervisedPosition_ = isSupervisedPosition_; + } else { + result.isSupervisedPosition_ = isSupervisedPositionBuilder_.build(); + } + if (isSelfEmployedBuilder_ == null) { + result.isSelfEmployed_ = isSelfEmployed_; + } else { + result.isSelfEmployed_ = isSelfEmployedBuilder_.build(); + } + if (isCurrentBuilder_ == null) { + result.isCurrent_ = isCurrent_; + } else { + result.isCurrent_ = isCurrentBuilder_.build(); + } + result.jobTitleSnippet_ = jobTitleSnippet_; + result.jobDescriptionSnippet_ = jobDescriptionSnippet_; + result.employerNameSnippet_ = employerNameSnippet_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.EmploymentRecord) { + return mergeFrom((com.google.cloud.talent.v4beta1.EmploymentRecord) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.EmploymentRecord other) { + if (other == com.google.cloud.talent.v4beta1.EmploymentRecord.getDefaultInstance()) + return this; + if (other.hasStartDate()) { + mergeStartDate(other.getStartDate()); + } + if (other.hasEndDate()) { + mergeEndDate(other.getEndDate()); + } + if (!other.getEmployerName().isEmpty()) { + employerName_ = other.employerName_; + onChanged(); + } + if (!other.getDivisionName().isEmpty()) { + divisionName_ = other.divisionName_; + onChanged(); + } + if (other.hasAddress()) { + mergeAddress(other.getAddress()); + } + if (!other.getJobTitle().isEmpty()) { + jobTitle_ = other.jobTitle_; + onChanged(); + } + if (!other.getJobDescription().isEmpty()) { + jobDescription_ = other.jobDescription_; + onChanged(); + } + if (other.hasIsSupervisedPosition()) { + mergeIsSupervisedPosition(other.getIsSupervisedPosition()); + } + if (other.hasIsSelfEmployed()) { + mergeIsSelfEmployed(other.getIsSelfEmployed()); + } + if (other.hasIsCurrent()) { + mergeIsCurrent(other.getIsCurrent()); + } + if (!other.getJobTitleSnippet().isEmpty()) { + jobTitleSnippet_ = other.jobTitleSnippet_; + onChanged(); + } + if (!other.getJobDescriptionSnippet().isEmpty()) { + jobDescriptionSnippet_ = other.jobDescriptionSnippet_; + onChanged(); + } + if (!other.getEmployerNameSnippet().isEmpty()) { + employerNameSnippet_ = other.employerNameSnippet_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.EmploymentRecord parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.EmploymentRecord) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.type.Date startDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + startDateBuilder_; + /** + * + * + *
+     * Optional.
+     * Start date of the employment.
+     * It can be a partial date (only year, or only year and month), but must be
+     * valid. Otherwise an error is thrown.
+     * Examples:
+     * {"year": 2017, "month": 2, "day": 28} is valid.
+     * {"year": 2020, "month": 1, "date": 31} is valid.
+     * {"year": 2018, "month": 12} is valid (partial date).
+     * {"year": 2018} is valid (partial date).
+     * {"year": 2015, "day": 21} is not valid (month is missing but day is
+     * presented).
+     * {"year": 2018, "month": 13} is not valid (invalid month).
+     * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public boolean hasStartDate() { + return startDateBuilder_ != null || startDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * Start date of the employment.
+     * It can be a partial date (only year, or only year and month), but must be
+     * valid. Otherwise an error is thrown.
+     * Examples:
+     * {"year": 2017, "month": 2, "day": 28} is valid.
+     * {"year": 2020, "month": 1, "date": 31} is valid.
+     * {"year": 2018, "month": 12} is valid (partial date).
+     * {"year": 2018} is valid (partial date).
+     * {"year": 2015, "day": 21} is not valid (month is missing but day is
+     * presented).
+     * {"year": 2018, "month": 13} is not valid (invalid month).
+     * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.Date getStartDate() { + if (startDateBuilder_ == null) { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } else { + return startDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Start date of the employment.
+     * It can be a partial date (only year, or only year and month), but must be
+     * valid. Otherwise an error is thrown.
+     * Examples:
+     * {"year": 2017, "month": 2, "day": 28} is valid.
+     * {"year": 2020, "month": 1, "date": 31} is valid.
+     * {"year": 2018, "month": 12} is valid (partial date).
+     * {"year": 2018} is valid (partial date).
+     * {"year": 2015, "day": 21} is not valid (month is missing but day is
+     * presented).
+     * {"year": 2018, "month": 13} is not valid (invalid month).
+     * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder setStartDate(com.google.type.Date value) { + if (startDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startDate_ = value; + onChanged(); + } else { + startDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start date of the employment.
+     * It can be a partial date (only year, or only year and month), but must be
+     * valid. Otherwise an error is thrown.
+     * Examples:
+     * {"year": 2017, "month": 2, "day": 28} is valid.
+     * {"year": 2020, "month": 1, "date": 31} is valid.
+     * {"year": 2018, "month": 12} is valid (partial date).
+     * {"year": 2018} is valid (partial date).
+     * {"year": 2015, "day": 21} is not valid (month is missing but day is
+     * presented).
+     * {"year": 2018, "month": 13} is not valid (invalid month).
+     * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder setStartDate(com.google.type.Date.Builder builderForValue) { + if (startDateBuilder_ == null) { + startDate_ = builderForValue.build(); + onChanged(); + } else { + startDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start date of the employment.
+     * It can be a partial date (only year, or only year and month), but must be
+     * valid. Otherwise an error is thrown.
+     * Examples:
+     * {"year": 2017, "month": 2, "day": 28} is valid.
+     * {"year": 2020, "month": 1, "date": 31} is valid.
+     * {"year": 2018, "month": 12} is valid (partial date).
+     * {"year": 2018} is valid (partial date).
+     * {"year": 2015, "day": 21} is not valid (month is missing but day is
+     * presented).
+     * {"year": 2018, "month": 13} is not valid (invalid month).
+     * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder mergeStartDate(com.google.type.Date value) { + if (startDateBuilder_ == null) { + if (startDate_ != null) { + startDate_ = com.google.type.Date.newBuilder(startDate_).mergeFrom(value).buildPartial(); + } else { + startDate_ = value; + } + onChanged(); + } else { + startDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start date of the employment.
+     * It can be a partial date (only year, or only year and month), but must be
+     * valid. Otherwise an error is thrown.
+     * Examples:
+     * {"year": 2017, "month": 2, "day": 28} is valid.
+     * {"year": 2020, "month": 1, "date": 31} is valid.
+     * {"year": 2018, "month": 12} is valid (partial date).
+     * {"year": 2018} is valid (partial date).
+     * {"year": 2015, "day": 21} is not valid (month is missing but day is
+     * presented).
+     * {"year": 2018, "month": 13} is not valid (invalid month).
+     * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder clearStartDate() { + if (startDateBuilder_ == null) { + startDate_ = null; + onChanged(); + } else { + startDate_ = null; + startDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start date of the employment.
+     * It can be a partial date (only year, or only year and month), but must be
+     * valid. Otherwise an error is thrown.
+     * Examples:
+     * {"year": 2017, "month": 2, "day": 28} is valid.
+     * {"year": 2020, "month": 1, "date": 31} is valid.
+     * {"year": 2018, "month": 12} is valid (partial date).
+     * {"year": 2018} is valid (partial date).
+     * {"year": 2015, "day": 21} is not valid (month is missing but day is
+     * presented).
+     * {"year": 2018, "month": 13} is not valid (invalid month).
+     * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.Date.Builder getStartDateBuilder() { + + onChanged(); + return getStartDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Start date of the employment.
+     * It can be a partial date (only year, or only year and month), but must be
+     * valid. Otherwise an error is thrown.
+     * Examples:
+     * {"year": 2017, "month": 2, "day": 28} is valid.
+     * {"year": 2020, "month": 1, "date": 31} is valid.
+     * {"year": 2018, "month": 12} is valid (partial date).
+     * {"year": 2018} is valid (partial date).
+     * {"year": 2015, "day": 21} is not valid (month is missing but day is
+     * presented).
+     * {"year": 2018, "month": 13} is not valid (invalid month).
+     * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.DateOrBuilder getStartDateOrBuilder() { + if (startDateBuilder_ != null) { + return startDateBuilder_.getMessageOrBuilder(); + } else { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } + } + /** + * + * + *
+     * Optional.
+     * Start date of the employment.
+     * It can be a partial date (only year, or only year and month), but must be
+     * valid. Otherwise an error is thrown.
+     * Examples:
+     * {"year": 2017, "month": 2, "day": 28} is valid.
+     * {"year": 2020, "month": 1, "date": 31} is valid.
+     * {"year": 2018, "month": 12} is valid (partial date).
+     * {"year": 2018} is valid (partial date).
+     * {"year": 2015, "day": 21} is not valid (month is missing but day is
+     * presented).
+     * {"year": 2018, "month": 13} is not valid (invalid month).
+     * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+     * 
+ * + * .google.type.Date start_date = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getStartDateFieldBuilder() { + if (startDateBuilder_ == null) { + startDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getStartDate(), getParentForChildren(), isClean()); + startDate_ = null; + } + return startDateBuilder_; + } + + private com.google.type.Date endDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + endDateBuilder_; + /** + * + * + *
+     * Optional.
+     * End date of the employment.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public boolean hasEndDate() { + return endDateBuilder_ != null || endDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * End date of the employment.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.Date getEndDate() { + if (endDateBuilder_ == null) { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } else { + return endDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * End date of the employment.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder setEndDate(com.google.type.Date value) { + if (endDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endDate_ = value; + onChanged(); + } else { + endDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End date of the employment.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder setEndDate(com.google.type.Date.Builder builderForValue) { + if (endDateBuilder_ == null) { + endDate_ = builderForValue.build(); + onChanged(); + } else { + endDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End date of the employment.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder mergeEndDate(com.google.type.Date value) { + if (endDateBuilder_ == null) { + if (endDate_ != null) { + endDate_ = com.google.type.Date.newBuilder(endDate_).mergeFrom(value).buildPartial(); + } else { + endDate_ = value; + } + onChanged(); + } else { + endDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End date of the employment.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder clearEndDate() { + if (endDateBuilder_ == null) { + endDate_ = null; + onChanged(); + } else { + endDate_ = null; + endDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End date of the employment.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.Date.Builder getEndDateBuilder() { + + onChanged(); + return getEndDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * End date of the employment.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.DateOrBuilder getEndDateOrBuilder() { + if (endDateBuilder_ != null) { + return endDateBuilder_.getMessageOrBuilder(); + } else { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } + } + /** + * + * + *
+     * Optional.
+     * End date of the employment.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getEndDateFieldBuilder() { + if (endDateBuilder_ == null) { + endDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getEndDate(), getParentForChildren(), isClean()); + endDate_ = null; + } + return endDateBuilder_; + } + + private java.lang.Object employerName_ = ""; + /** + * + * + *
+     * Optional.
+     * The name of the employer company/organization.
+     * For example, "Google", "Alphabet", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string employer_name = 3; + */ + public java.lang.String getEmployerName() { + java.lang.Object ref = employerName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + employerName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The name of the employer company/organization.
+     * For example, "Google", "Alphabet", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string employer_name = 3; + */ + public com.google.protobuf.ByteString getEmployerNameBytes() { + java.lang.Object ref = employerName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + employerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The name of the employer company/organization.
+     * For example, "Google", "Alphabet", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string employer_name = 3; + */ + public Builder setEmployerName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + employerName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The name of the employer company/organization.
+     * For example, "Google", "Alphabet", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string employer_name = 3; + */ + public Builder clearEmployerName() { + + employerName_ = getDefaultInstance().getEmployerName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The name of the employer company/organization.
+     * For example, "Google", "Alphabet", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string employer_name = 3; + */ + public Builder setEmployerNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + employerName_ = value; + onChanged(); + return this; + } + + private java.lang.Object divisionName_ = ""; + /** + * + * + *
+     * Optional.
+     * The division name of the employment.
+     * For example, division, department, client, etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string division_name = 4; + */ + public java.lang.String getDivisionName() { + java.lang.Object ref = divisionName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + divisionName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The division name of the employment.
+     * For example, division, department, client, etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string division_name = 4; + */ + public com.google.protobuf.ByteString getDivisionNameBytes() { + java.lang.Object ref = divisionName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + divisionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The division name of the employment.
+     * For example, division, department, client, etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string division_name = 4; + */ + public Builder setDivisionName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + divisionName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The division name of the employment.
+     * For example, division, department, client, etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string division_name = 4; + */ + public Builder clearDivisionName() { + + divisionName_ = getDefaultInstance().getDivisionName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The division name of the employment.
+     * For example, division, department, client, etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string division_name = 4; + */ + public Builder setDivisionNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + divisionName_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.Address address_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Address, + com.google.cloud.talent.v4beta1.Address.Builder, + com.google.cloud.talent.v4beta1.AddressOrBuilder> + addressBuilder_; + /** + * + * + *
+     * Optional.
+     * The physical address of the employer.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public boolean hasAddress() { + return addressBuilder_ != null || address_ != null; + } + /** + * + * + *
+     * Optional.
+     * The physical address of the employer.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public com.google.cloud.talent.v4beta1.Address getAddress() { + if (addressBuilder_ == null) { + return address_ == null + ? com.google.cloud.talent.v4beta1.Address.getDefaultInstance() + : address_; + } else { + return addressBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The physical address of the employer.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public Builder setAddress(com.google.cloud.talent.v4beta1.Address value) { + if (addressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + address_ = value; + onChanged(); + } else { + addressBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The physical address of the employer.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public Builder setAddress(com.google.cloud.talent.v4beta1.Address.Builder builderForValue) { + if (addressBuilder_ == null) { + address_ = builderForValue.build(); + onChanged(); + } else { + addressBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The physical address of the employer.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public Builder mergeAddress(com.google.cloud.talent.v4beta1.Address value) { + if (addressBuilder_ == null) { + if (address_ != null) { + address_ = + com.google.cloud.talent.v4beta1.Address.newBuilder(address_) + .mergeFrom(value) + .buildPartial(); + } else { + address_ = value; + } + onChanged(); + } else { + addressBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The physical address of the employer.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public Builder clearAddress() { + if (addressBuilder_ == null) { + address_ = null; + onChanged(); + } else { + address_ = null; + addressBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The physical address of the employer.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public com.google.cloud.talent.v4beta1.Address.Builder getAddressBuilder() { + + onChanged(); + return getAddressFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The physical address of the employer.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressOrBuilder() { + if (addressBuilder_ != null) { + return addressBuilder_.getMessageOrBuilder(); + } else { + return address_ == null + ? com.google.cloud.talent.v4beta1.Address.getDefaultInstance() + : address_; + } + } + /** + * + * + *
+     * Optional.
+     * The physical address of the employer.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Address, + com.google.cloud.talent.v4beta1.Address.Builder, + com.google.cloud.talent.v4beta1.AddressOrBuilder> + getAddressFieldBuilder() { + if (addressBuilder_ == null) { + addressBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Address, + com.google.cloud.talent.v4beta1.Address.Builder, + com.google.cloud.talent.v4beta1.AddressOrBuilder>( + getAddress(), getParentForChildren(), isClean()); + address_ = null; + } + return addressBuilder_; + } + + private java.lang.Object jobTitle_ = ""; + /** + * + * + *
+     * Optional.
+     * The job title of the employment.
+     * For example, "Software Engineer", "Data Scientist", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string job_title = 6; + */ + public java.lang.String getJobTitle() { + java.lang.Object ref = jobTitle_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobTitle_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job title of the employment.
+     * For example, "Software Engineer", "Data Scientist", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string job_title = 6; + */ + public com.google.protobuf.ByteString getJobTitleBytes() { + java.lang.Object ref = jobTitle_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitle_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job title of the employment.
+     * For example, "Software Engineer", "Data Scientist", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string job_title = 6; + */ + public Builder setJobTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobTitle_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job title of the employment.
+     * For example, "Software Engineer", "Data Scientist", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string job_title = 6; + */ + public Builder clearJobTitle() { + + jobTitle_ = getDefaultInstance().getJobTitle(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job title of the employment.
+     * For example, "Software Engineer", "Data Scientist", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string job_title = 6; + */ + public Builder setJobTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobTitle_ = value; + onChanged(); + return this; + } + + private java.lang.Object jobDescription_ = ""; + /** + * + * + *
+     * Optional.
+     * The description of job content.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string job_description = 7; + */ + public java.lang.String getJobDescription() { + java.lang.Object ref = jobDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The description of job content.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string job_description = 7; + */ + public com.google.protobuf.ByteString getJobDescriptionBytes() { + java.lang.Object ref = jobDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The description of job content.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string job_description = 7; + */ + public Builder setJobDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobDescription_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The description of job content.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string job_description = 7; + */ + public Builder clearJobDescription() { + + jobDescription_ = getDefaultInstance().getJobDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The description of job content.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string job_description = 7; + */ + public Builder setJobDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobDescription_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.BoolValue isSupervisedPosition_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + isSupervisedPositionBuilder_; + /** + * + * + *
+     * Optional.
+     * If it's a supervised position.
+     * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + public boolean hasIsSupervisedPosition() { + return isSupervisedPositionBuilder_ != null || isSupervisedPosition_ != null; + } + /** + * + * + *
+     * Optional.
+     * If it's a supervised position.
+     * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + public com.google.protobuf.BoolValue getIsSupervisedPosition() { + if (isSupervisedPositionBuilder_ == null) { + return isSupervisedPosition_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : isSupervisedPosition_; + } else { + return isSupervisedPositionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * If it's a supervised position.
+     * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + public Builder setIsSupervisedPosition(com.google.protobuf.BoolValue value) { + if (isSupervisedPositionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + isSupervisedPosition_ = value; + onChanged(); + } else { + isSupervisedPositionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If it's a supervised position.
+     * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + public Builder setIsSupervisedPosition(com.google.protobuf.BoolValue.Builder builderForValue) { + if (isSupervisedPositionBuilder_ == null) { + isSupervisedPosition_ = builderForValue.build(); + onChanged(); + } else { + isSupervisedPositionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If it's a supervised position.
+     * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + public Builder mergeIsSupervisedPosition(com.google.protobuf.BoolValue value) { + if (isSupervisedPositionBuilder_ == null) { + if (isSupervisedPosition_ != null) { + isSupervisedPosition_ = + com.google.protobuf.BoolValue.newBuilder(isSupervisedPosition_) + .mergeFrom(value) + .buildPartial(); + } else { + isSupervisedPosition_ = value; + } + onChanged(); + } else { + isSupervisedPositionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If it's a supervised position.
+     * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + public Builder clearIsSupervisedPosition() { + if (isSupervisedPositionBuilder_ == null) { + isSupervisedPosition_ = null; + onChanged(); + } else { + isSupervisedPosition_ = null; + isSupervisedPositionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If it's a supervised position.
+     * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + public com.google.protobuf.BoolValue.Builder getIsSupervisedPositionBuilder() { + + onChanged(); + return getIsSupervisedPositionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * If it's a supervised position.
+     * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + public com.google.protobuf.BoolValueOrBuilder getIsSupervisedPositionOrBuilder() { + if (isSupervisedPositionBuilder_ != null) { + return isSupervisedPositionBuilder_.getMessageOrBuilder(); + } else { + return isSupervisedPosition_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : isSupervisedPosition_; + } + } + /** + * + * + *
+     * Optional.
+     * If it's a supervised position.
+     * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getIsSupervisedPositionFieldBuilder() { + if (isSupervisedPositionBuilder_ == null) { + isSupervisedPositionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getIsSupervisedPosition(), getParentForChildren(), isClean()); + isSupervisedPosition_ = null; + } + return isSupervisedPositionBuilder_; + } + + private com.google.protobuf.BoolValue isSelfEmployed_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + isSelfEmployedBuilder_; + /** + * + * + *
+     * Optional.
+     * If this employment is self-employed.
+     * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + public boolean hasIsSelfEmployed() { + return isSelfEmployedBuilder_ != null || isSelfEmployed_ != null; + } + /** + * + * + *
+     * Optional.
+     * If this employment is self-employed.
+     * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + public com.google.protobuf.BoolValue getIsSelfEmployed() { + if (isSelfEmployedBuilder_ == null) { + return isSelfEmployed_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : isSelfEmployed_; + } else { + return isSelfEmployedBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * If this employment is self-employed.
+     * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + public Builder setIsSelfEmployed(com.google.protobuf.BoolValue value) { + if (isSelfEmployedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + isSelfEmployed_ = value; + onChanged(); + } else { + isSelfEmployedBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this employment is self-employed.
+     * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + public Builder setIsSelfEmployed(com.google.protobuf.BoolValue.Builder builderForValue) { + if (isSelfEmployedBuilder_ == null) { + isSelfEmployed_ = builderForValue.build(); + onChanged(); + } else { + isSelfEmployedBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this employment is self-employed.
+     * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + public Builder mergeIsSelfEmployed(com.google.protobuf.BoolValue value) { + if (isSelfEmployedBuilder_ == null) { + if (isSelfEmployed_ != null) { + isSelfEmployed_ = + com.google.protobuf.BoolValue.newBuilder(isSelfEmployed_) + .mergeFrom(value) + .buildPartial(); + } else { + isSelfEmployed_ = value; + } + onChanged(); + } else { + isSelfEmployedBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this employment is self-employed.
+     * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + public Builder clearIsSelfEmployed() { + if (isSelfEmployedBuilder_ == null) { + isSelfEmployed_ = null; + onChanged(); + } else { + isSelfEmployed_ = null; + isSelfEmployedBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this employment is self-employed.
+     * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + public com.google.protobuf.BoolValue.Builder getIsSelfEmployedBuilder() { + + onChanged(); + return getIsSelfEmployedFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * If this employment is self-employed.
+     * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + public com.google.protobuf.BoolValueOrBuilder getIsSelfEmployedOrBuilder() { + if (isSelfEmployedBuilder_ != null) { + return isSelfEmployedBuilder_.getMessageOrBuilder(); + } else { + return isSelfEmployed_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : isSelfEmployed_; + } + } + /** + * + * + *
+     * Optional.
+     * If this employment is self-employed.
+     * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getIsSelfEmployedFieldBuilder() { + if (isSelfEmployedBuilder_ == null) { + isSelfEmployedBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getIsSelfEmployed(), getParentForChildren(), isClean()); + isSelfEmployed_ = null; + } + return isSelfEmployedBuilder_; + } + + private com.google.protobuf.BoolValue isCurrent_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + isCurrentBuilder_; + /** + * + * + *
+     * Optional.
+     * If this employment is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + public boolean hasIsCurrent() { + return isCurrentBuilder_ != null || isCurrent_ != null; + } + /** + * + * + *
+     * Optional.
+     * If this employment is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + public com.google.protobuf.BoolValue getIsCurrent() { + if (isCurrentBuilder_ == null) { + return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; + } else { + return isCurrentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * If this employment is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + public Builder setIsCurrent(com.google.protobuf.BoolValue value) { + if (isCurrentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + isCurrent_ = value; + onChanged(); + } else { + isCurrentBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this employment is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + public Builder setIsCurrent(com.google.protobuf.BoolValue.Builder builderForValue) { + if (isCurrentBuilder_ == null) { + isCurrent_ = builderForValue.build(); + onChanged(); + } else { + isCurrentBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this employment is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + public Builder mergeIsCurrent(com.google.protobuf.BoolValue value) { + if (isCurrentBuilder_ == null) { + if (isCurrent_ != null) { + isCurrent_ = + com.google.protobuf.BoolValue.newBuilder(isCurrent_).mergeFrom(value).buildPartial(); + } else { + isCurrent_ = value; + } + onChanged(); + } else { + isCurrentBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this employment is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + public Builder clearIsCurrent() { + if (isCurrentBuilder_ == null) { + isCurrent_ = null; + onChanged(); + } else { + isCurrent_ = null; + isCurrentBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this employment is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + public com.google.protobuf.BoolValue.Builder getIsCurrentBuilder() { + + onChanged(); + return getIsCurrentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * If this employment is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + public com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder() { + if (isCurrentBuilder_ != null) { + return isCurrentBuilder_.getMessageOrBuilder(); + } else { + return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; + } + } + /** + * + * + *
+     * Optional.
+     * If this employment is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getIsCurrentFieldBuilder() { + if (isCurrentBuilder_ == null) { + isCurrentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getIsCurrent(), getParentForChildren(), isClean()); + isCurrent_ = null; + } + return isCurrentBuilder_; + } + + private java.lang.Object jobTitleSnippet_ = ""; + /** + * + * + *
+     * Output only. The job title snippet shows how the
+     * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is
+     * related to a search query. It's empty if the
+     * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't
+     * related to the search query.
+     * 
+ * + * string job_title_snippet = 11; + */ + public java.lang.String getJobTitleSnippet() { + java.lang.Object ref = jobTitleSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobTitleSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The job title snippet shows how the
+     * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is
+     * related to a search query. It's empty if the
+     * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't
+     * related to the search query.
+     * 
+ * + * string job_title_snippet = 11; + */ + public com.google.protobuf.ByteString getJobTitleSnippetBytes() { + java.lang.Object ref = jobTitleSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitleSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The job title snippet shows how the
+     * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is
+     * related to a search query. It's empty if the
+     * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't
+     * related to the search query.
+     * 
+ * + * string job_title_snippet = 11; + */ + public Builder setJobTitleSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobTitleSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The job title snippet shows how the
+     * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is
+     * related to a search query. It's empty if the
+     * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't
+     * related to the search query.
+     * 
+ * + * string job_title_snippet = 11; + */ + public Builder clearJobTitleSnippet() { + + jobTitleSnippet_ = getDefaultInstance().getJobTitleSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The job title snippet shows how the
+     * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is
+     * related to a search query. It's empty if the
+     * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't
+     * related to the search query.
+     * 
+ * + * string job_title_snippet = 11; + */ + public Builder setJobTitleSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobTitleSnippet_ = value; + onChanged(); + return this; + } + + private java.lang.Object jobDescriptionSnippet_ = ""; + /** + * + * + *
+     * Output only. The job description snippet shows how the
+     * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+     * is related to a search query. It's empty if the
+     * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+     * isn't related to the search query.
+     * 
+ * + * string job_description_snippet = 12; + */ + public java.lang.String getJobDescriptionSnippet() { + java.lang.Object ref = jobDescriptionSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobDescriptionSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The job description snippet shows how the
+     * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+     * is related to a search query. It's empty if the
+     * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+     * isn't related to the search query.
+     * 
+ * + * string job_description_snippet = 12; + */ + public com.google.protobuf.ByteString getJobDescriptionSnippetBytes() { + java.lang.Object ref = jobDescriptionSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobDescriptionSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The job description snippet shows how the
+     * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+     * is related to a search query. It's empty if the
+     * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+     * isn't related to the search query.
+     * 
+ * + * string job_description_snippet = 12; + */ + public Builder setJobDescriptionSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobDescriptionSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The job description snippet shows how the
+     * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+     * is related to a search query. It's empty if the
+     * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+     * isn't related to the search query.
+     * 
+ * + * string job_description_snippet = 12; + */ + public Builder clearJobDescriptionSnippet() { + + jobDescriptionSnippet_ = getDefaultInstance().getJobDescriptionSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The job description snippet shows how the
+     * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+     * is related to a search query. It's empty if the
+     * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+     * isn't related to the search query.
+     * 
+ * + * string job_description_snippet = 12; + */ + public Builder setJobDescriptionSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobDescriptionSnippet_ = value; + onChanged(); + return this; + } + + private java.lang.Object employerNameSnippet_ = ""; + /** + * + * + *
+     * Output only. The employer name snippet shows how the
+     * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+     * is related to a search query. It's empty if the
+     * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+     * isn't related to the search query.
+     * 
+ * + * string employer_name_snippet = 13; + */ + public java.lang.String getEmployerNameSnippet() { + java.lang.Object ref = employerNameSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + employerNameSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The employer name snippet shows how the
+     * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+     * is related to a search query. It's empty if the
+     * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+     * isn't related to the search query.
+     * 
+ * + * string employer_name_snippet = 13; + */ + public com.google.protobuf.ByteString getEmployerNameSnippetBytes() { + java.lang.Object ref = employerNameSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + employerNameSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The employer name snippet shows how the
+     * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+     * is related to a search query. It's empty if the
+     * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+     * isn't related to the search query.
+     * 
+ * + * string employer_name_snippet = 13; + */ + public Builder setEmployerNameSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + employerNameSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The employer name snippet shows how the
+     * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+     * is related to a search query. It's empty if the
+     * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+     * isn't related to the search query.
+     * 
+ * + * string employer_name_snippet = 13; + */ + public Builder clearEmployerNameSnippet() { + + employerNameSnippet_ = getDefaultInstance().getEmployerNameSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The employer name snippet shows how the
+     * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+     * is related to a search query. It's empty if the
+     * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+     * isn't related to the search query.
+     * 
+ * + * string employer_name_snippet = 13; + */ + public Builder setEmployerNameSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + employerNameSnippet_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.EmploymentRecord) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.EmploymentRecord) + private static final com.google.cloud.talent.v4beta1.EmploymentRecord DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.EmploymentRecord(); + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmploymentRecord parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EmploymentRecord(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EmploymentRecord getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecordOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecordOrBuilder.java new file mode 100644 index 000000000000..547750279263 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecordOrBuilder.java @@ -0,0 +1,440 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface EmploymentRecordOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.EmploymentRecord) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * Start date of the employment.
+   * It can be a partial date (only year, or only year and month), but must be
+   * valid. Otherwise an error is thrown.
+   * Examples:
+   * {"year": 2017, "month": 2, "day": 28} is valid.
+   * {"year": 2020, "month": 1, "date": 31} is valid.
+   * {"year": 2018, "month": 12} is valid (partial date).
+   * {"year": 2018} is valid (partial date).
+   * {"year": 2015, "day": 21} is not valid (month is missing but day is
+   * presented).
+   * {"year": 2018, "month": 13} is not valid (invalid month).
+   * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+   * 
+ * + * .google.type.Date start_date = 1; + */ + boolean hasStartDate(); + /** + * + * + *
+   * Optional.
+   * Start date of the employment.
+   * It can be a partial date (only year, or only year and month), but must be
+   * valid. Otherwise an error is thrown.
+   * Examples:
+   * {"year": 2017, "month": 2, "day": 28} is valid.
+   * {"year": 2020, "month": 1, "date": 31} is valid.
+   * {"year": 2018, "month": 12} is valid (partial date).
+   * {"year": 2018} is valid (partial date).
+   * {"year": 2015, "day": 21} is not valid (month is missing but day is
+   * presented).
+   * {"year": 2018, "month": 13} is not valid (invalid month).
+   * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+   * 
+ * + * .google.type.Date start_date = 1; + */ + com.google.type.Date getStartDate(); + /** + * + * + *
+   * Optional.
+   * Start date of the employment.
+   * It can be a partial date (only year, or only year and month), but must be
+   * valid. Otherwise an error is thrown.
+   * Examples:
+   * {"year": 2017, "month": 2, "day": 28} is valid.
+   * {"year": 2020, "month": 1, "date": 31} is valid.
+   * {"year": 2018, "month": 12} is valid (partial date).
+   * {"year": 2018} is valid (partial date).
+   * {"year": 2015, "day": 21} is not valid (month is missing but day is
+   * presented).
+   * {"year": 2018, "month": 13} is not valid (invalid month).
+   * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+   * 
+ * + * .google.type.Date start_date = 1; + */ + com.google.type.DateOrBuilder getStartDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * End date of the employment.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + boolean hasEndDate(); + /** + * + * + *
+   * Optional.
+   * End date of the employment.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + com.google.type.Date getEndDate(); + /** + * + * + *
+   * Optional.
+   * End date of the employment.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + com.google.type.DateOrBuilder getEndDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The name of the employer company/organization.
+   * For example, "Google", "Alphabet", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string employer_name = 3; + */ + java.lang.String getEmployerName(); + /** + * + * + *
+   * Optional.
+   * The name of the employer company/organization.
+   * For example, "Google", "Alphabet", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string employer_name = 3; + */ + com.google.protobuf.ByteString getEmployerNameBytes(); + + /** + * + * + *
+   * Optional.
+   * The division name of the employment.
+   * For example, division, department, client, etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string division_name = 4; + */ + java.lang.String getDivisionName(); + /** + * + * + *
+   * Optional.
+   * The division name of the employment.
+   * For example, division, department, client, etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string division_name = 4; + */ + com.google.protobuf.ByteString getDivisionNameBytes(); + + /** + * + * + *
+   * Optional.
+   * The physical address of the employer.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + boolean hasAddress(); + /** + * + * + *
+   * Optional.
+   * The physical address of the employer.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + com.google.cloud.talent.v4beta1.Address getAddress(); + /** + * + * + *
+   * Optional.
+   * The physical address of the employer.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The job title of the employment.
+   * For example, "Software Engineer", "Data Scientist", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string job_title = 6; + */ + java.lang.String getJobTitle(); + /** + * + * + *
+   * Optional.
+   * The job title of the employment.
+   * For example, "Software Engineer", "Data Scientist", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string job_title = 6; + */ + com.google.protobuf.ByteString getJobTitleBytes(); + + /** + * + * + *
+   * Optional.
+   * The description of job content.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string job_description = 7; + */ + java.lang.String getJobDescription(); + /** + * + * + *
+   * Optional.
+   * The description of job content.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string job_description = 7; + */ + com.google.protobuf.ByteString getJobDescriptionBytes(); + + /** + * + * + *
+   * Optional.
+   * If it's a supervised position.
+   * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + boolean hasIsSupervisedPosition(); + /** + * + * + *
+   * Optional.
+   * If it's a supervised position.
+   * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + com.google.protobuf.BoolValue getIsSupervisedPosition(); + /** + * + * + *
+   * Optional.
+   * If it's a supervised position.
+   * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + com.google.protobuf.BoolValueOrBuilder getIsSupervisedPositionOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * If this employment is self-employed.
+   * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + boolean hasIsSelfEmployed(); + /** + * + * + *
+   * Optional.
+   * If this employment is self-employed.
+   * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + com.google.protobuf.BoolValue getIsSelfEmployed(); + /** + * + * + *
+   * Optional.
+   * If this employment is self-employed.
+   * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + com.google.protobuf.BoolValueOrBuilder getIsSelfEmployedOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * If this employment is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + boolean hasIsCurrent(); + /** + * + * + *
+   * Optional.
+   * If this employment is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + com.google.protobuf.BoolValue getIsCurrent(); + /** + * + * + *
+   * Optional.
+   * If this employment is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder(); + + /** + * + * + *
+   * Output only. The job title snippet shows how the
+   * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is
+   * related to a search query. It's empty if the
+   * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't
+   * related to the search query.
+   * 
+ * + * string job_title_snippet = 11; + */ + java.lang.String getJobTitleSnippet(); + /** + * + * + *
+   * Output only. The job title snippet shows how the
+   * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is
+   * related to a search query. It's empty if the
+   * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't
+   * related to the search query.
+   * 
+ * + * string job_title_snippet = 11; + */ + com.google.protobuf.ByteString getJobTitleSnippetBytes(); + + /** + * + * + *
+   * Output only. The job description snippet shows how the
+   * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+   * is related to a search query. It's empty if the
+   * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+   * isn't related to the search query.
+   * 
+ * + * string job_description_snippet = 12; + */ + java.lang.String getJobDescriptionSnippet(); + /** + * + * + *
+   * Output only. The job description snippet shows how the
+   * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+   * is related to a search query. It's empty if the
+   * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+   * isn't related to the search query.
+   * 
+ * + * string job_description_snippet = 12; + */ + com.google.protobuf.ByteString getJobDescriptionSnippetBytes(); + + /** + * + * + *
+   * Output only. The employer name snippet shows how the
+   * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+   * is related to a search query. It's empty if the
+   * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+   * isn't related to the search query.
+   * 
+ * + * string employer_name_snippet = 13; + */ + java.lang.String getEmployerNameSnippet(); + /** + * + * + *
+   * Output only. The employer name snippet shows how the
+   * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+   * is related to a search query. It's empty if the
+   * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+   * isn't related to the search query.
+   * 
+ * + * string employer_name_snippet = 13; + */ + com.google.protobuf.ByteString getEmployerNameSnippetBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentType.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentType.java new file mode 100644 index 000000000000..60faba65a7ca --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentType.java @@ -0,0 +1,353 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * An enum that represents the employment type of a job.
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.EmploymentType} + */ +public enum EmploymentType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * The default value if the employment type isn't specified.
+   * 
+ * + * EMPLOYMENT_TYPE_UNSPECIFIED = 0; + */ + EMPLOYMENT_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * The job requires working a number of hours that constitute full
+   * time employment, typically 40 or more hours per week.
+   * 
+ * + * FULL_TIME = 1; + */ + FULL_TIME(1), + /** + * + * + *
+   * The job entails working fewer hours than a full time job,
+   * typically less than 40 hours a week.
+   * 
+ * + * PART_TIME = 2; + */ + PART_TIME(2), + /** + * + * + *
+   * The job is offered as a contracted, as opposed to a salaried employee,
+   * position.
+   * 
+ * + * CONTRACTOR = 3; + */ + CONTRACTOR(3), + /** + * + * + *
+   * The job is offered as a contracted position with the understanding
+   * that it's converted into a full-time position at the end of the
+   * contract. Jobs of this type are also returned by a search for
+   * [EmploymentType.CONTRACTOR][google.cloud.talent.v4beta1.EmploymentType.CONTRACTOR]
+   * jobs.
+   * 
+ * + * CONTRACT_TO_HIRE = 4; + */ + CONTRACT_TO_HIRE(4), + /** + * + * + *
+   * The job is offered as a temporary employment opportunity, usually
+   * a short-term engagement.
+   * 
+ * + * TEMPORARY = 5; + */ + TEMPORARY(5), + /** + * + * + *
+   * The job is a fixed-term opportunity for students or entry-level job
+   * seekers to obtain on-the-job training, typically offered as a summer
+   * position.
+   * 
+ * + * INTERN = 6; + */ + INTERN(6), + /** + * + * + *
+   * The is an opportunity for an individual to volunteer, where there's no
+   * expectation of compensation for the provided services.
+   * 
+ * + * VOLUNTEER = 7; + */ + VOLUNTEER(7), + /** + * + * + *
+   * The job requires an employee to work on an as-needed basis with a
+   * flexible schedule.
+   * 
+ * + * PER_DIEM = 8; + */ + PER_DIEM(8), + /** + * + * + *
+   * The job involves employing people in remote areas and flying them
+   * temporarily to the work site instead of relocating employees and their
+   * families permanently.
+   * 
+ * + * FLY_IN_FLY_OUT = 9; + */ + FLY_IN_FLY_OUT(9), + /** + * + * + *
+   * The job does not fit any of the other listed types.
+   * 
+ * + * OTHER_EMPLOYMENT_TYPE = 10; + */ + OTHER_EMPLOYMENT_TYPE(10), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * The default value if the employment type isn't specified.
+   * 
+ * + * EMPLOYMENT_TYPE_UNSPECIFIED = 0; + */ + public static final int EMPLOYMENT_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * The job requires working a number of hours that constitute full
+   * time employment, typically 40 or more hours per week.
+   * 
+ * + * FULL_TIME = 1; + */ + public static final int FULL_TIME_VALUE = 1; + /** + * + * + *
+   * The job entails working fewer hours than a full time job,
+   * typically less than 40 hours a week.
+   * 
+ * + * PART_TIME = 2; + */ + public static final int PART_TIME_VALUE = 2; + /** + * + * + *
+   * The job is offered as a contracted, as opposed to a salaried employee,
+   * position.
+   * 
+ * + * CONTRACTOR = 3; + */ + public static final int CONTRACTOR_VALUE = 3; + /** + * + * + *
+   * The job is offered as a contracted position with the understanding
+   * that it's converted into a full-time position at the end of the
+   * contract. Jobs of this type are also returned by a search for
+   * [EmploymentType.CONTRACTOR][google.cloud.talent.v4beta1.EmploymentType.CONTRACTOR]
+   * jobs.
+   * 
+ * + * CONTRACT_TO_HIRE = 4; + */ + public static final int CONTRACT_TO_HIRE_VALUE = 4; + /** + * + * + *
+   * The job is offered as a temporary employment opportunity, usually
+   * a short-term engagement.
+   * 
+ * + * TEMPORARY = 5; + */ + public static final int TEMPORARY_VALUE = 5; + /** + * + * + *
+   * The job is a fixed-term opportunity for students or entry-level job
+   * seekers to obtain on-the-job training, typically offered as a summer
+   * position.
+   * 
+ * + * INTERN = 6; + */ + public static final int INTERN_VALUE = 6; + /** + * + * + *
+   * The is an opportunity for an individual to volunteer, where there's no
+   * expectation of compensation for the provided services.
+   * 
+ * + * VOLUNTEER = 7; + */ + public static final int VOLUNTEER_VALUE = 7; + /** + * + * + *
+   * The job requires an employee to work on an as-needed basis with a
+   * flexible schedule.
+   * 
+ * + * PER_DIEM = 8; + */ + public static final int PER_DIEM_VALUE = 8; + /** + * + * + *
+   * The job involves employing people in remote areas and flying them
+   * temporarily to the work site instead of relocating employees and their
+   * families permanently.
+   * 
+ * + * FLY_IN_FLY_OUT = 9; + */ + public static final int FLY_IN_FLY_OUT_VALUE = 9; + /** + * + * + *
+   * The job does not fit any of the other listed types.
+   * 
+ * + * OTHER_EMPLOYMENT_TYPE = 10; + */ + public static final int OTHER_EMPLOYMENT_TYPE_VALUE = 10; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static EmploymentType valueOf(int value) { + return forNumber(value); + } + + public static EmploymentType forNumber(int value) { + switch (value) { + case 0: + return EMPLOYMENT_TYPE_UNSPECIFIED; + case 1: + return FULL_TIME; + case 2: + return PART_TIME; + case 3: + return CONTRACTOR; + case 4: + return CONTRACT_TO_HIRE; + case 5: + return TEMPORARY; + case 6: + return INTERN; + case 7: + return VOLUNTEER; + case 8: + return PER_DIEM; + case 9: + return FLY_IN_FLY_OUT; + case 10: + return OTHER_EMPLOYMENT_TYPE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EmploymentType findValueByNumber(int number) { + return EmploymentType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(3); + } + + private static final EmploymentType[] VALUES = values(); + + public static EmploymentType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private EmploymentType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.EmploymentType) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventProto.java new file mode 100644 index 000000000000..103263f5aae9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventProto.java @@ -0,0 +1,137 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/event.proto + +package com.google.cloud.talent.v4beta1; + +public final class EventProto { + private EventProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ClientEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ClientEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ClientEvent_ExtraInfoEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ClientEvent_ExtraInfoEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_JobEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_JobEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ProfileEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ProfileEvent_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\'google/cloud/talent/v4beta1/event.prot" + + "o\022\033google.cloud.talent.v4beta1\032\034google/a" + + "pi/annotations.proto\032\037google/protobuf/ti" + + "mestamp.proto\"\354\002\n\013ClientEvent\022\022\n\nrequest" + + "_id\030\001 \001(\t\022\020\n\010event_id\030\002 \001(\t\022/\n\013create_ti" + + "me\030\004 \001(\0132\032.google.protobuf.Timestamp\022:\n\t" + + "job_event\030\005 \001(\0132%.google.cloud.talent.v4" + + "beta1.JobEventH\000\022B\n\rprofile_event\030\006 \001(\0132" + + ").google.cloud.talent.v4beta1.ProfileEve" + + "ntH\000\022K\n\nextra_info\030\007 \003(\01327.google.cloud." + + "talent.v4beta1.ClientEvent.ExtraInfoEntr" + + "y\0320\n\016ExtraInfoEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001B\007\n\005event\"\357\003\n\010JobEvent\022@\n\004typ" + + "e\030\001 \001(\01622.google.cloud.talent.v4beta1.Jo" + + "bEvent.JobEventType\022\014\n\004jobs\030\002 \003(\t\"\222\003\n\014Jo" + + "bEventType\022\036\n\032JOB_EVENT_TYPE_UNSPECIFIED" + + "\020\000\022\016\n\nIMPRESSION\020\001\022\010\n\004VIEW\020\002\022\021\n\rVIEW_RED" + + "IRECT\020\003\022\025\n\021APPLICATION_START\020\004\022\026\n\022APPLIC" + + "ATION_FINISH\020\005\022 \n\034APPLICATION_QUICK_SUBM" + + "ISSION\020\006\022\030\n\024APPLICATION_REDIRECT\020\007\022!\n\035AP" + + "PLICATION_START_FROM_SEARCH\020\010\022$\n APPLICA" + + "TION_REDIRECT_FROM_SEARCH\020\t\022\036\n\032APPLICATI" + + "ON_COMPANY_SUBMIT\020\n\022\014\n\010BOOKMARK\020\013\022\020\n\014NOT" + + "IFICATION\020\014\022\t\n\005HIRED\020\r\022\013\n\007SENT_CV\020\016\022\025\n\021I" + + "NTERVIEW_GRANTED\020\017\022\022\n\016NOT_INTERESTED\020\020\"\361" + + "\002\n\014ProfileEvent\022H\n\004type\030\001 \001(\0162:.google.c" + + "loud.talent.v4beta1.ProfileEvent.Profile" + + "EventType\022\020\n\010profiles\030\002 \003(\t\022\016\n\006job_id\030\003 " + + "\001(\t\"\364\001\n\020ProfileEventType\022\"\n\036PROFILE_EVEN" + + "T_TYPE_UNSPECIFIED\020\000\022\016\n\nIMPRESSION\020\001\022\010\n\004" + + "VIEW\020\002\022\014\n\010BOOKMARK\020\003\022\021\n\rCOMMENT_ADDED\020\004\022" + + "\016\n\nEMAIL_SENT\020\005\022\021\n\rRESUME_VIEWED\020\006\022\016\n\nAD" + + "D_TO_JOB\020\007\022 \n\034POSITIVE_REACTION_TO_PROFI" + + "LE\020\010\022 \n\034NEGATIVE_REACTION_TO_PROFILE\020\t\022\n" + + "\n\006SCREEN\020\nBx\n\037com.google.cloud.talent.v4" + + "beta1B\nEventProtoP\001ZAgoogle.golang.org/g" + + "enproto/googleapis/cloud/talent/v4beta1;" + + "talent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_ClientEvent_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_ClientEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ClientEvent_descriptor, + new java.lang.String[] { + "RequestId", + "EventId", + "CreateTime", + "JobEvent", + "ProfileEvent", + "ExtraInfo", + "Event", + }); + internal_static_google_cloud_talent_v4beta1_ClientEvent_ExtraInfoEntry_descriptor = + internal_static_google_cloud_talent_v4beta1_ClientEvent_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_talent_v4beta1_ClientEvent_ExtraInfoEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ClientEvent_ExtraInfoEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_talent_v4beta1_JobEvent_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_talent_v4beta1_JobEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_JobEvent_descriptor, + new java.lang.String[] { + "Type", "Jobs", + }); + internal_static_google_cloud_talent_v4beta1_ProfileEvent_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_talent_v4beta1_ProfileEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ProfileEvent_descriptor, + new java.lang.String[] { + "Type", "Profiles", "JobId", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventServiceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventServiceProto.java new file mode 100644 index 000000000000..0cf1c3a2ed60 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventServiceProto.java @@ -0,0 +1,77 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/event_service.proto + +package com.google.cloud.talent.v4beta1; + +public final class EventServiceProto { + private EventServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CreateClientEventRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CreateClientEventRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n/google/cloud/talent/v4beta1/event_serv" + + "ice.proto\022\033google.cloud.talent.v4beta1\032\034" + + "google/api/annotations.proto\032\'google/clo" + + "ud/talent/v4beta1/event.proto\"j\n\030CreateC" + + "lientEventRequest\022\016\n\006parent\030\001 \001(\t\022>\n\014cli" + + "ent_event\030\002 \001(\0132(.google.cloud.talent.v4" + + "beta1.ClientEvent2\273\001\n\014EventService\022\252\001\n\021C" + + "reateClientEvent\0225.google.cloud.talent.v" + + "4beta1.CreateClientEventRequest\032(.google" + + ".cloud.talent.v4beta1.ClientEvent\"4\202\323\344\223\002" + + ".\")/v4beta1/{parent=projects/*}/clientEv" + + "ents:\001*B\177\n\037com.google.cloud.talent.v4bet" + + "a1B\021EventServiceProtoP\001ZAgoogle.golang.o" + + "rg/genproto/googleapis/cloud/talent/v4be" + + "ta1;talent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.EventProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_CreateClientEventRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_CreateClientEventRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CreateClientEventRequest_descriptor, + new java.lang.String[] { + "Parent", "ClientEvent", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.EventProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/FiltersProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/FiltersProto.java new file mode 100644 index 000000000000..c7d13f936a44 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/FiltersProto.java @@ -0,0 +1,412 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public final class FiltersProto { + private FiltersProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_JobQuery_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_JobQuery_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ProfileQuery_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ProfileQuery_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_LocationFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_LocationFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CompensationFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CompensationFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CommuteFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CommuteFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_JobTitleFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_JobTitleFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_SkillFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_SkillFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_EmployerFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_EmployerFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_EducationFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_EducationFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ApplicationLastStageFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ApplicationLastStageFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ApplicationStatusFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ApplicationStatusFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_TimeFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_TimeFilter_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/talent/v4beta1/filters.pr" + + "oto\022\033google.cloud.talent.v4beta1\032\034google" + + "/api/annotations.proto\032(google/cloud/tal" + + "ent/v4beta1/common.proto\032%google/cloud/t" + + "alent/v4beta1/job.proto\032)google/cloud/ta" + + "lent/v4beta1/profile.proto\032\036google/proto" + + "buf/duration.proto\032\037google/protobuf/time" + + "stamp.proto\032\036google/protobuf/wrappers.pr" + + "oto\032\026google/type/date.proto\032\030google/type" + + "/latlng.proto\032\033google/type/timeofday.pro" + + "to\"\347\004\n\010JobQuery\022\r\n\005query\030\001 \001(\t\022\025\n\rcompan" + + "y_names\030\002 \003(\t\022E\n\020location_filters\030\003 \003(\0132" + + "+.google.cloud.talent.v4beta1.LocationFi" + + "lter\022@\n\016job_categories\030\004 \003(\0162(.google.cl" + + "oud.talent.v4beta1.JobCategory\022B\n\016commut" + + "e_filter\030\005 \001(\0132*.google.cloud.talent.v4b" + + "eta1.CommuteFilter\022\035\n\025company_display_na" + + "mes\030\006 \003(\t\022L\n\023compensation_filter\030\007 \001(\0132/" + + ".google.cloud.talent.v4beta1.Compensatio" + + "nFilter\022\037\n\027custom_attribute_filter\030\010 \001(\t" + + "\022\033\n\023disable_spell_check\030\t \001(\010\022E\n\020employm" + + "ent_types\030\n \003(\0162+.google.cloud.talent.v4" + + "beta1.EmploymentType\022\026\n\016language_codes\030\013" + + " \003(\t\022G\n\022publish_time_range\030\014 \001(\0132+.googl" + + "e.cloud.talent.v4beta1.TimestampRange\022\025\n" + + "\rexcluded_jobs\030\r \003(\t\"\256\010\n\014ProfileQuery\022\r\n" + + "\005query\030\001 \001(\t\022E\n\020location_filters\030\002 \003(\0132+" + + ".google.cloud.talent.v4beta1.LocationFil" + + "ter\022F\n\021job_title_filters\030\003 \003(\0132+.google." + + "cloud.talent.v4beta1.JobTitleFilter\022E\n\020e" + + "mployer_filters\030\004 \003(\0132+.google.cloud.tal" + + "ent.v4beta1.EmployerFilter\022G\n\021education_" + + "filters\030\005 \003(\0132,.google.cloud.talent.v4be" + + "ta1.EducationFilter\022?\n\rskill_filters\030\006 \003" + + "(\0132(.google.cloud.talent.v4beta1.SkillFi" + + "lter\022Q\n\026work_experience_filter\030\007 \003(\01321.g" + + "oogle.cloud.talent.v4beta1.WorkExperienc" + + "eFilter\022=\n\014time_filters\030\010 \003(\0132\'.google.c" + + "loud.talent.v4beta1.TimeFilter\0222\n\016hirabl" + + "e_filter\030\t \001(\0132\032.google.protobuf.BoolVal" + + "ue\022T\n\030application_date_filters\030\n \003(\01322.g" + + "oogle.cloud.talent.v4beta1.ApplicationDa" + + "teFilter\022g\n\"application_outcome_reason_f" + + "ilters\030\013 \003(\0132;.google.cloud.talent.v4bet" + + "a1.ApplicationOutcomeReasonFilter\022_\n\036app" + + "lication_last_stage_filters\030\014 \003(\01327.goog" + + "le.cloud.talent.v4beta1.ApplicationLastS" + + "tageFilter\022R\n\027application_job_filters\030\r " + + "\003(\01321.google.cloud.talent.v4beta1.Applic" + + "ationJobFilter\022X\n\032application_status_fil" + + "ters\030\016 \003(\01324.google.cloud.talent.v4beta1" + + ".ApplicationStatusFilter\022\033\n\023custom_field" + + "_filter\030\017 \001(\t\"\337\002\n\016LocationFilter\022\017\n\007addr" + + "ess\030\001 \001(\t\022\023\n\013region_code\030\002 \001(\t\022$\n\007lat_ln" + + "g\030\003 \001(\0132\023.google.type.LatLng\022\031\n\021distance" + + "_in_miles\030\004 \001(\001\022a\n\026telecommute_preferenc" + + "e\030\005 \001(\0162A.google.cloud.talent.v4beta1.Lo" + + "cationFilter.TelecommutePreference\022\017\n\007ne" + + "gated\030\006 \001(\010\"r\n\025TelecommutePreference\022&\n\"" + + "TELECOMMUTE_PREFERENCE_UNSPECIFIED\020\000\022\030\n\024" + + "TELECOMMUTE_EXCLUDED\020\001\022\027\n\023TELECOMMUTE_AL" + + "LOWED\020\002\"\300\003\n\022CompensationFilter\022H\n\004type\030\001" + + " \001(\0162:.google.cloud.talent.v4beta1.Compe" + + "nsationFilter.FilterType\022M\n\005units\030\002 \003(\0162" + + ">.google.cloud.talent.v4beta1.Compensati" + + "onInfo.CompensationUnit\022N\n\005range\030\003 \001(\0132?" + + ".google.cloud.talent.v4beta1.Compensatio" + + "nInfo.CompensationRange\0228\n0include_jobs_" + + "with_unspecified_compensation_range\030\004 \001(" + + "\010\"\206\001\n\nFilterType\022\033\n\027FILTER_TYPE_UNSPECIF" + + "IED\020\000\022\r\n\tUNIT_ONLY\020\001\022\023\n\017UNIT_AND_AMOUNT\020" + + "\002\022\032\n\026ANNUALIZED_BASE_AMOUNT\020\003\022\033\n\027ANNUALI" + + "ZED_TOTAL_AMOUNT\020\004\"\274\003\n\rCommuteFilter\022B\n\016" + + "commute_method\030\001 \001(\0162*.google.cloud.tale" + + "nt.v4beta1.CommuteMethod\022.\n\021start_coordi" + + "nates\030\002 \001(\0132\023.google.type.LatLng\0222\n\017trav" + + "el_duration\030\003 \001(\0132\031.google.protobuf.Dura" + + "tion\022!\n\031allow_imprecise_addresses\030\004 \001(\010\022" + + "N\n\014road_traffic\030\005 \001(\01626.google.cloud.tal" + + "ent.v4beta1.CommuteFilter.RoadTrafficH\000\022" + + "0\n\016departure_time\030\006 \001(\0132\026.google.type.Ti" + + "meOfDayH\000\"L\n\013RoadTraffic\022\034\n\030ROAD_TRAFFIC" + + "_UNSPECIFIED\020\000\022\020\n\014TRAFFIC_FREE\020\001\022\r\n\tBUSY" + + "_HOUR\020\002B\020\n\016traffic_option\"4\n\016JobTitleFil" + + "ter\022\021\n\tjob_title\030\001 \001(\t\022\017\n\007negated\030\002 \001(\010\"" + + "-\n\013SkillFilter\022\r\n\005skill\030\001 \001(\t\022\017\n\007negated" + + "\030\002 \001(\010\"\241\002\n\016EmployerFilter\022\020\n\010employer\030\001 " + + "\001(\t\022L\n\004mode\030\002 \001(\0162>.google.cloud.talent." + + "v4beta1.EmployerFilter.EmployerFilterMod" + + "e\022\017\n\007negated\030\003 \001(\010\"\235\001\n\022EmployerFilterMod" + + "e\022$\n EMPLOYER_FILTER_MODE_UNSPECIFIED\020\000\022" + + "\032\n\026ALL_EMPLOYMENT_RECORDS\020\001\022#\n\037CURRENT_E" + + "MPLOYMENT_RECORDS_ONLY\020\002\022 \n\034PAST_EMPLOYM" + + "ENT_RECORDS_ONLY\020\003\"\210\001\n\017EducationFilter\022\016" + + "\n\006school\030\001 \001(\t\022\026\n\016field_of_study\030\002 \001(\t\022<" + + "\n\013degree_type\030\003 \001(\0162\'.google.cloud.talen" + + "t.v4beta1.DegreeType\022\017\n\007negated\030\006 \001(\010\"|\n" + + "\024WorkExperienceFilter\0221\n\016min_experience\030" + + "\001 \001(\0132\031.google.protobuf.Duration\0221\n\016max_" + + "experience\030\002 \001(\0132\031.google.protobuf.Durat" + + "ion\"c\n\025ApplicationDateFilter\022%\n\nstart_da" + + "te\030\001 \001(\0132\021.google.type.Date\022#\n\010end_date\030" + + "\002 \001(\0132\021.google.type.Date\"I\n\036ApplicationO" + + "utcomeReasonFilter\022\026\n\016outcome_reason\030\001 \001" + + "(\t\022\017\n\007negated\030\002 \001(\010\"A\n\032ApplicationLastSt" + + "ageFilter\022\022\n\nlast_stage\030\001 \001(\t\022\017\n\007negated" + + "\030\002 \001(\010\"h\n\024ApplicationJobFilter\022\020\n\010job_na" + + "me\030\001 \001(\t\022\032\n\022job_requisition_id\030\002 \001(\t\022\021\n\t" + + "job_title\030\003 \001(\t\022\017\n\007negated\030\004 \001(\010\"\205\001\n\027App" + + "licationStatusFilter\022Y\n\022application_stat" + + "us\030\001 \001(\0162=.google.cloud.talent.v4beta1.J" + + "obApplication.ApplicationStatus\022\017\n\007negat" + + "ed\030\002 \001(\010\"\374\001\n\nTimeFilter\022.\n\nstart_time\030\001 " + + "\001(\0132\032.google.protobuf.Timestamp\022,\n\010end_t" + + "ime\030\002 \001(\0132\032.google.protobuf.Timestamp\022E\n" + + "\ntime_field\030\003 \001(\01621.google.cloud.talent." + + "v4beta1.TimeFilter.TimeField\"I\n\tTimeFiel" + + "d\022\032\n\026TIME_FIELD_UNSPECIFIED\020\000\022\017\n\013CREATE_" + + "TIME\020\001\022\017\n\013UPDATE_TIME\020\002Bz\n\037com.google.cl" + + "oud.talent.v4beta1B\014FiltersProtoP\001ZAgoog" + + "le.golang.org/genproto/googleapis/cloud/" + + "talent/v4beta1;talent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), + com.google.cloud.talent.v4beta1.JobResourceProto.getDescriptor(), + com.google.cloud.talent.v4beta1.ProfileResourceProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.type.DateProto.getDescriptor(), + com.google.type.LatLngProto.getDescriptor(), + com.google.type.TimeOfDayProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_JobQuery_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_JobQuery_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_JobQuery_descriptor, + new java.lang.String[] { + "Query", + "CompanyNames", + "LocationFilters", + "JobCategories", + "CommuteFilter", + "CompanyDisplayNames", + "CompensationFilter", + "CustomAttributeFilter", + "DisableSpellCheck", + "EmploymentTypes", + "LanguageCodes", + "PublishTimeRange", + "ExcludedJobs", + }); + internal_static_google_cloud_talent_v4beta1_ProfileQuery_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_talent_v4beta1_ProfileQuery_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ProfileQuery_descriptor, + new java.lang.String[] { + "Query", + "LocationFilters", + "JobTitleFilters", + "EmployerFilters", + "EducationFilters", + "SkillFilters", + "WorkExperienceFilter", + "TimeFilters", + "HirableFilter", + "ApplicationDateFilters", + "ApplicationOutcomeReasonFilters", + "ApplicationLastStageFilters", + "ApplicationJobFilters", + "ApplicationStatusFilters", + "CustomFieldFilter", + }); + internal_static_google_cloud_talent_v4beta1_LocationFilter_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_talent_v4beta1_LocationFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_LocationFilter_descriptor, + new java.lang.String[] { + "Address", + "RegionCode", + "LatLng", + "DistanceInMiles", + "TelecommutePreference", + "Negated", + }); + internal_static_google_cloud_talent_v4beta1_CompensationFilter_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_talent_v4beta1_CompensationFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CompensationFilter_descriptor, + new java.lang.String[] { + "Type", "Units", "Range", "IncludeJobsWithUnspecifiedCompensationRange", + }); + internal_static_google_cloud_talent_v4beta1_CommuteFilter_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_talent_v4beta1_CommuteFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CommuteFilter_descriptor, + new java.lang.String[] { + "CommuteMethod", + "StartCoordinates", + "TravelDuration", + "AllowImpreciseAddresses", + "RoadTraffic", + "DepartureTime", + "TrafficOption", + }); + internal_static_google_cloud_talent_v4beta1_JobTitleFilter_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_talent_v4beta1_JobTitleFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_JobTitleFilter_descriptor, + new java.lang.String[] { + "JobTitle", "Negated", + }); + internal_static_google_cloud_talent_v4beta1_SkillFilter_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_talent_v4beta1_SkillFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_SkillFilter_descriptor, + new java.lang.String[] { + "Skill", "Negated", + }); + internal_static_google_cloud_talent_v4beta1_EmployerFilter_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_talent_v4beta1_EmployerFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_EmployerFilter_descriptor, + new java.lang.String[] { + "Employer", "Mode", "Negated", + }); + internal_static_google_cloud_talent_v4beta1_EducationFilter_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_talent_v4beta1_EducationFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_EducationFilter_descriptor, + new java.lang.String[] { + "School", "FieldOfStudy", "DegreeType", "Negated", + }); + internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_descriptor, + new java.lang.String[] { + "MinExperience", "MaxExperience", + }); + internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_descriptor, + new java.lang.String[] { + "StartDate", "EndDate", + }); + internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_descriptor, + new java.lang.String[] { + "OutcomeReason", "Negated", + }); + internal_static_google_cloud_talent_v4beta1_ApplicationLastStageFilter_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_talent_v4beta1_ApplicationLastStageFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ApplicationLastStageFilter_descriptor, + new java.lang.String[] { + "LastStage", "Negated", + }); + internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_descriptor, + new java.lang.String[] { + "JobName", "JobRequisitionId", "JobTitle", "Negated", + }); + internal_static_google_cloud_talent_v4beta1_ApplicationStatusFilter_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_talent_v4beta1_ApplicationStatusFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ApplicationStatusFilter_descriptor, + new java.lang.String[] { + "ApplicationStatus", "Negated", + }); + internal_static_google_cloud_talent_v4beta1_TimeFilter_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_talent_v4beta1_TimeFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_TimeFilter_descriptor, + new java.lang.String[] { + "StartTime", "EndTime", "TimeField", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); + com.google.cloud.talent.v4beta1.JobResourceProto.getDescriptor(); + com.google.cloud.talent.v4beta1.ProfileResourceProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.type.DateProto.getDescriptor(); + com.google.type.LatLngProto.getDescriptor(); + com.google.type.TimeOfDayProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetCompanyRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetCompanyRequest.java new file mode 100644 index 000000000000..ef15568e61ab --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetCompanyRequest.java @@ -0,0 +1,620 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Request for getting a company by name.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.GetCompanyRequest} + */ +public final class GetCompanyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.GetCompanyRequest) + GetCompanyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetCompanyRequest.newBuilder() to construct. + private GetCompanyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetCompanyRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetCompanyRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_GetCompanyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_GetCompanyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.GetCompanyRequest.class, + com.google.cloud.talent.v4beta1.GetCompanyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required.
+   * The resource name of the company to be retrieved.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the company to be retrieved.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.GetCompanyRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.GetCompanyRequest other = + (com.google.cloud.talent.v4beta1.GetCompanyRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.GetCompanyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request for getting a company by name.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.GetCompanyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.GetCompanyRequest) + com.google.cloud.talent.v4beta1.GetCompanyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_GetCompanyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_GetCompanyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.GetCompanyRequest.class, + com.google.cloud.talent.v4beta1.GetCompanyRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.GetCompanyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_GetCompanyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetCompanyRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.GetCompanyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetCompanyRequest build() { + com.google.cloud.talent.v4beta1.GetCompanyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetCompanyRequest buildPartial() { + com.google.cloud.talent.v4beta1.GetCompanyRequest result = + new com.google.cloud.talent.v4beta1.GetCompanyRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.GetCompanyRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.GetCompanyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.GetCompanyRequest other) { + if (other == com.google.cloud.talent.v4beta1.GetCompanyRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.GetCompanyRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.GetCompanyRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the company to be retrieved.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the company to be retrieved.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the company to be retrieved.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the company to be retrieved.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the company to be retrieved.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.GetCompanyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.GetCompanyRequest) + private static final com.google.cloud.talent.v4beta1.GetCompanyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.GetCompanyRequest(); + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCompanyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCompanyRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetCompanyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetCompanyRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetCompanyRequestOrBuilder.java new file mode 100644 index 000000000000..a9dc06a78964 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetCompanyRequestOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface GetCompanyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.GetCompanyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the company to be retrieved.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required.
+   * The resource name of the company to be retrieved.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetJobRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetJobRequest.java new file mode 100644 index 000000000000..bd8bd4574a68 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetJobRequest.java @@ -0,0 +1,620 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Get job request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.GetJobRequest} + */ +public final class GetJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.GetJobRequest) + GetJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetJobRequest.newBuilder() to construct. + private GetJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetJobRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetJobRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_GetJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_GetJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.GetJobRequest.class, + com.google.cloud.talent.v4beta1.GetJobRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required.
+   * The resource name of the job to retrieve.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the job to retrieve.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.GetJobRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.GetJobRequest other = + (com.google.cloud.talent.v4beta1.GetJobRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.GetJobRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Get job request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.GetJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.GetJobRequest) + com.google.cloud.talent.v4beta1.GetJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_GetJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_GetJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.GetJobRequest.class, + com.google.cloud.talent.v4beta1.GetJobRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.GetJobRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_GetJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetJobRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.GetJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetJobRequest build() { + com.google.cloud.talent.v4beta1.GetJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetJobRequest buildPartial() { + com.google.cloud.talent.v4beta1.GetJobRequest result = + new com.google.cloud.talent.v4beta1.GetJobRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.GetJobRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.GetJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.GetJobRequest other) { + if (other == com.google.cloud.talent.v4beta1.GetJobRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.GetJobRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.GetJobRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the job to retrieve.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the job to retrieve.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the job to retrieve.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the job to retrieve.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the job to retrieve.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.GetJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.GetJobRequest) + private static final com.google.cloud.talent.v4beta1.GetJobRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.GetJobRequest(); + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetJobRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetJobRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetJobRequestOrBuilder.java new file mode 100644 index 000000000000..29731ee39b5e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetJobRequestOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface GetJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.GetJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the job to retrieve.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required.
+   * The resource name of the job to retrieve.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetProfileRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetProfileRequest.java new file mode 100644 index 000000000000..aa2092ef850e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetProfileRequest.java @@ -0,0 +1,627 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Get profile request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.GetProfileRequest} + */ +public final class GetProfileRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.GetProfileRequest) + GetProfileRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetProfileRequest.newBuilder() to construct. + private GetProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetProfileRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetProfileRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_GetProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_GetProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.GetProfileRequest.class, + com.google.cloud.talent.v4beta1.GetProfileRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required.
+   * Resource name of the profile to get.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * Resource name of the profile to get.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.GetProfileRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.GetProfileRequest other = + (com.google.cloud.talent.v4beta1.GetProfileRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.GetProfileRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Get profile request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.GetProfileRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.GetProfileRequest) + com.google.cloud.talent.v4beta1.GetProfileRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_GetProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_GetProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.GetProfileRequest.class, + com.google.cloud.talent.v4beta1.GetProfileRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.GetProfileRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_GetProfileRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetProfileRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.GetProfileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetProfileRequest build() { + com.google.cloud.talent.v4beta1.GetProfileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetProfileRequest buildPartial() { + com.google.cloud.talent.v4beta1.GetProfileRequest result = + new com.google.cloud.talent.v4beta1.GetProfileRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.GetProfileRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.GetProfileRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.GetProfileRequest other) { + if (other == com.google.cloud.talent.v4beta1.GetProfileRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.GetProfileRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.GetProfileRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required.
+     * Resource name of the profile to get.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the profile to get.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the profile to get.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the profile to get.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the profile to get.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.GetProfileRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.GetProfileRequest) + private static final com.google.cloud.talent.v4beta1.GetProfileRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.GetProfileRequest(); + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetProfileRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetProfileRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetProfileRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetProfileRequestOrBuilder.java new file mode 100644 index 000000000000..b4f41d5a3624 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetProfileRequestOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface GetProfileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.GetProfileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * Resource name of the profile to get.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required.
+   * Resource name of the profile to get.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetTenantRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetTenantRequest.java new file mode 100644 index 000000000000..947fa851628b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetTenantRequest.java @@ -0,0 +1,619 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Request for getting a tenant by name.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.GetTenantRequest} + */ +public final class GetTenantRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.GetTenantRequest) + GetTenantRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetTenantRequest.newBuilder() to construct. + private GetTenantRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetTenantRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetTenantRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_GetTenantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_GetTenantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.GetTenantRequest.class, + com.google.cloud.talent.v4beta1.GetTenantRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to be retrieved.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to be retrieved.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.GetTenantRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.GetTenantRequest other = + (com.google.cloud.talent.v4beta1.GetTenantRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.GetTenantRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request for getting a tenant by name.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.GetTenantRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.GetTenantRequest) + com.google.cloud.talent.v4beta1.GetTenantRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_GetTenantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_GetTenantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.GetTenantRequest.class, + com.google.cloud.talent.v4beta1.GetTenantRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.GetTenantRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_GetTenantRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetTenantRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.GetTenantRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetTenantRequest build() { + com.google.cloud.talent.v4beta1.GetTenantRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetTenantRequest buildPartial() { + com.google.cloud.talent.v4beta1.GetTenantRequest result = + new com.google.cloud.talent.v4beta1.GetTenantRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.GetTenantRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.GetTenantRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.GetTenantRequest other) { + if (other == com.google.cloud.talent.v4beta1.GetTenantRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.GetTenantRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.GetTenantRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to be retrieved.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to be retrieved.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to be retrieved.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to be retrieved.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to be retrieved.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.GetTenantRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.GetTenantRequest) + private static final com.google.cloud.talent.v4beta1.GetTenantRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.GetTenantRequest(); + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTenantRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetTenantRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetTenantRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetTenantRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetTenantRequestOrBuilder.java new file mode 100644 index 000000000000..c6c8c9e2e154 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetTenantRequestOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface GetTenantRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.GetTenantRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to be retrieved.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to be retrieved.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramProto.java new file mode 100644 index 000000000000..c946e92f6735 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramProto.java @@ -0,0 +1,96 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/histogram.proto + +package com.google.cloud.talent.v4beta1; + +public final class HistogramProto { + private HistogramProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_HistogramQuery_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_HistogramQuery_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_HistogramEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_HistogramEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n+google/cloud/talent/v4beta1/histogram." + + "proto\022\033google.cloud.talent.v4beta1\032\034goog" + + "le/api/annotations.proto\032\036google/protobu" + + "f/wrappers.proto\")\n\016HistogramQuery\022\027\n\017hi" + + "stogram_query\030\001 \001(\t\"\266\001\n\024HistogramQueryRe" + + "sult\022\027\n\017histogram_query\030\001 \001(\t\022S\n\thistogr" + + "am\030\002 \003(\0132@.google.cloud.talent.v4beta1.H" + + "istogramQueryResult.HistogramEntry\0320\n\016Hi" + + "stogramEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003" + + ":\0028\001B|\n\037com.google.cloud.talent.v4beta1B" + + "\016HistogramProtoP\001ZAgoogle.golang.org/gen" + + "proto/googleapis/cloud/talent/v4beta1;ta" + + "lent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_HistogramQuery_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_HistogramQuery_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_HistogramQuery_descriptor, + new java.lang.String[] { + "HistogramQuery", + }); + internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_descriptor, + new java.lang.String[] { + "HistogramQuery", "Histogram", + }); + internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_HistogramEntry_descriptor = + internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_HistogramEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_HistogramEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQuery.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQuery.java new file mode 100644 index 000000000000..148d1eaefbd8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQuery.java @@ -0,0 +1,641 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/histogram.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input Only.
+ * The histogram request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.HistogramQuery} + */ +public final class HistogramQuery extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.HistogramQuery) + HistogramQueryOrBuilder { + private static final long serialVersionUID = 0L; + // Use HistogramQuery.newBuilder() to construct. + private HistogramQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HistogramQuery() { + histogramQuery_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private HistogramQuery( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + histogramQuery_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.HistogramProto + .internal_static_google_cloud_talent_v4beta1_HistogramQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.HistogramProto + .internal_static_google_cloud_talent_v4beta1_HistogramQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.HistogramQuery.class, + com.google.cloud.talent.v4beta1.HistogramQuery.Builder.class); + } + + public static final int HISTOGRAM_QUERY_FIELD_NUMBER = 1; + private volatile java.lang.Object histogramQuery_; + /** + * + * + *
+   * An expression specifies a histogram request against matching resources
+   * (for example, jobs, profiles) for searches.
+   * See
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries]
+   * and
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]
+   * for details about syntax.
+   * 
+ * + * string histogram_query = 1; + */ + public java.lang.String getHistogramQuery() { + java.lang.Object ref = histogramQuery_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + histogramQuery_ = s; + return s; + } + } + /** + * + * + *
+   * An expression specifies a histogram request against matching resources
+   * (for example, jobs, profiles) for searches.
+   * See
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries]
+   * and
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]
+   * for details about syntax.
+   * 
+ * + * string histogram_query = 1; + */ + public com.google.protobuf.ByteString getHistogramQueryBytes() { + java.lang.Object ref = histogramQuery_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + histogramQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getHistogramQueryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, histogramQuery_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getHistogramQueryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, histogramQuery_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.HistogramQuery)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.HistogramQuery other = + (com.google.cloud.talent.v4beta1.HistogramQuery) obj; + + boolean result = true; + result = result && getHistogramQuery().equals(other.getHistogramQuery()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HISTOGRAM_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getHistogramQuery().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.HistogramQuery prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input Only.
+   * The histogram request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.HistogramQuery} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.HistogramQuery) + com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.HistogramProto + .internal_static_google_cloud_talent_v4beta1_HistogramQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.HistogramProto + .internal_static_google_cloud_talent_v4beta1_HistogramQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.HistogramQuery.class, + com.google.cloud.talent.v4beta1.HistogramQuery.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.HistogramQuery.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + histogramQuery_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.HistogramProto + .internal_static_google_cloud_talent_v4beta1_HistogramQuery_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.HistogramQuery getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.HistogramQuery.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.HistogramQuery build() { + com.google.cloud.talent.v4beta1.HistogramQuery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.HistogramQuery buildPartial() { + com.google.cloud.talent.v4beta1.HistogramQuery result = + new com.google.cloud.talent.v4beta1.HistogramQuery(this); + result.histogramQuery_ = histogramQuery_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.HistogramQuery) { + return mergeFrom((com.google.cloud.talent.v4beta1.HistogramQuery) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.HistogramQuery other) { + if (other == com.google.cloud.talent.v4beta1.HistogramQuery.getDefaultInstance()) return this; + if (!other.getHistogramQuery().isEmpty()) { + histogramQuery_ = other.histogramQuery_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.HistogramQuery parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.HistogramQuery) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object histogramQuery_ = ""; + /** + * + * + *
+     * An expression specifies a histogram request against matching resources
+     * (for example, jobs, profiles) for searches.
+     * See
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries]
+     * and
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]
+     * for details about syntax.
+     * 
+ * + * string histogram_query = 1; + */ + public java.lang.String getHistogramQuery() { + java.lang.Object ref = histogramQuery_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + histogramQuery_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * An expression specifies a histogram request against matching resources
+     * (for example, jobs, profiles) for searches.
+     * See
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries]
+     * and
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]
+     * for details about syntax.
+     * 
+ * + * string histogram_query = 1; + */ + public com.google.protobuf.ByteString getHistogramQueryBytes() { + java.lang.Object ref = histogramQuery_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + histogramQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * An expression specifies a histogram request against matching resources
+     * (for example, jobs, profiles) for searches.
+     * See
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries]
+     * and
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]
+     * for details about syntax.
+     * 
+ * + * string histogram_query = 1; + */ + public Builder setHistogramQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + histogramQuery_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * An expression specifies a histogram request against matching resources
+     * (for example, jobs, profiles) for searches.
+     * See
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries]
+     * and
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]
+     * for details about syntax.
+     * 
+ * + * string histogram_query = 1; + */ + public Builder clearHistogramQuery() { + + histogramQuery_ = getDefaultInstance().getHistogramQuery(); + onChanged(); + return this; + } + /** + * + * + *
+     * An expression specifies a histogram request against matching resources
+     * (for example, jobs, profiles) for searches.
+     * See
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries]
+     * and
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]
+     * for details about syntax.
+     * 
+ * + * string histogram_query = 1; + */ + public Builder setHistogramQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + histogramQuery_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.HistogramQuery) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.HistogramQuery) + private static final com.google.cloud.talent.v4beta1.HistogramQuery DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.HistogramQuery(); + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HistogramQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HistogramQuery(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.HistogramQuery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQueryOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQueryOrBuilder.java new file mode 100644 index 000000000000..01adc0f4ad69 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQueryOrBuilder.java @@ -0,0 +1,43 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/histogram.proto + +package com.google.cloud.talent.v4beta1; + +public interface HistogramQueryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.HistogramQuery) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * An expression specifies a histogram request against matching resources
+   * (for example, jobs, profiles) for searches.
+   * See
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries]
+   * and
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]
+   * for details about syntax.
+   * 
+ * + * string histogram_query = 1; + */ + java.lang.String getHistogramQuery(); + /** + * + * + *
+   * An expression specifies a histogram request against matching resources
+   * (for example, jobs, profiles) for searches.
+   * See
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries]
+   * and
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]
+   * for details about syntax.
+   * 
+ * + * string histogram_query = 1; + */ + com.google.protobuf.ByteString getHistogramQueryBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQueryResult.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQueryResult.java new file mode 100644 index 000000000000..3354371df173 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQueryResult.java @@ -0,0 +1,994 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/histogram.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Output only.
+ * Histogram result that matches [HistogramSpec][] specified in searches.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.HistogramQueryResult} + */ +public final class HistogramQueryResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.HistogramQueryResult) + HistogramQueryResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use HistogramQueryResult.newBuilder() to construct. + private HistogramQueryResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HistogramQueryResult() { + histogramQuery_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private HistogramQueryResult( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + histogramQuery_ = s; + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + histogram_ = + com.google.protobuf.MapField.newMapField( + HistogramDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry histogram__ = + input.readMessage( + HistogramDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + histogram_.getMutableMap().put(histogram__.getKey(), histogram__.getValue()); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.HistogramProto + .internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 2: + return internalGetHistogram(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.HistogramProto + .internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.HistogramQueryResult.class, + com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder.class); + } + + private int bitField0_; + public static final int HISTOGRAM_QUERY_FIELD_NUMBER = 1; + private volatile java.lang.Object histogramQuery_; + /** + * + * + *
+   * Requested histogram expression.
+   * 
+ * + * string histogram_query = 1; + */ + public java.lang.String getHistogramQuery() { + java.lang.Object ref = histogramQuery_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + histogramQuery_ = s; + return s; + } + } + /** + * + * + *
+   * Requested histogram expression.
+   * 
+ * + * string histogram_query = 1; + */ + public com.google.protobuf.ByteString getHistogramQueryBytes() { + java.lang.Object ref = histogramQuery_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + histogramQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HISTOGRAM_FIELD_NUMBER = 2; + + private static final class HistogramDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.talent.v4beta1.HistogramProto + .internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_HistogramEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.INT64, + 0L); + } + + private com.google.protobuf.MapField histogram_; + + private com.google.protobuf.MapField internalGetHistogram() { + if (histogram_ == null) { + return com.google.protobuf.MapField.emptyMapField(HistogramDefaultEntryHolder.defaultEntry); + } + return histogram_; + } + + public int getHistogramCount() { + return internalGetHistogram().getMap().size(); + } + /** + * + * + *
+   * A map from the values of the facet associated with distinct values to the
+   * number of matching entries with corresponding value.
+   * The key format is:
+   * * (for string histogram) string values stored in the field.
+   * * (for named numeric bucket) name specified in `bucket()` function, like
+   *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+   * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+   * example, `0-1000`, `MIN-0`, and `0-MAX`.
+   * 
+ * + * map<string, int64> histogram = 2; + */ + public boolean containsHistogram(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetHistogram().getMap().containsKey(key); + } + /** Use {@link #getHistogramMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getHistogram() { + return getHistogramMap(); + } + /** + * + * + *
+   * A map from the values of the facet associated with distinct values to the
+   * number of matching entries with corresponding value.
+   * The key format is:
+   * * (for string histogram) string values stored in the field.
+   * * (for named numeric bucket) name specified in `bucket()` function, like
+   *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+   * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+   * example, `0-1000`, `MIN-0`, and `0-MAX`.
+   * 
+ * + * map<string, int64> histogram = 2; + */ + public java.util.Map getHistogramMap() { + return internalGetHistogram().getMap(); + } + /** + * + * + *
+   * A map from the values of the facet associated with distinct values to the
+   * number of matching entries with corresponding value.
+   * The key format is:
+   * * (for string histogram) string values stored in the field.
+   * * (for named numeric bucket) name specified in `bucket()` function, like
+   *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+   * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+   * example, `0-1000`, `MIN-0`, and `0-MAX`.
+   * 
+ * + * map<string, int64> histogram = 2; + */ + public long getHistogramOrDefault(java.lang.String key, long defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetHistogram().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * A map from the values of the facet associated with distinct values to the
+   * number of matching entries with corresponding value.
+   * The key format is:
+   * * (for string histogram) string values stored in the field.
+   * * (for named numeric bucket) name specified in `bucket()` function, like
+   *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+   * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+   * example, `0-1000`, `MIN-0`, and `0-MAX`.
+   * 
+ * + * map<string, int64> histogram = 2; + */ + public long getHistogramOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetHistogram().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getHistogramQueryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, histogramQuery_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetHistogram(), HistogramDefaultEntryHolder.defaultEntry, 2); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getHistogramQueryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, histogramQuery_); + } + for (java.util.Map.Entry entry : + internalGetHistogram().getMap().entrySet()) { + com.google.protobuf.MapEntry histogram__ = + HistogramDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, histogram__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.HistogramQueryResult)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.HistogramQueryResult other = + (com.google.cloud.talent.v4beta1.HistogramQueryResult) obj; + + boolean result = true; + result = result && getHistogramQuery().equals(other.getHistogramQuery()); + result = result && internalGetHistogram().equals(other.internalGetHistogram()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HISTOGRAM_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getHistogramQuery().hashCode(); + if (!internalGetHistogram().getMap().isEmpty()) { + hash = (37 * hash) + HISTOGRAM_FIELD_NUMBER; + hash = (53 * hash) + internalGetHistogram().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.HistogramQueryResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Output only.
+   * Histogram result that matches [HistogramSpec][] specified in searches.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.HistogramQueryResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.HistogramQueryResult) + com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.HistogramProto + .internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 2: + return internalGetHistogram(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 2: + return internalGetMutableHistogram(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.HistogramProto + .internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.HistogramQueryResult.class, + com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.HistogramQueryResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + histogramQuery_ = ""; + + internalGetMutableHistogram().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.HistogramProto + .internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.HistogramQueryResult getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.HistogramQueryResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.HistogramQueryResult build() { + com.google.cloud.talent.v4beta1.HistogramQueryResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.HistogramQueryResult buildPartial() { + com.google.cloud.talent.v4beta1.HistogramQueryResult result = + new com.google.cloud.talent.v4beta1.HistogramQueryResult(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.histogramQuery_ = histogramQuery_; + result.histogram_ = internalGetHistogram(); + result.histogram_.makeImmutable(); + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.HistogramQueryResult) { + return mergeFrom((com.google.cloud.talent.v4beta1.HistogramQueryResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.HistogramQueryResult other) { + if (other == com.google.cloud.talent.v4beta1.HistogramQueryResult.getDefaultInstance()) + return this; + if (!other.getHistogramQuery().isEmpty()) { + histogramQuery_ = other.histogramQuery_; + onChanged(); + } + internalGetMutableHistogram().mergeFrom(other.internalGetHistogram()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.HistogramQueryResult parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.HistogramQueryResult) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object histogramQuery_ = ""; + /** + * + * + *
+     * Requested histogram expression.
+     * 
+ * + * string histogram_query = 1; + */ + public java.lang.String getHistogramQuery() { + java.lang.Object ref = histogramQuery_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + histogramQuery_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Requested histogram expression.
+     * 
+ * + * string histogram_query = 1; + */ + public com.google.protobuf.ByteString getHistogramQueryBytes() { + java.lang.Object ref = histogramQuery_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + histogramQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Requested histogram expression.
+     * 
+ * + * string histogram_query = 1; + */ + public Builder setHistogramQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + histogramQuery_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Requested histogram expression.
+     * 
+ * + * string histogram_query = 1; + */ + public Builder clearHistogramQuery() { + + histogramQuery_ = getDefaultInstance().getHistogramQuery(); + onChanged(); + return this; + } + /** + * + * + *
+     * Requested histogram expression.
+     * 
+ * + * string histogram_query = 1; + */ + public Builder setHistogramQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + histogramQuery_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField histogram_; + + private com.google.protobuf.MapField internalGetHistogram() { + if (histogram_ == null) { + return com.google.protobuf.MapField.emptyMapField(HistogramDefaultEntryHolder.defaultEntry); + } + return histogram_; + } + + private com.google.protobuf.MapField + internalGetMutableHistogram() { + onChanged(); + ; + if (histogram_ == null) { + histogram_ = + com.google.protobuf.MapField.newMapField(HistogramDefaultEntryHolder.defaultEntry); + } + if (!histogram_.isMutable()) { + histogram_ = histogram_.copy(); + } + return histogram_; + } + + public int getHistogramCount() { + return internalGetHistogram().getMap().size(); + } + /** + * + * + *
+     * A map from the values of the facet associated with distinct values to the
+     * number of matching entries with corresponding value.
+     * The key format is:
+     * * (for string histogram) string values stored in the field.
+     * * (for named numeric bucket) name specified in `bucket()` function, like
+     *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+     * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+     * example, `0-1000`, `MIN-0`, and `0-MAX`.
+     * 
+ * + * map<string, int64> histogram = 2; + */ + public boolean containsHistogram(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetHistogram().getMap().containsKey(key); + } + /** Use {@link #getHistogramMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getHistogram() { + return getHistogramMap(); + } + /** + * + * + *
+     * A map from the values of the facet associated with distinct values to the
+     * number of matching entries with corresponding value.
+     * The key format is:
+     * * (for string histogram) string values stored in the field.
+     * * (for named numeric bucket) name specified in `bucket()` function, like
+     *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+     * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+     * example, `0-1000`, `MIN-0`, and `0-MAX`.
+     * 
+ * + * map<string, int64> histogram = 2; + */ + public java.util.Map getHistogramMap() { + return internalGetHistogram().getMap(); + } + /** + * + * + *
+     * A map from the values of the facet associated with distinct values to the
+     * number of matching entries with corresponding value.
+     * The key format is:
+     * * (for string histogram) string values stored in the field.
+     * * (for named numeric bucket) name specified in `bucket()` function, like
+     *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+     * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+     * example, `0-1000`, `MIN-0`, and `0-MAX`.
+     * 
+ * + * map<string, int64> histogram = 2; + */ + public long getHistogramOrDefault(java.lang.String key, long defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetHistogram().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * A map from the values of the facet associated with distinct values to the
+     * number of matching entries with corresponding value.
+     * The key format is:
+     * * (for string histogram) string values stored in the field.
+     * * (for named numeric bucket) name specified in `bucket()` function, like
+     *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+     * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+     * example, `0-1000`, `MIN-0`, and `0-MAX`.
+     * 
+ * + * map<string, int64> histogram = 2; + */ + public long getHistogramOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetHistogram().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearHistogram() { + internalGetMutableHistogram().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * A map from the values of the facet associated with distinct values to the
+     * number of matching entries with corresponding value.
+     * The key format is:
+     * * (for string histogram) string values stored in the field.
+     * * (for named numeric bucket) name specified in `bucket()` function, like
+     *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+     * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+     * example, `0-1000`, `MIN-0`, and `0-MAX`.
+     * 
+ * + * map<string, int64> histogram = 2; + */ + public Builder removeHistogram(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableHistogram().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableHistogram() { + return internalGetMutableHistogram().getMutableMap(); + } + /** + * + * + *
+     * A map from the values of the facet associated with distinct values to the
+     * number of matching entries with corresponding value.
+     * The key format is:
+     * * (for string histogram) string values stored in the field.
+     * * (for named numeric bucket) name specified in `bucket()` function, like
+     *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+     * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+     * example, `0-1000`, `MIN-0`, and `0-MAX`.
+     * 
+ * + * map<string, int64> histogram = 2; + */ + public Builder putHistogram(java.lang.String key, long value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + + internalGetMutableHistogram().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * A map from the values of the facet associated with distinct values to the
+     * number of matching entries with corresponding value.
+     * The key format is:
+     * * (for string histogram) string values stored in the field.
+     * * (for named numeric bucket) name specified in `bucket()` function, like
+     *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+     * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+     * example, `0-1000`, `MIN-0`, and `0-MAX`.
+     * 
+ * + * map<string, int64> histogram = 2; + */ + public Builder putAllHistogram(java.util.Map values) { + internalGetMutableHistogram().getMutableMap().putAll(values); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.HistogramQueryResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.HistogramQueryResult) + private static final com.google.cloud.talent.v4beta1.HistogramQueryResult DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.HistogramQueryResult(); + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HistogramQueryResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HistogramQueryResult(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.HistogramQueryResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQueryResultOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQueryResultOrBuilder.java new file mode 100644 index 000000000000..ba2661a95da9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQueryResultOrBuilder.java @@ -0,0 +1,120 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/histogram.proto + +package com.google.cloud.talent.v4beta1; + +public interface HistogramQueryResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.HistogramQueryResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Requested histogram expression.
+   * 
+ * + * string histogram_query = 1; + */ + java.lang.String getHistogramQuery(); + /** + * + * + *
+   * Requested histogram expression.
+   * 
+ * + * string histogram_query = 1; + */ + com.google.protobuf.ByteString getHistogramQueryBytes(); + + /** + * + * + *
+   * A map from the values of the facet associated with distinct values to the
+   * number of matching entries with corresponding value.
+   * The key format is:
+   * * (for string histogram) string values stored in the field.
+   * * (for named numeric bucket) name specified in `bucket()` function, like
+   *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+   * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+   * example, `0-1000`, `MIN-0`, and `0-MAX`.
+   * 
+ * + * map<string, int64> histogram = 2; + */ + int getHistogramCount(); + /** + * + * + *
+   * A map from the values of the facet associated with distinct values to the
+   * number of matching entries with corresponding value.
+   * The key format is:
+   * * (for string histogram) string values stored in the field.
+   * * (for named numeric bucket) name specified in `bucket()` function, like
+   *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+   * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+   * example, `0-1000`, `MIN-0`, and `0-MAX`.
+   * 
+ * + * map<string, int64> histogram = 2; + */ + boolean containsHistogram(java.lang.String key); + /** Use {@link #getHistogramMap()} instead. */ + @java.lang.Deprecated + java.util.Map getHistogram(); + /** + * + * + *
+   * A map from the values of the facet associated with distinct values to the
+   * number of matching entries with corresponding value.
+   * The key format is:
+   * * (for string histogram) string values stored in the field.
+   * * (for named numeric bucket) name specified in `bucket()` function, like
+   *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+   * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+   * example, `0-1000`, `MIN-0`, and `0-MAX`.
+   * 
+ * + * map<string, int64> histogram = 2; + */ + java.util.Map getHistogramMap(); + /** + * + * + *
+   * A map from the values of the facet associated with distinct values to the
+   * number of matching entries with corresponding value.
+   * The key format is:
+   * * (for string histogram) string values stored in the field.
+   * * (for named numeric bucket) name specified in `bucket()` function, like
+   *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+   * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+   * example, `0-1000`, `MIN-0`, and `0-MAX`.
+   * 
+ * + * map<string, int64> histogram = 2; + */ + long getHistogramOrDefault(java.lang.String key, long defaultValue); + /** + * + * + *
+   * A map from the values of the facet associated with distinct values to the
+   * number of matching entries with corresponding value.
+   * The key format is:
+   * * (for string histogram) string values stored in the field.
+   * * (for named numeric bucket) name specified in `bucket()` function, like
+   *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+   * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+   * example, `0-1000`, `MIN-0`, and `0-MAX`.
+   * 
+ * + * map<string, int64> histogram = 2; + */ + long getHistogramOrThrow(java.lang.String key); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HtmlSanitization.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HtmlSanitization.java new file mode 100644 index 000000000000..9dad7e91641e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HtmlSanitization.java @@ -0,0 +1,154 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Option for HTML content sanitization on user input fields, for example, job
+ * description. By setting this option, user can determine whether and how
+ * sanitization is performed on these fields.
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.HtmlSanitization} + */ +public enum HtmlSanitization implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value.
+   * 
+ * + * HTML_SANITIZATION_UNSPECIFIED = 0; + */ + HTML_SANITIZATION_UNSPECIFIED(0), + /** + * + * + *
+   * Disables sanitization on HTML input.
+   * 
+ * + * HTML_SANITIZATION_DISABLED = 1; + */ + HTML_SANITIZATION_DISABLED(1), + /** + * + * + *
+   * Sanitizes HTML input, only accepts bold, italic, ordered list, and
+   * unordered list markup tags.
+   * 
+ * + * SIMPLE_FORMATTING_ONLY = 2; + */ + SIMPLE_FORMATTING_ONLY(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value.
+   * 
+ * + * HTML_SANITIZATION_UNSPECIFIED = 0; + */ + public static final int HTML_SANITIZATION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Disables sanitization on HTML input.
+   * 
+ * + * HTML_SANITIZATION_DISABLED = 1; + */ + public static final int HTML_SANITIZATION_DISABLED_VALUE = 1; + /** + * + * + *
+   * Sanitizes HTML input, only accepts bold, italic, ordered list, and
+   * unordered list markup tags.
+   * 
+ * + * SIMPLE_FORMATTING_ONLY = 2; + */ + public static final int SIMPLE_FORMATTING_ONLY_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static HtmlSanitization valueOf(int value) { + return forNumber(value); + } + + public static HtmlSanitization forNumber(int value) { + switch (value) { + case 0: + return HTML_SANITIZATION_UNSPECIFIED; + case 1: + return HTML_SANITIZATION_DISABLED; + case 2: + return SIMPLE_FORMATTING_ONLY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HtmlSanitization findValueByNumber(int number) { + return HtmlSanitization.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(9); + } + + private static final HtmlSanitization[] VALUES = values(); + + public static HtmlSanitization valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private HtmlSanitization(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.HtmlSanitization) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Job.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Job.java new file mode 100644 index 000000000000..b3a27d40fbe1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Job.java @@ -0,0 +1,12269 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * A Job resource represents a job posting (also referred to as a "job listing"
+ * or "job requisition"). A job belongs to a
+ * [Company][google.cloud.talent.v4beta1.Company], which is the hiring entity
+ * responsible for the job.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Job} + */ +public final class Job extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Job) + JobOrBuilder { + private static final long serialVersionUID = 0L; + // Use Job.newBuilder() to construct. + private Job(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Job() { + name_ = ""; + companyName_ = ""; + requisitionId_ = ""; + title_ = ""; + description_ = ""; + addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + jobBenefits_ = java.util.Collections.emptyList(); + degreeTypes_ = java.util.Collections.emptyList(); + department_ = ""; + employmentTypes_ = java.util.Collections.emptyList(); + incentives_ = ""; + languageCode_ = ""; + jobLevel_ = 0; + promotionValue_ = 0; + qualifications_ = ""; + responsibilities_ = ""; + postingRegion_ = 0; + visibility_ = 0; + companyDisplayName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Job( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + companyName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + requisitionId_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + title_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + addresses_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000020; + } + addresses_.add(s); + break; + } + case 58: + { + com.google.cloud.talent.v4beta1.Job.ApplicationInfo.Builder subBuilder = null; + if (applicationInfo_ != null) { + subBuilder = applicationInfo_.toBuilder(); + } + applicationInfo_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Job.ApplicationInfo.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(applicationInfo_); + applicationInfo_ = subBuilder.buildPartial(); + } + + break; + } + case 64: + { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + jobBenefits_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000080; + } + jobBenefits_.add(rawValue); + break; + } + case 66: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + jobBenefits_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000080; + } + jobBenefits_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 74: + { + com.google.cloud.talent.v4beta1.CompensationInfo.Builder subBuilder = null; + if (compensationInfo_ != null) { + subBuilder = compensationInfo_.toBuilder(); + } + compensationInfo_ = + input.readMessage( + com.google.cloud.talent.v4beta1.CompensationInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compensationInfo_); + compensationInfo_ = subBuilder.buildPartial(); + } + + break; + } + case 82: + { + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + customAttributes_ = + com.google.protobuf.MapField.newMapField( + CustomAttributesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000200; + } + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + customAttributes__ = + input.readMessage( + CustomAttributesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + customAttributes_ + .getMutableMap() + .put(customAttributes__.getKey(), customAttributes__.getValue()); + break; + } + case 88: + { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + degreeTypes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000400; + } + degreeTypes_.add(rawValue); + break; + } + case 90: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + degreeTypes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000400; + } + degreeTypes_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + + department_ = s; + break; + } + case 104: + { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + employmentTypes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00001000; + } + employmentTypes_.add(rawValue); + break; + } + case 106: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + employmentTypes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00001000; + } + employmentTypes_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 114: + { + java.lang.String s = input.readStringRequireUtf8(); + + incentives_ = s; + break; + } + case 122: + { + java.lang.String s = input.readStringRequireUtf8(); + + languageCode_ = s; + break; + } + case 128: + { + int rawValue = input.readEnum(); + + jobLevel_ = rawValue; + break; + } + case 136: + { + promotionValue_ = input.readInt32(); + break; + } + case 146: + { + java.lang.String s = input.readStringRequireUtf8(); + + qualifications_ = s; + break; + } + case 154: + { + java.lang.String s = input.readStringRequireUtf8(); + + responsibilities_ = s; + break; + } + case 160: + { + int rawValue = input.readEnum(); + + postingRegion_ = rawValue; + break; + } + case 168: + { + int rawValue = input.readEnum(); + + visibility_ = rawValue; + break; + } + case 178: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (jobStartTime_ != null) { + subBuilder = jobStartTime_.toBuilder(); + } + jobStartTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(jobStartTime_); + jobStartTime_ = subBuilder.buildPartial(); + } + + break; + } + case 186: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (jobEndTime_ != null) { + subBuilder = jobEndTime_.toBuilder(); + } + jobEndTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(jobEndTime_); + jobEndTime_ = subBuilder.buildPartial(); + } + + break; + } + case 194: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (postingPublishTime_ != null) { + subBuilder = postingPublishTime_.toBuilder(); + } + postingPublishTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(postingPublishTime_); + postingPublishTime_ = subBuilder.buildPartial(); + } + + break; + } + case 202: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (postingExpireTime_ != null) { + subBuilder = postingExpireTime_.toBuilder(); + } + postingExpireTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(postingExpireTime_); + postingExpireTime_ = subBuilder.buildPartial(); + } + + break; + } + case 210: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (postingCreateTime_ != null) { + subBuilder = postingCreateTime_.toBuilder(); + } + postingCreateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(postingCreateTime_); + postingCreateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 218: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (postingUpdateTime_ != null) { + subBuilder = postingUpdateTime_.toBuilder(); + } + postingUpdateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(postingUpdateTime_); + postingUpdateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 226: + { + java.lang.String s = input.readStringRequireUtf8(); + + companyDisplayName_ = s; + break; + } + case 234: + { + com.google.cloud.talent.v4beta1.Job.DerivedInfo.Builder subBuilder = null; + if (derivedInfo_ != null) { + subBuilder = derivedInfo_.toBuilder(); + } + derivedInfo_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Job.DerivedInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(derivedInfo_); + derivedInfo_ = subBuilder.buildPartial(); + } + + break; + } + case 242: + { + com.google.cloud.talent.v4beta1.Job.ProcessingOptions.Builder subBuilder = null; + if (processingOptions_ != null) { + subBuilder = processingOptions_.toBuilder(); + } + processingOptions_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Job.ProcessingOptions.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(processingOptions_); + processingOptions_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + addresses_ = addresses_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + jobBenefits_ = java.util.Collections.unmodifiableList(jobBenefits_); + } + if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + degreeTypes_ = java.util.Collections.unmodifiableList(degreeTypes_); + } + if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + employmentTypes_ = java.util.Collections.unmodifiableList(employmentTypes_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 10: + return internalGetCustomAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Job.class, + com.google.cloud.talent.v4beta1.Job.Builder.class); + } + + public interface ApplicationInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Job.ApplicationInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to specify email address(es) to which resumes or
+     * applications can be sent.
+     * The maximum number of allowed characters for each entry is 255.
+     * 
+ * + * repeated string emails = 1; + */ + java.util.List getEmailsList(); + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to specify email address(es) to which resumes or
+     * applications can be sent.
+     * The maximum number of allowed characters for each entry is 255.
+     * 
+ * + * repeated string emails = 1; + */ + int getEmailsCount(); + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to specify email address(es) to which resumes or
+     * applications can be sent.
+     * The maximum number of allowed characters for each entry is 255.
+     * 
+ * + * repeated string emails = 1; + */ + java.lang.String getEmails(int index); + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to specify email address(es) to which resumes or
+     * applications can be sent.
+     * The maximum number of allowed characters for each entry is 255.
+     * 
+ * + * repeated string emails = 1; + */ + com.google.protobuf.ByteString getEmailsBytes(int index); + + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to provide instructions, such as "Mail your application
+     * to ...", that a candidate can follow to apply for the job.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 3,000.
+     * 
+ * + * string instruction = 2; + */ + java.lang.String getInstruction(); + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to provide instructions, such as "Mail your application
+     * to ...", that a candidate can follow to apply for the job.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 3,000.
+     * 
+ * + * string instruction = 2; + */ + com.google.protobuf.ByteString getInstructionBytes(); + + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this URI field to direct an applicant to a website, for example to
+     * link to an online application form.
+     * The maximum number of allowed characters for each entry is 2,000.
+     * 
+ * + * repeated string uris = 3; + */ + java.util.List getUrisList(); + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this URI field to direct an applicant to a website, for example to
+     * link to an online application form.
+     * The maximum number of allowed characters for each entry is 2,000.
+     * 
+ * + * repeated string uris = 3; + */ + int getUrisCount(); + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this URI field to direct an applicant to a website, for example to
+     * link to an online application form.
+     * The maximum number of allowed characters for each entry is 2,000.
+     * 
+ * + * repeated string uris = 3; + */ + java.lang.String getUris(int index); + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this URI field to direct an applicant to a website, for example to
+     * link to an online application form.
+     * The maximum number of allowed characters for each entry is 2,000.
+     * 
+ * + * repeated string uris = 3; + */ + com.google.protobuf.ByteString getUrisBytes(int index); + } + /** + * + * + *
+   * Application related details of a job posting.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Job.ApplicationInfo} + */ + public static final class ApplicationInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Job.ApplicationInfo) + ApplicationInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApplicationInfo.newBuilder() to construct. + private ApplicationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApplicationInfo() { + emails_ = com.google.protobuf.LazyStringArrayList.EMPTY; + instruction_ = ""; + uris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ApplicationInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + emails_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + emails_.add(s); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + instruction_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + uris_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + uris_.add(s); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + emails_ = emails_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + uris_ = uris_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_ApplicationInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_ApplicationInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Job.ApplicationInfo.class, + com.google.cloud.talent.v4beta1.Job.ApplicationInfo.Builder.class); + } + + private int bitField0_; + public static final int EMAILS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList emails_; + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to specify email address(es) to which resumes or
+     * applications can be sent.
+     * The maximum number of allowed characters for each entry is 255.
+     * 
+ * + * repeated string emails = 1; + */ + public com.google.protobuf.ProtocolStringList getEmailsList() { + return emails_; + } + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to specify email address(es) to which resumes or
+     * applications can be sent.
+     * The maximum number of allowed characters for each entry is 255.
+     * 
+ * + * repeated string emails = 1; + */ + public int getEmailsCount() { + return emails_.size(); + } + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to specify email address(es) to which resumes or
+     * applications can be sent.
+     * The maximum number of allowed characters for each entry is 255.
+     * 
+ * + * repeated string emails = 1; + */ + public java.lang.String getEmails(int index) { + return emails_.get(index); + } + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to specify email address(es) to which resumes or
+     * applications can be sent.
+     * The maximum number of allowed characters for each entry is 255.
+     * 
+ * + * repeated string emails = 1; + */ + public com.google.protobuf.ByteString getEmailsBytes(int index) { + return emails_.getByteString(index); + } + + public static final int INSTRUCTION_FIELD_NUMBER = 2; + private volatile java.lang.Object instruction_; + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to provide instructions, such as "Mail your application
+     * to ...", that a candidate can follow to apply for the job.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 3,000.
+     * 
+ * + * string instruction = 2; + */ + public java.lang.String getInstruction() { + java.lang.Object ref = instruction_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instruction_ = s; + return s; + } + } + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to provide instructions, such as "Mail your application
+     * to ...", that a candidate can follow to apply for the job.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 3,000.
+     * 
+ * + * string instruction = 2; + */ + public com.google.protobuf.ByteString getInstructionBytes() { + java.lang.Object ref = instruction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instruction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URIS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList uris_; + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this URI field to direct an applicant to a website, for example to
+     * link to an online application form.
+     * The maximum number of allowed characters for each entry is 2,000.
+     * 
+ * + * repeated string uris = 3; + */ + public com.google.protobuf.ProtocolStringList getUrisList() { + return uris_; + } + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this URI field to direct an applicant to a website, for example to
+     * link to an online application form.
+     * The maximum number of allowed characters for each entry is 2,000.
+     * 
+ * + * repeated string uris = 3; + */ + public int getUrisCount() { + return uris_.size(); + } + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this URI field to direct an applicant to a website, for example to
+     * link to an online application form.
+     * The maximum number of allowed characters for each entry is 2,000.
+     * 
+ * + * repeated string uris = 3; + */ + public java.lang.String getUris(int index) { + return uris_.get(index); + } + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this URI field to direct an applicant to a website, for example to
+     * link to an online application form.
+     * The maximum number of allowed characters for each entry is 2,000.
+     * 
+ * + * repeated string uris = 3; + */ + public com.google.protobuf.ByteString getUrisBytes(int index) { + return uris_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < emails_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, emails_.getRaw(i)); + } + if (!getInstructionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instruction_); + } + for (int i = 0; i < uris_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uris_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < emails_.size(); i++) { + dataSize += computeStringSizeNoTag(emails_.getRaw(i)); + } + size += dataSize; + size += 1 * getEmailsList().size(); + } + if (!getInstructionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instruction_); + } + { + int dataSize = 0; + for (int i = 0; i < uris_.size(); i++) { + dataSize += computeStringSizeNoTag(uris_.getRaw(i)); + } + size += dataSize; + size += 1 * getUrisList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Job.ApplicationInfo)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Job.ApplicationInfo other = + (com.google.cloud.talent.v4beta1.Job.ApplicationInfo) obj; + + boolean result = true; + result = result && getEmailsList().equals(other.getEmailsList()); + result = result && getInstruction().equals(other.getInstruction()); + result = result && getUrisList().equals(other.getUrisList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEmailsCount() > 0) { + hash = (37 * hash) + EMAILS_FIELD_NUMBER; + hash = (53 * hash) + getEmailsList().hashCode(); + } + hash = (37 * hash) + INSTRUCTION_FIELD_NUMBER; + hash = (53 * hash) + getInstruction().hashCode(); + if (getUrisCount() > 0) { + hash = (37 * hash) + URIS_FIELD_NUMBER; + hash = (53 * hash) + getUrisList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.Job.ApplicationInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Application related details of a job posting.
+     * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Job.ApplicationInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Job.ApplicationInfo) + com.google.cloud.talent.v4beta1.Job.ApplicationInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_ApplicationInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_ApplicationInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Job.ApplicationInfo.class, + com.google.cloud.talent.v4beta1.Job.ApplicationInfo.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Job.ApplicationInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + emails_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + instruction_ = ""; + + uris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_ApplicationInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job.ApplicationInfo getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Job.ApplicationInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job.ApplicationInfo build() { + com.google.cloud.talent.v4beta1.Job.ApplicationInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job.ApplicationInfo buildPartial() { + com.google.cloud.talent.v4beta1.Job.ApplicationInfo result = + new com.google.cloud.talent.v4beta1.Job.ApplicationInfo(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + emails_ = emails_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.emails_ = emails_; + result.instruction_ = instruction_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + uris_ = uris_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.uris_ = uris_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Job.ApplicationInfo) { + return mergeFrom((com.google.cloud.talent.v4beta1.Job.ApplicationInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Job.ApplicationInfo other) { + if (other == com.google.cloud.talent.v4beta1.Job.ApplicationInfo.getDefaultInstance()) + return this; + if (!other.emails_.isEmpty()) { + if (emails_.isEmpty()) { + emails_ = other.emails_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEmailsIsMutable(); + emails_.addAll(other.emails_); + } + onChanged(); + } + if (!other.getInstruction().isEmpty()) { + instruction_ = other.instruction_; + onChanged(); + } + if (!other.uris_.isEmpty()) { + if (uris_.isEmpty()) { + uris_ = other.uris_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureUrisIsMutable(); + uris_.addAll(other.uris_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Job.ApplicationInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.Job.ApplicationInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList emails_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureEmailsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + emails_ = new com.google.protobuf.LazyStringArrayList(emails_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to specify email address(es) to which resumes or
+       * applications can be sent.
+       * The maximum number of allowed characters for each entry is 255.
+       * 
+ * + * repeated string emails = 1; + */ + public com.google.protobuf.ProtocolStringList getEmailsList() { + return emails_.getUnmodifiableView(); + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to specify email address(es) to which resumes or
+       * applications can be sent.
+       * The maximum number of allowed characters for each entry is 255.
+       * 
+ * + * repeated string emails = 1; + */ + public int getEmailsCount() { + return emails_.size(); + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to specify email address(es) to which resumes or
+       * applications can be sent.
+       * The maximum number of allowed characters for each entry is 255.
+       * 
+ * + * repeated string emails = 1; + */ + public java.lang.String getEmails(int index) { + return emails_.get(index); + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to specify email address(es) to which resumes or
+       * applications can be sent.
+       * The maximum number of allowed characters for each entry is 255.
+       * 
+ * + * repeated string emails = 1; + */ + public com.google.protobuf.ByteString getEmailsBytes(int index) { + return emails_.getByteString(index); + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to specify email address(es) to which resumes or
+       * applications can be sent.
+       * The maximum number of allowed characters for each entry is 255.
+       * 
+ * + * repeated string emails = 1; + */ + public Builder setEmails(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmailsIsMutable(); + emails_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to specify email address(es) to which resumes or
+       * applications can be sent.
+       * The maximum number of allowed characters for each entry is 255.
+       * 
+ * + * repeated string emails = 1; + */ + public Builder addEmails(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmailsIsMutable(); + emails_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to specify email address(es) to which resumes or
+       * applications can be sent.
+       * The maximum number of allowed characters for each entry is 255.
+       * 
+ * + * repeated string emails = 1; + */ + public Builder addAllEmails(java.lang.Iterable values) { + ensureEmailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, emails_); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to specify email address(es) to which resumes or
+       * applications can be sent.
+       * The maximum number of allowed characters for each entry is 255.
+       * 
+ * + * repeated string emails = 1; + */ + public Builder clearEmails() { + emails_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to specify email address(es) to which resumes or
+       * applications can be sent.
+       * The maximum number of allowed characters for each entry is 255.
+       * 
+ * + * repeated string emails = 1; + */ + public Builder addEmailsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureEmailsIsMutable(); + emails_.add(value); + onChanged(); + return this; + } + + private java.lang.Object instruction_ = ""; + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to provide instructions, such as "Mail your application
+       * to ...", that a candidate can follow to apply for the job.
+       * This field accepts and sanitizes HTML input, and also accepts
+       * bold, italic, ordered list, and unordered list markup tags.
+       * The maximum number of allowed characters is 3,000.
+       * 
+ * + * string instruction = 2; + */ + public java.lang.String getInstruction() { + java.lang.Object ref = instruction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instruction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to provide instructions, such as "Mail your application
+       * to ...", that a candidate can follow to apply for the job.
+       * This field accepts and sanitizes HTML input, and also accepts
+       * bold, italic, ordered list, and unordered list markup tags.
+       * The maximum number of allowed characters is 3,000.
+       * 
+ * + * string instruction = 2; + */ + public com.google.protobuf.ByteString getInstructionBytes() { + java.lang.Object ref = instruction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instruction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to provide instructions, such as "Mail your application
+       * to ...", that a candidate can follow to apply for the job.
+       * This field accepts and sanitizes HTML input, and also accepts
+       * bold, italic, ordered list, and unordered list markup tags.
+       * The maximum number of allowed characters is 3,000.
+       * 
+ * + * string instruction = 2; + */ + public Builder setInstruction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + instruction_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to provide instructions, such as "Mail your application
+       * to ...", that a candidate can follow to apply for the job.
+       * This field accepts and sanitizes HTML input, and also accepts
+       * bold, italic, ordered list, and unordered list markup tags.
+       * The maximum number of allowed characters is 3,000.
+       * 
+ * + * string instruction = 2; + */ + public Builder clearInstruction() { + + instruction_ = getDefaultInstance().getInstruction(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to provide instructions, such as "Mail your application
+       * to ...", that a candidate can follow to apply for the job.
+       * This field accepts and sanitizes HTML input, and also accepts
+       * bold, italic, ordered list, and unordered list markup tags.
+       * The maximum number of allowed characters is 3,000.
+       * 
+ * + * string instruction = 2; + */ + public Builder setInstructionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + instruction_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList uris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUrisIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + uris_ = new com.google.protobuf.LazyStringArrayList(uris_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this URI field to direct an applicant to a website, for example to
+       * link to an online application form.
+       * The maximum number of allowed characters for each entry is 2,000.
+       * 
+ * + * repeated string uris = 3; + */ + public com.google.protobuf.ProtocolStringList getUrisList() { + return uris_.getUnmodifiableView(); + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this URI field to direct an applicant to a website, for example to
+       * link to an online application form.
+       * The maximum number of allowed characters for each entry is 2,000.
+       * 
+ * + * repeated string uris = 3; + */ + public int getUrisCount() { + return uris_.size(); + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this URI field to direct an applicant to a website, for example to
+       * link to an online application form.
+       * The maximum number of allowed characters for each entry is 2,000.
+       * 
+ * + * repeated string uris = 3; + */ + public java.lang.String getUris(int index) { + return uris_.get(index); + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this URI field to direct an applicant to a website, for example to
+       * link to an online application form.
+       * The maximum number of allowed characters for each entry is 2,000.
+       * 
+ * + * repeated string uris = 3; + */ + public com.google.protobuf.ByteString getUrisBytes(int index) { + return uris_.getByteString(index); + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this URI field to direct an applicant to a website, for example to
+       * link to an online application form.
+       * The maximum number of allowed characters for each entry is 2,000.
+       * 
+ * + * repeated string uris = 3; + */ + public Builder setUris(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUrisIsMutable(); + uris_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this URI field to direct an applicant to a website, for example to
+       * link to an online application form.
+       * The maximum number of allowed characters for each entry is 2,000.
+       * 
+ * + * repeated string uris = 3; + */ + public Builder addUris(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUrisIsMutable(); + uris_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this URI field to direct an applicant to a website, for example to
+       * link to an online application form.
+       * The maximum number of allowed characters for each entry is 2,000.
+       * 
+ * + * repeated string uris = 3; + */ + public Builder addAllUris(java.lang.Iterable values) { + ensureUrisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uris_); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this URI field to direct an applicant to a website, for example to
+       * link to an online application form.
+       * The maximum number of allowed characters for each entry is 2,000.
+       * 
+ * + * repeated string uris = 3; + */ + public Builder clearUris() { + uris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this URI field to direct an applicant to a website, for example to
+       * link to an online application form.
+       * The maximum number of allowed characters for each entry is 2,000.
+       * 
+ * + * repeated string uris = 3; + */ + public Builder addUrisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUrisIsMutable(); + uris_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Job.ApplicationInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Job.ApplicationInfo) + private static final com.google.cloud.talent.v4beta1.Job.ApplicationInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Job.ApplicationInfo(); + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplicationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApplicationInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job.ApplicationInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DerivedInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Job.DerivedInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Structured locations of the job, resolved from
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+     * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+     * exactly matched to
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+     * order.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + java.util.List getLocationsList(); + /** + * + * + *
+     * Structured locations of the job, resolved from
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+     * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+     * exactly matched to
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+     * order.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + com.google.cloud.talent.v4beta1.Location getLocations(int index); + /** + * + * + *
+     * Structured locations of the job, resolved from
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+     * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+     * exactly matched to
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+     * order.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + int getLocationsCount(); + /** + * + * + *
+     * Structured locations of the job, resolved from
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+     * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+     * exactly matched to
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+     * order.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + java.util.List + getLocationsOrBuilderList(); + /** + * + * + *
+     * Structured locations of the job, resolved from
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+     * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+     * exactly matched to
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+     * order.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + com.google.cloud.talent.v4beta1.LocationOrBuilder getLocationsOrBuilder(int index); + + /** + * + * + *
+     * Job categories derived from
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + java.util.List getJobCategoriesList(); + /** + * + * + *
+     * Job categories derived from
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + int getJobCategoriesCount(); + /** + * + * + *
+     * Job categories derived from
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + com.google.cloud.talent.v4beta1.JobCategory getJobCategories(int index); + /** + * + * + *
+     * Job categories derived from
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + java.util.List getJobCategoriesValueList(); + /** + * + * + *
+     * Job categories derived from
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + int getJobCategoriesValue(int index); + } + /** + * + * + *
+   * Output only.
+   * Derived details about the job posting.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Job.DerivedInfo} + */ + public static final class DerivedInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Job.DerivedInfo) + DerivedInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use DerivedInfo.newBuilder() to construct. + private DerivedInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DerivedInfo() { + locations_ = java.util.Collections.emptyList(); + jobCategories_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DerivedInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + locations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + locations_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Location.parser(), extensionRegistry)); + break; + } + case 24: + { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + jobCategories_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + jobCategories_.add(rawValue); + break; + } + case 26: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + jobCategories_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + jobCategories_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + locations_ = java.util.Collections.unmodifiableList(locations_); + } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + jobCategories_ = java.util.Collections.unmodifiableList(jobCategories_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_DerivedInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_DerivedInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Job.DerivedInfo.class, + com.google.cloud.talent.v4beta1.Job.DerivedInfo.Builder.class); + } + + public static final int LOCATIONS_FIELD_NUMBER = 1; + private java.util.List locations_; + /** + * + * + *
+     * Structured locations of the job, resolved from
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+     * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+     * exactly matched to
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+     * order.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public java.util.List getLocationsList() { + return locations_; + } + /** + * + * + *
+     * Structured locations of the job, resolved from
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+     * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+     * exactly matched to
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+     * order.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public java.util.List + getLocationsOrBuilderList() { + return locations_; + } + /** + * + * + *
+     * Structured locations of the job, resolved from
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+     * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+     * exactly matched to
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+     * order.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+     * Structured locations of the job, resolved from
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+     * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+     * exactly matched to
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+     * order.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public com.google.cloud.talent.v4beta1.Location getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+     * Structured locations of the job, resolved from
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+     * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+     * exactly matched to
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+     * order.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public com.google.cloud.talent.v4beta1.LocationOrBuilder getLocationsOrBuilder(int index) { + return locations_.get(index); + } + + public static final int JOB_CATEGORIES_FIELD_NUMBER = 3; + private java.util.List jobCategories_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobCategory> + jobCategories_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobCategory>() { + public com.google.cloud.talent.v4beta1.JobCategory convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobCategory result = + com.google.cloud.talent.v4beta1.JobCategory.valueOf(from); + return result == null + ? com.google.cloud.talent.v4beta1.JobCategory.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+     * Job categories derived from
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public java.util.List getJobCategoriesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobCategory>( + jobCategories_, jobCategories_converter_); + } + /** + * + * + *
+     * Job categories derived from
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public int getJobCategoriesCount() { + return jobCategories_.size(); + } + /** + * + * + *
+     * Job categories derived from
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public com.google.cloud.talent.v4beta1.JobCategory getJobCategories(int index) { + return jobCategories_converter_.convert(jobCategories_.get(index)); + } + /** + * + * + *
+     * Job categories derived from
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public java.util.List getJobCategoriesValueList() { + return jobCategories_; + } + /** + * + * + *
+     * Job categories derived from
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public int getJobCategoriesValue(int index) { + return jobCategories_.get(index); + } + + private int jobCategoriesMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + for (int i = 0; i < locations_.size(); i++) { + output.writeMessage(1, locations_.get(i)); + } + if (getJobCategoriesList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(jobCategoriesMemoizedSerializedSize); + } + for (int i = 0; i < jobCategories_.size(); i++) { + output.writeEnumNoTag(jobCategories_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < locations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, locations_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < jobCategories_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(jobCategories_.get(i)); + } + size += dataSize; + if (!getJobCategoriesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + jobCategoriesMemoizedSerializedSize = dataSize; + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Job.DerivedInfo)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Job.DerivedInfo other = + (com.google.cloud.talent.v4beta1.Job.DerivedInfo) obj; + + boolean result = true; + result = result && getLocationsList().equals(other.getLocationsList()); + result = result && jobCategories_.equals(other.jobCategories_); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getLocationsCount() > 0) { + hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getLocationsList().hashCode(); + } + if (getJobCategoriesCount() > 0) { + hash = (37 * hash) + JOB_CATEGORIES_FIELD_NUMBER; + hash = (53 * hash) + jobCategories_.hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.Job.DerivedInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Output only.
+     * Derived details about the job posting.
+     * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Job.DerivedInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Job.DerivedInfo) + com.google.cloud.talent.v4beta1.Job.DerivedInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_DerivedInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_DerivedInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Job.DerivedInfo.class, + com.google.cloud.talent.v4beta1.Job.DerivedInfo.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Job.DerivedInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLocationsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (locationsBuilder_ == null) { + locations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + locationsBuilder_.clear(); + } + jobCategories_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_DerivedInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job.DerivedInfo getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Job.DerivedInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job.DerivedInfo build() { + com.google.cloud.talent.v4beta1.Job.DerivedInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job.DerivedInfo buildPartial() { + com.google.cloud.talent.v4beta1.Job.DerivedInfo result = + new com.google.cloud.talent.v4beta1.Job.DerivedInfo(this); + int from_bitField0_ = bitField0_; + if (locationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + locations_ = java.util.Collections.unmodifiableList(locations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.locations_ = locations_; + } else { + result.locations_ = locationsBuilder_.build(); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + jobCategories_ = java.util.Collections.unmodifiableList(jobCategories_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.jobCategories_ = jobCategories_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Job.DerivedInfo) { + return mergeFrom((com.google.cloud.talent.v4beta1.Job.DerivedInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Job.DerivedInfo other) { + if (other == com.google.cloud.talent.v4beta1.Job.DerivedInfo.getDefaultInstance()) + return this; + if (locationsBuilder_ == null) { + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + } else { + if (!other.locations_.isEmpty()) { + if (locationsBuilder_.isEmpty()) { + locationsBuilder_.dispose(); + locationsBuilder_ = null; + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000001); + locationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLocationsFieldBuilder() + : null; + } else { + locationsBuilder_.addAllMessages(other.locations_); + } + } + } + if (!other.jobCategories_.isEmpty()) { + if (jobCategories_.isEmpty()) { + jobCategories_ = other.jobCategories_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureJobCategoriesIsMutable(); + jobCategories_.addAll(other.jobCategories_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Job.DerivedInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.Job.DerivedInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List locations_ = + java.util.Collections.emptyList(); + + private void ensureLocationsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + locations_ = + new java.util.ArrayList(locations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder> + locationsBuilder_; + + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public java.util.List getLocationsList() { + if (locationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(locations_); + } else { + return locationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public int getLocationsCount() { + if (locationsBuilder_ == null) { + return locations_.size(); + } else { + return locationsBuilder_.getCount(); + } + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public com.google.cloud.talent.v4beta1.Location getLocations(int index) { + if (locationsBuilder_ == null) { + return locations_.get(index); + } else { + return locationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public Builder setLocations(int index, com.google.cloud.talent.v4beta1.Location value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.set(index, value); + onChanged(); + } else { + locationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public Builder setLocations( + int index, com.google.cloud.talent.v4beta1.Location.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.set(index, builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public Builder addLocations(com.google.cloud.talent.v4beta1.Location value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + } else { + locationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public Builder addLocations(int index, com.google.cloud.talent.v4beta1.Location value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(index, value); + onChanged(); + } else { + locationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public Builder addLocations( + com.google.cloud.talent.v4beta1.Location.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public Builder addLocations( + int index, com.google.cloud.talent.v4beta1.Location.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(index, builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public Builder addAllLocations( + java.lang.Iterable values) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); + onChanged(); + } else { + locationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public Builder clearLocations() { + if (locationsBuilder_ == null) { + locations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + locationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public Builder removeLocations(int index) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.remove(index); + onChanged(); + } else { + locationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public com.google.cloud.talent.v4beta1.Location.Builder getLocationsBuilder(int index) { + return getLocationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public com.google.cloud.talent.v4beta1.LocationOrBuilder getLocationsOrBuilder(int index) { + if (locationsBuilder_ == null) { + return locations_.get(index); + } else { + return locationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public java.util.List + getLocationsOrBuilderList() { + if (locationsBuilder_ != null) { + return locationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(locations_); + } + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public com.google.cloud.talent.v4beta1.Location.Builder addLocationsBuilder() { + return getLocationsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Location.getDefaultInstance()); + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public com.google.cloud.talent.v4beta1.Location.Builder addLocationsBuilder(int index) { + return getLocationsFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Location.getDefaultInstance()); + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public java.util.List + getLocationsBuilderList() { + return getLocationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder> + getLocationsFieldBuilder() { + if (locationsBuilder_ == null) { + locationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder>( + locations_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + locations_ = null; + } + return locationsBuilder_; + } + + private java.util.List jobCategories_ = java.util.Collections.emptyList(); + + private void ensureJobCategoriesIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + jobCategories_ = new java.util.ArrayList(jobCategories_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public java.util.List getJobCategoriesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobCategory>( + jobCategories_, jobCategories_converter_); + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public int getJobCategoriesCount() { + return jobCategories_.size(); + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public com.google.cloud.talent.v4beta1.JobCategory getJobCategories(int index) { + return jobCategories_converter_.convert(jobCategories_.get(index)); + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public Builder setJobCategories( + int index, com.google.cloud.talent.v4beta1.JobCategory value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobCategoriesIsMutable(); + jobCategories_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public Builder addJobCategories(com.google.cloud.talent.v4beta1.JobCategory value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobCategoriesIsMutable(); + jobCategories_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public Builder addAllJobCategories( + java.lang.Iterable values) { + ensureJobCategoriesIsMutable(); + for (com.google.cloud.talent.v4beta1.JobCategory value : values) { + jobCategories_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public Builder clearJobCategories() { + jobCategories_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public java.util.List getJobCategoriesValueList() { + return java.util.Collections.unmodifiableList(jobCategories_); + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public int getJobCategoriesValue(int index) { + return jobCategories_.get(index); + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public Builder setJobCategoriesValue(int index, int value) { + ensureJobCategoriesIsMutable(); + jobCategories_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public Builder addJobCategoriesValue(int value) { + ensureJobCategoriesIsMutable(); + jobCategories_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public Builder addAllJobCategoriesValue(java.lang.Iterable values) { + ensureJobCategoriesIsMutable(); + for (int value : values) { + jobCategories_.add(value); + } + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Job.DerivedInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Job.DerivedInfo) + private static final com.google.cloud.talent.v4beta1.Job.DerivedInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Job.DerivedInfo(); + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DerivedInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DerivedInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job.DerivedInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ProcessingOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Job.ProcessingOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional.
+     * If set to `true`, the service does not attempt to resolve a
+     * more precise address for the job.
+     * 
+ * + * bool disable_street_address_resolution = 1; + */ + boolean getDisableStreetAddressResolution(); + + /** + * + * + *
+     * Optional.
+     * Option for job HTML content sanitization. Applied fields are:
+     * * description
+     * * applicationInfo.instruction
+     * * incentives
+     * * qualifications
+     * * responsibilities
+     * HTML tags in these fields may be stripped if sanitiazation isn't
+     * disabled.
+     * Defaults to
+     * [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent.v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY].
+     * 
+ * + * .google.cloud.talent.v4beta1.HtmlSanitization html_sanitization = 2; + */ + int getHtmlSanitizationValue(); + /** + * + * + *
+     * Optional.
+     * Option for job HTML content sanitization. Applied fields are:
+     * * description
+     * * applicationInfo.instruction
+     * * incentives
+     * * qualifications
+     * * responsibilities
+     * HTML tags in these fields may be stripped if sanitiazation isn't
+     * disabled.
+     * Defaults to
+     * [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent.v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY].
+     * 
+ * + * .google.cloud.talent.v4beta1.HtmlSanitization html_sanitization = 2; + */ + com.google.cloud.talent.v4beta1.HtmlSanitization getHtmlSanitization(); + } + /** + * + * + *
+   * Input only.
+   * Options for job processing.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Job.ProcessingOptions} + */ + public static final class ProcessingOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Job.ProcessingOptions) + ProcessingOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProcessingOptions.newBuilder() to construct. + private ProcessingOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ProcessingOptions() { + disableStreetAddressResolution_ = false; + htmlSanitization_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ProcessingOptions( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + disableStreetAddressResolution_ = input.readBool(); + break; + } + case 16: + { + int rawValue = input.readEnum(); + + htmlSanitization_ = rawValue; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_ProcessingOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_ProcessingOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Job.ProcessingOptions.class, + com.google.cloud.talent.v4beta1.Job.ProcessingOptions.Builder.class); + } + + public static final int DISABLE_STREET_ADDRESS_RESOLUTION_FIELD_NUMBER = 1; + private boolean disableStreetAddressResolution_; + /** + * + * + *
+     * Optional.
+     * If set to `true`, the service does not attempt to resolve a
+     * more precise address for the job.
+     * 
+ * + * bool disable_street_address_resolution = 1; + */ + public boolean getDisableStreetAddressResolution() { + return disableStreetAddressResolution_; + } + + public static final int HTML_SANITIZATION_FIELD_NUMBER = 2; + private int htmlSanitization_; + /** + * + * + *
+     * Optional.
+     * Option for job HTML content sanitization. Applied fields are:
+     * * description
+     * * applicationInfo.instruction
+     * * incentives
+     * * qualifications
+     * * responsibilities
+     * HTML tags in these fields may be stripped if sanitiazation isn't
+     * disabled.
+     * Defaults to
+     * [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent.v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY].
+     * 
+ * + * .google.cloud.talent.v4beta1.HtmlSanitization html_sanitization = 2; + */ + public int getHtmlSanitizationValue() { + return htmlSanitization_; + } + /** + * + * + *
+     * Optional.
+     * Option for job HTML content sanitization. Applied fields are:
+     * * description
+     * * applicationInfo.instruction
+     * * incentives
+     * * qualifications
+     * * responsibilities
+     * HTML tags in these fields may be stripped if sanitiazation isn't
+     * disabled.
+     * Defaults to
+     * [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent.v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY].
+     * 
+ * + * .google.cloud.talent.v4beta1.HtmlSanitization html_sanitization = 2; + */ + public com.google.cloud.talent.v4beta1.HtmlSanitization getHtmlSanitization() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.HtmlSanitization result = + com.google.cloud.talent.v4beta1.HtmlSanitization.valueOf(htmlSanitization_); + return result == null + ? com.google.cloud.talent.v4beta1.HtmlSanitization.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (disableStreetAddressResolution_ != false) { + output.writeBool(1, disableStreetAddressResolution_); + } + if (htmlSanitization_ + != com.google.cloud.talent.v4beta1.HtmlSanitization.HTML_SANITIZATION_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, htmlSanitization_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (disableStreetAddressResolution_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 1, disableStreetAddressResolution_); + } + if (htmlSanitization_ + != com.google.cloud.talent.v4beta1.HtmlSanitization.HTML_SANITIZATION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, htmlSanitization_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Job.ProcessingOptions)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Job.ProcessingOptions other = + (com.google.cloud.talent.v4beta1.Job.ProcessingOptions) obj; + + boolean result = true; + result = + result + && (getDisableStreetAddressResolution() == other.getDisableStreetAddressResolution()); + result = result && htmlSanitization_ == other.htmlSanitization_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISABLE_STREET_ADDRESS_RESOLUTION_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getDisableStreetAddressResolution()); + hash = (37 * hash) + HTML_SANITIZATION_FIELD_NUMBER; + hash = (53 * hash) + htmlSanitization_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.Job.ProcessingOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Input only.
+     * Options for job processing.
+     * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Job.ProcessingOptions} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Job.ProcessingOptions) + com.google.cloud.talent.v4beta1.Job.ProcessingOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_ProcessingOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_ProcessingOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Job.ProcessingOptions.class, + com.google.cloud.talent.v4beta1.Job.ProcessingOptions.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Job.ProcessingOptions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + disableStreetAddressResolution_ = false; + + htmlSanitization_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_ProcessingOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job.ProcessingOptions getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Job.ProcessingOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job.ProcessingOptions build() { + com.google.cloud.talent.v4beta1.Job.ProcessingOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job.ProcessingOptions buildPartial() { + com.google.cloud.talent.v4beta1.Job.ProcessingOptions result = + new com.google.cloud.talent.v4beta1.Job.ProcessingOptions(this); + result.disableStreetAddressResolution_ = disableStreetAddressResolution_; + result.htmlSanitization_ = htmlSanitization_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Job.ProcessingOptions) { + return mergeFrom((com.google.cloud.talent.v4beta1.Job.ProcessingOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Job.ProcessingOptions other) { + if (other == com.google.cloud.talent.v4beta1.Job.ProcessingOptions.getDefaultInstance()) + return this; + if (other.getDisableStreetAddressResolution() != false) { + setDisableStreetAddressResolution(other.getDisableStreetAddressResolution()); + } + if (other.htmlSanitization_ != 0) { + setHtmlSanitizationValue(other.getHtmlSanitizationValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Job.ProcessingOptions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.Job.ProcessingOptions) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean disableStreetAddressResolution_; + /** + * + * + *
+       * Optional.
+       * If set to `true`, the service does not attempt to resolve a
+       * more precise address for the job.
+       * 
+ * + * bool disable_street_address_resolution = 1; + */ + public boolean getDisableStreetAddressResolution() { + return disableStreetAddressResolution_; + } + /** + * + * + *
+       * Optional.
+       * If set to `true`, the service does not attempt to resolve a
+       * more precise address for the job.
+       * 
+ * + * bool disable_street_address_resolution = 1; + */ + public Builder setDisableStreetAddressResolution(boolean value) { + + disableStreetAddressResolution_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * If set to `true`, the service does not attempt to resolve a
+       * more precise address for the job.
+       * 
+ * + * bool disable_street_address_resolution = 1; + */ + public Builder clearDisableStreetAddressResolution() { + + disableStreetAddressResolution_ = false; + onChanged(); + return this; + } + + private int htmlSanitization_ = 0; + /** + * + * + *
+       * Optional.
+       * Option for job HTML content sanitization. Applied fields are:
+       * * description
+       * * applicationInfo.instruction
+       * * incentives
+       * * qualifications
+       * * responsibilities
+       * HTML tags in these fields may be stripped if sanitiazation isn't
+       * disabled.
+       * Defaults to
+       * [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent.v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY].
+       * 
+ * + * .google.cloud.talent.v4beta1.HtmlSanitization html_sanitization = 2; + */ + public int getHtmlSanitizationValue() { + return htmlSanitization_; + } + /** + * + * + *
+       * Optional.
+       * Option for job HTML content sanitization. Applied fields are:
+       * * description
+       * * applicationInfo.instruction
+       * * incentives
+       * * qualifications
+       * * responsibilities
+       * HTML tags in these fields may be stripped if sanitiazation isn't
+       * disabled.
+       * Defaults to
+       * [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent.v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY].
+       * 
+ * + * .google.cloud.talent.v4beta1.HtmlSanitization html_sanitization = 2; + */ + public Builder setHtmlSanitizationValue(int value) { + htmlSanitization_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Option for job HTML content sanitization. Applied fields are:
+       * * description
+       * * applicationInfo.instruction
+       * * incentives
+       * * qualifications
+       * * responsibilities
+       * HTML tags in these fields may be stripped if sanitiazation isn't
+       * disabled.
+       * Defaults to
+       * [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent.v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY].
+       * 
+ * + * .google.cloud.talent.v4beta1.HtmlSanitization html_sanitization = 2; + */ + public com.google.cloud.talent.v4beta1.HtmlSanitization getHtmlSanitization() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.HtmlSanitization result = + com.google.cloud.talent.v4beta1.HtmlSanitization.valueOf(htmlSanitization_); + return result == null + ? com.google.cloud.talent.v4beta1.HtmlSanitization.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Optional.
+       * Option for job HTML content sanitization. Applied fields are:
+       * * description
+       * * applicationInfo.instruction
+       * * incentives
+       * * qualifications
+       * * responsibilities
+       * HTML tags in these fields may be stripped if sanitiazation isn't
+       * disabled.
+       * Defaults to
+       * [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent.v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY].
+       * 
+ * + * .google.cloud.talent.v4beta1.HtmlSanitization html_sanitization = 2; + */ + public Builder setHtmlSanitization(com.google.cloud.talent.v4beta1.HtmlSanitization value) { + if (value == null) { + throw new NullPointerException(); + } + + htmlSanitization_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Option for job HTML content sanitization. Applied fields are:
+       * * description
+       * * applicationInfo.instruction
+       * * incentives
+       * * qualifications
+       * * responsibilities
+       * HTML tags in these fields may be stripped if sanitiazation isn't
+       * disabled.
+       * Defaults to
+       * [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent.v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY].
+       * 
+ * + * .google.cloud.talent.v4beta1.HtmlSanitization html_sanitization = 2; + */ + public Builder clearHtmlSanitization() { + + htmlSanitization_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Job.ProcessingOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Job.ProcessingOptions) + private static final com.google.cloud.talent.v4beta1.Job.ProcessingOptions DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Job.ProcessingOptions(); + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProcessingOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProcessingOptions(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job.ProcessingOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required during job update.
+   * The resource name for the job. This is generated by the service when a
+   * job is created.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * Use of this field in job queries and API calls is preferred over the use of
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this
+   * value is unique.
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required during job update.
+   * The resource name for the job. This is generated by the service when a
+   * job is created.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * Use of this field in job queries and API calls is preferred over the use of
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this
+   * value is unique.
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPANY_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object companyName_; + /** + * + * + *
+   * Required.
+   * The resource name of the company listing the job, such as
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string company_name = 2; + */ + public java.lang.String getCompanyName() { + java.lang.Object ref = companyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + companyName_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the company listing the job, such as
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string company_name = 2; + */ + public com.google.protobuf.ByteString getCompanyNameBytes() { + java.lang.Object ref = companyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + companyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUISITION_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object requisitionId_; + /** + * + * + *
+   * Required.
+   * The requisition ID, also referred to as the posting ID, is assigned by the
+   * client to identify a job. This field is intended to be used by clients
+   * for client identification and tracking of postings. A job isn't allowed
+   * to be created if there is another job with the same
+   * [company][google.cloud.talent.v4beta1.Job.name],
+   * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string requisition_id = 3; + */ + public java.lang.String getRequisitionId() { + java.lang.Object ref = requisitionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requisitionId_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The requisition ID, also referred to as the posting ID, is assigned by the
+   * client to identify a job. This field is intended to be used by clients
+   * for client identification and tracking of postings. A job isn't allowed
+   * to be created if there is another job with the same
+   * [company][google.cloud.talent.v4beta1.Job.name],
+   * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string requisition_id = 3; + */ + public com.google.protobuf.ByteString getRequisitionIdBytes() { + java.lang.Object ref = requisitionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requisitionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TITLE_FIELD_NUMBER = 4; + private volatile java.lang.Object title_; + /** + * + * + *
+   * Required.
+   * The title of the job, such as "Software Engineer"
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * string title = 4; + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The title of the job, such as "Software Engineer"
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * string title = 4; + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 5; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Required.
+   * The description of the job, which typically includes a multi-paragraph
+   * description of the company and related information. Separate fields are
+   * provided on the job object for
+   * [responsibilities][google.cloud.talent.v4beta1.Job.responsibilities],
+   * [qualifications][google.cloud.talent.v4beta1.Job.qualifications], and other
+   * job characteristics. Use of these separate job fields is recommended.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 100,000.
+   * 
+ * + * string description = 5; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The description of the job, which typically includes a multi-paragraph
+   * description of the company and related information. Separate fields are
+   * provided on the job object for
+   * [responsibilities][google.cloud.talent.v4beta1.Job.responsibilities],
+   * [qualifications][google.cloud.talent.v4beta1.Job.qualifications], and other
+   * job characteristics. Use of these separate job fields is recommended.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 100,000.
+   * 
+ * + * string description = 5; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDRESSES_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList addresses_; + /** + * + * + *
+   * Optional but strongly recommended for the best service experience.
+   * Location(s) where the employer is looking to hire for this job posting.
+   * Specifying the full street address(es) of the hiring location enables
+   * better API results, especially job searches by commute time.
+   * At most 50 locations are allowed for best search performance. If a job has
+   * more locations, it is suggested to split it into multiple jobs with unique
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+   * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+   * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+   * allowed. If the original
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+   * preserved, a custom field should be used for storage. It is also suggested
+   * to group the locations that close to each other in the same job for better
+   * search experience.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * repeated string addresses = 6; + */ + public com.google.protobuf.ProtocolStringList getAddressesList() { + return addresses_; + } + /** + * + * + *
+   * Optional but strongly recommended for the best service experience.
+   * Location(s) where the employer is looking to hire for this job posting.
+   * Specifying the full street address(es) of the hiring location enables
+   * better API results, especially job searches by commute time.
+   * At most 50 locations are allowed for best search performance. If a job has
+   * more locations, it is suggested to split it into multiple jobs with unique
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+   * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+   * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+   * allowed. If the original
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+   * preserved, a custom field should be used for storage. It is also suggested
+   * to group the locations that close to each other in the same job for better
+   * search experience.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * repeated string addresses = 6; + */ + public int getAddressesCount() { + return addresses_.size(); + } + /** + * + * + *
+   * Optional but strongly recommended for the best service experience.
+   * Location(s) where the employer is looking to hire for this job posting.
+   * Specifying the full street address(es) of the hiring location enables
+   * better API results, especially job searches by commute time.
+   * At most 50 locations are allowed for best search performance. If a job has
+   * more locations, it is suggested to split it into multiple jobs with unique
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+   * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+   * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+   * allowed. If the original
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+   * preserved, a custom field should be used for storage. It is also suggested
+   * to group the locations that close to each other in the same job for better
+   * search experience.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * repeated string addresses = 6; + */ + public java.lang.String getAddresses(int index) { + return addresses_.get(index); + } + /** + * + * + *
+   * Optional but strongly recommended for the best service experience.
+   * Location(s) where the employer is looking to hire for this job posting.
+   * Specifying the full street address(es) of the hiring location enables
+   * better API results, especially job searches by commute time.
+   * At most 50 locations are allowed for best search performance. If a job has
+   * more locations, it is suggested to split it into multiple jobs with unique
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+   * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+   * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+   * allowed. If the original
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+   * preserved, a custom field should be used for storage. It is also suggested
+   * to group the locations that close to each other in the same job for better
+   * search experience.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * repeated string addresses = 6; + */ + public com.google.protobuf.ByteString getAddressesBytes(int index) { + return addresses_.getByteString(index); + } + + public static final int APPLICATION_INFO_FIELD_NUMBER = 7; + private com.google.cloud.talent.v4beta1.Job.ApplicationInfo applicationInfo_; + /** + * + * + *
+   * Required. At least one field within
+   * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+   * specified.
+   * Job application information.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + public boolean hasApplicationInfo() { + return applicationInfo_ != null; + } + /** + * + * + *
+   * Required. At least one field within
+   * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+   * specified.
+   * Job application information.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + public com.google.cloud.talent.v4beta1.Job.ApplicationInfo getApplicationInfo() { + return applicationInfo_ == null + ? com.google.cloud.talent.v4beta1.Job.ApplicationInfo.getDefaultInstance() + : applicationInfo_; + } + /** + * + * + *
+   * Required. At least one field within
+   * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+   * specified.
+   * Job application information.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + public com.google.cloud.talent.v4beta1.Job.ApplicationInfoOrBuilder + getApplicationInfoOrBuilder() { + return getApplicationInfo(); + } + + public static final int JOB_BENEFITS_FIELD_NUMBER = 8; + private java.util.List jobBenefits_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobBenefit> + jobBenefits_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobBenefit>() { + public com.google.cloud.talent.v4beta1.JobBenefit convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobBenefit result = + com.google.cloud.talent.v4beta1.JobBenefit.valueOf(from); + return result == null + ? com.google.cloud.talent.v4beta1.JobBenefit.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Optional.
+   * The benefits included with the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public java.util.List getJobBenefitsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobBenefit>( + jobBenefits_, jobBenefits_converter_); + } + /** + * + * + *
+   * Optional.
+   * The benefits included with the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public int getJobBenefitsCount() { + return jobBenefits_.size(); + } + /** + * + * + *
+   * Optional.
+   * The benefits included with the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public com.google.cloud.talent.v4beta1.JobBenefit getJobBenefits(int index) { + return jobBenefits_converter_.convert(jobBenefits_.get(index)); + } + /** + * + * + *
+   * Optional.
+   * The benefits included with the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public java.util.List getJobBenefitsValueList() { + return jobBenefits_; + } + /** + * + * + *
+   * Optional.
+   * The benefits included with the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public int getJobBenefitsValue(int index) { + return jobBenefits_.get(index); + } + + private int jobBenefitsMemoizedSerializedSize; + + public static final int COMPENSATION_INFO_FIELD_NUMBER = 9; + private com.google.cloud.talent.v4beta1.CompensationInfo compensationInfo_; + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + public boolean hasCompensationInfo() { + return compensationInfo_ != null; + } + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo getCompensationInfo() { + return compensationInfo_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.getDefaultInstance() + : compensationInfo_; + } + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + public com.google.cloud.talent.v4beta1.CompensationInfoOrBuilder getCompensationInfoOrBuilder() { + return getCompensationInfo(); + } + + public static final int CUSTOM_ATTRIBUTES_FIELD_NUMBER = 10; + + private static final class CustomAttributesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_CustomAttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.talent.v4beta1.CustomAttribute.getDefaultInstance()); + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + customAttributes_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + internalGetCustomAttributes() { + if (customAttributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomAttributesDefaultEntryHolder.defaultEntry); + } + return customAttributes_; + } + + public int getCustomAttributesCount() { + return internalGetCustomAttributes().getMap().size(); + } + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom job
+   * attributes that are not covered by the provided structured fields.
+   * The keys of the map are strings up to 64 bytes and must match the
+   * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+   * KEY_1_LIKE_THIS.
+   * At most 100 filterable and at most 100 unfilterable keys are supported.
+   * For filterable `string_values`, across all keys at most 200 values are
+   * allowed, with each string no more than 255 characters. For unfilterable
+   * `string_values`, the maximum total size of `string_values` across all keys
+   * is 50KB.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + public boolean containsCustomAttributes(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetCustomAttributes().getMap().containsKey(key); + } + /** Use {@link #getCustomAttributesMap()} instead. */ + @java.lang.Deprecated + public java.util.Map + getCustomAttributes() { + return getCustomAttributesMap(); + } + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom job
+   * attributes that are not covered by the provided structured fields.
+   * The keys of the map are strings up to 64 bytes and must match the
+   * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+   * KEY_1_LIKE_THIS.
+   * At most 100 filterable and at most 100 unfilterable keys are supported.
+   * For filterable `string_values`, across all keys at most 200 values are
+   * allowed, with each string no more than 255 characters. For unfilterable
+   * `string_values`, the maximum total size of `string_values` across all keys
+   * is 50KB.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + public java.util.Map + getCustomAttributesMap() { + return internalGetCustomAttributes().getMap(); + } + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom job
+   * attributes that are not covered by the provided structured fields.
+   * The keys of the map are strings up to 64 bytes and must match the
+   * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+   * KEY_1_LIKE_THIS.
+   * At most 100 filterable and at most 100 unfilterable keys are supported.
+   * For filterable `string_values`, across all keys at most 200 values are
+   * allowed, with each string no more than 255 characters. For unfilterable
+   * `string_values`, the maximum total size of `string_values` across all keys
+   * is 50KB.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + public com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrDefault( + java.lang.String key, com.google.cloud.talent.v4beta1.CustomAttribute defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetCustomAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom job
+   * attributes that are not covered by the provided structured fields.
+   * The keys of the map are strings up to 64 bytes and must match the
+   * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+   * KEY_1_LIKE_THIS.
+   * At most 100 filterable and at most 100 unfilterable keys are supported.
+   * For filterable `string_values`, across all keys at most 200 values are
+   * allowed, with each string no more than 255 characters. For unfilterable
+   * `string_values`, the maximum total size of `string_values` across all keys
+   * is 50KB.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + public com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrThrow( + java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetCustomAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int DEGREE_TYPES_FIELD_NUMBER = 11; + private java.util.List degreeTypes_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.DegreeType> + degreeTypes_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.DegreeType>() { + public com.google.cloud.talent.v4beta1.DegreeType convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.DegreeType result = + com.google.cloud.talent.v4beta1.DegreeType.valueOf(from); + return result == null + ? com.google.cloud.talent.v4beta1.DegreeType.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Optional.
+   * The desired education degrees for the job, such as Bachelors, Masters.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public java.util.List getDegreeTypesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.DegreeType>( + degreeTypes_, degreeTypes_converter_); + } + /** + * + * + *
+   * Optional.
+   * The desired education degrees for the job, such as Bachelors, Masters.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public int getDegreeTypesCount() { + return degreeTypes_.size(); + } + /** + * + * + *
+   * Optional.
+   * The desired education degrees for the job, such as Bachelors, Masters.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public com.google.cloud.talent.v4beta1.DegreeType getDegreeTypes(int index) { + return degreeTypes_converter_.convert(degreeTypes_.get(index)); + } + /** + * + * + *
+   * Optional.
+   * The desired education degrees for the job, such as Bachelors, Masters.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public java.util.List getDegreeTypesValueList() { + return degreeTypes_; + } + /** + * + * + *
+   * Optional.
+   * The desired education degrees for the job, such as Bachelors, Masters.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public int getDegreeTypesValue(int index) { + return degreeTypes_.get(index); + } + + private int degreeTypesMemoizedSerializedSize; + + public static final int DEPARTMENT_FIELD_NUMBER = 12; + private volatile java.lang.Object department_; + /** + * + * + *
+   * Optional.
+   * The department or functional area within the company with the open
+   * position.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string department = 12; + */ + public java.lang.String getDepartment() { + java.lang.Object ref = department_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + department_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The department or functional area within the company with the open
+   * position.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string department = 12; + */ + public com.google.protobuf.ByteString getDepartmentBytes() { + java.lang.Object ref = department_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + department_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EMPLOYMENT_TYPES_FIELD_NUMBER = 13; + private java.util.List employmentTypes_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.EmploymentType> + employmentTypes_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.EmploymentType>() { + public com.google.cloud.talent.v4beta1.EmploymentType convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.EmploymentType result = + com.google.cloud.talent.v4beta1.EmploymentType.valueOf(from); + return result == null + ? com.google.cloud.talent.v4beta1.EmploymentType.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Optional.
+   * The employment type(s) of a job, for example,
+   * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+   * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public java.util.List getEmploymentTypesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.EmploymentType>( + employmentTypes_, employmentTypes_converter_); + } + /** + * + * + *
+   * Optional.
+   * The employment type(s) of a job, for example,
+   * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+   * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public int getEmploymentTypesCount() { + return employmentTypes_.size(); + } + /** + * + * + *
+   * Optional.
+   * The employment type(s) of a job, for example,
+   * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+   * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public com.google.cloud.talent.v4beta1.EmploymentType getEmploymentTypes(int index) { + return employmentTypes_converter_.convert(employmentTypes_.get(index)); + } + /** + * + * + *
+   * Optional.
+   * The employment type(s) of a job, for example,
+   * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+   * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public java.util.List getEmploymentTypesValueList() { + return employmentTypes_; + } + /** + * + * + *
+   * Optional.
+   * The employment type(s) of a job, for example,
+   * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+   * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public int getEmploymentTypesValue(int index) { + return employmentTypes_.get(index); + } + + private int employmentTypesMemoizedSerializedSize; + + public static final int INCENTIVES_FIELD_NUMBER = 14; + private volatile java.lang.Object incentives_; + /** + * + * + *
+   * Optional.
+   * A description of bonus, commission, and other compensation
+   * incentives associated with the job not including salary or pay.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string incentives = 14; + */ + public java.lang.String getIncentives() { + java.lang.Object ref = incentives_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + incentives_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * A description of bonus, commission, and other compensation
+   * incentives associated with the job not including salary or pay.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string incentives = 14; + */ + public com.google.protobuf.ByteString getIncentivesBytes() { + java.lang.Object ref = incentives_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + incentives_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LANGUAGE_CODE_FIELD_NUMBER = 15; + private volatile java.lang.Object languageCode_; + /** + * + * + *
+   * Optional.
+   * The language of the posting. This field is distinct from
+   * any requirements for fluency that are associated with the job.
+   * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+   * class="external" target="_blank" }.
+   * If this field is unspecified and
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] is present,
+   * detected language code based on
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] is assigned,
+   * otherwise defaults to 'en_US'.
+   * 
+ * + * string language_code = 15; + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The language of the posting. This field is distinct from
+   * any requirements for fluency that are associated with the job.
+   * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+   * class="external" target="_blank" }.
+   * If this field is unspecified and
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] is present,
+   * detected language code based on
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] is assigned,
+   * otherwise defaults to 'en_US'.
+   * 
+ * + * string language_code = 15; + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOB_LEVEL_FIELD_NUMBER = 16; + private int jobLevel_; + /** + * + * + *
+   * Optional.
+   * The experience level associated with the job, such as "Entry Level".
+   * 
+ * + * .google.cloud.talent.v4beta1.JobLevel job_level = 16; + */ + public int getJobLevelValue() { + return jobLevel_; + } + /** + * + * + *
+   * Optional.
+   * The experience level associated with the job, such as "Entry Level".
+   * 
+ * + * .google.cloud.talent.v4beta1.JobLevel job_level = 16; + */ + public com.google.cloud.talent.v4beta1.JobLevel getJobLevel() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobLevel result = + com.google.cloud.talent.v4beta1.JobLevel.valueOf(jobLevel_); + return result == null ? com.google.cloud.talent.v4beta1.JobLevel.UNRECOGNIZED : result; + } + + public static final int PROMOTION_VALUE_FIELD_NUMBER = 17; + private int promotionValue_; + /** + * + * + *
+   * Optional.
+   * A promotion value of the job, as determined by the client.
+   * The value determines the sort order of the jobs returned when searching for
+   * jobs using the featured jobs search call, with higher promotional values
+   * being returned first and ties being resolved by relevance sort. Only the
+   * jobs with a promotionValue >0 are returned in a FEATURED_JOB_SEARCH.
+   * Default value is 0, and negative values are treated as 0.
+   * 
+ * + * int32 promotion_value = 17; + */ + public int getPromotionValue() { + return promotionValue_; + } + + public static final int QUALIFICATIONS_FIELD_NUMBER = 18; + private volatile java.lang.Object qualifications_; + /** + * + * + *
+   * Optional.
+   * A description of the qualifications required to perform the
+   * job. The use of this field is recommended
+   * as an alternative to using the more general
+   * [description][google.cloud.talent.v4beta1.Job.description] field.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string qualifications = 18; + */ + public java.lang.String getQualifications() { + java.lang.Object ref = qualifications_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + qualifications_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * A description of the qualifications required to perform the
+   * job. The use of this field is recommended
+   * as an alternative to using the more general
+   * [description][google.cloud.talent.v4beta1.Job.description] field.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string qualifications = 18; + */ + public com.google.protobuf.ByteString getQualificationsBytes() { + java.lang.Object ref = qualifications_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + qualifications_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESPONSIBILITIES_FIELD_NUMBER = 19; + private volatile java.lang.Object responsibilities_; + /** + * + * + *
+   * Optional.
+   * A description of job responsibilities. The use of this field is
+   * recommended as an alternative to using the more general
+   * [description][google.cloud.talent.v4beta1.Job.description] field.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string responsibilities = 19; + */ + public java.lang.String getResponsibilities() { + java.lang.Object ref = responsibilities_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + responsibilities_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * A description of job responsibilities. The use of this field is
+   * recommended as an alternative to using the more general
+   * [description][google.cloud.talent.v4beta1.Job.description] field.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string responsibilities = 19; + */ + public com.google.protobuf.ByteString getResponsibilitiesBytes() { + java.lang.Object ref = responsibilities_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + responsibilities_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POSTING_REGION_FIELD_NUMBER = 20; + private int postingRegion_; + /** + * + * + *
+   * Optional.
+   * The job [PostingRegion][google.cloud.talent.v4beta1.PostingRegion] (for
+   * example, state, country) throughout which the job is available. If this
+   * field is set, a
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in a search
+   * query within the job region finds this job posting if an exact location
+   * match isn't specified. If this field is set to
+   * [PostingRegion.NATION][google.cloud.talent.v4beta1.PostingRegion.NATION] or
+   * [PostingRegion.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA],
+   * setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to
+   * the same location level as this field is strongly recommended.
+   * 
+ * + * .google.cloud.talent.v4beta1.PostingRegion posting_region = 20; + */ + public int getPostingRegionValue() { + return postingRegion_; + } + /** + * + * + *
+   * Optional.
+   * The job [PostingRegion][google.cloud.talent.v4beta1.PostingRegion] (for
+   * example, state, country) throughout which the job is available. If this
+   * field is set, a
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in a search
+   * query within the job region finds this job posting if an exact location
+   * match isn't specified. If this field is set to
+   * [PostingRegion.NATION][google.cloud.talent.v4beta1.PostingRegion.NATION] or
+   * [PostingRegion.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA],
+   * setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to
+   * the same location level as this field is strongly recommended.
+   * 
+ * + * .google.cloud.talent.v4beta1.PostingRegion posting_region = 20; + */ + public com.google.cloud.talent.v4beta1.PostingRegion getPostingRegion() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.PostingRegion result = + com.google.cloud.talent.v4beta1.PostingRegion.valueOf(postingRegion_); + return result == null ? com.google.cloud.talent.v4beta1.PostingRegion.UNRECOGNIZED : result; + } + + public static final int VISIBILITY_FIELD_NUMBER = 21; + private int visibility_; + /** + * + * + *
+   * Optional.
+   * The visibility of the job.
+   * Defaults to
+   * [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY]
+   * if not specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.Visibility visibility = 21; + */ + public int getVisibilityValue() { + return visibility_; + } + /** + * + * + *
+   * Optional.
+   * The visibility of the job.
+   * Defaults to
+   * [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY]
+   * if not specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.Visibility visibility = 21; + */ + public com.google.cloud.talent.v4beta1.Visibility getVisibility() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.Visibility result = + com.google.cloud.talent.v4beta1.Visibility.valueOf(visibility_); + return result == null ? com.google.cloud.talent.v4beta1.Visibility.UNRECOGNIZED : result; + } + + public static final int JOB_START_TIME_FIELD_NUMBER = 22; + private com.google.protobuf.Timestamp jobStartTime_; + /** + * + * + *
+   * Optional.
+   * The start timestamp of the job in UTC time zone. Typically this field
+   * is used for contracting engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + public boolean hasJobStartTime() { + return jobStartTime_ != null; + } + /** + * + * + *
+   * Optional.
+   * The start timestamp of the job in UTC time zone. Typically this field
+   * is used for contracting engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + public com.google.protobuf.Timestamp getJobStartTime() { + return jobStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : jobStartTime_; + } + /** + * + * + *
+   * Optional.
+   * The start timestamp of the job in UTC time zone. Typically this field
+   * is used for contracting engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + public com.google.protobuf.TimestampOrBuilder getJobStartTimeOrBuilder() { + return getJobStartTime(); + } + + public static final int JOB_END_TIME_FIELD_NUMBER = 23; + private com.google.protobuf.Timestamp jobEndTime_; + /** + * + * + *
+   * Optional.
+   * The end timestamp of the job. Typically this field is used for contracting
+   * engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + public boolean hasJobEndTime() { + return jobEndTime_ != null; + } + /** + * + * + *
+   * Optional.
+   * The end timestamp of the job. Typically this field is used for contracting
+   * engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + public com.google.protobuf.Timestamp getJobEndTime() { + return jobEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : jobEndTime_; + } + /** + * + * + *
+   * Optional.
+   * The end timestamp of the job. Typically this field is used for contracting
+   * engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + public com.google.protobuf.TimestampOrBuilder getJobEndTimeOrBuilder() { + return getJobEndTime(); + } + + public static final int POSTING_PUBLISH_TIME_FIELD_NUMBER = 24; + private com.google.protobuf.Timestamp postingPublishTime_; + /** + * + * + *
+   * Optional.
+   * The timestamp this job posting was most recently published. The default
+   * value is the time the request arrives at the server. Invalid timestamps are
+   * ignored.
+   * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + public boolean hasPostingPublishTime() { + return postingPublishTime_ != null; + } + /** + * + * + *
+   * Optional.
+   * The timestamp this job posting was most recently published. The default
+   * value is the time the request arrives at the server. Invalid timestamps are
+   * ignored.
+   * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + public com.google.protobuf.Timestamp getPostingPublishTime() { + return postingPublishTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingPublishTime_; + } + /** + * + * + *
+   * Optional.
+   * The timestamp this job posting was most recently published. The default
+   * value is the time the request arrives at the server. Invalid timestamps are
+   * ignored.
+   * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + public com.google.protobuf.TimestampOrBuilder getPostingPublishTimeOrBuilder() { + return getPostingPublishTime(); + } + + public static final int POSTING_EXPIRE_TIME_FIELD_NUMBER = 25; + private com.google.protobuf.Timestamp postingExpireTime_; + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * The expiration timestamp of the job. After this timestamp, the
+   * job is marked as expired, and it no longer appears in search results. The
+   * expired job can't be deleted or listed by the [DeleteJob][] and
+   * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+   * updated with the [UpdateJob][] API. An expired job can be updated and
+   * opened again by using a future expiration timestamp. Updating an expired
+   * job fails if there is another existing open job with same
+   * [company][google.cloud.talent.v4beta1.Job.name][],
+   * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+   * The expired jobs are retained in our system for 90 days. However, the
+   * overall expired job count cannot exceed 3 times the maximum of open jobs
+   * count over the past week, otherwise jobs with earlier expire time are
+   * cleaned first. Expired jobs are no longer accessible after they are cleaned
+   * out.
+   * Invalid timestamps are ignored, and treated as expire time not provided.
+   * Timestamp before the instant request is made is considered valid, the job
+   * will be treated as expired immediately.
+   * If this value isn't provided at the time of job creation or is invalid,
+   * the job posting expires after 30 days from the job's creation time. For
+   * example, if the job was created on 2017/01/01 13:00AM UTC with an
+   * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+   * If this value isn't provided on job update, it depends on the field masks
+   * set by
+   * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+   * If the field masks include [expiry_time][], or the masks are empty meaning
+   * that every field is updated, the job posting expires after 30 days from the
+   * job's last update time. Otherwise the expiration date isn't updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + public boolean hasPostingExpireTime() { + return postingExpireTime_ != null; + } + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * The expiration timestamp of the job. After this timestamp, the
+   * job is marked as expired, and it no longer appears in search results. The
+   * expired job can't be deleted or listed by the [DeleteJob][] and
+   * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+   * updated with the [UpdateJob][] API. An expired job can be updated and
+   * opened again by using a future expiration timestamp. Updating an expired
+   * job fails if there is another existing open job with same
+   * [company][google.cloud.talent.v4beta1.Job.name][],
+   * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+   * The expired jobs are retained in our system for 90 days. However, the
+   * overall expired job count cannot exceed 3 times the maximum of open jobs
+   * count over the past week, otherwise jobs with earlier expire time are
+   * cleaned first. Expired jobs are no longer accessible after they are cleaned
+   * out.
+   * Invalid timestamps are ignored, and treated as expire time not provided.
+   * Timestamp before the instant request is made is considered valid, the job
+   * will be treated as expired immediately.
+   * If this value isn't provided at the time of job creation or is invalid,
+   * the job posting expires after 30 days from the job's creation time. For
+   * example, if the job was created on 2017/01/01 13:00AM UTC with an
+   * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+   * If this value isn't provided on job update, it depends on the field masks
+   * set by
+   * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+   * If the field masks include [expiry_time][], or the masks are empty meaning
+   * that every field is updated, the job posting expires after 30 days from the
+   * job's last update time. Otherwise the expiration date isn't updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + public com.google.protobuf.Timestamp getPostingExpireTime() { + return postingExpireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingExpireTime_; + } + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * The expiration timestamp of the job. After this timestamp, the
+   * job is marked as expired, and it no longer appears in search results. The
+   * expired job can't be deleted or listed by the [DeleteJob][] and
+   * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+   * updated with the [UpdateJob][] API. An expired job can be updated and
+   * opened again by using a future expiration timestamp. Updating an expired
+   * job fails if there is another existing open job with same
+   * [company][google.cloud.talent.v4beta1.Job.name][],
+   * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+   * The expired jobs are retained in our system for 90 days. However, the
+   * overall expired job count cannot exceed 3 times the maximum of open jobs
+   * count over the past week, otherwise jobs with earlier expire time are
+   * cleaned first. Expired jobs are no longer accessible after they are cleaned
+   * out.
+   * Invalid timestamps are ignored, and treated as expire time not provided.
+   * Timestamp before the instant request is made is considered valid, the job
+   * will be treated as expired immediately.
+   * If this value isn't provided at the time of job creation or is invalid,
+   * the job posting expires after 30 days from the job's creation time. For
+   * example, if the job was created on 2017/01/01 13:00AM UTC with an
+   * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+   * If this value isn't provided on job update, it depends on the field masks
+   * set by
+   * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+   * If the field masks include [expiry_time][], or the masks are empty meaning
+   * that every field is updated, the job posting expires after 30 days from the
+   * job's last update time. Otherwise the expiration date isn't updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + public com.google.protobuf.TimestampOrBuilder getPostingExpireTimeOrBuilder() { + return getPostingExpireTime(); + } + + public static final int POSTING_CREATE_TIME_FIELD_NUMBER = 26; + private com.google.protobuf.Timestamp postingCreateTime_; + /** + * + * + *
+   * Output only. The timestamp when this job posting was created.
+   * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + public boolean hasPostingCreateTime() { + return postingCreateTime_ != null; + } + /** + * + * + *
+   * Output only. The timestamp when this job posting was created.
+   * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + public com.google.protobuf.Timestamp getPostingCreateTime() { + return postingCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingCreateTime_; + } + /** + * + * + *
+   * Output only. The timestamp when this job posting was created.
+   * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + public com.google.protobuf.TimestampOrBuilder getPostingCreateTimeOrBuilder() { + return getPostingCreateTime(); + } + + public static final int POSTING_UPDATE_TIME_FIELD_NUMBER = 27; + private com.google.protobuf.Timestamp postingUpdateTime_; + /** + * + * + *
+   * Output only. The timestamp when this job posting was last updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + public boolean hasPostingUpdateTime() { + return postingUpdateTime_ != null; + } + /** + * + * + *
+   * Output only. The timestamp when this job posting was last updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + public com.google.protobuf.Timestamp getPostingUpdateTime() { + return postingUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingUpdateTime_; + } + /** + * + * + *
+   * Output only. The timestamp when this job posting was last updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + public com.google.protobuf.TimestampOrBuilder getPostingUpdateTimeOrBuilder() { + return getPostingUpdateTime(); + } + + public static final int COMPANY_DISPLAY_NAME_FIELD_NUMBER = 28; + private volatile java.lang.Object companyDisplayName_; + /** + * + * + *
+   * Output only. Display name of the company listing the job.
+   * 
+ * + * string company_display_name = 28; + */ + public java.lang.String getCompanyDisplayName() { + java.lang.Object ref = companyDisplayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + companyDisplayName_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Display name of the company listing the job.
+   * 
+ * + * string company_display_name = 28; + */ + public com.google.protobuf.ByteString getCompanyDisplayNameBytes() { + java.lang.Object ref = companyDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + companyDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DERIVED_INFO_FIELD_NUMBER = 29; + private com.google.cloud.talent.v4beta1.Job.DerivedInfo derivedInfo_; + /** + * + * + *
+   * Output only. Derived details about the job posting.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + public boolean hasDerivedInfo() { + return derivedInfo_ != null; + } + /** + * + * + *
+   * Output only. Derived details about the job posting.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + public com.google.cloud.talent.v4beta1.Job.DerivedInfo getDerivedInfo() { + return derivedInfo_ == null + ? com.google.cloud.talent.v4beta1.Job.DerivedInfo.getDefaultInstance() + : derivedInfo_; + } + /** + * + * + *
+   * Output only. Derived details about the job posting.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + public com.google.cloud.talent.v4beta1.Job.DerivedInfoOrBuilder getDerivedInfoOrBuilder() { + return getDerivedInfo(); + } + + public static final int PROCESSING_OPTIONS_FIELD_NUMBER = 30; + private com.google.cloud.talent.v4beta1.Job.ProcessingOptions processingOptions_; + /** + * + * + *
+   * Optional.
+   * Options for job processing.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + public boolean hasProcessingOptions() { + return processingOptions_ != null; + } + /** + * + * + *
+   * Optional.
+   * Options for job processing.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + public com.google.cloud.talent.v4beta1.Job.ProcessingOptions getProcessingOptions() { + return processingOptions_ == null + ? com.google.cloud.talent.v4beta1.Job.ProcessingOptions.getDefaultInstance() + : processingOptions_; + } + /** + * + * + *
+   * Optional.
+   * Options for job processing.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + public com.google.cloud.talent.v4beta1.Job.ProcessingOptionsOrBuilder + getProcessingOptionsOrBuilder() { + return getProcessingOptions(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getCompanyNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, companyName_); + } + if (!getRequisitionIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requisitionId_); + } + if (!getTitleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, title_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); + } + for (int i = 0; i < addresses_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, addresses_.getRaw(i)); + } + if (applicationInfo_ != null) { + output.writeMessage(7, getApplicationInfo()); + } + if (getJobBenefitsList().size() > 0) { + output.writeUInt32NoTag(66); + output.writeUInt32NoTag(jobBenefitsMemoizedSerializedSize); + } + for (int i = 0; i < jobBenefits_.size(); i++) { + output.writeEnumNoTag(jobBenefits_.get(i)); + } + if (compensationInfo_ != null) { + output.writeMessage(9, getCompensationInfo()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetCustomAttributes(), CustomAttributesDefaultEntryHolder.defaultEntry, 10); + if (getDegreeTypesList().size() > 0) { + output.writeUInt32NoTag(90); + output.writeUInt32NoTag(degreeTypesMemoizedSerializedSize); + } + for (int i = 0; i < degreeTypes_.size(); i++) { + output.writeEnumNoTag(degreeTypes_.get(i)); + } + if (!getDepartmentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, department_); + } + if (getEmploymentTypesList().size() > 0) { + output.writeUInt32NoTag(106); + output.writeUInt32NoTag(employmentTypesMemoizedSerializedSize); + } + for (int i = 0; i < employmentTypes_.size(); i++) { + output.writeEnumNoTag(employmentTypes_.get(i)); + } + if (!getIncentivesBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, incentives_); + } + if (!getLanguageCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, languageCode_); + } + if (jobLevel_ != com.google.cloud.talent.v4beta1.JobLevel.JOB_LEVEL_UNSPECIFIED.getNumber()) { + output.writeEnum(16, jobLevel_); + } + if (promotionValue_ != 0) { + output.writeInt32(17, promotionValue_); + } + if (!getQualificationsBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, qualifications_); + } + if (!getResponsibilitiesBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19, responsibilities_); + } + if (postingRegion_ + != com.google.cloud.talent.v4beta1.PostingRegion.POSTING_REGION_UNSPECIFIED.getNumber()) { + output.writeEnum(20, postingRegion_); + } + if (visibility_ + != com.google.cloud.talent.v4beta1.Visibility.VISIBILITY_UNSPECIFIED.getNumber()) { + output.writeEnum(21, visibility_); + } + if (jobStartTime_ != null) { + output.writeMessage(22, getJobStartTime()); + } + if (jobEndTime_ != null) { + output.writeMessage(23, getJobEndTime()); + } + if (postingPublishTime_ != null) { + output.writeMessage(24, getPostingPublishTime()); + } + if (postingExpireTime_ != null) { + output.writeMessage(25, getPostingExpireTime()); + } + if (postingCreateTime_ != null) { + output.writeMessage(26, getPostingCreateTime()); + } + if (postingUpdateTime_ != null) { + output.writeMessage(27, getPostingUpdateTime()); + } + if (!getCompanyDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 28, companyDisplayName_); + } + if (derivedInfo_ != null) { + output.writeMessage(29, getDerivedInfo()); + } + if (processingOptions_ != null) { + output.writeMessage(30, getProcessingOptions()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getCompanyNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, companyName_); + } + if (!getRequisitionIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requisitionId_); + } + if (!getTitleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, title_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); + } + { + int dataSize = 0; + for (int i = 0; i < addresses_.size(); i++) { + dataSize += computeStringSizeNoTag(addresses_.getRaw(i)); + } + size += dataSize; + size += 1 * getAddressesList().size(); + } + if (applicationInfo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getApplicationInfo()); + } + { + int dataSize = 0; + for (int i = 0; i < jobBenefits_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(jobBenefits_.get(i)); + } + size += dataSize; + if (!getJobBenefitsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + jobBenefitsMemoizedSerializedSize = dataSize; + } + if (compensationInfo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCompensationInfo()); + } + for (java.util.Map.Entry + entry : internalGetCustomAttributes().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + customAttributes__ = + CustomAttributesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, customAttributes__); + } + { + int dataSize = 0; + for (int i = 0; i < degreeTypes_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(degreeTypes_.get(i)); + } + size += dataSize; + if (!getDegreeTypesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + degreeTypesMemoizedSerializedSize = dataSize; + } + if (!getDepartmentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, department_); + } + { + int dataSize = 0; + for (int i = 0; i < employmentTypes_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(employmentTypes_.get(i)); + } + size += dataSize; + if (!getEmploymentTypesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + employmentTypesMemoizedSerializedSize = dataSize; + } + if (!getIncentivesBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, incentives_); + } + if (!getLanguageCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, languageCode_); + } + if (jobLevel_ != com.google.cloud.talent.v4beta1.JobLevel.JOB_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, jobLevel_); + } + if (promotionValue_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(17, promotionValue_); + } + if (!getQualificationsBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, qualifications_); + } + if (!getResponsibilitiesBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, responsibilities_); + } + if (postingRegion_ + != com.google.cloud.talent.v4beta1.PostingRegion.POSTING_REGION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, postingRegion_); + } + if (visibility_ + != com.google.cloud.talent.v4beta1.Visibility.VISIBILITY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(21, visibility_); + } + if (jobStartTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getJobStartTime()); + } + if (jobEndTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getJobEndTime()); + } + if (postingPublishTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getPostingPublishTime()); + } + if (postingExpireTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getPostingExpireTime()); + } + if (postingCreateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getPostingCreateTime()); + } + if (postingUpdateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, getPostingUpdateTime()); + } + if (!getCompanyDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, companyDisplayName_); + } + if (derivedInfo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getDerivedInfo()); + } + if (processingOptions_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(30, getProcessingOptions()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Job)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Job other = (com.google.cloud.talent.v4beta1.Job) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && getCompanyName().equals(other.getCompanyName()); + result = result && getRequisitionId().equals(other.getRequisitionId()); + result = result && getTitle().equals(other.getTitle()); + result = result && getDescription().equals(other.getDescription()); + result = result && getAddressesList().equals(other.getAddressesList()); + result = result && (hasApplicationInfo() == other.hasApplicationInfo()); + if (hasApplicationInfo()) { + result = result && getApplicationInfo().equals(other.getApplicationInfo()); + } + result = result && jobBenefits_.equals(other.jobBenefits_); + result = result && (hasCompensationInfo() == other.hasCompensationInfo()); + if (hasCompensationInfo()) { + result = result && getCompensationInfo().equals(other.getCompensationInfo()); + } + result = result && internalGetCustomAttributes().equals(other.internalGetCustomAttributes()); + result = result && degreeTypes_.equals(other.degreeTypes_); + result = result && getDepartment().equals(other.getDepartment()); + result = result && employmentTypes_.equals(other.employmentTypes_); + result = result && getIncentives().equals(other.getIncentives()); + result = result && getLanguageCode().equals(other.getLanguageCode()); + result = result && jobLevel_ == other.jobLevel_; + result = result && (getPromotionValue() == other.getPromotionValue()); + result = result && getQualifications().equals(other.getQualifications()); + result = result && getResponsibilities().equals(other.getResponsibilities()); + result = result && postingRegion_ == other.postingRegion_; + result = result && visibility_ == other.visibility_; + result = result && (hasJobStartTime() == other.hasJobStartTime()); + if (hasJobStartTime()) { + result = result && getJobStartTime().equals(other.getJobStartTime()); + } + result = result && (hasJobEndTime() == other.hasJobEndTime()); + if (hasJobEndTime()) { + result = result && getJobEndTime().equals(other.getJobEndTime()); + } + result = result && (hasPostingPublishTime() == other.hasPostingPublishTime()); + if (hasPostingPublishTime()) { + result = result && getPostingPublishTime().equals(other.getPostingPublishTime()); + } + result = result && (hasPostingExpireTime() == other.hasPostingExpireTime()); + if (hasPostingExpireTime()) { + result = result && getPostingExpireTime().equals(other.getPostingExpireTime()); + } + result = result && (hasPostingCreateTime() == other.hasPostingCreateTime()); + if (hasPostingCreateTime()) { + result = result && getPostingCreateTime().equals(other.getPostingCreateTime()); + } + result = result && (hasPostingUpdateTime() == other.hasPostingUpdateTime()); + if (hasPostingUpdateTime()) { + result = result && getPostingUpdateTime().equals(other.getPostingUpdateTime()); + } + result = result && getCompanyDisplayName().equals(other.getCompanyDisplayName()); + result = result && (hasDerivedInfo() == other.hasDerivedInfo()); + if (hasDerivedInfo()) { + result = result && getDerivedInfo().equals(other.getDerivedInfo()); + } + result = result && (hasProcessingOptions() == other.hasProcessingOptions()); + if (hasProcessingOptions()) { + result = result && getProcessingOptions().equals(other.getProcessingOptions()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + COMPANY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCompanyName().hashCode(); + hash = (37 * hash) + REQUISITION_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequisitionId().hashCode(); + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (getAddressesCount() > 0) { + hash = (37 * hash) + ADDRESSES_FIELD_NUMBER; + hash = (53 * hash) + getAddressesList().hashCode(); + } + if (hasApplicationInfo()) { + hash = (37 * hash) + APPLICATION_INFO_FIELD_NUMBER; + hash = (53 * hash) + getApplicationInfo().hashCode(); + } + if (getJobBenefitsCount() > 0) { + hash = (37 * hash) + JOB_BENEFITS_FIELD_NUMBER; + hash = (53 * hash) + jobBenefits_.hashCode(); + } + if (hasCompensationInfo()) { + hash = (37 * hash) + COMPENSATION_INFO_FIELD_NUMBER; + hash = (53 * hash) + getCompensationInfo().hashCode(); + } + if (!internalGetCustomAttributes().getMap().isEmpty()) { + hash = (37 * hash) + CUSTOM_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + internalGetCustomAttributes().hashCode(); + } + if (getDegreeTypesCount() > 0) { + hash = (37 * hash) + DEGREE_TYPES_FIELD_NUMBER; + hash = (53 * hash) + degreeTypes_.hashCode(); + } + hash = (37 * hash) + DEPARTMENT_FIELD_NUMBER; + hash = (53 * hash) + getDepartment().hashCode(); + if (getEmploymentTypesCount() > 0) { + hash = (37 * hash) + EMPLOYMENT_TYPES_FIELD_NUMBER; + hash = (53 * hash) + employmentTypes_.hashCode(); + } + hash = (37 * hash) + INCENTIVES_FIELD_NUMBER; + hash = (53 * hash) + getIncentives().hashCode(); + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); + hash = (37 * hash) + JOB_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + jobLevel_; + hash = (37 * hash) + PROMOTION_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getPromotionValue(); + hash = (37 * hash) + QUALIFICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getQualifications().hashCode(); + hash = (37 * hash) + RESPONSIBILITIES_FIELD_NUMBER; + hash = (53 * hash) + getResponsibilities().hashCode(); + hash = (37 * hash) + POSTING_REGION_FIELD_NUMBER; + hash = (53 * hash) + postingRegion_; + hash = (37 * hash) + VISIBILITY_FIELD_NUMBER; + hash = (53 * hash) + visibility_; + if (hasJobStartTime()) { + hash = (37 * hash) + JOB_START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getJobStartTime().hashCode(); + } + if (hasJobEndTime()) { + hash = (37 * hash) + JOB_END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getJobEndTime().hashCode(); + } + if (hasPostingPublishTime()) { + hash = (37 * hash) + POSTING_PUBLISH_TIME_FIELD_NUMBER; + hash = (53 * hash) + getPostingPublishTime().hashCode(); + } + if (hasPostingExpireTime()) { + hash = (37 * hash) + POSTING_EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getPostingExpireTime().hashCode(); + } + if (hasPostingCreateTime()) { + hash = (37 * hash) + POSTING_CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getPostingCreateTime().hashCode(); + } + if (hasPostingUpdateTime()) { + hash = (37 * hash) + POSTING_UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getPostingUpdateTime().hashCode(); + } + hash = (37 * hash) + COMPANY_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCompanyDisplayName().hashCode(); + if (hasDerivedInfo()) { + hash = (37 * hash) + DERIVED_INFO_FIELD_NUMBER; + hash = (53 * hash) + getDerivedInfo().hashCode(); + } + if (hasProcessingOptions()) { + hash = (37 * hash) + PROCESSING_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getProcessingOptions().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Job parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.Job prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A Job resource represents a job posting (also referred to as a "job listing"
+   * or "job requisition"). A job belongs to a
+   * [Company][google.cloud.talent.v4beta1.Company], which is the hiring entity
+   * responsible for the job.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Job} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Job) + com.google.cloud.talent.v4beta1.JobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 10: + return internalGetCustomAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 10: + return internalGetMutableCustomAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Job.class, + com.google.cloud.talent.v4beta1.Job.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Job.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + companyName_ = ""; + + requisitionId_ = ""; + + title_ = ""; + + description_ = ""; + + addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + if (applicationInfoBuilder_ == null) { + applicationInfo_ = null; + } else { + applicationInfo_ = null; + applicationInfoBuilder_ = null; + } + jobBenefits_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + if (compensationInfoBuilder_ == null) { + compensationInfo_ = null; + } else { + compensationInfo_ = null; + compensationInfoBuilder_ = null; + } + internalGetMutableCustomAttributes().clear(); + degreeTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + department_ = ""; + + employmentTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + incentives_ = ""; + + languageCode_ = ""; + + jobLevel_ = 0; + + promotionValue_ = 0; + + qualifications_ = ""; + + responsibilities_ = ""; + + postingRegion_ = 0; + + visibility_ = 0; + + if (jobStartTimeBuilder_ == null) { + jobStartTime_ = null; + } else { + jobStartTime_ = null; + jobStartTimeBuilder_ = null; + } + if (jobEndTimeBuilder_ == null) { + jobEndTime_ = null; + } else { + jobEndTime_ = null; + jobEndTimeBuilder_ = null; + } + if (postingPublishTimeBuilder_ == null) { + postingPublishTime_ = null; + } else { + postingPublishTime_ = null; + postingPublishTimeBuilder_ = null; + } + if (postingExpireTimeBuilder_ == null) { + postingExpireTime_ = null; + } else { + postingExpireTime_ = null; + postingExpireTimeBuilder_ = null; + } + if (postingCreateTimeBuilder_ == null) { + postingCreateTime_ = null; + } else { + postingCreateTime_ = null; + postingCreateTimeBuilder_ = null; + } + if (postingUpdateTimeBuilder_ == null) { + postingUpdateTime_ = null; + } else { + postingUpdateTime_ = null; + postingUpdateTimeBuilder_ = null; + } + companyDisplayName_ = ""; + + if (derivedInfoBuilder_ == null) { + derivedInfo_ = null; + } else { + derivedInfo_ = null; + derivedInfoBuilder_ = null; + } + if (processingOptionsBuilder_ == null) { + processingOptions_ = null; + } else { + processingOptions_ = null; + processingOptionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Job.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job build() { + com.google.cloud.talent.v4beta1.Job result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job buildPartial() { + com.google.cloud.talent.v4beta1.Job result = new com.google.cloud.talent.v4beta1.Job(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + result.companyName_ = companyName_; + result.requisitionId_ = requisitionId_; + result.title_ = title_; + result.description_ = description_; + if (((bitField0_ & 0x00000020) == 0x00000020)) { + addresses_ = addresses_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.addresses_ = addresses_; + if (applicationInfoBuilder_ == null) { + result.applicationInfo_ = applicationInfo_; + } else { + result.applicationInfo_ = applicationInfoBuilder_.build(); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + jobBenefits_ = java.util.Collections.unmodifiableList(jobBenefits_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.jobBenefits_ = jobBenefits_; + if (compensationInfoBuilder_ == null) { + result.compensationInfo_ = compensationInfo_; + } else { + result.compensationInfo_ = compensationInfoBuilder_.build(); + } + result.customAttributes_ = internalGetCustomAttributes(); + result.customAttributes_.makeImmutable(); + if (((bitField0_ & 0x00000400) == 0x00000400)) { + degreeTypes_ = java.util.Collections.unmodifiableList(degreeTypes_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.degreeTypes_ = degreeTypes_; + result.department_ = department_; + if (((bitField0_ & 0x00001000) == 0x00001000)) { + employmentTypes_ = java.util.Collections.unmodifiableList(employmentTypes_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.employmentTypes_ = employmentTypes_; + result.incentives_ = incentives_; + result.languageCode_ = languageCode_; + result.jobLevel_ = jobLevel_; + result.promotionValue_ = promotionValue_; + result.qualifications_ = qualifications_; + result.responsibilities_ = responsibilities_; + result.postingRegion_ = postingRegion_; + result.visibility_ = visibility_; + if (jobStartTimeBuilder_ == null) { + result.jobStartTime_ = jobStartTime_; + } else { + result.jobStartTime_ = jobStartTimeBuilder_.build(); + } + if (jobEndTimeBuilder_ == null) { + result.jobEndTime_ = jobEndTime_; + } else { + result.jobEndTime_ = jobEndTimeBuilder_.build(); + } + if (postingPublishTimeBuilder_ == null) { + result.postingPublishTime_ = postingPublishTime_; + } else { + result.postingPublishTime_ = postingPublishTimeBuilder_.build(); + } + if (postingExpireTimeBuilder_ == null) { + result.postingExpireTime_ = postingExpireTime_; + } else { + result.postingExpireTime_ = postingExpireTimeBuilder_.build(); + } + if (postingCreateTimeBuilder_ == null) { + result.postingCreateTime_ = postingCreateTime_; + } else { + result.postingCreateTime_ = postingCreateTimeBuilder_.build(); + } + if (postingUpdateTimeBuilder_ == null) { + result.postingUpdateTime_ = postingUpdateTime_; + } else { + result.postingUpdateTime_ = postingUpdateTimeBuilder_.build(); + } + result.companyDisplayName_ = companyDisplayName_; + if (derivedInfoBuilder_ == null) { + result.derivedInfo_ = derivedInfo_; + } else { + result.derivedInfo_ = derivedInfoBuilder_.build(); + } + if (processingOptionsBuilder_ == null) { + result.processingOptions_ = processingOptions_; + } else { + result.processingOptions_ = processingOptionsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Job) { + return mergeFrom((com.google.cloud.talent.v4beta1.Job) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Job other) { + if (other == com.google.cloud.talent.v4beta1.Job.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getCompanyName().isEmpty()) { + companyName_ = other.companyName_; + onChanged(); + } + if (!other.getRequisitionId().isEmpty()) { + requisitionId_ = other.requisitionId_; + onChanged(); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (!other.addresses_.isEmpty()) { + if (addresses_.isEmpty()) { + addresses_ = other.addresses_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureAddressesIsMutable(); + addresses_.addAll(other.addresses_); + } + onChanged(); + } + if (other.hasApplicationInfo()) { + mergeApplicationInfo(other.getApplicationInfo()); + } + if (!other.jobBenefits_.isEmpty()) { + if (jobBenefits_.isEmpty()) { + jobBenefits_ = other.jobBenefits_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureJobBenefitsIsMutable(); + jobBenefits_.addAll(other.jobBenefits_); + } + onChanged(); + } + if (other.hasCompensationInfo()) { + mergeCompensationInfo(other.getCompensationInfo()); + } + internalGetMutableCustomAttributes().mergeFrom(other.internalGetCustomAttributes()); + if (!other.degreeTypes_.isEmpty()) { + if (degreeTypes_.isEmpty()) { + degreeTypes_ = other.degreeTypes_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureDegreeTypesIsMutable(); + degreeTypes_.addAll(other.degreeTypes_); + } + onChanged(); + } + if (!other.getDepartment().isEmpty()) { + department_ = other.department_; + onChanged(); + } + if (!other.employmentTypes_.isEmpty()) { + if (employmentTypes_.isEmpty()) { + employmentTypes_ = other.employmentTypes_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureEmploymentTypesIsMutable(); + employmentTypes_.addAll(other.employmentTypes_); + } + onChanged(); + } + if (!other.getIncentives().isEmpty()) { + incentives_ = other.incentives_; + onChanged(); + } + if (!other.getLanguageCode().isEmpty()) { + languageCode_ = other.languageCode_; + onChanged(); + } + if (other.jobLevel_ != 0) { + setJobLevelValue(other.getJobLevelValue()); + } + if (other.getPromotionValue() != 0) { + setPromotionValue(other.getPromotionValue()); + } + if (!other.getQualifications().isEmpty()) { + qualifications_ = other.qualifications_; + onChanged(); + } + if (!other.getResponsibilities().isEmpty()) { + responsibilities_ = other.responsibilities_; + onChanged(); + } + if (other.postingRegion_ != 0) { + setPostingRegionValue(other.getPostingRegionValue()); + } + if (other.visibility_ != 0) { + setVisibilityValue(other.getVisibilityValue()); + } + if (other.hasJobStartTime()) { + mergeJobStartTime(other.getJobStartTime()); + } + if (other.hasJobEndTime()) { + mergeJobEndTime(other.getJobEndTime()); + } + if (other.hasPostingPublishTime()) { + mergePostingPublishTime(other.getPostingPublishTime()); + } + if (other.hasPostingExpireTime()) { + mergePostingExpireTime(other.getPostingExpireTime()); + } + if (other.hasPostingCreateTime()) { + mergePostingCreateTime(other.getPostingCreateTime()); + } + if (other.hasPostingUpdateTime()) { + mergePostingUpdateTime(other.getPostingUpdateTime()); + } + if (!other.getCompanyDisplayName().isEmpty()) { + companyDisplayName_ = other.companyDisplayName_; + onChanged(); + } + if (other.hasDerivedInfo()) { + mergeDerivedInfo(other.getDerivedInfo()); + } + if (other.hasProcessingOptions()) { + mergeProcessingOptions(other.getProcessingOptions()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Job parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Job) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required during job update.
+     * The resource name for the job. This is generated by the service when a
+     * job is created.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * Use of this field in job queries and API calls is preferred over the use of
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this
+     * value is unique.
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required during job update.
+     * The resource name for the job. This is generated by the service when a
+     * job is created.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * Use of this field in job queries and API calls is preferred over the use of
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this
+     * value is unique.
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required during job update.
+     * The resource name for the job. This is generated by the service when a
+     * job is created.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * Use of this field in job queries and API calls is preferred over the use of
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this
+     * value is unique.
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required during job update.
+     * The resource name for the job. This is generated by the service when a
+     * job is created.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * Use of this field in job queries and API calls is preferred over the use of
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this
+     * value is unique.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required during job update.
+     * The resource name for the job. This is generated by the service when a
+     * job is created.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * Use of this field in job queries and API calls is preferred over the use of
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this
+     * value is unique.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object companyName_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the company listing the job, such as
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string company_name = 2; + */ + public java.lang.String getCompanyName() { + java.lang.Object ref = companyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + companyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the company listing the job, such as
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string company_name = 2; + */ + public com.google.protobuf.ByteString getCompanyNameBytes() { + java.lang.Object ref = companyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + companyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the company listing the job, such as
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string company_name = 2; + */ + public Builder setCompanyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + companyName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the company listing the job, such as
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string company_name = 2; + */ + public Builder clearCompanyName() { + + companyName_ = getDefaultInstance().getCompanyName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the company listing the job, such as
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string company_name = 2; + */ + public Builder setCompanyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + companyName_ = value; + onChanged(); + return this; + } + + private java.lang.Object requisitionId_ = ""; + /** + * + * + *
+     * Required.
+     * The requisition ID, also referred to as the posting ID, is assigned by the
+     * client to identify a job. This field is intended to be used by clients
+     * for client identification and tracking of postings. A job isn't allowed
+     * to be created if there is another job with the same
+     * [company][google.cloud.talent.v4beta1.Job.name],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string requisition_id = 3; + */ + public java.lang.String getRequisitionId() { + java.lang.Object ref = requisitionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requisitionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The requisition ID, also referred to as the posting ID, is assigned by the
+     * client to identify a job. This field is intended to be used by clients
+     * for client identification and tracking of postings. A job isn't allowed
+     * to be created if there is another job with the same
+     * [company][google.cloud.talent.v4beta1.Job.name],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string requisition_id = 3; + */ + public com.google.protobuf.ByteString getRequisitionIdBytes() { + java.lang.Object ref = requisitionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requisitionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The requisition ID, also referred to as the posting ID, is assigned by the
+     * client to identify a job. This field is intended to be used by clients
+     * for client identification and tracking of postings. A job isn't allowed
+     * to be created if there is another job with the same
+     * [company][google.cloud.talent.v4beta1.Job.name],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string requisition_id = 3; + */ + public Builder setRequisitionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requisitionId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The requisition ID, also referred to as the posting ID, is assigned by the
+     * client to identify a job. This field is intended to be used by clients
+     * for client identification and tracking of postings. A job isn't allowed
+     * to be created if there is another job with the same
+     * [company][google.cloud.talent.v4beta1.Job.name],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string requisition_id = 3; + */ + public Builder clearRequisitionId() { + + requisitionId_ = getDefaultInstance().getRequisitionId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The requisition ID, also referred to as the posting ID, is assigned by the
+     * client to identify a job. This field is intended to be used by clients
+     * for client identification and tracking of postings. A job isn't allowed
+     * to be created if there is another job with the same
+     * [company][google.cloud.talent.v4beta1.Job.name],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string requisition_id = 3; + */ + public Builder setRequisitionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requisitionId_ = value; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + /** + * + * + *
+     * Required.
+     * The title of the job, such as "Software Engineer"
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * string title = 4; + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The title of the job, such as "Software Engineer"
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * string title = 4; + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The title of the job, such as "Software Engineer"
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * string title = 4; + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + title_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The title of the job, such as "Software Engineer"
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * string title = 4; + */ + public Builder clearTitle() { + + title_ = getDefaultInstance().getTitle(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The title of the job, such as "Software Engineer"
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * string title = 4; + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + title_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Required.
+     * The description of the job, which typically includes a multi-paragraph
+     * description of the company and related information. Separate fields are
+     * provided on the job object for
+     * [responsibilities][google.cloud.talent.v4beta1.Job.responsibilities],
+     * [qualifications][google.cloud.talent.v4beta1.Job.qualifications], and other
+     * job characteristics. Use of these separate job fields is recommended.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 100,000.
+     * 
+ * + * string description = 5; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The description of the job, which typically includes a multi-paragraph
+     * description of the company and related information. Separate fields are
+     * provided on the job object for
+     * [responsibilities][google.cloud.talent.v4beta1.Job.responsibilities],
+     * [qualifications][google.cloud.talent.v4beta1.Job.qualifications], and other
+     * job characteristics. Use of these separate job fields is recommended.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 100,000.
+     * 
+ * + * string description = 5; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The description of the job, which typically includes a multi-paragraph
+     * description of the company and related information. Separate fields are
+     * provided on the job object for
+     * [responsibilities][google.cloud.talent.v4beta1.Job.responsibilities],
+     * [qualifications][google.cloud.talent.v4beta1.Job.qualifications], and other
+     * job characteristics. Use of these separate job fields is recommended.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 100,000.
+     * 
+ * + * string description = 5; + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The description of the job, which typically includes a multi-paragraph
+     * description of the company and related information. Separate fields are
+     * provided on the job object for
+     * [responsibilities][google.cloud.talent.v4beta1.Job.responsibilities],
+     * [qualifications][google.cloud.talent.v4beta1.Job.qualifications], and other
+     * job characteristics. Use of these separate job fields is recommended.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 100,000.
+     * 
+ * + * string description = 5; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The description of the job, which typically includes a multi-paragraph
+     * description of the company and related information. Separate fields are
+     * provided on the job object for
+     * [responsibilities][google.cloud.talent.v4beta1.Job.responsibilities],
+     * [qualifications][google.cloud.talent.v4beta1.Job.qualifications], and other
+     * job characteristics. Use of these separate job fields is recommended.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 100,000.
+     * 
+ * + * string description = 5; + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList addresses_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAddressesIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + addresses_ = new com.google.protobuf.LazyStringArrayList(addresses_); + bitField0_ |= 0x00000020; + } + } + /** + * + * + *
+     * Optional but strongly recommended for the best service experience.
+     * Location(s) where the employer is looking to hire for this job posting.
+     * Specifying the full street address(es) of the hiring location enables
+     * better API results, especially job searches by commute time.
+     * At most 50 locations are allowed for best search performance. If a job has
+     * more locations, it is suggested to split it into multiple jobs with unique
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+     * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+     * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+     * allowed. If the original
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+     * preserved, a custom field should be used for storage. It is also suggested
+     * to group the locations that close to each other in the same job for better
+     * search experience.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * repeated string addresses = 6; + */ + public com.google.protobuf.ProtocolStringList getAddressesList() { + return addresses_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional but strongly recommended for the best service experience.
+     * Location(s) where the employer is looking to hire for this job posting.
+     * Specifying the full street address(es) of the hiring location enables
+     * better API results, especially job searches by commute time.
+     * At most 50 locations are allowed for best search performance. If a job has
+     * more locations, it is suggested to split it into multiple jobs with unique
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+     * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+     * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+     * allowed. If the original
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+     * preserved, a custom field should be used for storage. It is also suggested
+     * to group the locations that close to each other in the same job for better
+     * search experience.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * repeated string addresses = 6; + */ + public int getAddressesCount() { + return addresses_.size(); + } + /** + * + * + *
+     * Optional but strongly recommended for the best service experience.
+     * Location(s) where the employer is looking to hire for this job posting.
+     * Specifying the full street address(es) of the hiring location enables
+     * better API results, especially job searches by commute time.
+     * At most 50 locations are allowed for best search performance. If a job has
+     * more locations, it is suggested to split it into multiple jobs with unique
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+     * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+     * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+     * allowed. If the original
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+     * preserved, a custom field should be used for storage. It is also suggested
+     * to group the locations that close to each other in the same job for better
+     * search experience.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * repeated string addresses = 6; + */ + public java.lang.String getAddresses(int index) { + return addresses_.get(index); + } + /** + * + * + *
+     * Optional but strongly recommended for the best service experience.
+     * Location(s) where the employer is looking to hire for this job posting.
+     * Specifying the full street address(es) of the hiring location enables
+     * better API results, especially job searches by commute time.
+     * At most 50 locations are allowed for best search performance. If a job has
+     * more locations, it is suggested to split it into multiple jobs with unique
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+     * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+     * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+     * allowed. If the original
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+     * preserved, a custom field should be used for storage. It is also suggested
+     * to group the locations that close to each other in the same job for better
+     * search experience.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * repeated string addresses = 6; + */ + public com.google.protobuf.ByteString getAddressesBytes(int index) { + return addresses_.getByteString(index); + } + /** + * + * + *
+     * Optional but strongly recommended for the best service experience.
+     * Location(s) where the employer is looking to hire for this job posting.
+     * Specifying the full street address(es) of the hiring location enables
+     * better API results, especially job searches by commute time.
+     * At most 50 locations are allowed for best search performance. If a job has
+     * more locations, it is suggested to split it into multiple jobs with unique
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+     * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+     * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+     * allowed. If the original
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+     * preserved, a custom field should be used for storage. It is also suggested
+     * to group the locations that close to each other in the same job for better
+     * search experience.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * repeated string addresses = 6; + */ + public Builder setAddresses(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressesIsMutable(); + addresses_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service experience.
+     * Location(s) where the employer is looking to hire for this job posting.
+     * Specifying the full street address(es) of the hiring location enables
+     * better API results, especially job searches by commute time.
+     * At most 50 locations are allowed for best search performance. If a job has
+     * more locations, it is suggested to split it into multiple jobs with unique
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+     * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+     * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+     * allowed. If the original
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+     * preserved, a custom field should be used for storage. It is also suggested
+     * to group the locations that close to each other in the same job for better
+     * search experience.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * repeated string addresses = 6; + */ + public Builder addAddresses(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressesIsMutable(); + addresses_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service experience.
+     * Location(s) where the employer is looking to hire for this job posting.
+     * Specifying the full street address(es) of the hiring location enables
+     * better API results, especially job searches by commute time.
+     * At most 50 locations are allowed for best search performance. If a job has
+     * more locations, it is suggested to split it into multiple jobs with unique
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+     * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+     * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+     * allowed. If the original
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+     * preserved, a custom field should be used for storage. It is also suggested
+     * to group the locations that close to each other in the same job for better
+     * search experience.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * repeated string addresses = 6; + */ + public Builder addAllAddresses(java.lang.Iterable values) { + ensureAddressesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, addresses_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service experience.
+     * Location(s) where the employer is looking to hire for this job posting.
+     * Specifying the full street address(es) of the hiring location enables
+     * better API results, especially job searches by commute time.
+     * At most 50 locations are allowed for best search performance. If a job has
+     * more locations, it is suggested to split it into multiple jobs with unique
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+     * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+     * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+     * allowed. If the original
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+     * preserved, a custom field should be used for storage. It is also suggested
+     * to group the locations that close to each other in the same job for better
+     * search experience.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * repeated string addresses = 6; + */ + public Builder clearAddresses() { + addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service experience.
+     * Location(s) where the employer is looking to hire for this job posting.
+     * Specifying the full street address(es) of the hiring location enables
+     * better API results, especially job searches by commute time.
+     * At most 50 locations are allowed for best search performance. If a job has
+     * more locations, it is suggested to split it into multiple jobs with unique
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+     * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+     * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+     * allowed. If the original
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+     * preserved, a custom field should be used for storage. It is also suggested
+     * to group the locations that close to each other in the same job for better
+     * search experience.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * repeated string addresses = 6; + */ + public Builder addAddressesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAddressesIsMutable(); + addresses_.add(value); + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.Job.ApplicationInfo applicationInfo_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job.ApplicationInfo, + com.google.cloud.talent.v4beta1.Job.ApplicationInfo.Builder, + com.google.cloud.talent.v4beta1.Job.ApplicationInfoOrBuilder> + applicationInfoBuilder_; + /** + * + * + *
+     * Required. At least one field within
+     * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+     * specified.
+     * Job application information.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + public boolean hasApplicationInfo() { + return applicationInfoBuilder_ != null || applicationInfo_ != null; + } + /** + * + * + *
+     * Required. At least one field within
+     * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+     * specified.
+     * Job application information.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + public com.google.cloud.talent.v4beta1.Job.ApplicationInfo getApplicationInfo() { + if (applicationInfoBuilder_ == null) { + return applicationInfo_ == null + ? com.google.cloud.talent.v4beta1.Job.ApplicationInfo.getDefaultInstance() + : applicationInfo_; + } else { + return applicationInfoBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. At least one field within
+     * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+     * specified.
+     * Job application information.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + public Builder setApplicationInfo(com.google.cloud.talent.v4beta1.Job.ApplicationInfo value) { + if (applicationInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + applicationInfo_ = value; + onChanged(); + } else { + applicationInfoBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. At least one field within
+     * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+     * specified.
+     * Job application information.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + public Builder setApplicationInfo( + com.google.cloud.talent.v4beta1.Job.ApplicationInfo.Builder builderForValue) { + if (applicationInfoBuilder_ == null) { + applicationInfo_ = builderForValue.build(); + onChanged(); + } else { + applicationInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. At least one field within
+     * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+     * specified.
+     * Job application information.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + public Builder mergeApplicationInfo(com.google.cloud.talent.v4beta1.Job.ApplicationInfo value) { + if (applicationInfoBuilder_ == null) { + if (applicationInfo_ != null) { + applicationInfo_ = + com.google.cloud.talent.v4beta1.Job.ApplicationInfo.newBuilder(applicationInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + applicationInfo_ = value; + } + onChanged(); + } else { + applicationInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. At least one field within
+     * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+     * specified.
+     * Job application information.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + public Builder clearApplicationInfo() { + if (applicationInfoBuilder_ == null) { + applicationInfo_ = null; + onChanged(); + } else { + applicationInfo_ = null; + applicationInfoBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. At least one field within
+     * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+     * specified.
+     * Job application information.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + public com.google.cloud.talent.v4beta1.Job.ApplicationInfo.Builder getApplicationInfoBuilder() { + + onChanged(); + return getApplicationInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. At least one field within
+     * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+     * specified.
+     * Job application information.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + public com.google.cloud.talent.v4beta1.Job.ApplicationInfoOrBuilder + getApplicationInfoOrBuilder() { + if (applicationInfoBuilder_ != null) { + return applicationInfoBuilder_.getMessageOrBuilder(); + } else { + return applicationInfo_ == null + ? com.google.cloud.talent.v4beta1.Job.ApplicationInfo.getDefaultInstance() + : applicationInfo_; + } + } + /** + * + * + *
+     * Required. At least one field within
+     * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+     * specified.
+     * Job application information.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job.ApplicationInfo, + com.google.cloud.talent.v4beta1.Job.ApplicationInfo.Builder, + com.google.cloud.talent.v4beta1.Job.ApplicationInfoOrBuilder> + getApplicationInfoFieldBuilder() { + if (applicationInfoBuilder_ == null) { + applicationInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job.ApplicationInfo, + com.google.cloud.talent.v4beta1.Job.ApplicationInfo.Builder, + com.google.cloud.talent.v4beta1.Job.ApplicationInfoOrBuilder>( + getApplicationInfo(), getParentForChildren(), isClean()); + applicationInfo_ = null; + } + return applicationInfoBuilder_; + } + + private java.util.List jobBenefits_ = java.util.Collections.emptyList(); + + private void ensureJobBenefitsIsMutable() { + if (!((bitField0_ & 0x00000080) == 0x00000080)) { + jobBenefits_ = new java.util.ArrayList(jobBenefits_); + bitField0_ |= 0x00000080; + } + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public java.util.List getJobBenefitsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobBenefit>( + jobBenefits_, jobBenefits_converter_); + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public int getJobBenefitsCount() { + return jobBenefits_.size(); + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public com.google.cloud.talent.v4beta1.JobBenefit getJobBenefits(int index) { + return jobBenefits_converter_.convert(jobBenefits_.get(index)); + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public Builder setJobBenefits(int index, com.google.cloud.talent.v4beta1.JobBenefit value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobBenefitsIsMutable(); + jobBenefits_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public Builder addJobBenefits(com.google.cloud.talent.v4beta1.JobBenefit value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobBenefitsIsMutable(); + jobBenefits_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public Builder addAllJobBenefits( + java.lang.Iterable values) { + ensureJobBenefitsIsMutable(); + for (com.google.cloud.talent.v4beta1.JobBenefit value : values) { + jobBenefits_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public Builder clearJobBenefits() { + jobBenefits_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public java.util.List getJobBenefitsValueList() { + return java.util.Collections.unmodifiableList(jobBenefits_); + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public int getJobBenefitsValue(int index) { + return jobBenefits_.get(index); + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public Builder setJobBenefitsValue(int index, int value) { + ensureJobBenefitsIsMutable(); + jobBenefits_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public Builder addJobBenefitsValue(int value) { + ensureJobBenefitsIsMutable(); + jobBenefits_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public Builder addAllJobBenefitsValue(java.lang.Iterable values) { + ensureJobBenefitsIsMutable(); + for (int value : values) { + jobBenefits_.add(value); + } + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.CompensationInfo compensationInfo_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo, + com.google.cloud.talent.v4beta1.CompensationInfo.Builder, + com.google.cloud.talent.v4beta1.CompensationInfoOrBuilder> + compensationInfoBuilder_; + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + public boolean hasCompensationInfo() { + return compensationInfoBuilder_ != null || compensationInfo_ != null; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo getCompensationInfo() { + if (compensationInfoBuilder_ == null) { + return compensationInfo_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.getDefaultInstance() + : compensationInfo_; + } else { + return compensationInfoBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + public Builder setCompensationInfo(com.google.cloud.talent.v4beta1.CompensationInfo value) { + if (compensationInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + compensationInfo_ = value; + onChanged(); + } else { + compensationInfoBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + public Builder setCompensationInfo( + com.google.cloud.talent.v4beta1.CompensationInfo.Builder builderForValue) { + if (compensationInfoBuilder_ == null) { + compensationInfo_ = builderForValue.build(); + onChanged(); + } else { + compensationInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + public Builder mergeCompensationInfo(com.google.cloud.talent.v4beta1.CompensationInfo value) { + if (compensationInfoBuilder_ == null) { + if (compensationInfo_ != null) { + compensationInfo_ = + com.google.cloud.talent.v4beta1.CompensationInfo.newBuilder(compensationInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + compensationInfo_ = value; + } + onChanged(); + } else { + compensationInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + public Builder clearCompensationInfo() { + if (compensationInfoBuilder_ == null) { + compensationInfo_ = null; + onChanged(); + } else { + compensationInfo_ = null; + compensationInfoBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.Builder getCompensationInfoBuilder() { + + onChanged(); + return getCompensationInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + public com.google.cloud.talent.v4beta1.CompensationInfoOrBuilder + getCompensationInfoOrBuilder() { + if (compensationInfoBuilder_ != null) { + return compensationInfoBuilder_.getMessageOrBuilder(); + } else { + return compensationInfo_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.getDefaultInstance() + : compensationInfo_; + } + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo, + com.google.cloud.talent.v4beta1.CompensationInfo.Builder, + com.google.cloud.talent.v4beta1.CompensationInfoOrBuilder> + getCompensationInfoFieldBuilder() { + if (compensationInfoBuilder_ == null) { + compensationInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo, + com.google.cloud.talent.v4beta1.CompensationInfo.Builder, + com.google.cloud.talent.v4beta1.CompensationInfoOrBuilder>( + getCompensationInfo(), getParentForChildren(), isClean()); + compensationInfo_ = null; + } + return compensationInfoBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + customAttributes_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + internalGetCustomAttributes() { + if (customAttributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomAttributesDefaultEntryHolder.defaultEntry); + } + return customAttributes_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + internalGetMutableCustomAttributes() { + onChanged(); + ; + if (customAttributes_ == null) { + customAttributes_ = + com.google.protobuf.MapField.newMapField( + CustomAttributesDefaultEntryHolder.defaultEntry); + } + if (!customAttributes_.isMutable()) { + customAttributes_ = customAttributes_.copy(); + } + return customAttributes_; + } + + public int getCustomAttributesCount() { + return internalGetCustomAttributes().getMap().size(); + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom job
+     * attributes that are not covered by the provided structured fields.
+     * The keys of the map are strings up to 64 bytes and must match the
+     * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+     * KEY_1_LIKE_THIS.
+     * At most 100 filterable and at most 100 unfilterable keys are supported.
+     * For filterable `string_values`, across all keys at most 200 values are
+     * allowed, with each string no more than 255 characters. For unfilterable
+     * `string_values`, the maximum total size of `string_values` across all keys
+     * is 50KB.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + public boolean containsCustomAttributes(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetCustomAttributes().getMap().containsKey(key); + } + /** Use {@link #getCustomAttributesMap()} instead. */ + @java.lang.Deprecated + public java.util.Map + getCustomAttributes() { + return getCustomAttributesMap(); + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom job
+     * attributes that are not covered by the provided structured fields.
+     * The keys of the map are strings up to 64 bytes and must match the
+     * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+     * KEY_1_LIKE_THIS.
+     * At most 100 filterable and at most 100 unfilterable keys are supported.
+     * For filterable `string_values`, across all keys at most 200 values are
+     * allowed, with each string no more than 255 characters. For unfilterable
+     * `string_values`, the maximum total size of `string_values` across all keys
+     * is 50KB.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + public java.util.Map + getCustomAttributesMap() { + return internalGetCustomAttributes().getMap(); + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom job
+     * attributes that are not covered by the provided structured fields.
+     * The keys of the map are strings up to 64 bytes and must match the
+     * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+     * KEY_1_LIKE_THIS.
+     * At most 100 filterable and at most 100 unfilterable keys are supported.
+     * For filterable `string_values`, across all keys at most 200 values are
+     * allowed, with each string no more than 255 characters. For unfilterable
+     * `string_values`, the maximum total size of `string_values` across all keys
+     * is 50KB.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + public com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrDefault( + java.lang.String key, com.google.cloud.talent.v4beta1.CustomAttribute defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetCustomAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom job
+     * attributes that are not covered by the provided structured fields.
+     * The keys of the map are strings up to 64 bytes and must match the
+     * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+     * KEY_1_LIKE_THIS.
+     * At most 100 filterable and at most 100 unfilterable keys are supported.
+     * For filterable `string_values`, across all keys at most 200 values are
+     * allowed, with each string no more than 255 characters. For unfilterable
+     * `string_values`, the maximum total size of `string_values` across all keys
+     * is 50KB.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + public com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrThrow( + java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetCustomAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearCustomAttributes() { + internalGetMutableCustomAttributes().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom job
+     * attributes that are not covered by the provided structured fields.
+     * The keys of the map are strings up to 64 bytes and must match the
+     * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+     * KEY_1_LIKE_THIS.
+     * At most 100 filterable and at most 100 unfilterable keys are supported.
+     * For filterable `string_values`, across all keys at most 200 values are
+     * allowed, with each string no more than 255 characters. For unfilterable
+     * `string_values`, the maximum total size of `string_values` across all keys
+     * is 50KB.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + public Builder removeCustomAttributes(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableCustomAttributes().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableCustomAttributes() { + return internalGetMutableCustomAttributes().getMutableMap(); + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom job
+     * attributes that are not covered by the provided structured fields.
+     * The keys of the map are strings up to 64 bytes and must match the
+     * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+     * KEY_1_LIKE_THIS.
+     * At most 100 filterable and at most 100 unfilterable keys are supported.
+     * For filterable `string_values`, across all keys at most 200 values are
+     * allowed, with each string no more than 255 characters. For unfilterable
+     * `string_values`, the maximum total size of `string_values` across all keys
+     * is 50KB.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + public Builder putCustomAttributes( + java.lang.String key, com.google.cloud.talent.v4beta1.CustomAttribute value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableCustomAttributes().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom job
+     * attributes that are not covered by the provided structured fields.
+     * The keys of the map are strings up to 64 bytes and must match the
+     * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+     * KEY_1_LIKE_THIS.
+     * At most 100 filterable and at most 100 unfilterable keys are supported.
+     * For filterable `string_values`, across all keys at most 200 values are
+     * allowed, with each string no more than 255 characters. For unfilterable
+     * `string_values`, the maximum total size of `string_values` across all keys
+     * is 50KB.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + public Builder putAllCustomAttributes( + java.util.Map values) { + internalGetMutableCustomAttributes().getMutableMap().putAll(values); + return this; + } + + private java.util.List degreeTypes_ = java.util.Collections.emptyList(); + + private void ensureDegreeTypesIsMutable() { + if (!((bitField0_ & 0x00000400) == 0x00000400)) { + degreeTypes_ = new java.util.ArrayList(degreeTypes_); + bitField0_ |= 0x00000400; + } + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public java.util.List getDegreeTypesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.DegreeType>( + degreeTypes_, degreeTypes_converter_); + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public int getDegreeTypesCount() { + return degreeTypes_.size(); + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public com.google.cloud.talent.v4beta1.DegreeType getDegreeTypes(int index) { + return degreeTypes_converter_.convert(degreeTypes_.get(index)); + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public Builder setDegreeTypes(int index, com.google.cloud.talent.v4beta1.DegreeType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDegreeTypesIsMutable(); + degreeTypes_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public Builder addDegreeTypes(com.google.cloud.talent.v4beta1.DegreeType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDegreeTypesIsMutable(); + degreeTypes_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public Builder addAllDegreeTypes( + java.lang.Iterable values) { + ensureDegreeTypesIsMutable(); + for (com.google.cloud.talent.v4beta1.DegreeType value : values) { + degreeTypes_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public Builder clearDegreeTypes() { + degreeTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public java.util.List getDegreeTypesValueList() { + return java.util.Collections.unmodifiableList(degreeTypes_); + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public int getDegreeTypesValue(int index) { + return degreeTypes_.get(index); + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public Builder setDegreeTypesValue(int index, int value) { + ensureDegreeTypesIsMutable(); + degreeTypes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public Builder addDegreeTypesValue(int value) { + ensureDegreeTypesIsMutable(); + degreeTypes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public Builder addAllDegreeTypesValue(java.lang.Iterable values) { + ensureDegreeTypesIsMutable(); + for (int value : values) { + degreeTypes_.add(value); + } + onChanged(); + return this; + } + + private java.lang.Object department_ = ""; + /** + * + * + *
+     * Optional.
+     * The department or functional area within the company with the open
+     * position.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string department = 12; + */ + public java.lang.String getDepartment() { + java.lang.Object ref = department_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + department_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The department or functional area within the company with the open
+     * position.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string department = 12; + */ + public com.google.protobuf.ByteString getDepartmentBytes() { + java.lang.Object ref = department_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + department_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The department or functional area within the company with the open
+     * position.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string department = 12; + */ + public Builder setDepartment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + department_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The department or functional area within the company with the open
+     * position.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string department = 12; + */ + public Builder clearDepartment() { + + department_ = getDefaultInstance().getDepartment(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The department or functional area within the company with the open
+     * position.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string department = 12; + */ + public Builder setDepartmentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + department_ = value; + onChanged(); + return this; + } + + private java.util.List employmentTypes_ = java.util.Collections.emptyList(); + + private void ensureEmploymentTypesIsMutable() { + if (!((bitField0_ & 0x00001000) == 0x00001000)) { + employmentTypes_ = new java.util.ArrayList(employmentTypes_); + bitField0_ |= 0x00001000; + } + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public java.util.List getEmploymentTypesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.EmploymentType>( + employmentTypes_, employmentTypes_converter_); + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public int getEmploymentTypesCount() { + return employmentTypes_.size(); + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public com.google.cloud.talent.v4beta1.EmploymentType getEmploymentTypes(int index) { + return employmentTypes_converter_.convert(employmentTypes_.get(index)); + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public Builder setEmploymentTypes( + int index, com.google.cloud.talent.v4beta1.EmploymentType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmploymentTypesIsMutable(); + employmentTypes_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public Builder addEmploymentTypes(com.google.cloud.talent.v4beta1.EmploymentType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmploymentTypesIsMutable(); + employmentTypes_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public Builder addAllEmploymentTypes( + java.lang.Iterable values) { + ensureEmploymentTypesIsMutable(); + for (com.google.cloud.talent.v4beta1.EmploymentType value : values) { + employmentTypes_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public Builder clearEmploymentTypes() { + employmentTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public java.util.List getEmploymentTypesValueList() { + return java.util.Collections.unmodifiableList(employmentTypes_); + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public int getEmploymentTypesValue(int index) { + return employmentTypes_.get(index); + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public Builder setEmploymentTypesValue(int index, int value) { + ensureEmploymentTypesIsMutable(); + employmentTypes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public Builder addEmploymentTypesValue(int value) { + ensureEmploymentTypesIsMutable(); + employmentTypes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public Builder addAllEmploymentTypesValue(java.lang.Iterable values) { + ensureEmploymentTypesIsMutable(); + for (int value : values) { + employmentTypes_.add(value); + } + onChanged(); + return this; + } + + private java.lang.Object incentives_ = ""; + /** + * + * + *
+     * Optional.
+     * A description of bonus, commission, and other compensation
+     * incentives associated with the job not including salary or pay.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string incentives = 14; + */ + public java.lang.String getIncentives() { + java.lang.Object ref = incentives_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + incentives_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A description of bonus, commission, and other compensation
+     * incentives associated with the job not including salary or pay.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string incentives = 14; + */ + public com.google.protobuf.ByteString getIncentivesBytes() { + java.lang.Object ref = incentives_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + incentives_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A description of bonus, commission, and other compensation
+     * incentives associated with the job not including salary or pay.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string incentives = 14; + */ + public Builder setIncentives(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + incentives_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A description of bonus, commission, and other compensation
+     * incentives associated with the job not including salary or pay.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string incentives = 14; + */ + public Builder clearIncentives() { + + incentives_ = getDefaultInstance().getIncentives(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A description of bonus, commission, and other compensation
+     * incentives associated with the job not including salary or pay.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string incentives = 14; + */ + public Builder setIncentivesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + incentives_ = value; + onChanged(); + return this; + } + + private java.lang.Object languageCode_ = ""; + /** + * + * + *
+     * Optional.
+     * The language of the posting. This field is distinct from
+     * any requirements for fluency that are associated with the job.
+     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+     * class="external" target="_blank" }.
+     * If this field is unspecified and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] is present,
+     * detected language code based on
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] is assigned,
+     * otherwise defaults to 'en_US'.
+     * 
+ * + * string language_code = 15; + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The language of the posting. This field is distinct from
+     * any requirements for fluency that are associated with the job.
+     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+     * class="external" target="_blank" }.
+     * If this field is unspecified and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] is present,
+     * detected language code based on
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] is assigned,
+     * otherwise defaults to 'en_US'.
+     * 
+ * + * string language_code = 15; + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The language of the posting. This field is distinct from
+     * any requirements for fluency that are associated with the job.
+     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+     * class="external" target="_blank" }.
+     * If this field is unspecified and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] is present,
+     * detected language code based on
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] is assigned,
+     * otherwise defaults to 'en_US'.
+     * 
+ * + * string language_code = 15; + */ + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + languageCode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The language of the posting. This field is distinct from
+     * any requirements for fluency that are associated with the job.
+     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+     * class="external" target="_blank" }.
+     * If this field is unspecified and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] is present,
+     * detected language code based on
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] is assigned,
+     * otherwise defaults to 'en_US'.
+     * 
+ * + * string language_code = 15; + */ + public Builder clearLanguageCode() { + + languageCode_ = getDefaultInstance().getLanguageCode(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The language of the posting. This field is distinct from
+     * any requirements for fluency that are associated with the job.
+     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+     * class="external" target="_blank" }.
+     * If this field is unspecified and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] is present,
+     * detected language code based on
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] is assigned,
+     * otherwise defaults to 'en_US'.
+     * 
+ * + * string language_code = 15; + */ + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + languageCode_ = value; + onChanged(); + return this; + } + + private int jobLevel_ = 0; + /** + * + * + *
+     * Optional.
+     * The experience level associated with the job, such as "Entry Level".
+     * 
+ * + * .google.cloud.talent.v4beta1.JobLevel job_level = 16; + */ + public int getJobLevelValue() { + return jobLevel_; + } + /** + * + * + *
+     * Optional.
+     * The experience level associated with the job, such as "Entry Level".
+     * 
+ * + * .google.cloud.talent.v4beta1.JobLevel job_level = 16; + */ + public Builder setJobLevelValue(int value) { + jobLevel_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The experience level associated with the job, such as "Entry Level".
+     * 
+ * + * .google.cloud.talent.v4beta1.JobLevel job_level = 16; + */ + public com.google.cloud.talent.v4beta1.JobLevel getJobLevel() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobLevel result = + com.google.cloud.talent.v4beta1.JobLevel.valueOf(jobLevel_); + return result == null ? com.google.cloud.talent.v4beta1.JobLevel.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional.
+     * The experience level associated with the job, such as "Entry Level".
+     * 
+ * + * .google.cloud.talent.v4beta1.JobLevel job_level = 16; + */ + public Builder setJobLevel(com.google.cloud.talent.v4beta1.JobLevel value) { + if (value == null) { + throw new NullPointerException(); + } + + jobLevel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The experience level associated with the job, such as "Entry Level".
+     * 
+ * + * .google.cloud.talent.v4beta1.JobLevel job_level = 16; + */ + public Builder clearJobLevel() { + + jobLevel_ = 0; + onChanged(); + return this; + } + + private int promotionValue_; + /** + * + * + *
+     * Optional.
+     * A promotion value of the job, as determined by the client.
+     * The value determines the sort order of the jobs returned when searching for
+     * jobs using the featured jobs search call, with higher promotional values
+     * being returned first and ties being resolved by relevance sort. Only the
+     * jobs with a promotionValue >0 are returned in a FEATURED_JOB_SEARCH.
+     * Default value is 0, and negative values are treated as 0.
+     * 
+ * + * int32 promotion_value = 17; + */ + public int getPromotionValue() { + return promotionValue_; + } + /** + * + * + *
+     * Optional.
+     * A promotion value of the job, as determined by the client.
+     * The value determines the sort order of the jobs returned when searching for
+     * jobs using the featured jobs search call, with higher promotional values
+     * being returned first and ties being resolved by relevance sort. Only the
+     * jobs with a promotionValue >0 are returned in a FEATURED_JOB_SEARCH.
+     * Default value is 0, and negative values are treated as 0.
+     * 
+ * + * int32 promotion_value = 17; + */ + public Builder setPromotionValue(int value) { + + promotionValue_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A promotion value of the job, as determined by the client.
+     * The value determines the sort order of the jobs returned when searching for
+     * jobs using the featured jobs search call, with higher promotional values
+     * being returned first and ties being resolved by relevance sort. Only the
+     * jobs with a promotionValue >0 are returned in a FEATURED_JOB_SEARCH.
+     * Default value is 0, and negative values are treated as 0.
+     * 
+ * + * int32 promotion_value = 17; + */ + public Builder clearPromotionValue() { + + promotionValue_ = 0; + onChanged(); + return this; + } + + private java.lang.Object qualifications_ = ""; + /** + * + * + *
+     * Optional.
+     * A description of the qualifications required to perform the
+     * job. The use of this field is recommended
+     * as an alternative to using the more general
+     * [description][google.cloud.talent.v4beta1.Job.description] field.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string qualifications = 18; + */ + public java.lang.String getQualifications() { + java.lang.Object ref = qualifications_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + qualifications_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A description of the qualifications required to perform the
+     * job. The use of this field is recommended
+     * as an alternative to using the more general
+     * [description][google.cloud.talent.v4beta1.Job.description] field.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string qualifications = 18; + */ + public com.google.protobuf.ByteString getQualificationsBytes() { + java.lang.Object ref = qualifications_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + qualifications_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A description of the qualifications required to perform the
+     * job. The use of this field is recommended
+     * as an alternative to using the more general
+     * [description][google.cloud.talent.v4beta1.Job.description] field.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string qualifications = 18; + */ + public Builder setQualifications(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + qualifications_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A description of the qualifications required to perform the
+     * job. The use of this field is recommended
+     * as an alternative to using the more general
+     * [description][google.cloud.talent.v4beta1.Job.description] field.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string qualifications = 18; + */ + public Builder clearQualifications() { + + qualifications_ = getDefaultInstance().getQualifications(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A description of the qualifications required to perform the
+     * job. The use of this field is recommended
+     * as an alternative to using the more general
+     * [description][google.cloud.talent.v4beta1.Job.description] field.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string qualifications = 18; + */ + public Builder setQualificationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + qualifications_ = value; + onChanged(); + return this; + } + + private java.lang.Object responsibilities_ = ""; + /** + * + * + *
+     * Optional.
+     * A description of job responsibilities. The use of this field is
+     * recommended as an alternative to using the more general
+     * [description][google.cloud.talent.v4beta1.Job.description] field.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string responsibilities = 19; + */ + public java.lang.String getResponsibilities() { + java.lang.Object ref = responsibilities_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + responsibilities_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A description of job responsibilities. The use of this field is
+     * recommended as an alternative to using the more general
+     * [description][google.cloud.talent.v4beta1.Job.description] field.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string responsibilities = 19; + */ + public com.google.protobuf.ByteString getResponsibilitiesBytes() { + java.lang.Object ref = responsibilities_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + responsibilities_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A description of job responsibilities. The use of this field is
+     * recommended as an alternative to using the more general
+     * [description][google.cloud.talent.v4beta1.Job.description] field.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string responsibilities = 19; + */ + public Builder setResponsibilities(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + responsibilities_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A description of job responsibilities. The use of this field is
+     * recommended as an alternative to using the more general
+     * [description][google.cloud.talent.v4beta1.Job.description] field.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string responsibilities = 19; + */ + public Builder clearResponsibilities() { + + responsibilities_ = getDefaultInstance().getResponsibilities(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A description of job responsibilities. The use of this field is
+     * recommended as an alternative to using the more general
+     * [description][google.cloud.talent.v4beta1.Job.description] field.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string responsibilities = 19; + */ + public Builder setResponsibilitiesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + responsibilities_ = value; + onChanged(); + return this; + } + + private int postingRegion_ = 0; + /** + * + * + *
+     * Optional.
+     * The job [PostingRegion][google.cloud.talent.v4beta1.PostingRegion] (for
+     * example, state, country) throughout which the job is available. If this
+     * field is set, a
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in a search
+     * query within the job region finds this job posting if an exact location
+     * match isn't specified. If this field is set to
+     * [PostingRegion.NATION][google.cloud.talent.v4beta1.PostingRegion.NATION] or
+     * [PostingRegion.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA],
+     * setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to
+     * the same location level as this field is strongly recommended.
+     * 
+ * + * .google.cloud.talent.v4beta1.PostingRegion posting_region = 20; + */ + public int getPostingRegionValue() { + return postingRegion_; + } + /** + * + * + *
+     * Optional.
+     * The job [PostingRegion][google.cloud.talent.v4beta1.PostingRegion] (for
+     * example, state, country) throughout which the job is available. If this
+     * field is set, a
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in a search
+     * query within the job region finds this job posting if an exact location
+     * match isn't specified. If this field is set to
+     * [PostingRegion.NATION][google.cloud.talent.v4beta1.PostingRegion.NATION] or
+     * [PostingRegion.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA],
+     * setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to
+     * the same location level as this field is strongly recommended.
+     * 
+ * + * .google.cloud.talent.v4beta1.PostingRegion posting_region = 20; + */ + public Builder setPostingRegionValue(int value) { + postingRegion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job [PostingRegion][google.cloud.talent.v4beta1.PostingRegion] (for
+     * example, state, country) throughout which the job is available. If this
+     * field is set, a
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in a search
+     * query within the job region finds this job posting if an exact location
+     * match isn't specified. If this field is set to
+     * [PostingRegion.NATION][google.cloud.talent.v4beta1.PostingRegion.NATION] or
+     * [PostingRegion.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA],
+     * setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to
+     * the same location level as this field is strongly recommended.
+     * 
+ * + * .google.cloud.talent.v4beta1.PostingRegion posting_region = 20; + */ + public com.google.cloud.talent.v4beta1.PostingRegion getPostingRegion() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.PostingRegion result = + com.google.cloud.talent.v4beta1.PostingRegion.valueOf(postingRegion_); + return result == null ? com.google.cloud.talent.v4beta1.PostingRegion.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional.
+     * The job [PostingRegion][google.cloud.talent.v4beta1.PostingRegion] (for
+     * example, state, country) throughout which the job is available. If this
+     * field is set, a
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in a search
+     * query within the job region finds this job posting if an exact location
+     * match isn't specified. If this field is set to
+     * [PostingRegion.NATION][google.cloud.talent.v4beta1.PostingRegion.NATION] or
+     * [PostingRegion.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA],
+     * setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to
+     * the same location level as this field is strongly recommended.
+     * 
+ * + * .google.cloud.talent.v4beta1.PostingRegion posting_region = 20; + */ + public Builder setPostingRegion(com.google.cloud.talent.v4beta1.PostingRegion value) { + if (value == null) { + throw new NullPointerException(); + } + + postingRegion_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job [PostingRegion][google.cloud.talent.v4beta1.PostingRegion] (for
+     * example, state, country) throughout which the job is available. If this
+     * field is set, a
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in a search
+     * query within the job region finds this job posting if an exact location
+     * match isn't specified. If this field is set to
+     * [PostingRegion.NATION][google.cloud.talent.v4beta1.PostingRegion.NATION] or
+     * [PostingRegion.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA],
+     * setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to
+     * the same location level as this field is strongly recommended.
+     * 
+ * + * .google.cloud.talent.v4beta1.PostingRegion posting_region = 20; + */ + public Builder clearPostingRegion() { + + postingRegion_ = 0; + onChanged(); + return this; + } + + private int visibility_ = 0; + /** + * + * + *
+     * Optional.
+     * The visibility of the job.
+     * Defaults to
+     * [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY]
+     * if not specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.Visibility visibility = 21; + */ + public int getVisibilityValue() { + return visibility_; + } + /** + * + * + *
+     * Optional.
+     * The visibility of the job.
+     * Defaults to
+     * [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY]
+     * if not specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.Visibility visibility = 21; + */ + public Builder setVisibilityValue(int value) { + visibility_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The visibility of the job.
+     * Defaults to
+     * [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY]
+     * if not specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.Visibility visibility = 21; + */ + public com.google.cloud.talent.v4beta1.Visibility getVisibility() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.Visibility result = + com.google.cloud.talent.v4beta1.Visibility.valueOf(visibility_); + return result == null ? com.google.cloud.talent.v4beta1.Visibility.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional.
+     * The visibility of the job.
+     * Defaults to
+     * [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY]
+     * if not specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.Visibility visibility = 21; + */ + public Builder setVisibility(com.google.cloud.talent.v4beta1.Visibility value) { + if (value == null) { + throw new NullPointerException(); + } + + visibility_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The visibility of the job.
+     * Defaults to
+     * [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY]
+     * if not specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.Visibility visibility = 21; + */ + public Builder clearVisibility() { + + visibility_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp jobStartTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + jobStartTimeBuilder_; + /** + * + * + *
+     * Optional.
+     * The start timestamp of the job in UTC time zone. Typically this field
+     * is used for contracting engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + public boolean hasJobStartTime() { + return jobStartTimeBuilder_ != null || jobStartTime_ != null; + } + /** + * + * + *
+     * Optional.
+     * The start timestamp of the job in UTC time zone. Typically this field
+     * is used for contracting engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + public com.google.protobuf.Timestamp getJobStartTime() { + if (jobStartTimeBuilder_ == null) { + return jobStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : jobStartTime_; + } else { + return jobStartTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The start timestamp of the job in UTC time zone. Typically this field
+     * is used for contracting engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + public Builder setJobStartTime(com.google.protobuf.Timestamp value) { + if (jobStartTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + jobStartTime_ = value; + onChanged(); + } else { + jobStartTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The start timestamp of the job in UTC time zone. Typically this field
+     * is used for contracting engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + public Builder setJobStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (jobStartTimeBuilder_ == null) { + jobStartTime_ = builderForValue.build(); + onChanged(); + } else { + jobStartTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The start timestamp of the job in UTC time zone. Typically this field
+     * is used for contracting engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + public Builder mergeJobStartTime(com.google.protobuf.Timestamp value) { + if (jobStartTimeBuilder_ == null) { + if (jobStartTime_ != null) { + jobStartTime_ = + com.google.protobuf.Timestamp.newBuilder(jobStartTime_) + .mergeFrom(value) + .buildPartial(); + } else { + jobStartTime_ = value; + } + onChanged(); + } else { + jobStartTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The start timestamp of the job in UTC time zone. Typically this field
+     * is used for contracting engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + public Builder clearJobStartTime() { + if (jobStartTimeBuilder_ == null) { + jobStartTime_ = null; + onChanged(); + } else { + jobStartTime_ = null; + jobStartTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The start timestamp of the job in UTC time zone. Typically this field
+     * is used for contracting engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + public com.google.protobuf.Timestamp.Builder getJobStartTimeBuilder() { + + onChanged(); + return getJobStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The start timestamp of the job in UTC time zone. Typically this field
+     * is used for contracting engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + public com.google.protobuf.TimestampOrBuilder getJobStartTimeOrBuilder() { + if (jobStartTimeBuilder_ != null) { + return jobStartTimeBuilder_.getMessageOrBuilder(); + } else { + return jobStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : jobStartTime_; + } + } + /** + * + * + *
+     * Optional.
+     * The start timestamp of the job in UTC time zone. Typically this field
+     * is used for contracting engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getJobStartTimeFieldBuilder() { + if (jobStartTimeBuilder_ == null) { + jobStartTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getJobStartTime(), getParentForChildren(), isClean()); + jobStartTime_ = null; + } + return jobStartTimeBuilder_; + } + + private com.google.protobuf.Timestamp jobEndTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + jobEndTimeBuilder_; + /** + * + * + *
+     * Optional.
+     * The end timestamp of the job. Typically this field is used for contracting
+     * engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + public boolean hasJobEndTime() { + return jobEndTimeBuilder_ != null || jobEndTime_ != null; + } + /** + * + * + *
+     * Optional.
+     * The end timestamp of the job. Typically this field is used for contracting
+     * engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + public com.google.protobuf.Timestamp getJobEndTime() { + if (jobEndTimeBuilder_ == null) { + return jobEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : jobEndTime_; + } else { + return jobEndTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The end timestamp of the job. Typically this field is used for contracting
+     * engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + public Builder setJobEndTime(com.google.protobuf.Timestamp value) { + if (jobEndTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + jobEndTime_ = value; + onChanged(); + } else { + jobEndTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The end timestamp of the job. Typically this field is used for contracting
+     * engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + public Builder setJobEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (jobEndTimeBuilder_ == null) { + jobEndTime_ = builderForValue.build(); + onChanged(); + } else { + jobEndTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The end timestamp of the job. Typically this field is used for contracting
+     * engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + public Builder mergeJobEndTime(com.google.protobuf.Timestamp value) { + if (jobEndTimeBuilder_ == null) { + if (jobEndTime_ != null) { + jobEndTime_ = + com.google.protobuf.Timestamp.newBuilder(jobEndTime_).mergeFrom(value).buildPartial(); + } else { + jobEndTime_ = value; + } + onChanged(); + } else { + jobEndTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The end timestamp of the job. Typically this field is used for contracting
+     * engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + public Builder clearJobEndTime() { + if (jobEndTimeBuilder_ == null) { + jobEndTime_ = null; + onChanged(); + } else { + jobEndTime_ = null; + jobEndTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The end timestamp of the job. Typically this field is used for contracting
+     * engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + public com.google.protobuf.Timestamp.Builder getJobEndTimeBuilder() { + + onChanged(); + return getJobEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The end timestamp of the job. Typically this field is used for contracting
+     * engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + public com.google.protobuf.TimestampOrBuilder getJobEndTimeOrBuilder() { + if (jobEndTimeBuilder_ != null) { + return jobEndTimeBuilder_.getMessageOrBuilder(); + } else { + return jobEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : jobEndTime_; + } + } + /** + * + * + *
+     * Optional.
+     * The end timestamp of the job. Typically this field is used for contracting
+     * engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getJobEndTimeFieldBuilder() { + if (jobEndTimeBuilder_ == null) { + jobEndTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getJobEndTime(), getParentForChildren(), isClean()); + jobEndTime_ = null; + } + return jobEndTimeBuilder_; + } + + private com.google.protobuf.Timestamp postingPublishTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + postingPublishTimeBuilder_; + /** + * + * + *
+     * Optional.
+     * The timestamp this job posting was most recently published. The default
+     * value is the time the request arrives at the server. Invalid timestamps are
+     * ignored.
+     * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + public boolean hasPostingPublishTime() { + return postingPublishTimeBuilder_ != null || postingPublishTime_ != null; + } + /** + * + * + *
+     * Optional.
+     * The timestamp this job posting was most recently published. The default
+     * value is the time the request arrives at the server. Invalid timestamps are
+     * ignored.
+     * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + public com.google.protobuf.Timestamp getPostingPublishTime() { + if (postingPublishTimeBuilder_ == null) { + return postingPublishTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingPublishTime_; + } else { + return postingPublishTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The timestamp this job posting was most recently published. The default
+     * value is the time the request arrives at the server. Invalid timestamps are
+     * ignored.
+     * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + public Builder setPostingPublishTime(com.google.protobuf.Timestamp value) { + if (postingPublishTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + postingPublishTime_ = value; + onChanged(); + } else { + postingPublishTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp this job posting was most recently published. The default
+     * value is the time the request arrives at the server. Invalid timestamps are
+     * ignored.
+     * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + public Builder setPostingPublishTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (postingPublishTimeBuilder_ == null) { + postingPublishTime_ = builderForValue.build(); + onChanged(); + } else { + postingPublishTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp this job posting was most recently published. The default
+     * value is the time the request arrives at the server. Invalid timestamps are
+     * ignored.
+     * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + public Builder mergePostingPublishTime(com.google.protobuf.Timestamp value) { + if (postingPublishTimeBuilder_ == null) { + if (postingPublishTime_ != null) { + postingPublishTime_ = + com.google.protobuf.Timestamp.newBuilder(postingPublishTime_) + .mergeFrom(value) + .buildPartial(); + } else { + postingPublishTime_ = value; + } + onChanged(); + } else { + postingPublishTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp this job posting was most recently published. The default
+     * value is the time the request arrives at the server. Invalid timestamps are
+     * ignored.
+     * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + public Builder clearPostingPublishTime() { + if (postingPublishTimeBuilder_ == null) { + postingPublishTime_ = null; + onChanged(); + } else { + postingPublishTime_ = null; + postingPublishTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp this job posting was most recently published. The default
+     * value is the time the request arrives at the server. Invalid timestamps are
+     * ignored.
+     * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + public com.google.protobuf.Timestamp.Builder getPostingPublishTimeBuilder() { + + onChanged(); + return getPostingPublishTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The timestamp this job posting was most recently published. The default
+     * value is the time the request arrives at the server. Invalid timestamps are
+     * ignored.
+     * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + public com.google.protobuf.TimestampOrBuilder getPostingPublishTimeOrBuilder() { + if (postingPublishTimeBuilder_ != null) { + return postingPublishTimeBuilder_.getMessageOrBuilder(); + } else { + return postingPublishTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingPublishTime_; + } + } + /** + * + * + *
+     * Optional.
+     * The timestamp this job posting was most recently published. The default
+     * value is the time the request arrives at the server. Invalid timestamps are
+     * ignored.
+     * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getPostingPublishTimeFieldBuilder() { + if (postingPublishTimeBuilder_ == null) { + postingPublishTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getPostingPublishTime(), getParentForChildren(), isClean()); + postingPublishTime_ = null; + } + return postingPublishTimeBuilder_; + } + + private com.google.protobuf.Timestamp postingExpireTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + postingExpireTimeBuilder_; + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * The expiration timestamp of the job. After this timestamp, the
+     * job is marked as expired, and it no longer appears in search results. The
+     * expired job can't be deleted or listed by the [DeleteJob][] and
+     * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+     * updated with the [UpdateJob][] API. An expired job can be updated and
+     * opened again by using a future expiration timestamp. Updating an expired
+     * job fails if there is another existing open job with same
+     * [company][google.cloud.talent.v4beta1.Job.name][],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The expired jobs are retained in our system for 90 days. However, the
+     * overall expired job count cannot exceed 3 times the maximum of open jobs
+     * count over the past week, otherwise jobs with earlier expire time are
+     * cleaned first. Expired jobs are no longer accessible after they are cleaned
+     * out.
+     * Invalid timestamps are ignored, and treated as expire time not provided.
+     * Timestamp before the instant request is made is considered valid, the job
+     * will be treated as expired immediately.
+     * If this value isn't provided at the time of job creation or is invalid,
+     * the job posting expires after 30 days from the job's creation time. For
+     * example, if the job was created on 2017/01/01 13:00AM UTC with an
+     * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+     * If this value isn't provided on job update, it depends on the field masks
+     * set by
+     * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+     * If the field masks include [expiry_time][], or the masks are empty meaning
+     * that every field is updated, the job posting expires after 30 days from the
+     * job's last update time. Otherwise the expiration date isn't updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + public boolean hasPostingExpireTime() { + return postingExpireTimeBuilder_ != null || postingExpireTime_ != null; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * The expiration timestamp of the job. After this timestamp, the
+     * job is marked as expired, and it no longer appears in search results. The
+     * expired job can't be deleted or listed by the [DeleteJob][] and
+     * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+     * updated with the [UpdateJob][] API. An expired job can be updated and
+     * opened again by using a future expiration timestamp. Updating an expired
+     * job fails if there is another existing open job with same
+     * [company][google.cloud.talent.v4beta1.Job.name][],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The expired jobs are retained in our system for 90 days. However, the
+     * overall expired job count cannot exceed 3 times the maximum of open jobs
+     * count over the past week, otherwise jobs with earlier expire time are
+     * cleaned first. Expired jobs are no longer accessible after they are cleaned
+     * out.
+     * Invalid timestamps are ignored, and treated as expire time not provided.
+     * Timestamp before the instant request is made is considered valid, the job
+     * will be treated as expired immediately.
+     * If this value isn't provided at the time of job creation or is invalid,
+     * the job posting expires after 30 days from the job's creation time. For
+     * example, if the job was created on 2017/01/01 13:00AM UTC with an
+     * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+     * If this value isn't provided on job update, it depends on the field masks
+     * set by
+     * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+     * If the field masks include [expiry_time][], or the masks are empty meaning
+     * that every field is updated, the job posting expires after 30 days from the
+     * job's last update time. Otherwise the expiration date isn't updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + public com.google.protobuf.Timestamp getPostingExpireTime() { + if (postingExpireTimeBuilder_ == null) { + return postingExpireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingExpireTime_; + } else { + return postingExpireTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * The expiration timestamp of the job. After this timestamp, the
+     * job is marked as expired, and it no longer appears in search results. The
+     * expired job can't be deleted or listed by the [DeleteJob][] and
+     * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+     * updated with the [UpdateJob][] API. An expired job can be updated and
+     * opened again by using a future expiration timestamp. Updating an expired
+     * job fails if there is another existing open job with same
+     * [company][google.cloud.talent.v4beta1.Job.name][],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The expired jobs are retained in our system for 90 days. However, the
+     * overall expired job count cannot exceed 3 times the maximum of open jobs
+     * count over the past week, otherwise jobs with earlier expire time are
+     * cleaned first. Expired jobs are no longer accessible after they are cleaned
+     * out.
+     * Invalid timestamps are ignored, and treated as expire time not provided.
+     * Timestamp before the instant request is made is considered valid, the job
+     * will be treated as expired immediately.
+     * If this value isn't provided at the time of job creation or is invalid,
+     * the job posting expires after 30 days from the job's creation time. For
+     * example, if the job was created on 2017/01/01 13:00AM UTC with an
+     * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+     * If this value isn't provided on job update, it depends on the field masks
+     * set by
+     * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+     * If the field masks include [expiry_time][], or the masks are empty meaning
+     * that every field is updated, the job posting expires after 30 days from the
+     * job's last update time. Otherwise the expiration date isn't updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + public Builder setPostingExpireTime(com.google.protobuf.Timestamp value) { + if (postingExpireTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + postingExpireTime_ = value; + onChanged(); + } else { + postingExpireTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * The expiration timestamp of the job. After this timestamp, the
+     * job is marked as expired, and it no longer appears in search results. The
+     * expired job can't be deleted or listed by the [DeleteJob][] and
+     * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+     * updated with the [UpdateJob][] API. An expired job can be updated and
+     * opened again by using a future expiration timestamp. Updating an expired
+     * job fails if there is another existing open job with same
+     * [company][google.cloud.talent.v4beta1.Job.name][],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The expired jobs are retained in our system for 90 days. However, the
+     * overall expired job count cannot exceed 3 times the maximum of open jobs
+     * count over the past week, otherwise jobs with earlier expire time are
+     * cleaned first. Expired jobs are no longer accessible after they are cleaned
+     * out.
+     * Invalid timestamps are ignored, and treated as expire time not provided.
+     * Timestamp before the instant request is made is considered valid, the job
+     * will be treated as expired immediately.
+     * If this value isn't provided at the time of job creation or is invalid,
+     * the job posting expires after 30 days from the job's creation time. For
+     * example, if the job was created on 2017/01/01 13:00AM UTC with an
+     * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+     * If this value isn't provided on job update, it depends on the field masks
+     * set by
+     * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+     * If the field masks include [expiry_time][], or the masks are empty meaning
+     * that every field is updated, the job posting expires after 30 days from the
+     * job's last update time. Otherwise the expiration date isn't updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + public Builder setPostingExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (postingExpireTimeBuilder_ == null) { + postingExpireTime_ = builderForValue.build(); + onChanged(); + } else { + postingExpireTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * The expiration timestamp of the job. After this timestamp, the
+     * job is marked as expired, and it no longer appears in search results. The
+     * expired job can't be deleted or listed by the [DeleteJob][] and
+     * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+     * updated with the [UpdateJob][] API. An expired job can be updated and
+     * opened again by using a future expiration timestamp. Updating an expired
+     * job fails if there is another existing open job with same
+     * [company][google.cloud.talent.v4beta1.Job.name][],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The expired jobs are retained in our system for 90 days. However, the
+     * overall expired job count cannot exceed 3 times the maximum of open jobs
+     * count over the past week, otherwise jobs with earlier expire time are
+     * cleaned first. Expired jobs are no longer accessible after they are cleaned
+     * out.
+     * Invalid timestamps are ignored, and treated as expire time not provided.
+     * Timestamp before the instant request is made is considered valid, the job
+     * will be treated as expired immediately.
+     * If this value isn't provided at the time of job creation or is invalid,
+     * the job posting expires after 30 days from the job's creation time. For
+     * example, if the job was created on 2017/01/01 13:00AM UTC with an
+     * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+     * If this value isn't provided on job update, it depends on the field masks
+     * set by
+     * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+     * If the field masks include [expiry_time][], or the masks are empty meaning
+     * that every field is updated, the job posting expires after 30 days from the
+     * job's last update time. Otherwise the expiration date isn't updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + public Builder mergePostingExpireTime(com.google.protobuf.Timestamp value) { + if (postingExpireTimeBuilder_ == null) { + if (postingExpireTime_ != null) { + postingExpireTime_ = + com.google.protobuf.Timestamp.newBuilder(postingExpireTime_) + .mergeFrom(value) + .buildPartial(); + } else { + postingExpireTime_ = value; + } + onChanged(); + } else { + postingExpireTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * The expiration timestamp of the job. After this timestamp, the
+     * job is marked as expired, and it no longer appears in search results. The
+     * expired job can't be deleted or listed by the [DeleteJob][] and
+     * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+     * updated with the [UpdateJob][] API. An expired job can be updated and
+     * opened again by using a future expiration timestamp. Updating an expired
+     * job fails if there is another existing open job with same
+     * [company][google.cloud.talent.v4beta1.Job.name][],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The expired jobs are retained in our system for 90 days. However, the
+     * overall expired job count cannot exceed 3 times the maximum of open jobs
+     * count over the past week, otherwise jobs with earlier expire time are
+     * cleaned first. Expired jobs are no longer accessible after they are cleaned
+     * out.
+     * Invalid timestamps are ignored, and treated as expire time not provided.
+     * Timestamp before the instant request is made is considered valid, the job
+     * will be treated as expired immediately.
+     * If this value isn't provided at the time of job creation or is invalid,
+     * the job posting expires after 30 days from the job's creation time. For
+     * example, if the job was created on 2017/01/01 13:00AM UTC with an
+     * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+     * If this value isn't provided on job update, it depends on the field masks
+     * set by
+     * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+     * If the field masks include [expiry_time][], or the masks are empty meaning
+     * that every field is updated, the job posting expires after 30 days from the
+     * job's last update time. Otherwise the expiration date isn't updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + public Builder clearPostingExpireTime() { + if (postingExpireTimeBuilder_ == null) { + postingExpireTime_ = null; + onChanged(); + } else { + postingExpireTime_ = null; + postingExpireTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * The expiration timestamp of the job. After this timestamp, the
+     * job is marked as expired, and it no longer appears in search results. The
+     * expired job can't be deleted or listed by the [DeleteJob][] and
+     * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+     * updated with the [UpdateJob][] API. An expired job can be updated and
+     * opened again by using a future expiration timestamp. Updating an expired
+     * job fails if there is another existing open job with same
+     * [company][google.cloud.talent.v4beta1.Job.name][],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The expired jobs are retained in our system for 90 days. However, the
+     * overall expired job count cannot exceed 3 times the maximum of open jobs
+     * count over the past week, otherwise jobs with earlier expire time are
+     * cleaned first. Expired jobs are no longer accessible after they are cleaned
+     * out.
+     * Invalid timestamps are ignored, and treated as expire time not provided.
+     * Timestamp before the instant request is made is considered valid, the job
+     * will be treated as expired immediately.
+     * If this value isn't provided at the time of job creation or is invalid,
+     * the job posting expires after 30 days from the job's creation time. For
+     * example, if the job was created on 2017/01/01 13:00AM UTC with an
+     * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+     * If this value isn't provided on job update, it depends on the field masks
+     * set by
+     * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+     * If the field masks include [expiry_time][], or the masks are empty meaning
+     * that every field is updated, the job posting expires after 30 days from the
+     * job's last update time. Otherwise the expiration date isn't updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + public com.google.protobuf.Timestamp.Builder getPostingExpireTimeBuilder() { + + onChanged(); + return getPostingExpireTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * The expiration timestamp of the job. After this timestamp, the
+     * job is marked as expired, and it no longer appears in search results. The
+     * expired job can't be deleted or listed by the [DeleteJob][] and
+     * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+     * updated with the [UpdateJob][] API. An expired job can be updated and
+     * opened again by using a future expiration timestamp. Updating an expired
+     * job fails if there is another existing open job with same
+     * [company][google.cloud.talent.v4beta1.Job.name][],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The expired jobs are retained in our system for 90 days. However, the
+     * overall expired job count cannot exceed 3 times the maximum of open jobs
+     * count over the past week, otherwise jobs with earlier expire time are
+     * cleaned first. Expired jobs are no longer accessible after they are cleaned
+     * out.
+     * Invalid timestamps are ignored, and treated as expire time not provided.
+     * Timestamp before the instant request is made is considered valid, the job
+     * will be treated as expired immediately.
+     * If this value isn't provided at the time of job creation or is invalid,
+     * the job posting expires after 30 days from the job's creation time. For
+     * example, if the job was created on 2017/01/01 13:00AM UTC with an
+     * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+     * If this value isn't provided on job update, it depends on the field masks
+     * set by
+     * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+     * If the field masks include [expiry_time][], or the masks are empty meaning
+     * that every field is updated, the job posting expires after 30 days from the
+     * job's last update time. Otherwise the expiration date isn't updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + public com.google.protobuf.TimestampOrBuilder getPostingExpireTimeOrBuilder() { + if (postingExpireTimeBuilder_ != null) { + return postingExpireTimeBuilder_.getMessageOrBuilder(); + } else { + return postingExpireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingExpireTime_; + } + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * The expiration timestamp of the job. After this timestamp, the
+     * job is marked as expired, and it no longer appears in search results. The
+     * expired job can't be deleted or listed by the [DeleteJob][] and
+     * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+     * updated with the [UpdateJob][] API. An expired job can be updated and
+     * opened again by using a future expiration timestamp. Updating an expired
+     * job fails if there is another existing open job with same
+     * [company][google.cloud.talent.v4beta1.Job.name][],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The expired jobs are retained in our system for 90 days. However, the
+     * overall expired job count cannot exceed 3 times the maximum of open jobs
+     * count over the past week, otherwise jobs with earlier expire time are
+     * cleaned first. Expired jobs are no longer accessible after they are cleaned
+     * out.
+     * Invalid timestamps are ignored, and treated as expire time not provided.
+     * Timestamp before the instant request is made is considered valid, the job
+     * will be treated as expired immediately.
+     * If this value isn't provided at the time of job creation or is invalid,
+     * the job posting expires after 30 days from the job's creation time. For
+     * example, if the job was created on 2017/01/01 13:00AM UTC with an
+     * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+     * If this value isn't provided on job update, it depends on the field masks
+     * set by
+     * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+     * If the field masks include [expiry_time][], or the masks are empty meaning
+     * that every field is updated, the job posting expires after 30 days from the
+     * job's last update time. Otherwise the expiration date isn't updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getPostingExpireTimeFieldBuilder() { + if (postingExpireTimeBuilder_ == null) { + postingExpireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getPostingExpireTime(), getParentForChildren(), isClean()); + postingExpireTime_ = null; + } + return postingExpireTimeBuilder_; + } + + private com.google.protobuf.Timestamp postingCreateTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + postingCreateTimeBuilder_; + /** + * + * + *
+     * Output only. The timestamp when this job posting was created.
+     * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + public boolean hasPostingCreateTime() { + return postingCreateTimeBuilder_ != null || postingCreateTime_ != null; + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was created.
+     * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + public com.google.protobuf.Timestamp getPostingCreateTime() { + if (postingCreateTimeBuilder_ == null) { + return postingCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingCreateTime_; + } else { + return postingCreateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was created.
+     * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + public Builder setPostingCreateTime(com.google.protobuf.Timestamp value) { + if (postingCreateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + postingCreateTime_ = value; + onChanged(); + } else { + postingCreateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was created.
+     * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + public Builder setPostingCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (postingCreateTimeBuilder_ == null) { + postingCreateTime_ = builderForValue.build(); + onChanged(); + } else { + postingCreateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was created.
+     * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + public Builder mergePostingCreateTime(com.google.protobuf.Timestamp value) { + if (postingCreateTimeBuilder_ == null) { + if (postingCreateTime_ != null) { + postingCreateTime_ = + com.google.protobuf.Timestamp.newBuilder(postingCreateTime_) + .mergeFrom(value) + .buildPartial(); + } else { + postingCreateTime_ = value; + } + onChanged(); + } else { + postingCreateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was created.
+     * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + public Builder clearPostingCreateTime() { + if (postingCreateTimeBuilder_ == null) { + postingCreateTime_ = null; + onChanged(); + } else { + postingCreateTime_ = null; + postingCreateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was created.
+     * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + public com.google.protobuf.Timestamp.Builder getPostingCreateTimeBuilder() { + + onChanged(); + return getPostingCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was created.
+     * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + public com.google.protobuf.TimestampOrBuilder getPostingCreateTimeOrBuilder() { + if (postingCreateTimeBuilder_ != null) { + return postingCreateTimeBuilder_.getMessageOrBuilder(); + } else { + return postingCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingCreateTime_; + } + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was created.
+     * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getPostingCreateTimeFieldBuilder() { + if (postingCreateTimeBuilder_ == null) { + postingCreateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getPostingCreateTime(), getParentForChildren(), isClean()); + postingCreateTime_ = null; + } + return postingCreateTimeBuilder_; + } + + private com.google.protobuf.Timestamp postingUpdateTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + postingUpdateTimeBuilder_; + /** + * + * + *
+     * Output only. The timestamp when this job posting was last updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + public boolean hasPostingUpdateTime() { + return postingUpdateTimeBuilder_ != null || postingUpdateTime_ != null; + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was last updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + public com.google.protobuf.Timestamp getPostingUpdateTime() { + if (postingUpdateTimeBuilder_ == null) { + return postingUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingUpdateTime_; + } else { + return postingUpdateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was last updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + public Builder setPostingUpdateTime(com.google.protobuf.Timestamp value) { + if (postingUpdateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + postingUpdateTime_ = value; + onChanged(); + } else { + postingUpdateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was last updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + public Builder setPostingUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (postingUpdateTimeBuilder_ == null) { + postingUpdateTime_ = builderForValue.build(); + onChanged(); + } else { + postingUpdateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was last updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + public Builder mergePostingUpdateTime(com.google.protobuf.Timestamp value) { + if (postingUpdateTimeBuilder_ == null) { + if (postingUpdateTime_ != null) { + postingUpdateTime_ = + com.google.protobuf.Timestamp.newBuilder(postingUpdateTime_) + .mergeFrom(value) + .buildPartial(); + } else { + postingUpdateTime_ = value; + } + onChanged(); + } else { + postingUpdateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was last updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + public Builder clearPostingUpdateTime() { + if (postingUpdateTimeBuilder_ == null) { + postingUpdateTime_ = null; + onChanged(); + } else { + postingUpdateTime_ = null; + postingUpdateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was last updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + public com.google.protobuf.Timestamp.Builder getPostingUpdateTimeBuilder() { + + onChanged(); + return getPostingUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was last updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + public com.google.protobuf.TimestampOrBuilder getPostingUpdateTimeOrBuilder() { + if (postingUpdateTimeBuilder_ != null) { + return postingUpdateTimeBuilder_.getMessageOrBuilder(); + } else { + return postingUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingUpdateTime_; + } + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was last updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getPostingUpdateTimeFieldBuilder() { + if (postingUpdateTimeBuilder_ == null) { + postingUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getPostingUpdateTime(), getParentForChildren(), isClean()); + postingUpdateTime_ = null; + } + return postingUpdateTimeBuilder_; + } + + private java.lang.Object companyDisplayName_ = ""; + /** + * + * + *
+     * Output only. Display name of the company listing the job.
+     * 
+ * + * string company_display_name = 28; + */ + public java.lang.String getCompanyDisplayName() { + java.lang.Object ref = companyDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + companyDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Display name of the company listing the job.
+     * 
+ * + * string company_display_name = 28; + */ + public com.google.protobuf.ByteString getCompanyDisplayNameBytes() { + java.lang.Object ref = companyDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + companyDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Display name of the company listing the job.
+     * 
+ * + * string company_display_name = 28; + */ + public Builder setCompanyDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + companyDisplayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Display name of the company listing the job.
+     * 
+ * + * string company_display_name = 28; + */ + public Builder clearCompanyDisplayName() { + + companyDisplayName_ = getDefaultInstance().getCompanyDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Display name of the company listing the job.
+     * 
+ * + * string company_display_name = 28; + */ + public Builder setCompanyDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + companyDisplayName_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.Job.DerivedInfo derivedInfo_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job.DerivedInfo, + com.google.cloud.talent.v4beta1.Job.DerivedInfo.Builder, + com.google.cloud.talent.v4beta1.Job.DerivedInfoOrBuilder> + derivedInfoBuilder_; + /** + * + * + *
+     * Output only. Derived details about the job posting.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + public boolean hasDerivedInfo() { + return derivedInfoBuilder_ != null || derivedInfo_ != null; + } + /** + * + * + *
+     * Output only. Derived details about the job posting.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + public com.google.cloud.talent.v4beta1.Job.DerivedInfo getDerivedInfo() { + if (derivedInfoBuilder_ == null) { + return derivedInfo_ == null + ? com.google.cloud.talent.v4beta1.Job.DerivedInfo.getDefaultInstance() + : derivedInfo_; + } else { + return derivedInfoBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Derived details about the job posting.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + public Builder setDerivedInfo(com.google.cloud.talent.v4beta1.Job.DerivedInfo value) { + if (derivedInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + derivedInfo_ = value; + onChanged(); + } else { + derivedInfoBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Derived details about the job posting.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + public Builder setDerivedInfo( + com.google.cloud.talent.v4beta1.Job.DerivedInfo.Builder builderForValue) { + if (derivedInfoBuilder_ == null) { + derivedInfo_ = builderForValue.build(); + onChanged(); + } else { + derivedInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Derived details about the job posting.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + public Builder mergeDerivedInfo(com.google.cloud.talent.v4beta1.Job.DerivedInfo value) { + if (derivedInfoBuilder_ == null) { + if (derivedInfo_ != null) { + derivedInfo_ = + com.google.cloud.talent.v4beta1.Job.DerivedInfo.newBuilder(derivedInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + derivedInfo_ = value; + } + onChanged(); + } else { + derivedInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Derived details about the job posting.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + public Builder clearDerivedInfo() { + if (derivedInfoBuilder_ == null) { + derivedInfo_ = null; + onChanged(); + } else { + derivedInfo_ = null; + derivedInfoBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Derived details about the job posting.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + public com.google.cloud.talent.v4beta1.Job.DerivedInfo.Builder getDerivedInfoBuilder() { + + onChanged(); + return getDerivedInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Derived details about the job posting.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + public com.google.cloud.talent.v4beta1.Job.DerivedInfoOrBuilder getDerivedInfoOrBuilder() { + if (derivedInfoBuilder_ != null) { + return derivedInfoBuilder_.getMessageOrBuilder(); + } else { + return derivedInfo_ == null + ? com.google.cloud.talent.v4beta1.Job.DerivedInfo.getDefaultInstance() + : derivedInfo_; + } + } + /** + * + * + *
+     * Output only. Derived details about the job posting.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job.DerivedInfo, + com.google.cloud.talent.v4beta1.Job.DerivedInfo.Builder, + com.google.cloud.talent.v4beta1.Job.DerivedInfoOrBuilder> + getDerivedInfoFieldBuilder() { + if (derivedInfoBuilder_ == null) { + derivedInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job.DerivedInfo, + com.google.cloud.talent.v4beta1.Job.DerivedInfo.Builder, + com.google.cloud.talent.v4beta1.Job.DerivedInfoOrBuilder>( + getDerivedInfo(), getParentForChildren(), isClean()); + derivedInfo_ = null; + } + return derivedInfoBuilder_; + } + + private com.google.cloud.talent.v4beta1.Job.ProcessingOptions processingOptions_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job.ProcessingOptions, + com.google.cloud.talent.v4beta1.Job.ProcessingOptions.Builder, + com.google.cloud.talent.v4beta1.Job.ProcessingOptionsOrBuilder> + processingOptionsBuilder_; + /** + * + * + *
+     * Optional.
+     * Options for job processing.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + public boolean hasProcessingOptions() { + return processingOptionsBuilder_ != null || processingOptions_ != null; + } + /** + * + * + *
+     * Optional.
+     * Options for job processing.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + public com.google.cloud.talent.v4beta1.Job.ProcessingOptions getProcessingOptions() { + if (processingOptionsBuilder_ == null) { + return processingOptions_ == null + ? com.google.cloud.talent.v4beta1.Job.ProcessingOptions.getDefaultInstance() + : processingOptions_; + } else { + return processingOptionsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Options for job processing.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + public Builder setProcessingOptions( + com.google.cloud.talent.v4beta1.Job.ProcessingOptions value) { + if (processingOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + processingOptions_ = value; + onChanged(); + } else { + processingOptionsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Options for job processing.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + public Builder setProcessingOptions( + com.google.cloud.talent.v4beta1.Job.ProcessingOptions.Builder builderForValue) { + if (processingOptionsBuilder_ == null) { + processingOptions_ = builderForValue.build(); + onChanged(); + } else { + processingOptionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Options for job processing.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + public Builder mergeProcessingOptions( + com.google.cloud.talent.v4beta1.Job.ProcessingOptions value) { + if (processingOptionsBuilder_ == null) { + if (processingOptions_ != null) { + processingOptions_ = + com.google.cloud.talent.v4beta1.Job.ProcessingOptions.newBuilder(processingOptions_) + .mergeFrom(value) + .buildPartial(); + } else { + processingOptions_ = value; + } + onChanged(); + } else { + processingOptionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Options for job processing.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + public Builder clearProcessingOptions() { + if (processingOptionsBuilder_ == null) { + processingOptions_ = null; + onChanged(); + } else { + processingOptions_ = null; + processingOptionsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Options for job processing.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + public com.google.cloud.talent.v4beta1.Job.ProcessingOptions.Builder + getProcessingOptionsBuilder() { + + onChanged(); + return getProcessingOptionsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Options for job processing.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + public com.google.cloud.talent.v4beta1.Job.ProcessingOptionsOrBuilder + getProcessingOptionsOrBuilder() { + if (processingOptionsBuilder_ != null) { + return processingOptionsBuilder_.getMessageOrBuilder(); + } else { + return processingOptions_ == null + ? com.google.cloud.talent.v4beta1.Job.ProcessingOptions.getDefaultInstance() + : processingOptions_; + } + } + /** + * + * + *
+     * Optional.
+     * Options for job processing.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job.ProcessingOptions, + com.google.cloud.talent.v4beta1.Job.ProcessingOptions.Builder, + com.google.cloud.talent.v4beta1.Job.ProcessingOptionsOrBuilder> + getProcessingOptionsFieldBuilder() { + if (processingOptionsBuilder_ == null) { + processingOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job.ProcessingOptions, + com.google.cloud.talent.v4beta1.Job.ProcessingOptions.Builder, + com.google.cloud.talent.v4beta1.Job.ProcessingOptionsOrBuilder>( + getProcessingOptions(), getParentForChildren(), isClean()); + processingOptions_ = null; + } + return processingOptionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Job) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Job) + private static final com.google.cloud.talent.v4beta1.Job DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Job(); + } + + public static com.google.cloud.talent.v4beta1.Job getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Job parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Job(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobApplication.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobApplication.java new file mode 100644 index 000000000000..50fe42668444 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobApplication.java @@ -0,0 +1,3468 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents a job application record of a candidate.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.JobApplication} + */ +public final class JobApplication extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.JobApplication) + JobApplicationOrBuilder { + private static final long serialVersionUID = 0L; + // Use JobApplication.newBuilder() to construct. + private JobApplication(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private JobApplication() { + applicationId_ = ""; + lastStage_ = ""; + state_ = 0; + averageInterviewScore_ = 0D; + interviewScoreScaleId_ = ""; + numberOfInterviews_ = 0; + outcomeReason_ = ""; + outcomePositiveness_ = 0D; + jobTitleSnippet_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private JobApplication( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.talent.v4beta1.Job.Builder subBuilder = null; + if (job_ != null) { + subBuilder = job_.toBuilder(); + } + job_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Job.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(job_); + job_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + applicationId_ = s; + break; + } + case 26: + { + com.google.type.Date.Builder subBuilder = null; + if (applicationDate_ != null) { + subBuilder = applicationDate_.toBuilder(); + } + applicationDate_ = + input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(applicationDate_); + applicationDate_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + lastStage_ = s; + break; + } + case 40: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 49: + { + averageInterviewScore_ = input.readDouble(); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + interviewScoreScaleId_ = s; + break; + } + case 64: + { + numberOfInterviews_ = input.readInt32(); + break; + } + case 74: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (isEmployeeReferred_ != null) { + subBuilder = isEmployeeReferred_.toBuilder(); + } + isEmployeeReferred_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(isEmployeeReferred_); + isEmployeeReferred_ = subBuilder.buildPartial(); + } + + break; + } + case 82: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + + outcomeReason_ = s; + break; + } + case 97: + { + outcomePositiveness_ = input.readDouble(); + break; + } + case 106: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (isMatch_ != null) { + subBuilder = isMatch_.toBuilder(); + } + isMatch_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(isMatch_); + isMatch_ = subBuilder.buildPartial(); + } + + break; + } + case 114: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobTitleSnippet_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_JobApplication_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_JobApplication_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.JobApplication.class, + com.google.cloud.talent.v4beta1.JobApplication.Builder.class); + } + + /** + * + * + *
+   * Enum that represents the application status.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.JobApplication.ApplicationStatus} + */ + public enum ApplicationStatus implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * APPLICATION_STATUS_UNSPECIFIED = 0; + */ + APPLICATION_STATUS_UNSPECIFIED(0), + /** + * + * + *
+     * The offer is extended.
+     * 
+ * + * OFFER_EXTENDED = 1; + */ + OFFER_EXTENDED(1), + /** + * + * + *
+     * The offer is rejected by candidate.
+     * 
+ * + * REJECTED_BY_CANDIDATE = 2; + */ + REJECTED_BY_CANDIDATE(2), + /** + * + * + *
+     * The application is active.
+     * 
+ * + * ACTIVE = 3; + */ + ACTIVE(3), + /** + * + * + *
+     * The candidate is rejected by employer.
+     * 
+ * + * REJECTED_BY_EMPLOYER = 4; + */ + REJECTED_BY_EMPLOYER(4), + /** + * + * + *
+     * The candidate is hired and hasn't started the new job.
+     * 
+ * + * HIRED_PENDING_DATE = 5; + */ + HIRED_PENDING_DATE(5), + /** + * + * + *
+     * The candidate is hired started.
+     * 
+ * + * HIRED_STARTED = 6; + */ + HIRED_STARTED(6), + /** + * + * + *
+     * The candidate is a prospect candidate.
+     * 
+ * + * PROSPECTED = 7; + */ + PROSPECTED(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * APPLICATION_STATUS_UNSPECIFIED = 0; + */ + public static final int APPLICATION_STATUS_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The offer is extended.
+     * 
+ * + * OFFER_EXTENDED = 1; + */ + public static final int OFFER_EXTENDED_VALUE = 1; + /** + * + * + *
+     * The offer is rejected by candidate.
+     * 
+ * + * REJECTED_BY_CANDIDATE = 2; + */ + public static final int REJECTED_BY_CANDIDATE_VALUE = 2; + /** + * + * + *
+     * The application is active.
+     * 
+ * + * ACTIVE = 3; + */ + public static final int ACTIVE_VALUE = 3; + /** + * + * + *
+     * The candidate is rejected by employer.
+     * 
+ * + * REJECTED_BY_EMPLOYER = 4; + */ + public static final int REJECTED_BY_EMPLOYER_VALUE = 4; + /** + * + * + *
+     * The candidate is hired and hasn't started the new job.
+     * 
+ * + * HIRED_PENDING_DATE = 5; + */ + public static final int HIRED_PENDING_DATE_VALUE = 5; + /** + * + * + *
+     * The candidate is hired started.
+     * 
+ * + * HIRED_STARTED = 6; + */ + public static final int HIRED_STARTED_VALUE = 6; + /** + * + * + *
+     * The candidate is a prospect candidate.
+     * 
+ * + * PROSPECTED = 7; + */ + public static final int PROSPECTED_VALUE = 7; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static ApplicationStatus valueOf(int value) { + return forNumber(value); + } + + public static ApplicationStatus forNumber(int value) { + switch (value) { + case 0: + return APPLICATION_STATUS_UNSPECIFIED; + case 1: + return OFFER_EXTENDED; + case 2: + return REJECTED_BY_CANDIDATE; + case 3: + return ACTIVE; + case 4: + return REJECTED_BY_EMPLOYER; + case 5: + return HIRED_PENDING_DATE; + case 6: + return HIRED_STARTED; + case 7: + return PROSPECTED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ApplicationStatus findValueByNumber(int number) { + return ApplicationStatus.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobApplication.getDescriptor().getEnumTypes().get(0); + } + + private static final ApplicationStatus[] VALUES = values(); + + public static ApplicationStatus valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ApplicationStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.JobApplication.ApplicationStatus) + } + + public static final int JOB_FIELD_NUMBER = 1; + private com.google.cloud.talent.v4beta1.Job job_; + /** + * + * + *
+   * Optional.
+   * The information of job which the candidate applied for.
+   * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+   * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+   * Otherwise, only
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.title][google.cloud.talent.v4beta1.Job.title],
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+   * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+   * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+   * entity is created in this case.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public boolean hasJob() { + return job_ != null; + } + /** + * + * + *
+   * Optional.
+   * The information of job which the candidate applied for.
+   * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+   * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+   * Otherwise, only
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.title][google.cloud.talent.v4beta1.Job.title],
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+   * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+   * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+   * entity is created in this case.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.Job getJob() { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } + /** + * + * + *
+   * Optional.
+   * The information of job which the candidate applied for.
+   * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+   * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+   * Otherwise, only
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.title][google.cloud.talent.v4beta1.Job.title],
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+   * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+   * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+   * entity is created in this case.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder() { + return getJob(); + } + + public static final int APPLICATION_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object applicationId_; + /** + * + * + *
+   * Optional.
+   * The job application id.
+   * Number of characters allowed is 100.
+   * 
+ * + * string application_id = 2; + */ + public java.lang.String getApplicationId() { + java.lang.Object ref = applicationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + applicationId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The job application id.
+   * Number of characters allowed is 100.
+   * 
+ * + * string application_id = 2; + */ + public com.google.protobuf.ByteString getApplicationIdBytes() { + java.lang.Object ref = applicationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applicationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APPLICATION_DATE_FIELD_NUMBER = 3; + private com.google.type.Date applicationDate_; + /** + * + * + *
+   * Optional.
+   * The application date.
+   * 
+ * + * .google.type.Date application_date = 3; + */ + public boolean hasApplicationDate() { + return applicationDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * The application date.
+   * 
+ * + * .google.type.Date application_date = 3; + */ + public com.google.type.Date getApplicationDate() { + return applicationDate_ == null ? com.google.type.Date.getDefaultInstance() : applicationDate_; + } + /** + * + * + *
+   * Optional.
+   * The application date.
+   * 
+ * + * .google.type.Date application_date = 3; + */ + public com.google.type.DateOrBuilder getApplicationDateOrBuilder() { + return getApplicationDate(); + } + + public static final int LAST_STAGE_FIELD_NUMBER = 4; + private volatile java.lang.Object lastStage_; + /** + * + * + *
+   * Optional.
+   * The last stage the candidate reached in the application progress.
+   * For example, "new", "phone screen", "interview".
+   * 
+ * + * string last_stage = 4; + */ + public java.lang.String getLastStage() { + java.lang.Object ref = lastStage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastStage_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The last stage the candidate reached in the application progress.
+   * For example, "new", "phone screen", "interview".
+   * 
+ * + * string last_stage = 4; + */ + public com.google.protobuf.ByteString getLastStageBytes() { + java.lang.Object ref = lastStage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + lastStage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 5; + private int state_; + /** + * + * + *
+   * Optional.
+   * The application state.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; + */ + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Optional.
+   * The application state.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; + */ + public com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus getState() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus result = + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus.valueOf(state_); + return result == null + ? com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus.UNRECOGNIZED + : result; + } + + public static final int AVERAGE_INTERVIEW_SCORE_FIELD_NUMBER = 6; + private double averageInterviewScore_; + /** + * + * + *
+   * Optional.
+   * The average interview score.
+   * 
+ * + * double average_interview_score = 6; + */ + public double getAverageInterviewScore() { + return averageInterviewScore_; + } + + public static final int INTERVIEW_SCORE_SCALE_ID_FIELD_NUMBER = 7; + private volatile java.lang.Object interviewScoreScaleId_; + /** + * + * + *
+   * Optional.
+   * The scale id of the interview score.
+   * Number of characters allowed is 100.
+   * 
+ * + * string interview_score_scale_id = 7; + */ + public java.lang.String getInterviewScoreScaleId() { + java.lang.Object ref = interviewScoreScaleId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + interviewScoreScaleId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The scale id of the interview score.
+   * Number of characters allowed is 100.
+   * 
+ * + * string interview_score_scale_id = 7; + */ + public com.google.protobuf.ByteString getInterviewScoreScaleIdBytes() { + java.lang.Object ref = interviewScoreScaleId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + interviewScoreScaleId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NUMBER_OF_INTERVIEWS_FIELD_NUMBER = 8; + private int numberOfInterviews_; + /** + * + * + *
+   * Optional.
+   * The number of interviews.
+   * 
+ * + * int32 number_of_interviews = 8; + */ + public int getNumberOfInterviews() { + return numberOfInterviews_; + } + + public static final int IS_EMPLOYEE_REFERRED_FIELD_NUMBER = 9; + private com.google.protobuf.BoolValue isEmployeeReferred_; + /** + * + * + *
+   * Optional.
+   * If the candidate is referred by a employee.
+   * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + public boolean hasIsEmployeeReferred() { + return isEmployeeReferred_ != null; + } + /** + * + * + *
+   * Optional.
+   * If the candidate is referred by a employee.
+   * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + public com.google.protobuf.BoolValue getIsEmployeeReferred() { + return isEmployeeReferred_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : isEmployeeReferred_; + } + /** + * + * + *
+   * Optional.
+   * If the candidate is referred by a employee.
+   * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + public com.google.protobuf.BoolValueOrBuilder getIsEmployeeReferredOrBuilder() { + return getIsEmployeeReferred(); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 10; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Optional.
+   * The last update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Optional.
+   * The last update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Optional.
+   * The last update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int OUTCOME_REASON_FIELD_NUMBER = 11; + private volatile java.lang.Object outcomeReason_; + /** + * + * + *
+   * Optional.
+   * The outcome reason for the job application.
+   * Number of characters allowed is 100.
+   * 
+ * + * string outcome_reason = 11; + */ + public java.lang.String getOutcomeReason() { + java.lang.Object ref = outcomeReason_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outcomeReason_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The outcome reason for the job application.
+   * Number of characters allowed is 100.
+   * 
+ * + * string outcome_reason = 11; + */ + public com.google.protobuf.ByteString getOutcomeReasonBytes() { + java.lang.Object ref = outcomeReason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outcomeReason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OUTCOME_POSITIVENESS_FIELD_NUMBER = 12; + private double outcomePositiveness_; + /** + * + * + *
+   * Optional.
+   * Outcome positiveness shows how positive the outcome is.
+   * Currently only -1, 0 and 1 are accepted, where -1 means not positive, 0
+   * means neutral and 1 means positive. An error is thrown if other value is
+   * set.
+   * 
+ * + * double outcome_positiveness = 12; + */ + public double getOutcomePositiveness() { + return outcomePositiveness_; + } + + public static final int IS_MATCH_FIELD_NUMBER = 13; + private com.google.protobuf.BoolValue isMatch_; + /** + * + * + *
+   * Output only. Indicates whether this job application is a match to
+   * application related filters. This value is only applicable in profile
+   * search response.
+   * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + public boolean hasIsMatch() { + return isMatch_ != null; + } + /** + * + * + *
+   * Output only. Indicates whether this job application is a match to
+   * application related filters. This value is only applicable in profile
+   * search response.
+   * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + public com.google.protobuf.BoolValue getIsMatch() { + return isMatch_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isMatch_; + } + /** + * + * + *
+   * Output only. Indicates whether this job application is a match to
+   * application related filters. This value is only applicable in profile
+   * search response.
+   * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + public com.google.protobuf.BoolValueOrBuilder getIsMatchOrBuilder() { + return getIsMatch(); + } + + public static final int JOB_TITLE_SNIPPET_FIELD_NUMBER = 14; + private volatile java.lang.Object jobTitleSnippet_; + /** + * + * + *
+   * Output only. Job title snippet shows how the job title is related to a
+   * search query. It's empty if the job title isn't related to the search
+   * query.
+   * 
+ * + * string job_title_snippet = 14; + */ + public java.lang.String getJobTitleSnippet() { + java.lang.Object ref = jobTitleSnippet_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobTitleSnippet_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Job title snippet shows how the job title is related to a
+   * search query. It's empty if the job title isn't related to the search
+   * query.
+   * 
+ * + * string job_title_snippet = 14; + */ + public com.google.protobuf.ByteString getJobTitleSnippetBytes() { + java.lang.Object ref = jobTitleSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitleSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (job_ != null) { + output.writeMessage(1, getJob()); + } + if (!getApplicationIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, applicationId_); + } + if (applicationDate_ != null) { + output.writeMessage(3, getApplicationDate()); + } + if (!getLastStageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, lastStage_); + } + if (state_ + != com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus + .APPLICATION_STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, state_); + } + if (averageInterviewScore_ != 0D) { + output.writeDouble(6, averageInterviewScore_); + } + if (!getInterviewScoreScaleIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, interviewScoreScaleId_); + } + if (numberOfInterviews_ != 0) { + output.writeInt32(8, numberOfInterviews_); + } + if (isEmployeeReferred_ != null) { + output.writeMessage(9, getIsEmployeeReferred()); + } + if (updateTime_ != null) { + output.writeMessage(10, getUpdateTime()); + } + if (!getOutcomeReasonBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, outcomeReason_); + } + if (outcomePositiveness_ != 0D) { + output.writeDouble(12, outcomePositiveness_); + } + if (isMatch_ != null) { + output.writeMessage(13, getIsMatch()); + } + if (!getJobTitleSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, jobTitleSnippet_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (job_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getJob()); + } + if (!getApplicationIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, applicationId_); + } + if (applicationDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getApplicationDate()); + } + if (!getLastStageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, lastStage_); + } + if (state_ + != com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus + .APPLICATION_STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + } + if (averageInterviewScore_ != 0D) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(6, averageInterviewScore_); + } + if (!getInterviewScoreScaleIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, interviewScoreScaleId_); + } + if (numberOfInterviews_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, numberOfInterviews_); + } + if (isEmployeeReferred_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getIsEmployeeReferred()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpdateTime()); + } + if (!getOutcomeReasonBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, outcomeReason_); + } + if (outcomePositiveness_ != 0D) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(12, outcomePositiveness_); + } + if (isMatch_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getIsMatch()); + } + if (!getJobTitleSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, jobTitleSnippet_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.JobApplication)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.JobApplication other = + (com.google.cloud.talent.v4beta1.JobApplication) obj; + + boolean result = true; + result = result && (hasJob() == other.hasJob()); + if (hasJob()) { + result = result && getJob().equals(other.getJob()); + } + result = result && getApplicationId().equals(other.getApplicationId()); + result = result && (hasApplicationDate() == other.hasApplicationDate()); + if (hasApplicationDate()) { + result = result && getApplicationDate().equals(other.getApplicationDate()); + } + result = result && getLastStage().equals(other.getLastStage()); + result = result && state_ == other.state_; + result = + result + && (java.lang.Double.doubleToLongBits(getAverageInterviewScore()) + == java.lang.Double.doubleToLongBits(other.getAverageInterviewScore())); + result = result && getInterviewScoreScaleId().equals(other.getInterviewScoreScaleId()); + result = result && (getNumberOfInterviews() == other.getNumberOfInterviews()); + result = result && (hasIsEmployeeReferred() == other.hasIsEmployeeReferred()); + if (hasIsEmployeeReferred()) { + result = result && getIsEmployeeReferred().equals(other.getIsEmployeeReferred()); + } + result = result && (hasUpdateTime() == other.hasUpdateTime()); + if (hasUpdateTime()) { + result = result && getUpdateTime().equals(other.getUpdateTime()); + } + result = result && getOutcomeReason().equals(other.getOutcomeReason()); + result = + result + && (java.lang.Double.doubleToLongBits(getOutcomePositiveness()) + == java.lang.Double.doubleToLongBits(other.getOutcomePositiveness())); + result = result && (hasIsMatch() == other.hasIsMatch()); + if (hasIsMatch()) { + result = result && getIsMatch().equals(other.getIsMatch()); + } + result = result && getJobTitleSnippet().equals(other.getJobTitleSnippet()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasJob()) { + hash = (37 * hash) + JOB_FIELD_NUMBER; + hash = (53 * hash) + getJob().hashCode(); + } + hash = (37 * hash) + APPLICATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getApplicationId().hashCode(); + if (hasApplicationDate()) { + hash = (37 * hash) + APPLICATION_DATE_FIELD_NUMBER; + hash = (53 * hash) + getApplicationDate().hashCode(); + } + hash = (37 * hash) + LAST_STAGE_FIELD_NUMBER; + hash = (53 * hash) + getLastStage().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + AVERAGE_INTERVIEW_SCORE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getAverageInterviewScore())); + hash = (37 * hash) + INTERVIEW_SCORE_SCALE_ID_FIELD_NUMBER; + hash = (53 * hash) + getInterviewScoreScaleId().hashCode(); + hash = (37 * hash) + NUMBER_OF_INTERVIEWS_FIELD_NUMBER; + hash = (53 * hash) + getNumberOfInterviews(); + if (hasIsEmployeeReferred()) { + hash = (37 * hash) + IS_EMPLOYEE_REFERRED_FIELD_NUMBER; + hash = (53 * hash) + getIsEmployeeReferred().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + OUTCOME_REASON_FIELD_NUMBER; + hash = (53 * hash) + getOutcomeReason().hashCode(); + hash = (37 * hash) + OUTCOME_POSITIVENESS_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getOutcomePositiveness())); + if (hasIsMatch()) { + hash = (37 * hash) + IS_MATCH_FIELD_NUMBER; + hash = (53 * hash) + getIsMatch().hashCode(); + } + hash = (37 * hash) + JOB_TITLE_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getJobTitleSnippet().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.JobApplication parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobApplication parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobApplication parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobApplication parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobApplication parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobApplication parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobApplication parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobApplication parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobApplication parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobApplication parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobApplication parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobApplication parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.JobApplication prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Resource that represents a job application record of a candidate.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.JobApplication} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.JobApplication) + com.google.cloud.talent.v4beta1.JobApplicationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_JobApplication_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_JobApplication_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.JobApplication.class, + com.google.cloud.talent.v4beta1.JobApplication.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.JobApplication.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (jobBuilder_ == null) { + job_ = null; + } else { + job_ = null; + jobBuilder_ = null; + } + applicationId_ = ""; + + if (applicationDateBuilder_ == null) { + applicationDate_ = null; + } else { + applicationDate_ = null; + applicationDateBuilder_ = null; + } + lastStage_ = ""; + + state_ = 0; + + averageInterviewScore_ = 0D; + + interviewScoreScaleId_ = ""; + + numberOfInterviews_ = 0; + + if (isEmployeeReferredBuilder_ == null) { + isEmployeeReferred_ = null; + } else { + isEmployeeReferred_ = null; + isEmployeeReferredBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + outcomeReason_ = ""; + + outcomePositiveness_ = 0D; + + if (isMatchBuilder_ == null) { + isMatch_ = null; + } else { + isMatch_ = null; + isMatchBuilder_ = null; + } + jobTitleSnippet_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_JobApplication_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobApplication getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.JobApplication.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobApplication build() { + com.google.cloud.talent.v4beta1.JobApplication result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobApplication buildPartial() { + com.google.cloud.talent.v4beta1.JobApplication result = + new com.google.cloud.talent.v4beta1.JobApplication(this); + if (jobBuilder_ == null) { + result.job_ = job_; + } else { + result.job_ = jobBuilder_.build(); + } + result.applicationId_ = applicationId_; + if (applicationDateBuilder_ == null) { + result.applicationDate_ = applicationDate_; + } else { + result.applicationDate_ = applicationDateBuilder_.build(); + } + result.lastStage_ = lastStage_; + result.state_ = state_; + result.averageInterviewScore_ = averageInterviewScore_; + result.interviewScoreScaleId_ = interviewScoreScaleId_; + result.numberOfInterviews_ = numberOfInterviews_; + if (isEmployeeReferredBuilder_ == null) { + result.isEmployeeReferred_ = isEmployeeReferred_; + } else { + result.isEmployeeReferred_ = isEmployeeReferredBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.outcomeReason_ = outcomeReason_; + result.outcomePositiveness_ = outcomePositiveness_; + if (isMatchBuilder_ == null) { + result.isMatch_ = isMatch_; + } else { + result.isMatch_ = isMatchBuilder_.build(); + } + result.jobTitleSnippet_ = jobTitleSnippet_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.JobApplication) { + return mergeFrom((com.google.cloud.talent.v4beta1.JobApplication) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.JobApplication other) { + if (other == com.google.cloud.talent.v4beta1.JobApplication.getDefaultInstance()) return this; + if (other.hasJob()) { + mergeJob(other.getJob()); + } + if (!other.getApplicationId().isEmpty()) { + applicationId_ = other.applicationId_; + onChanged(); + } + if (other.hasApplicationDate()) { + mergeApplicationDate(other.getApplicationDate()); + } + if (!other.getLastStage().isEmpty()) { + lastStage_ = other.lastStage_; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getAverageInterviewScore() != 0D) { + setAverageInterviewScore(other.getAverageInterviewScore()); + } + if (!other.getInterviewScoreScaleId().isEmpty()) { + interviewScoreScaleId_ = other.interviewScoreScaleId_; + onChanged(); + } + if (other.getNumberOfInterviews() != 0) { + setNumberOfInterviews(other.getNumberOfInterviews()); + } + if (other.hasIsEmployeeReferred()) { + mergeIsEmployeeReferred(other.getIsEmployeeReferred()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getOutcomeReason().isEmpty()) { + outcomeReason_ = other.outcomeReason_; + onChanged(); + } + if (other.getOutcomePositiveness() != 0D) { + setOutcomePositiveness(other.getOutcomePositiveness()); + } + if (other.hasIsMatch()) { + mergeIsMatch(other.getIsMatch()); + } + if (!other.getJobTitleSnippet().isEmpty()) { + jobTitleSnippet_ = other.jobTitleSnippet_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.JobApplication parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.JobApplication) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.talent.v4beta1.Job job_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder> + jobBuilder_; + /** + * + * + *
+     * Optional.
+     * The information of job which the candidate applied for.
+     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+     * Otherwise, only
+     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+     * [Job.title][google.cloud.talent.v4beta1.Job.title],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+     * entity is created in this case.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public boolean hasJob() { + return jobBuilder_ != null || job_ != null; + } + /** + * + * + *
+     * Optional.
+     * The information of job which the candidate applied for.
+     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+     * Otherwise, only
+     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+     * [Job.title][google.cloud.talent.v4beta1.Job.title],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+     * entity is created in this case.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.Job getJob() { + if (jobBuilder_ == null) { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } else { + return jobBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The information of job which the candidate applied for.
+     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+     * Otherwise, only
+     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+     * [Job.title][google.cloud.talent.v4beta1.Job.title],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+     * entity is created in this case.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder setJob(com.google.cloud.talent.v4beta1.Job value) { + if (jobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + job_ = value; + onChanged(); + } else { + jobBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The information of job which the candidate applied for.
+     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+     * Otherwise, only
+     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+     * [Job.title][google.cloud.talent.v4beta1.Job.title],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+     * entity is created in this case.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder setJob(com.google.cloud.talent.v4beta1.Job.Builder builderForValue) { + if (jobBuilder_ == null) { + job_ = builderForValue.build(); + onChanged(); + } else { + jobBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The information of job which the candidate applied for.
+     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+     * Otherwise, only
+     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+     * [Job.title][google.cloud.talent.v4beta1.Job.title],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+     * entity is created in this case.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder mergeJob(com.google.cloud.talent.v4beta1.Job value) { + if (jobBuilder_ == null) { + if (job_ != null) { + job_ = + com.google.cloud.talent.v4beta1.Job.newBuilder(job_).mergeFrom(value).buildPartial(); + } else { + job_ = value; + } + onChanged(); + } else { + jobBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The information of job which the candidate applied for.
+     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+     * Otherwise, only
+     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+     * [Job.title][google.cloud.talent.v4beta1.Job.title],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+     * entity is created in this case.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder clearJob() { + if (jobBuilder_ == null) { + job_ = null; + onChanged(); + } else { + job_ = null; + jobBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The information of job which the candidate applied for.
+     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+     * Otherwise, only
+     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+     * [Job.title][google.cloud.talent.v4beta1.Job.title],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+     * entity is created in this case.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.Job.Builder getJobBuilder() { + + onChanged(); + return getJobFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The information of job which the candidate applied for.
+     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+     * Otherwise, only
+     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+     * [Job.title][google.cloud.talent.v4beta1.Job.title],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+     * entity is created in this case.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder() { + if (jobBuilder_ != null) { + return jobBuilder_.getMessageOrBuilder(); + } else { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } + } + /** + * + * + *
+     * Optional.
+     * The information of job which the candidate applied for.
+     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+     * Otherwise, only
+     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+     * [Job.title][google.cloud.talent.v4beta1.Job.title],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+     * entity is created in this case.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder> + getJobFieldBuilder() { + if (jobBuilder_ == null) { + jobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder>( + getJob(), getParentForChildren(), isClean()); + job_ = null; + } + return jobBuilder_; + } + + private java.lang.Object applicationId_ = ""; + /** + * + * + *
+     * Optional.
+     * The job application id.
+     * Number of characters allowed is 100.
+     * 
+ * + * string application_id = 2; + */ + public java.lang.String getApplicationId() { + java.lang.Object ref = applicationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + applicationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job application id.
+     * Number of characters allowed is 100.
+     * 
+ * + * string application_id = 2; + */ + public com.google.protobuf.ByteString getApplicationIdBytes() { + java.lang.Object ref = applicationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applicationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job application id.
+     * Number of characters allowed is 100.
+     * 
+ * + * string application_id = 2; + */ + public Builder setApplicationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + applicationId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job application id.
+     * Number of characters allowed is 100.
+     * 
+ * + * string application_id = 2; + */ + public Builder clearApplicationId() { + + applicationId_ = getDefaultInstance().getApplicationId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job application id.
+     * Number of characters allowed is 100.
+     * 
+ * + * string application_id = 2; + */ + public Builder setApplicationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + applicationId_ = value; + onChanged(); + return this; + } + + private com.google.type.Date applicationDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + applicationDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The application date.
+     * 
+ * + * .google.type.Date application_date = 3; + */ + public boolean hasApplicationDate() { + return applicationDateBuilder_ != null || applicationDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The application date.
+     * 
+ * + * .google.type.Date application_date = 3; + */ + public com.google.type.Date getApplicationDate() { + if (applicationDateBuilder_ == null) { + return applicationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : applicationDate_; + } else { + return applicationDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The application date.
+     * 
+ * + * .google.type.Date application_date = 3; + */ + public Builder setApplicationDate(com.google.type.Date value) { + if (applicationDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + applicationDate_ = value; + onChanged(); + } else { + applicationDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date.
+     * 
+ * + * .google.type.Date application_date = 3; + */ + public Builder setApplicationDate(com.google.type.Date.Builder builderForValue) { + if (applicationDateBuilder_ == null) { + applicationDate_ = builderForValue.build(); + onChanged(); + } else { + applicationDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date.
+     * 
+ * + * .google.type.Date application_date = 3; + */ + public Builder mergeApplicationDate(com.google.type.Date value) { + if (applicationDateBuilder_ == null) { + if (applicationDate_ != null) { + applicationDate_ = + com.google.type.Date.newBuilder(applicationDate_).mergeFrom(value).buildPartial(); + } else { + applicationDate_ = value; + } + onChanged(); + } else { + applicationDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date.
+     * 
+ * + * .google.type.Date application_date = 3; + */ + public Builder clearApplicationDate() { + if (applicationDateBuilder_ == null) { + applicationDate_ = null; + onChanged(); + } else { + applicationDate_ = null; + applicationDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date.
+     * 
+ * + * .google.type.Date application_date = 3; + */ + public com.google.type.Date.Builder getApplicationDateBuilder() { + + onChanged(); + return getApplicationDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The application date.
+     * 
+ * + * .google.type.Date application_date = 3; + */ + public com.google.type.DateOrBuilder getApplicationDateOrBuilder() { + if (applicationDateBuilder_ != null) { + return applicationDateBuilder_.getMessageOrBuilder(); + } else { + return applicationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : applicationDate_; + } + } + /** + * + * + *
+     * Optional.
+     * The application date.
+     * 
+ * + * .google.type.Date application_date = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getApplicationDateFieldBuilder() { + if (applicationDateBuilder_ == null) { + applicationDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getApplicationDate(), getParentForChildren(), isClean()); + applicationDate_ = null; + } + return applicationDateBuilder_; + } + + private java.lang.Object lastStage_ = ""; + /** + * + * + *
+     * Optional.
+     * The last stage the candidate reached in the application progress.
+     * For example, "new", "phone screen", "interview".
+     * 
+ * + * string last_stage = 4; + */ + public java.lang.String getLastStage() { + java.lang.Object ref = lastStage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastStage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The last stage the candidate reached in the application progress.
+     * For example, "new", "phone screen", "interview".
+     * 
+ * + * string last_stage = 4; + */ + public com.google.protobuf.ByteString getLastStageBytes() { + java.lang.Object ref = lastStage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + lastStage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The last stage the candidate reached in the application progress.
+     * For example, "new", "phone screen", "interview".
+     * 
+ * + * string last_stage = 4; + */ + public Builder setLastStage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + lastStage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The last stage the candidate reached in the application progress.
+     * For example, "new", "phone screen", "interview".
+     * 
+ * + * string last_stage = 4; + */ + public Builder clearLastStage() { + + lastStage_ = getDefaultInstance().getLastStage(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The last stage the candidate reached in the application progress.
+     * For example, "new", "phone screen", "interview".
+     * 
+ * + * string last_stage = 4; + */ + public Builder setLastStageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + lastStage_ = value; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * Optional.
+     * The application state.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; + */ + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Optional.
+     * The application state.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; + */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The application state.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; + */ + public com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus getState() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus result = + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus.valueOf(state_); + return result == null + ? com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * The application state.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; + */ + public Builder setState( + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The application state.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private double averageInterviewScore_; + /** + * + * + *
+     * Optional.
+     * The average interview score.
+     * 
+ * + * double average_interview_score = 6; + */ + public double getAverageInterviewScore() { + return averageInterviewScore_; + } + /** + * + * + *
+     * Optional.
+     * The average interview score.
+     * 
+ * + * double average_interview_score = 6; + */ + public Builder setAverageInterviewScore(double value) { + + averageInterviewScore_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The average interview score.
+     * 
+ * + * double average_interview_score = 6; + */ + public Builder clearAverageInterviewScore() { + + averageInterviewScore_ = 0D; + onChanged(); + return this; + } + + private java.lang.Object interviewScoreScaleId_ = ""; + /** + * + * + *
+     * Optional.
+     * The scale id of the interview score.
+     * Number of characters allowed is 100.
+     * 
+ * + * string interview_score_scale_id = 7; + */ + public java.lang.String getInterviewScoreScaleId() { + java.lang.Object ref = interviewScoreScaleId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + interviewScoreScaleId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The scale id of the interview score.
+     * Number of characters allowed is 100.
+     * 
+ * + * string interview_score_scale_id = 7; + */ + public com.google.protobuf.ByteString getInterviewScoreScaleIdBytes() { + java.lang.Object ref = interviewScoreScaleId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + interviewScoreScaleId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The scale id of the interview score.
+     * Number of characters allowed is 100.
+     * 
+ * + * string interview_score_scale_id = 7; + */ + public Builder setInterviewScoreScaleId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + interviewScoreScaleId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The scale id of the interview score.
+     * Number of characters allowed is 100.
+     * 
+ * + * string interview_score_scale_id = 7; + */ + public Builder clearInterviewScoreScaleId() { + + interviewScoreScaleId_ = getDefaultInstance().getInterviewScoreScaleId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The scale id of the interview score.
+     * Number of characters allowed is 100.
+     * 
+ * + * string interview_score_scale_id = 7; + */ + public Builder setInterviewScoreScaleIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + interviewScoreScaleId_ = value; + onChanged(); + return this; + } + + private int numberOfInterviews_; + /** + * + * + *
+     * Optional.
+     * The number of interviews.
+     * 
+ * + * int32 number_of_interviews = 8; + */ + public int getNumberOfInterviews() { + return numberOfInterviews_; + } + /** + * + * + *
+     * Optional.
+     * The number of interviews.
+     * 
+ * + * int32 number_of_interviews = 8; + */ + public Builder setNumberOfInterviews(int value) { + + numberOfInterviews_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The number of interviews.
+     * 
+ * + * int32 number_of_interviews = 8; + */ + public Builder clearNumberOfInterviews() { + + numberOfInterviews_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.BoolValue isEmployeeReferred_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + isEmployeeReferredBuilder_; + /** + * + * + *
+     * Optional.
+     * If the candidate is referred by a employee.
+     * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + public boolean hasIsEmployeeReferred() { + return isEmployeeReferredBuilder_ != null || isEmployeeReferred_ != null; + } + /** + * + * + *
+     * Optional.
+     * If the candidate is referred by a employee.
+     * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + public com.google.protobuf.BoolValue getIsEmployeeReferred() { + if (isEmployeeReferredBuilder_ == null) { + return isEmployeeReferred_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : isEmployeeReferred_; + } else { + return isEmployeeReferredBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * If the candidate is referred by a employee.
+     * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + public Builder setIsEmployeeReferred(com.google.protobuf.BoolValue value) { + if (isEmployeeReferredBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + isEmployeeReferred_ = value; + onChanged(); + } else { + isEmployeeReferredBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If the candidate is referred by a employee.
+     * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + public Builder setIsEmployeeReferred(com.google.protobuf.BoolValue.Builder builderForValue) { + if (isEmployeeReferredBuilder_ == null) { + isEmployeeReferred_ = builderForValue.build(); + onChanged(); + } else { + isEmployeeReferredBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If the candidate is referred by a employee.
+     * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + public Builder mergeIsEmployeeReferred(com.google.protobuf.BoolValue value) { + if (isEmployeeReferredBuilder_ == null) { + if (isEmployeeReferred_ != null) { + isEmployeeReferred_ = + com.google.protobuf.BoolValue.newBuilder(isEmployeeReferred_) + .mergeFrom(value) + .buildPartial(); + } else { + isEmployeeReferred_ = value; + } + onChanged(); + } else { + isEmployeeReferredBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If the candidate is referred by a employee.
+     * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + public Builder clearIsEmployeeReferred() { + if (isEmployeeReferredBuilder_ == null) { + isEmployeeReferred_ = null; + onChanged(); + } else { + isEmployeeReferred_ = null; + isEmployeeReferredBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If the candidate is referred by a employee.
+     * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + public com.google.protobuf.BoolValue.Builder getIsEmployeeReferredBuilder() { + + onChanged(); + return getIsEmployeeReferredFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * If the candidate is referred by a employee.
+     * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + public com.google.protobuf.BoolValueOrBuilder getIsEmployeeReferredOrBuilder() { + if (isEmployeeReferredBuilder_ != null) { + return isEmployeeReferredBuilder_.getMessageOrBuilder(); + } else { + return isEmployeeReferred_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : isEmployeeReferred_; + } + } + /** + * + * + *
+     * Optional.
+     * If the candidate is referred by a employee.
+     * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getIsEmployeeReferredFieldBuilder() { + if (isEmployeeReferredBuilder_ == null) { + isEmployeeReferredBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getIsEmployeeReferred(), getParentForChildren(), isClean()); + isEmployeeReferred_ = null; + } + return isEmployeeReferredBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Optional.
+     * The last update timestamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + * + * + *
+     * Optional.
+     * The last update timestamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The last update timestamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last update timestamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last update timestamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (updateTime_ != null) { + updateTime_ = + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last update timestamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last update timestamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The last update timestamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Optional.
+     * The last update timestamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object outcomeReason_ = ""; + /** + * + * + *
+     * Optional.
+     * The outcome reason for the job application.
+     * Number of characters allowed is 100.
+     * 
+ * + * string outcome_reason = 11; + */ + public java.lang.String getOutcomeReason() { + java.lang.Object ref = outcomeReason_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outcomeReason_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The outcome reason for the job application.
+     * Number of characters allowed is 100.
+     * 
+ * + * string outcome_reason = 11; + */ + public com.google.protobuf.ByteString getOutcomeReasonBytes() { + java.lang.Object ref = outcomeReason_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outcomeReason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The outcome reason for the job application.
+     * Number of characters allowed is 100.
+     * 
+ * + * string outcome_reason = 11; + */ + public Builder setOutcomeReason(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + outcomeReason_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The outcome reason for the job application.
+     * Number of characters allowed is 100.
+     * 
+ * + * string outcome_reason = 11; + */ + public Builder clearOutcomeReason() { + + outcomeReason_ = getDefaultInstance().getOutcomeReason(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The outcome reason for the job application.
+     * Number of characters allowed is 100.
+     * 
+ * + * string outcome_reason = 11; + */ + public Builder setOutcomeReasonBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + outcomeReason_ = value; + onChanged(); + return this; + } + + private double outcomePositiveness_; + /** + * + * + *
+     * Optional.
+     * Outcome positiveness shows how positive the outcome is.
+     * Currently only -1, 0 and 1 are accepted, where -1 means not positive, 0
+     * means neutral and 1 means positive. An error is thrown if other value is
+     * set.
+     * 
+ * + * double outcome_positiveness = 12; + */ + public double getOutcomePositiveness() { + return outcomePositiveness_; + } + /** + * + * + *
+     * Optional.
+     * Outcome positiveness shows how positive the outcome is.
+     * Currently only -1, 0 and 1 are accepted, where -1 means not positive, 0
+     * means neutral and 1 means positive. An error is thrown if other value is
+     * set.
+     * 
+ * + * double outcome_positiveness = 12; + */ + public Builder setOutcomePositiveness(double value) { + + outcomePositiveness_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Outcome positiveness shows how positive the outcome is.
+     * Currently only -1, 0 and 1 are accepted, where -1 means not positive, 0
+     * means neutral and 1 means positive. An error is thrown if other value is
+     * set.
+     * 
+ * + * double outcome_positiveness = 12; + */ + public Builder clearOutcomePositiveness() { + + outcomePositiveness_ = 0D; + onChanged(); + return this; + } + + private com.google.protobuf.BoolValue isMatch_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + isMatchBuilder_; + /** + * + * + *
+     * Output only. Indicates whether this job application is a match to
+     * application related filters. This value is only applicable in profile
+     * search response.
+     * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + public boolean hasIsMatch() { + return isMatchBuilder_ != null || isMatch_ != null; + } + /** + * + * + *
+     * Output only. Indicates whether this job application is a match to
+     * application related filters. This value is only applicable in profile
+     * search response.
+     * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + public com.google.protobuf.BoolValue getIsMatch() { + if (isMatchBuilder_ == null) { + return isMatch_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isMatch_; + } else { + return isMatchBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Indicates whether this job application is a match to
+     * application related filters. This value is only applicable in profile
+     * search response.
+     * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + public Builder setIsMatch(com.google.protobuf.BoolValue value) { + if (isMatchBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + isMatch_ = value; + onChanged(); + } else { + isMatchBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Indicates whether this job application is a match to
+     * application related filters. This value is only applicable in profile
+     * search response.
+     * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + public Builder setIsMatch(com.google.protobuf.BoolValue.Builder builderForValue) { + if (isMatchBuilder_ == null) { + isMatch_ = builderForValue.build(); + onChanged(); + } else { + isMatchBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Indicates whether this job application is a match to
+     * application related filters. This value is only applicable in profile
+     * search response.
+     * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + public Builder mergeIsMatch(com.google.protobuf.BoolValue value) { + if (isMatchBuilder_ == null) { + if (isMatch_ != null) { + isMatch_ = + com.google.protobuf.BoolValue.newBuilder(isMatch_).mergeFrom(value).buildPartial(); + } else { + isMatch_ = value; + } + onChanged(); + } else { + isMatchBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Indicates whether this job application is a match to
+     * application related filters. This value is only applicable in profile
+     * search response.
+     * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + public Builder clearIsMatch() { + if (isMatchBuilder_ == null) { + isMatch_ = null; + onChanged(); + } else { + isMatch_ = null; + isMatchBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Indicates whether this job application is a match to
+     * application related filters. This value is only applicable in profile
+     * search response.
+     * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + public com.google.protobuf.BoolValue.Builder getIsMatchBuilder() { + + onChanged(); + return getIsMatchFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Indicates whether this job application is a match to
+     * application related filters. This value is only applicable in profile
+     * search response.
+     * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + public com.google.protobuf.BoolValueOrBuilder getIsMatchOrBuilder() { + if (isMatchBuilder_ != null) { + return isMatchBuilder_.getMessageOrBuilder(); + } else { + return isMatch_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isMatch_; + } + } + /** + * + * + *
+     * Output only. Indicates whether this job application is a match to
+     * application related filters. This value is only applicable in profile
+     * search response.
+     * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getIsMatchFieldBuilder() { + if (isMatchBuilder_ == null) { + isMatchBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getIsMatch(), getParentForChildren(), isClean()); + isMatch_ = null; + } + return isMatchBuilder_; + } + + private java.lang.Object jobTitleSnippet_ = ""; + /** + * + * + *
+     * Output only. Job title snippet shows how the job title is related to a
+     * search query. It's empty if the job title isn't related to the search
+     * query.
+     * 
+ * + * string job_title_snippet = 14; + */ + public java.lang.String getJobTitleSnippet() { + java.lang.Object ref = jobTitleSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobTitleSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Job title snippet shows how the job title is related to a
+     * search query. It's empty if the job title isn't related to the search
+     * query.
+     * 
+ * + * string job_title_snippet = 14; + */ + public com.google.protobuf.ByteString getJobTitleSnippetBytes() { + java.lang.Object ref = jobTitleSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitleSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Job title snippet shows how the job title is related to a
+     * search query. It's empty if the job title isn't related to the search
+     * query.
+     * 
+ * + * string job_title_snippet = 14; + */ + public Builder setJobTitleSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobTitleSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Job title snippet shows how the job title is related to a
+     * search query. It's empty if the job title isn't related to the search
+     * query.
+     * 
+ * + * string job_title_snippet = 14; + */ + public Builder clearJobTitleSnippet() { + + jobTitleSnippet_ = getDefaultInstance().getJobTitleSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Job title snippet shows how the job title is related to a
+     * search query. It's empty if the job title isn't related to the search
+     * query.
+     * 
+ * + * string job_title_snippet = 14; + */ + public Builder setJobTitleSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobTitleSnippet_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.JobApplication) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.JobApplication) + private static final com.google.cloud.talent.v4beta1.JobApplication DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.JobApplication(); + } + + public static com.google.cloud.talent.v4beta1.JobApplication getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JobApplication parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new JobApplication(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobApplication getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobApplicationOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobApplicationOrBuilder.java new file mode 100644 index 000000000000..1b49e17ee3ba --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobApplicationOrBuilder.java @@ -0,0 +1,397 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface JobApplicationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.JobApplication) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The information of job which the candidate applied for.
+   * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+   * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+   * Otherwise, only
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.title][google.cloud.talent.v4beta1.Job.title],
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+   * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+   * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+   * entity is created in this case.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + boolean hasJob(); + /** + * + * + *
+   * Optional.
+   * The information of job which the candidate applied for.
+   * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+   * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+   * Otherwise, only
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.title][google.cloud.talent.v4beta1.Job.title],
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+   * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+   * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+   * entity is created in this case.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + com.google.cloud.talent.v4beta1.Job getJob(); + /** + * + * + *
+   * Optional.
+   * The information of job which the candidate applied for.
+   * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+   * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+   * Otherwise, only
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.title][google.cloud.talent.v4beta1.Job.title],
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+   * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+   * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+   * entity is created in this case.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The job application id.
+   * Number of characters allowed is 100.
+   * 
+ * + * string application_id = 2; + */ + java.lang.String getApplicationId(); + /** + * + * + *
+   * Optional.
+   * The job application id.
+   * Number of characters allowed is 100.
+   * 
+ * + * string application_id = 2; + */ + com.google.protobuf.ByteString getApplicationIdBytes(); + + /** + * + * + *
+   * Optional.
+   * The application date.
+   * 
+ * + * .google.type.Date application_date = 3; + */ + boolean hasApplicationDate(); + /** + * + * + *
+   * Optional.
+   * The application date.
+   * 
+ * + * .google.type.Date application_date = 3; + */ + com.google.type.Date getApplicationDate(); + /** + * + * + *
+   * Optional.
+   * The application date.
+   * 
+ * + * .google.type.Date application_date = 3; + */ + com.google.type.DateOrBuilder getApplicationDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The last stage the candidate reached in the application progress.
+   * For example, "new", "phone screen", "interview".
+   * 
+ * + * string last_stage = 4; + */ + java.lang.String getLastStage(); + /** + * + * + *
+   * Optional.
+   * The last stage the candidate reached in the application progress.
+   * For example, "new", "phone screen", "interview".
+   * 
+ * + * string last_stage = 4; + */ + com.google.protobuf.ByteString getLastStageBytes(); + + /** + * + * + *
+   * Optional.
+   * The application state.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; + */ + int getStateValue(); + /** + * + * + *
+   * Optional.
+   * The application state.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; + */ + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus getState(); + + /** + * + * + *
+   * Optional.
+   * The average interview score.
+   * 
+ * + * double average_interview_score = 6; + */ + double getAverageInterviewScore(); + + /** + * + * + *
+   * Optional.
+   * The scale id of the interview score.
+   * Number of characters allowed is 100.
+   * 
+ * + * string interview_score_scale_id = 7; + */ + java.lang.String getInterviewScoreScaleId(); + /** + * + * + *
+   * Optional.
+   * The scale id of the interview score.
+   * Number of characters allowed is 100.
+   * 
+ * + * string interview_score_scale_id = 7; + */ + com.google.protobuf.ByteString getInterviewScoreScaleIdBytes(); + + /** + * + * + *
+   * Optional.
+   * The number of interviews.
+   * 
+ * + * int32 number_of_interviews = 8; + */ + int getNumberOfInterviews(); + + /** + * + * + *
+   * Optional.
+   * If the candidate is referred by a employee.
+   * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + boolean hasIsEmployeeReferred(); + /** + * + * + *
+   * Optional.
+   * If the candidate is referred by a employee.
+   * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + com.google.protobuf.BoolValue getIsEmployeeReferred(); + /** + * + * + *
+   * Optional.
+   * If the candidate is referred by a employee.
+   * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + com.google.protobuf.BoolValueOrBuilder getIsEmployeeReferredOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The last update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Optional.
+   * The last update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Optional.
+   * The last update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The outcome reason for the job application.
+   * Number of characters allowed is 100.
+   * 
+ * + * string outcome_reason = 11; + */ + java.lang.String getOutcomeReason(); + /** + * + * + *
+   * Optional.
+   * The outcome reason for the job application.
+   * Number of characters allowed is 100.
+   * 
+ * + * string outcome_reason = 11; + */ + com.google.protobuf.ByteString getOutcomeReasonBytes(); + + /** + * + * + *
+   * Optional.
+   * Outcome positiveness shows how positive the outcome is.
+   * Currently only -1, 0 and 1 are accepted, where -1 means not positive, 0
+   * means neutral and 1 means positive. An error is thrown if other value is
+   * set.
+   * 
+ * + * double outcome_positiveness = 12; + */ + double getOutcomePositiveness(); + + /** + * + * + *
+   * Output only. Indicates whether this job application is a match to
+   * application related filters. This value is only applicable in profile
+   * search response.
+   * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + boolean hasIsMatch(); + /** + * + * + *
+   * Output only. Indicates whether this job application is a match to
+   * application related filters. This value is only applicable in profile
+   * search response.
+   * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + com.google.protobuf.BoolValue getIsMatch(); + /** + * + * + *
+   * Output only. Indicates whether this job application is a match to
+   * application related filters. This value is only applicable in profile
+   * search response.
+   * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + com.google.protobuf.BoolValueOrBuilder getIsMatchOrBuilder(); + + /** + * + * + *
+   * Output only. Job title snippet shows how the job title is related to a
+   * search query. It's empty if the job title isn't related to the search
+   * query.
+   * 
+ * + * string job_title_snippet = 14; + */ + java.lang.String getJobTitleSnippet(); + /** + * + * + *
+   * Output only. Job title snippet shows how the job title is related to a
+   * search query. It's empty if the job title isn't related to the search
+   * query.
+   * 
+ * + * string job_title_snippet = 14; + */ + com.google.protobuf.ByteString getJobTitleSnippetBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobBenefit.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobBenefit.java new file mode 100644 index 000000000000..ad5c4057d852 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobBenefit.java @@ -0,0 +1,359 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * An enum that represents employee benefits included with the job.
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.JobBenefit} + */ +public enum JobBenefit implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value if the type isn't specified.
+   * 
+ * + * JOB_BENEFIT_UNSPECIFIED = 0; + */ + JOB_BENEFIT_UNSPECIFIED(0), + /** + * + * + *
+   * The job includes access to programs that support child care, such
+   * as daycare.
+   * 
+ * + * CHILD_CARE = 1; + */ + CHILD_CARE(1), + /** + * + * + *
+   * The job includes dental services covered by a dental
+   * insurance plan.
+   * 
+ * + * DENTAL = 2; + */ + DENTAL(2), + /** + * + * + *
+   * The job offers specific benefits to domestic partners.
+   * 
+ * + * DOMESTIC_PARTNER = 3; + */ + DOMESTIC_PARTNER(3), + /** + * + * + *
+   * The job allows for a flexible work schedule.
+   * 
+ * + * FLEXIBLE_HOURS = 4; + */ + FLEXIBLE_HOURS(4), + /** + * + * + *
+   * The job includes health services covered by a medical insurance plan.
+   * 
+ * + * MEDICAL = 5; + */ + MEDICAL(5), + /** + * + * + *
+   * The job includes a life insurance plan provided by the employer or
+   * available for purchase by the employee.
+   * 
+ * + * LIFE_INSURANCE = 6; + */ + LIFE_INSURANCE(6), + /** + * + * + *
+   * The job allows for a leave of absence to a parent to care for a newborn
+   * child.
+   * 
+ * + * PARENTAL_LEAVE = 7; + */ + PARENTAL_LEAVE(7), + /** + * + * + *
+   * The job includes a workplace retirement plan provided by the
+   * employer or available for purchase by the employee.
+   * 
+ * + * RETIREMENT_PLAN = 8; + */ + RETIREMENT_PLAN(8), + /** + * + * + *
+   * The job allows for paid time off due to illness.
+   * 
+ * + * SICK_DAYS = 9; + */ + SICK_DAYS(9), + /** + * + * + *
+   * The job includes paid time off for vacation.
+   * 
+ * + * VACATION = 10; + */ + VACATION(10), + /** + * + * + *
+   * The job includes vision services covered by a vision
+   * insurance plan.
+   * 
+ * + * VISION = 11; + */ + VISION(11), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value if the type isn't specified.
+   * 
+ * + * JOB_BENEFIT_UNSPECIFIED = 0; + */ + public static final int JOB_BENEFIT_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * The job includes access to programs that support child care, such
+   * as daycare.
+   * 
+ * + * CHILD_CARE = 1; + */ + public static final int CHILD_CARE_VALUE = 1; + /** + * + * + *
+   * The job includes dental services covered by a dental
+   * insurance plan.
+   * 
+ * + * DENTAL = 2; + */ + public static final int DENTAL_VALUE = 2; + /** + * + * + *
+   * The job offers specific benefits to domestic partners.
+   * 
+ * + * DOMESTIC_PARTNER = 3; + */ + public static final int DOMESTIC_PARTNER_VALUE = 3; + /** + * + * + *
+   * The job allows for a flexible work schedule.
+   * 
+ * + * FLEXIBLE_HOURS = 4; + */ + public static final int FLEXIBLE_HOURS_VALUE = 4; + /** + * + * + *
+   * The job includes health services covered by a medical insurance plan.
+   * 
+ * + * MEDICAL = 5; + */ + public static final int MEDICAL_VALUE = 5; + /** + * + * + *
+   * The job includes a life insurance plan provided by the employer or
+   * available for purchase by the employee.
+   * 
+ * + * LIFE_INSURANCE = 6; + */ + public static final int LIFE_INSURANCE_VALUE = 6; + /** + * + * + *
+   * The job allows for a leave of absence to a parent to care for a newborn
+   * child.
+   * 
+ * + * PARENTAL_LEAVE = 7; + */ + public static final int PARENTAL_LEAVE_VALUE = 7; + /** + * + * + *
+   * The job includes a workplace retirement plan provided by the
+   * employer or available for purchase by the employee.
+   * 
+ * + * RETIREMENT_PLAN = 8; + */ + public static final int RETIREMENT_PLAN_VALUE = 8; + /** + * + * + *
+   * The job allows for paid time off due to illness.
+   * 
+ * + * SICK_DAYS = 9; + */ + public static final int SICK_DAYS_VALUE = 9; + /** + * + * + *
+   * The job includes paid time off for vacation.
+   * 
+ * + * VACATION = 10; + */ + public static final int VACATION_VALUE = 10; + /** + * + * + *
+   * The job includes vision services covered by a vision
+   * insurance plan.
+   * 
+ * + * VISION = 11; + */ + public static final int VISION_VALUE = 11; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static JobBenefit valueOf(int value) { + return forNumber(value); + } + + public static JobBenefit forNumber(int value) { + switch (value) { + case 0: + return JOB_BENEFIT_UNSPECIFIED; + case 1: + return CHILD_CARE; + case 2: + return DENTAL; + case 3: + return DOMESTIC_PARTNER; + case 4: + return FLEXIBLE_HOURS; + case 5: + return MEDICAL; + case 6: + return LIFE_INSURANCE; + case 7: + return PARENTAL_LEAVE; + case 8: + return RETIREMENT_PLAN; + case 9: + return SICK_DAYS; + case 10: + return VACATION; + case 11: + return VISION; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public JobBenefit findValueByNumber(int number) { + return JobBenefit.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(1); + } + + private static final JobBenefit[] VALUES = values(); + + public static JobBenefit valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private JobBenefit(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.JobBenefit) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobCategory.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobCategory.java new file mode 100644 index 000000000000..ccf521a07d1d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobCategory.java @@ -0,0 +1,769 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * An enum that represents the categorization or primary focus of specific
+ * role. This value is different than the "industry" associated with a role,
+ * which is related to the categorization of the company listing the job.
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.JobCategory} + */ +public enum JobCategory implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * The default value if the category isn't specified.
+   * 
+ * + * JOB_CATEGORY_UNSPECIFIED = 0; + */ + JOB_CATEGORY_UNSPECIFIED(0), + /** + * + * + *
+   * An accounting and finance job, such as an Accountant.
+   * 
+ * + * ACCOUNTING_AND_FINANCE = 1; + */ + ACCOUNTING_AND_FINANCE(1), + /** + * + * + *
+   * An administrative and office job, such as an Administrative Assistant.
+   * 
+ * + * ADMINISTRATIVE_AND_OFFICE = 2; + */ + ADMINISTRATIVE_AND_OFFICE(2), + /** + * + * + *
+   * An advertising and marketing job, such as Marketing Manager.
+   * 
+ * + * ADVERTISING_AND_MARKETING = 3; + */ + ADVERTISING_AND_MARKETING(3), + /** + * + * + *
+   * An animal care job, such as Veterinarian.
+   * 
+ * + * ANIMAL_CARE = 4; + */ + ANIMAL_CARE(4), + /** + * + * + *
+   * An art, fashion, or design job, such as Designer.
+   * 
+ * + * ART_FASHION_AND_DESIGN = 5; + */ + ART_FASHION_AND_DESIGN(5), + /** + * + * + *
+   * A business operations job, such as Business Operations Manager.
+   * 
+ * + * BUSINESS_OPERATIONS = 6; + */ + BUSINESS_OPERATIONS(6), + /** + * + * + *
+   * A cleaning and facilities job, such as Custodial Staff.
+   * 
+ * + * CLEANING_AND_FACILITIES = 7; + */ + CLEANING_AND_FACILITIES(7), + /** + * + * + *
+   * A computer and IT job, such as Systems Administrator.
+   * 
+ * + * COMPUTER_AND_IT = 8; + */ + COMPUTER_AND_IT(8), + /** + * + * + *
+   * A construction job, such as General Laborer.
+   * 
+ * + * CONSTRUCTION = 9; + */ + CONSTRUCTION(9), + /** + * + * + *
+   * A customer service job, such s Cashier.
+   * 
+ * + * CUSTOMER_SERVICE = 10; + */ + CUSTOMER_SERVICE(10), + /** + * + * + *
+   * An education job, such as School Teacher.
+   * 
+ * + * EDUCATION = 11; + */ + EDUCATION(11), + /** + * + * + *
+   * An entertainment and travel job, such as Flight Attendant.
+   * 
+ * + * ENTERTAINMENT_AND_TRAVEL = 12; + */ + ENTERTAINMENT_AND_TRAVEL(12), + /** + * + * + *
+   * A farming or outdoor job, such as Park Ranger.
+   * 
+ * + * FARMING_AND_OUTDOORS = 13; + */ + FARMING_AND_OUTDOORS(13), + /** + * + * + *
+   * A healthcare job, such as Registered Nurse.
+   * 
+ * + * HEALTHCARE = 14; + */ + HEALTHCARE(14), + /** + * + * + *
+   * A human resources job, such as Human Resources Director.
+   * 
+ * + * HUMAN_RESOURCES = 15; + */ + HUMAN_RESOURCES(15), + /** + * + * + *
+   * An installation, maintenance, or repair job, such as Electrician.
+   * 
+ * + * INSTALLATION_MAINTENANCE_AND_REPAIR = 16; + */ + INSTALLATION_MAINTENANCE_AND_REPAIR(16), + /** + * + * + *
+   * A legal job, such as Law Clerk.
+   * 
+ * + * LEGAL = 17; + */ + LEGAL(17), + /** + * + * + *
+   * A management job, often used in conjunction with another category,
+   * such as Store Manager.
+   * 
+ * + * MANAGEMENT = 18; + */ + MANAGEMENT(18), + /** + * + * + *
+   * A manufacturing or warehouse job, such as Assembly Technician.
+   * 
+ * + * MANUFACTURING_AND_WAREHOUSE = 19; + */ + MANUFACTURING_AND_WAREHOUSE(19), + /** + * + * + *
+   * A media, communications, or writing job, such as Media Relations.
+   * 
+ * + * MEDIA_COMMUNICATIONS_AND_WRITING = 20; + */ + MEDIA_COMMUNICATIONS_AND_WRITING(20), + /** + * + * + *
+   * An oil, gas or mining job, such as Offshore Driller.
+   * 
+ * + * OIL_GAS_AND_MINING = 21; + */ + OIL_GAS_AND_MINING(21), + /** + * + * + *
+   * A personal care and services job, such as Hair Stylist.
+   * 
+ * + * PERSONAL_CARE_AND_SERVICES = 22; + */ + PERSONAL_CARE_AND_SERVICES(22), + /** + * + * + *
+   * A protective services job, such as Security Guard.
+   * 
+ * + * PROTECTIVE_SERVICES = 23; + */ + PROTECTIVE_SERVICES(23), + /** + * + * + *
+   * A real estate job, such as Buyer's Agent.
+   * 
+ * + * REAL_ESTATE = 24; + */ + REAL_ESTATE(24), + /** + * + * + *
+   * A restaurant and hospitality job, such as Restaurant Server.
+   * 
+ * + * RESTAURANT_AND_HOSPITALITY = 25; + */ + RESTAURANT_AND_HOSPITALITY(25), + /** + * + * + *
+   * A sales and/or retail job, such Sales Associate.
+   * 
+ * + * SALES_AND_RETAIL = 26; + */ + SALES_AND_RETAIL(26), + /** + * + * + *
+   * A science and engineering job, such as Lab Technician.
+   * 
+ * + * SCIENCE_AND_ENGINEERING = 27; + */ + SCIENCE_AND_ENGINEERING(27), + /** + * + * + *
+   * A social services or non-profit job, such as Case Worker.
+   * 
+ * + * SOCIAL_SERVICES_AND_NON_PROFIT = 28; + */ + SOCIAL_SERVICES_AND_NON_PROFIT(28), + /** + * + * + *
+   * A sports, fitness, or recreation job, such as Personal Trainer.
+   * 
+ * + * SPORTS_FITNESS_AND_RECREATION = 29; + */ + SPORTS_FITNESS_AND_RECREATION(29), + /** + * + * + *
+   * A transportation or logistics job, such as Truck Driver.
+   * 
+ * + * TRANSPORTATION_AND_LOGISTICS = 30; + */ + TRANSPORTATION_AND_LOGISTICS(30), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * The default value if the category isn't specified.
+   * 
+ * + * JOB_CATEGORY_UNSPECIFIED = 0; + */ + public static final int JOB_CATEGORY_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * An accounting and finance job, such as an Accountant.
+   * 
+ * + * ACCOUNTING_AND_FINANCE = 1; + */ + public static final int ACCOUNTING_AND_FINANCE_VALUE = 1; + /** + * + * + *
+   * An administrative and office job, such as an Administrative Assistant.
+   * 
+ * + * ADMINISTRATIVE_AND_OFFICE = 2; + */ + public static final int ADMINISTRATIVE_AND_OFFICE_VALUE = 2; + /** + * + * + *
+   * An advertising and marketing job, such as Marketing Manager.
+   * 
+ * + * ADVERTISING_AND_MARKETING = 3; + */ + public static final int ADVERTISING_AND_MARKETING_VALUE = 3; + /** + * + * + *
+   * An animal care job, such as Veterinarian.
+   * 
+ * + * ANIMAL_CARE = 4; + */ + public static final int ANIMAL_CARE_VALUE = 4; + /** + * + * + *
+   * An art, fashion, or design job, such as Designer.
+   * 
+ * + * ART_FASHION_AND_DESIGN = 5; + */ + public static final int ART_FASHION_AND_DESIGN_VALUE = 5; + /** + * + * + *
+   * A business operations job, such as Business Operations Manager.
+   * 
+ * + * BUSINESS_OPERATIONS = 6; + */ + public static final int BUSINESS_OPERATIONS_VALUE = 6; + /** + * + * + *
+   * A cleaning and facilities job, such as Custodial Staff.
+   * 
+ * + * CLEANING_AND_FACILITIES = 7; + */ + public static final int CLEANING_AND_FACILITIES_VALUE = 7; + /** + * + * + *
+   * A computer and IT job, such as Systems Administrator.
+   * 
+ * + * COMPUTER_AND_IT = 8; + */ + public static final int COMPUTER_AND_IT_VALUE = 8; + /** + * + * + *
+   * A construction job, such as General Laborer.
+   * 
+ * + * CONSTRUCTION = 9; + */ + public static final int CONSTRUCTION_VALUE = 9; + /** + * + * + *
+   * A customer service job, such s Cashier.
+   * 
+ * + * CUSTOMER_SERVICE = 10; + */ + public static final int CUSTOMER_SERVICE_VALUE = 10; + /** + * + * + *
+   * An education job, such as School Teacher.
+   * 
+ * + * EDUCATION = 11; + */ + public static final int EDUCATION_VALUE = 11; + /** + * + * + *
+   * An entertainment and travel job, such as Flight Attendant.
+   * 
+ * + * ENTERTAINMENT_AND_TRAVEL = 12; + */ + public static final int ENTERTAINMENT_AND_TRAVEL_VALUE = 12; + /** + * + * + *
+   * A farming or outdoor job, such as Park Ranger.
+   * 
+ * + * FARMING_AND_OUTDOORS = 13; + */ + public static final int FARMING_AND_OUTDOORS_VALUE = 13; + /** + * + * + *
+   * A healthcare job, such as Registered Nurse.
+   * 
+ * + * HEALTHCARE = 14; + */ + public static final int HEALTHCARE_VALUE = 14; + /** + * + * + *
+   * A human resources job, such as Human Resources Director.
+   * 
+ * + * HUMAN_RESOURCES = 15; + */ + public static final int HUMAN_RESOURCES_VALUE = 15; + /** + * + * + *
+   * An installation, maintenance, or repair job, such as Electrician.
+   * 
+ * + * INSTALLATION_MAINTENANCE_AND_REPAIR = 16; + */ + public static final int INSTALLATION_MAINTENANCE_AND_REPAIR_VALUE = 16; + /** + * + * + *
+   * A legal job, such as Law Clerk.
+   * 
+ * + * LEGAL = 17; + */ + public static final int LEGAL_VALUE = 17; + /** + * + * + *
+   * A management job, often used in conjunction with another category,
+   * such as Store Manager.
+   * 
+ * + * MANAGEMENT = 18; + */ + public static final int MANAGEMENT_VALUE = 18; + /** + * + * + *
+   * A manufacturing or warehouse job, such as Assembly Technician.
+   * 
+ * + * MANUFACTURING_AND_WAREHOUSE = 19; + */ + public static final int MANUFACTURING_AND_WAREHOUSE_VALUE = 19; + /** + * + * + *
+   * A media, communications, or writing job, such as Media Relations.
+   * 
+ * + * MEDIA_COMMUNICATIONS_AND_WRITING = 20; + */ + public static final int MEDIA_COMMUNICATIONS_AND_WRITING_VALUE = 20; + /** + * + * + *
+   * An oil, gas or mining job, such as Offshore Driller.
+   * 
+ * + * OIL_GAS_AND_MINING = 21; + */ + public static final int OIL_GAS_AND_MINING_VALUE = 21; + /** + * + * + *
+   * A personal care and services job, such as Hair Stylist.
+   * 
+ * + * PERSONAL_CARE_AND_SERVICES = 22; + */ + public static final int PERSONAL_CARE_AND_SERVICES_VALUE = 22; + /** + * + * + *
+   * A protective services job, such as Security Guard.
+   * 
+ * + * PROTECTIVE_SERVICES = 23; + */ + public static final int PROTECTIVE_SERVICES_VALUE = 23; + /** + * + * + *
+   * A real estate job, such as Buyer's Agent.
+   * 
+ * + * REAL_ESTATE = 24; + */ + public static final int REAL_ESTATE_VALUE = 24; + /** + * + * + *
+   * A restaurant and hospitality job, such as Restaurant Server.
+   * 
+ * + * RESTAURANT_AND_HOSPITALITY = 25; + */ + public static final int RESTAURANT_AND_HOSPITALITY_VALUE = 25; + /** + * + * + *
+   * A sales and/or retail job, such Sales Associate.
+   * 
+ * + * SALES_AND_RETAIL = 26; + */ + public static final int SALES_AND_RETAIL_VALUE = 26; + /** + * + * + *
+   * A science and engineering job, such as Lab Technician.
+   * 
+ * + * SCIENCE_AND_ENGINEERING = 27; + */ + public static final int SCIENCE_AND_ENGINEERING_VALUE = 27; + /** + * + * + *
+   * A social services or non-profit job, such as Case Worker.
+   * 
+ * + * SOCIAL_SERVICES_AND_NON_PROFIT = 28; + */ + public static final int SOCIAL_SERVICES_AND_NON_PROFIT_VALUE = 28; + /** + * + * + *
+   * A sports, fitness, or recreation job, such as Personal Trainer.
+   * 
+ * + * SPORTS_FITNESS_AND_RECREATION = 29; + */ + public static final int SPORTS_FITNESS_AND_RECREATION_VALUE = 29; + /** + * + * + *
+   * A transportation or logistics job, such as Truck Driver.
+   * 
+ * + * TRANSPORTATION_AND_LOGISTICS = 30; + */ + public static final int TRANSPORTATION_AND_LOGISTICS_VALUE = 30; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static JobCategory valueOf(int value) { + return forNumber(value); + } + + public static JobCategory forNumber(int value) { + switch (value) { + case 0: + return JOB_CATEGORY_UNSPECIFIED; + case 1: + return ACCOUNTING_AND_FINANCE; + case 2: + return ADMINISTRATIVE_AND_OFFICE; + case 3: + return ADVERTISING_AND_MARKETING; + case 4: + return ANIMAL_CARE; + case 5: + return ART_FASHION_AND_DESIGN; + case 6: + return BUSINESS_OPERATIONS; + case 7: + return CLEANING_AND_FACILITIES; + case 8: + return COMPUTER_AND_IT; + case 9: + return CONSTRUCTION; + case 10: + return CUSTOMER_SERVICE; + case 11: + return EDUCATION; + case 12: + return ENTERTAINMENT_AND_TRAVEL; + case 13: + return FARMING_AND_OUTDOORS; + case 14: + return HEALTHCARE; + case 15: + return HUMAN_RESOURCES; + case 16: + return INSTALLATION_MAINTENANCE_AND_REPAIR; + case 17: + return LEGAL; + case 18: + return MANAGEMENT; + case 19: + return MANUFACTURING_AND_WAREHOUSE; + case 20: + return MEDIA_COMMUNICATIONS_AND_WRITING; + case 21: + return OIL_GAS_AND_MINING; + case 22: + return PERSONAL_CARE_AND_SERVICES; + case 23: + return PROTECTIVE_SERVICES; + case 24: + return REAL_ESTATE; + case 25: + return RESTAURANT_AND_HOSPITALITY; + case 26: + return SALES_AND_RETAIL; + case 27: + return SCIENCE_AND_ENGINEERING; + case 28: + return SOCIAL_SERVICES_AND_NON_PROFIT; + case 29: + return SPORTS_FITNESS_AND_RECREATION; + case 30: + return TRANSPORTATION_AND_LOGISTICS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public JobCategory findValueByNumber(int number) { + return JobCategory.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(5); + } + + private static final JobCategory[] VALUES = values(); + + public static JobCategory valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private JobCategory(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.JobCategory) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobEvent.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobEvent.java new file mode 100644 index 000000000000..0d60fb0a0927 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobEvent.java @@ -0,0 +1,1478 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/event.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * An event issued when a job seeker interacts with the application that
+ * implements Cloud Talent Solution.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.JobEvent} + */ +public final class JobEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.JobEvent) + JobEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use JobEvent.newBuilder() to construct. + private JobEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private JobEvent() { + type_ = 0; + jobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private JobEvent( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + jobs_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + jobs_.add(s); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + jobs_ = jobs_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_JobEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_JobEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.JobEvent.class, + com.google.cloud.talent.v4beta1.JobEvent.Builder.class); + } + + /** + * + * + *
+   * An enumeration of an event attributed to the behavior of the end user,
+   * such as a job seeker.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.JobEvent.JobEventType} + */ + public enum JobEventType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The event is unspecified by other provided values.
+     * 
+ * + * JOB_EVENT_TYPE_UNSPECIFIED = 0; + */ + JOB_EVENT_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * The job seeker or other entity interacting with the service has
+     * had a job rendered in their view, such as in a list of search results in
+     * a compressed or clipped format. This event is typically associated with
+     * the viewing of a jobs list on a single page by a job seeker.
+     * 
+ * + * IMPRESSION = 1; + */ + IMPRESSION(1), + /** + * + * + *
+     * The job seeker, or other entity interacting with the service, has
+     * viewed the details of a job, including the full description. This
+     * event doesn't apply to the viewing a snippet of a job appearing as a
+     * part of the job search results. Viewing a snippet is associated with an
+     * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]).
+     * 
+ * + * VIEW = 2; + */ + VIEW(2), + /** + * + * + *
+     * The job seeker or other entity interacting with the service
+     * performed an action to view a job and was redirected to a different
+     * website for job.
+     * 
+ * + * VIEW_REDIRECT = 3; + */ + VIEW_REDIRECT(3), + /** + * + * + *
+     * The job seeker or other entity interacting with the service
+     * began the process or demonstrated the intention of applying for a job.
+     * 
+ * + * APPLICATION_START = 4; + */ + APPLICATION_START(4), + /** + * + * + *
+     * The job seeker or other entity interacting with the service
+     * submitted an application for a job.
+     * 
+ * + * APPLICATION_FINISH = 5; + */ + APPLICATION_FINISH(5), + /** + * + * + *
+     * The job seeker or other entity interacting with the service
+     * submitted an application for a job with a single click without
+     * entering information. If a job seeker performs this action, send only
+     * this event to the service. Do not also send
+     * [JobEventType.APPLICATION_START][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_START]
+     * or
+     * [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_FINISH]
+     * events.
+     * 
+ * + * APPLICATION_QUICK_SUBMISSION = 6; + */ + APPLICATION_QUICK_SUBMISSION(6), + /** + * + * + *
+     * The job seeker or other entity interacting with the service
+     * performed an action to apply to a job and was redirected to a different
+     * website to complete the application.
+     * 
+ * + * APPLICATION_REDIRECT = 7; + */ + APPLICATION_REDIRECT(7), + /** + * + * + *
+     * The job seeker or other entity interacting with the service began the
+     * process or demonstrated the intention of applying for a job from the
+     * search results page without viewing the details of the job posting.
+     * If sending this event, JobEventType.VIEW event shouldn't be sent.
+     * 
+ * + * APPLICATION_START_FROM_SEARCH = 8; + */ + APPLICATION_START_FROM_SEARCH(8), + /** + * + * + *
+     * The job seeker, or other entity interacting with the service, performs an
+     * action with a single click from the search results page to apply to a job
+     * (without viewing the details of the job posting), and is redirected
+     * to a different website to complete the application. If a candidate
+     * performs this action, send only this event to the service. Do not also
+     * send
+     * [JobEventType.APPLICATION_START][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_START],
+     * [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_FINISH]
+     * or
+     * [JobEventType.VIEW][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW]
+     * events.
+     * 
+ * + * APPLICATION_REDIRECT_FROM_SEARCH = 9; + */ + APPLICATION_REDIRECT_FROM_SEARCH(9), + /** + * + * + *
+     * This event should be used when a company submits an application
+     * on behalf of a job seeker. This event is intended for use by staffing
+     * agencies attempting to place candidates.
+     * 
+ * + * APPLICATION_COMPANY_SUBMIT = 10; + */ + APPLICATION_COMPANY_SUBMIT(10), + /** + * + * + *
+     * The job seeker or other entity interacting with the service demonstrated
+     * an interest in a job by bookmarking or saving it.
+     * 
+ * + * BOOKMARK = 11; + */ + BOOKMARK(11), + /** + * + * + *
+     * The job seeker or other entity interacting with the service was
+     * sent a notification, such as an email alert or device notification,
+     * containing one or more jobs listings generated by the service.
+     * 
+ * + * NOTIFICATION = 12; + */ + NOTIFICATION(12), + /** + * + * + *
+     * The job seeker or other entity interacting with the service was
+     * employed by the hiring entity (employer). Send this event
+     * only if the job seeker was hired through an application that was
+     * initiated by a search conducted through the Cloud Talent Solution
+     * service.
+     * 
+ * + * HIRED = 13; + */ + HIRED(13), + /** + * + * + *
+     * A recruiter or staffing agency submitted an application on behalf of the
+     * candidate after interacting with the service to identify a suitable job
+     * posting.
+     * 
+ * + * SENT_CV = 14; + */ + SENT_CV(14), + /** + * + * + *
+     * The entity interacting with the service (for example, the job seeker),
+     * was granted an initial interview by the hiring entity (employer). This
+     * event should only be sent if the job seeker was granted an interview as
+     * part of an application that was initiated by a search conducted through /
+     * recommendation provided by the Cloud Talent Solution service.
+     * 
+ * + * INTERVIEW_GRANTED = 15; + */ + INTERVIEW_GRANTED(15), + /** + * + * + *
+     * The job seeker or other entity interacting with the service showed
+     * no interest in the job.
+     * 
+ * + * NOT_INTERESTED = 16; + */ + NOT_INTERESTED(16), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The event is unspecified by other provided values.
+     * 
+ * + * JOB_EVENT_TYPE_UNSPECIFIED = 0; + */ + public static final int JOB_EVENT_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The job seeker or other entity interacting with the service has
+     * had a job rendered in their view, such as in a list of search results in
+     * a compressed or clipped format. This event is typically associated with
+     * the viewing of a jobs list on a single page by a job seeker.
+     * 
+ * + * IMPRESSION = 1; + */ + public static final int IMPRESSION_VALUE = 1; + /** + * + * + *
+     * The job seeker, or other entity interacting with the service, has
+     * viewed the details of a job, including the full description. This
+     * event doesn't apply to the viewing a snippet of a job appearing as a
+     * part of the job search results. Viewing a snippet is associated with an
+     * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]).
+     * 
+ * + * VIEW = 2; + */ + public static final int VIEW_VALUE = 2; + /** + * + * + *
+     * The job seeker or other entity interacting with the service
+     * performed an action to view a job and was redirected to a different
+     * website for job.
+     * 
+ * + * VIEW_REDIRECT = 3; + */ + public static final int VIEW_REDIRECT_VALUE = 3; + /** + * + * + *
+     * The job seeker or other entity interacting with the service
+     * began the process or demonstrated the intention of applying for a job.
+     * 
+ * + * APPLICATION_START = 4; + */ + public static final int APPLICATION_START_VALUE = 4; + /** + * + * + *
+     * The job seeker or other entity interacting with the service
+     * submitted an application for a job.
+     * 
+ * + * APPLICATION_FINISH = 5; + */ + public static final int APPLICATION_FINISH_VALUE = 5; + /** + * + * + *
+     * The job seeker or other entity interacting with the service
+     * submitted an application for a job with a single click without
+     * entering information. If a job seeker performs this action, send only
+     * this event to the service. Do not also send
+     * [JobEventType.APPLICATION_START][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_START]
+     * or
+     * [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_FINISH]
+     * events.
+     * 
+ * + * APPLICATION_QUICK_SUBMISSION = 6; + */ + public static final int APPLICATION_QUICK_SUBMISSION_VALUE = 6; + /** + * + * + *
+     * The job seeker or other entity interacting with the service
+     * performed an action to apply to a job and was redirected to a different
+     * website to complete the application.
+     * 
+ * + * APPLICATION_REDIRECT = 7; + */ + public static final int APPLICATION_REDIRECT_VALUE = 7; + /** + * + * + *
+     * The job seeker or other entity interacting with the service began the
+     * process or demonstrated the intention of applying for a job from the
+     * search results page without viewing the details of the job posting.
+     * If sending this event, JobEventType.VIEW event shouldn't be sent.
+     * 
+ * + * APPLICATION_START_FROM_SEARCH = 8; + */ + public static final int APPLICATION_START_FROM_SEARCH_VALUE = 8; + /** + * + * + *
+     * The job seeker, or other entity interacting with the service, performs an
+     * action with a single click from the search results page to apply to a job
+     * (without viewing the details of the job posting), and is redirected
+     * to a different website to complete the application. If a candidate
+     * performs this action, send only this event to the service. Do not also
+     * send
+     * [JobEventType.APPLICATION_START][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_START],
+     * [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_FINISH]
+     * or
+     * [JobEventType.VIEW][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW]
+     * events.
+     * 
+ * + * APPLICATION_REDIRECT_FROM_SEARCH = 9; + */ + public static final int APPLICATION_REDIRECT_FROM_SEARCH_VALUE = 9; + /** + * + * + *
+     * This event should be used when a company submits an application
+     * on behalf of a job seeker. This event is intended for use by staffing
+     * agencies attempting to place candidates.
+     * 
+ * + * APPLICATION_COMPANY_SUBMIT = 10; + */ + public static final int APPLICATION_COMPANY_SUBMIT_VALUE = 10; + /** + * + * + *
+     * The job seeker or other entity interacting with the service demonstrated
+     * an interest in a job by bookmarking or saving it.
+     * 
+ * + * BOOKMARK = 11; + */ + public static final int BOOKMARK_VALUE = 11; + /** + * + * + *
+     * The job seeker or other entity interacting with the service was
+     * sent a notification, such as an email alert or device notification,
+     * containing one or more jobs listings generated by the service.
+     * 
+ * + * NOTIFICATION = 12; + */ + public static final int NOTIFICATION_VALUE = 12; + /** + * + * + *
+     * The job seeker or other entity interacting with the service was
+     * employed by the hiring entity (employer). Send this event
+     * only if the job seeker was hired through an application that was
+     * initiated by a search conducted through the Cloud Talent Solution
+     * service.
+     * 
+ * + * HIRED = 13; + */ + public static final int HIRED_VALUE = 13; + /** + * + * + *
+     * A recruiter or staffing agency submitted an application on behalf of the
+     * candidate after interacting with the service to identify a suitable job
+     * posting.
+     * 
+ * + * SENT_CV = 14; + */ + public static final int SENT_CV_VALUE = 14; + /** + * + * + *
+     * The entity interacting with the service (for example, the job seeker),
+     * was granted an initial interview by the hiring entity (employer). This
+     * event should only be sent if the job seeker was granted an interview as
+     * part of an application that was initiated by a search conducted through /
+     * recommendation provided by the Cloud Talent Solution service.
+     * 
+ * + * INTERVIEW_GRANTED = 15; + */ + public static final int INTERVIEW_GRANTED_VALUE = 15; + /** + * + * + *
+     * The job seeker or other entity interacting with the service showed
+     * no interest in the job.
+     * 
+ * + * NOT_INTERESTED = 16; + */ + public static final int NOT_INTERESTED_VALUE = 16; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static JobEventType valueOf(int value) { + return forNumber(value); + } + + public static JobEventType forNumber(int value) { + switch (value) { + case 0: + return JOB_EVENT_TYPE_UNSPECIFIED; + case 1: + return IMPRESSION; + case 2: + return VIEW; + case 3: + return VIEW_REDIRECT; + case 4: + return APPLICATION_START; + case 5: + return APPLICATION_FINISH; + case 6: + return APPLICATION_QUICK_SUBMISSION; + case 7: + return APPLICATION_REDIRECT; + case 8: + return APPLICATION_START_FROM_SEARCH; + case 9: + return APPLICATION_REDIRECT_FROM_SEARCH; + case 10: + return APPLICATION_COMPANY_SUBMIT; + case 11: + return BOOKMARK; + case 12: + return NOTIFICATION; + case 13: + return HIRED; + case 14: + return SENT_CV; + case 15: + return INTERVIEW_GRANTED; + case 16: + return NOT_INTERESTED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public JobEventType findValueByNumber(int number) { + return JobEventType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobEvent.getDescriptor().getEnumTypes().get(0); + } + + private static final JobEventType[] VALUES = values(); + + public static JobEventType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private JobEventType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.JobEvent.JobEventType) + } + + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + * + * + *
+   * Required.
+   * The type of the event (see
+   * [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]).
+   * 
+ * + * .google.cloud.talent.v4beta1.JobEvent.JobEventType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Required.
+   * The type of the event (see
+   * [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]).
+   * 
+ * + * .google.cloud.talent.v4beta1.JobEvent.JobEventType type = 1; + */ + public com.google.cloud.talent.v4beta1.JobEvent.JobEventType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobEvent.JobEventType result = + com.google.cloud.talent.v4beta1.JobEvent.JobEventType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.JobEvent.JobEventType.UNRECOGNIZED + : result; + } + + public static final int JOBS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList jobs_; + /** + * + * + *
+   * Required.
+   * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+   * this event. For example, if this is an
+   * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+   * event, this field contains the identifiers of all jobs shown to the job
+   * seeker. If this was a
+   * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+   * field contains the identifier of the viewed job.
+   * 
+ * + * repeated string jobs = 2; + */ + public com.google.protobuf.ProtocolStringList getJobsList() { + return jobs_; + } + /** + * + * + *
+   * Required.
+   * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+   * this event. For example, if this is an
+   * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+   * event, this field contains the identifiers of all jobs shown to the job
+   * seeker. If this was a
+   * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+   * field contains the identifier of the viewed job.
+   * 
+ * + * repeated string jobs = 2; + */ + public int getJobsCount() { + return jobs_.size(); + } + /** + * + * + *
+   * Required.
+   * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+   * this event. For example, if this is an
+   * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+   * event, this field contains the identifiers of all jobs shown to the job
+   * seeker. If this was a
+   * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+   * field contains the identifier of the viewed job.
+   * 
+ * + * repeated string jobs = 2; + */ + public java.lang.String getJobs(int index) { + return jobs_.get(index); + } + /** + * + * + *
+   * Required.
+   * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+   * this event. For example, if this is an
+   * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+   * event, this field contains the identifiers of all jobs shown to the job
+   * seeker. If this was a
+   * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+   * field contains the identifier of the viewed job.
+   * 
+ * + * repeated string jobs = 2; + */ + public com.google.protobuf.ByteString getJobsBytes(int index) { + return jobs_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (type_ + != com.google.cloud.talent.v4beta1.JobEvent.JobEventType.JOB_EVENT_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, type_); + } + for (int i = 0; i < jobs_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobs_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ + != com.google.cloud.talent.v4beta1.JobEvent.JobEventType.JOB_EVENT_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + { + int dataSize = 0; + for (int i = 0; i < jobs_.size(); i++) { + dataSize += computeStringSizeNoTag(jobs_.getRaw(i)); + } + size += dataSize; + size += 1 * getJobsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.JobEvent)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.JobEvent other = (com.google.cloud.talent.v4beta1.JobEvent) obj; + + boolean result = true; + result = result && type_ == other.type_; + result = result && getJobsList().equals(other.getJobsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (getJobsCount() > 0) { + hash = (37 * hash) + JOBS_FIELD_NUMBER; + hash = (53 * hash) + getJobsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.JobEvent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobEvent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobEvent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobEvent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.JobEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * An event issued when a job seeker interacts with the application that
+   * implements Cloud Talent Solution.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.JobEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.JobEvent) + com.google.cloud.talent.v4beta1.JobEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_JobEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_JobEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.JobEvent.class, + com.google.cloud.talent.v4beta1.JobEvent.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.JobEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = 0; + + jobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_JobEvent_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobEvent getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobEvent build() { + com.google.cloud.talent.v4beta1.JobEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobEvent buildPartial() { + com.google.cloud.talent.v4beta1.JobEvent result = + new com.google.cloud.talent.v4beta1.JobEvent(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.type_ = type_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + jobs_ = jobs_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.jobs_ = jobs_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.JobEvent) { + return mergeFrom((com.google.cloud.talent.v4beta1.JobEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.JobEvent other) { + if (other == com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.jobs_.isEmpty()) { + if (jobs_.isEmpty()) { + jobs_ = other.jobs_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureJobsIsMutable(); + jobs_.addAll(other.jobs_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.JobEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.JobEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int type_ = 0; + /** + * + * + *
+     * Required.
+     * The type of the event (see
+     * [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]).
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent.JobEventType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Required.
+     * The type of the event (see
+     * [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]).
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent.JobEventType type = 1; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The type of the event (see
+     * [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]).
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent.JobEventType type = 1; + */ + public com.google.cloud.talent.v4beta1.JobEvent.JobEventType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobEvent.JobEventType result = + com.google.cloud.talent.v4beta1.JobEvent.JobEventType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.JobEvent.JobEventType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required.
+     * The type of the event (see
+     * [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]).
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent.JobEventType type = 1; + */ + public Builder setType(com.google.cloud.talent.v4beta1.JobEvent.JobEventType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The type of the event (see
+     * [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]).
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent.JobEventType type = 1; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList jobs_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureJobsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + jobs_ = new com.google.protobuf.LazyStringArrayList(jobs_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Required.
+     * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+     * this event. For example, if this is an
+     * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+     * event, this field contains the identifiers of all jobs shown to the job
+     * seeker. If this was a
+     * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+     * field contains the identifier of the viewed job.
+     * 
+ * + * repeated string jobs = 2; + */ + public com.google.protobuf.ProtocolStringList getJobsList() { + return jobs_.getUnmodifiableView(); + } + /** + * + * + *
+     * Required.
+     * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+     * this event. For example, if this is an
+     * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+     * event, this field contains the identifiers of all jobs shown to the job
+     * seeker. If this was a
+     * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+     * field contains the identifier of the viewed job.
+     * 
+ * + * repeated string jobs = 2; + */ + public int getJobsCount() { + return jobs_.size(); + } + /** + * + * + *
+     * Required.
+     * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+     * this event. For example, if this is an
+     * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+     * event, this field contains the identifiers of all jobs shown to the job
+     * seeker. If this was a
+     * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+     * field contains the identifier of the viewed job.
+     * 
+ * + * repeated string jobs = 2; + */ + public java.lang.String getJobs(int index) { + return jobs_.get(index); + } + /** + * + * + *
+     * Required.
+     * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+     * this event. For example, if this is an
+     * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+     * event, this field contains the identifiers of all jobs shown to the job
+     * seeker. If this was a
+     * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+     * field contains the identifier of the viewed job.
+     * 
+ * + * repeated string jobs = 2; + */ + public com.google.protobuf.ByteString getJobsBytes(int index) { + return jobs_.getByteString(index); + } + /** + * + * + *
+     * Required.
+     * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+     * this event. For example, if this is an
+     * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+     * event, this field contains the identifiers of all jobs shown to the job
+     * seeker. If this was a
+     * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+     * field contains the identifier of the viewed job.
+     * 
+ * + * repeated string jobs = 2; + */ + public Builder setJobs(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobsIsMutable(); + jobs_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+     * this event. For example, if this is an
+     * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+     * event, this field contains the identifiers of all jobs shown to the job
+     * seeker. If this was a
+     * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+     * field contains the identifier of the viewed job.
+     * 
+ * + * repeated string jobs = 2; + */ + public Builder addJobs(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobsIsMutable(); + jobs_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+     * this event. For example, if this is an
+     * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+     * event, this field contains the identifiers of all jobs shown to the job
+     * seeker. If this was a
+     * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+     * field contains the identifier of the viewed job.
+     * 
+ * + * repeated string jobs = 2; + */ + public Builder addAllJobs(java.lang.Iterable values) { + ensureJobsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jobs_); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+     * this event. For example, if this is an
+     * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+     * event, this field contains the identifiers of all jobs shown to the job
+     * seeker. If this was a
+     * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+     * field contains the identifier of the viewed job.
+     * 
+ * + * repeated string jobs = 2; + */ + public Builder clearJobs() { + jobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+     * this event. For example, if this is an
+     * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+     * event, this field contains the identifiers of all jobs shown to the job
+     * seeker. If this was a
+     * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+     * field contains the identifier of the viewed job.
+     * 
+ * + * repeated string jobs = 2; + */ + public Builder addJobsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureJobsIsMutable(); + jobs_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.JobEvent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.JobEvent) + private static final com.google.cloud.talent.v4beta1.JobEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.JobEvent(); + } + + public static com.google.cloud.talent.v4beta1.JobEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JobEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new JobEvent(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobEventOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobEventOrBuilder.java new file mode 100644 index 000000000000..6d63344a67b6 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobEventOrBuilder.java @@ -0,0 +1,104 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/event.proto + +package com.google.cloud.talent.v4beta1; + +public interface JobEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.JobEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The type of the event (see
+   * [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]).
+   * 
+ * + * .google.cloud.talent.v4beta1.JobEvent.JobEventType type = 1; + */ + int getTypeValue(); + /** + * + * + *
+   * Required.
+   * The type of the event (see
+   * [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]).
+   * 
+ * + * .google.cloud.talent.v4beta1.JobEvent.JobEventType type = 1; + */ + com.google.cloud.talent.v4beta1.JobEvent.JobEventType getType(); + + /** + * + * + *
+   * Required.
+   * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+   * this event. For example, if this is an
+   * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+   * event, this field contains the identifiers of all jobs shown to the job
+   * seeker. If this was a
+   * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+   * field contains the identifier of the viewed job.
+   * 
+ * + * repeated string jobs = 2; + */ + java.util.List getJobsList(); + /** + * + * + *
+   * Required.
+   * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+   * this event. For example, if this is an
+   * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+   * event, this field contains the identifiers of all jobs shown to the job
+   * seeker. If this was a
+   * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+   * field contains the identifier of the viewed job.
+   * 
+ * + * repeated string jobs = 2; + */ + int getJobsCount(); + /** + * + * + *
+   * Required.
+   * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+   * this event. For example, if this is an
+   * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+   * event, this field contains the identifiers of all jobs shown to the job
+   * seeker. If this was a
+   * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+   * field contains the identifier of the viewed job.
+   * 
+ * + * repeated string jobs = 2; + */ + java.lang.String getJobs(int index); + /** + * + * + *
+   * Required.
+   * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+   * this event. For example, if this is an
+   * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+   * event, this field contains the identifiers of all jobs shown to the job
+   * seeker. If this was a
+   * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+   * field contains the identifier of the viewed job.
+   * 
+ * + * repeated string jobs = 2; + */ + com.google.protobuf.ByteString getJobsBytes(int index); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobLevel.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobLevel.java new file mode 100644 index 000000000000..79b48a9d0a31 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobLevel.java @@ -0,0 +1,219 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * An enum that represents the required experience level required for the job.
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.JobLevel} + */ +public enum JobLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * The default value if the level isn't specified.
+   * 
+ * + * JOB_LEVEL_UNSPECIFIED = 0; + */ + JOB_LEVEL_UNSPECIFIED(0), + /** + * + * + *
+   * Entry-level individual contributors, typically with less than 2 years of
+   * experience in a similar role. Includes interns.
+   * 
+ * + * ENTRY_LEVEL = 1; + */ + ENTRY_LEVEL(1), + /** + * + * + *
+   * Experienced individual contributors, typically with 2+ years of
+   * experience in a similar role.
+   * 
+ * + * EXPERIENCED = 2; + */ + EXPERIENCED(2), + /** + * + * + *
+   * Entry- to mid-level managers responsible for managing a team of people.
+   * 
+ * + * MANAGER = 3; + */ + MANAGER(3), + /** + * + * + *
+   * Senior-level managers responsible for managing teams of managers.
+   * 
+ * + * DIRECTOR = 4; + */ + DIRECTOR(4), + /** + * + * + *
+   * Executive-level managers and above, including C-level positions.
+   * 
+ * + * EXECUTIVE = 5; + */ + EXECUTIVE(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * The default value if the level isn't specified.
+   * 
+ * + * JOB_LEVEL_UNSPECIFIED = 0; + */ + public static final int JOB_LEVEL_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Entry-level individual contributors, typically with less than 2 years of
+   * experience in a similar role. Includes interns.
+   * 
+ * + * ENTRY_LEVEL = 1; + */ + public static final int ENTRY_LEVEL_VALUE = 1; + /** + * + * + *
+   * Experienced individual contributors, typically with 2+ years of
+   * experience in a similar role.
+   * 
+ * + * EXPERIENCED = 2; + */ + public static final int EXPERIENCED_VALUE = 2; + /** + * + * + *
+   * Entry- to mid-level managers responsible for managing a team of people.
+   * 
+ * + * MANAGER = 3; + */ + public static final int MANAGER_VALUE = 3; + /** + * + * + *
+   * Senior-level managers responsible for managing teams of managers.
+   * 
+ * + * DIRECTOR = 4; + */ + public static final int DIRECTOR_VALUE = 4; + /** + * + * + *
+   * Executive-level managers and above, including C-level positions.
+   * 
+ * + * EXECUTIVE = 5; + */ + public static final int EXECUTIVE_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static JobLevel valueOf(int value) { + return forNumber(value); + } + + public static JobLevel forNumber(int value) { + switch (value) { + case 0: + return JOB_LEVEL_UNSPECIFIED; + case 1: + return ENTRY_LEVEL; + case 2: + return EXPERIENCED; + case 3: + return MANAGER; + case 4: + return DIRECTOR; + case 5: + return EXECUTIVE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public JobLevel findValueByNumber(int number) { + return JobLevel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(4); + } + + private static final JobLevel[] VALUES = values(); + + public static JobLevel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private JobLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.JobLevel) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobName.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobName.java new file mode 100644 index 000000000000..5bf3fec9adf1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobName.java @@ -0,0 +1,180 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.cloud.talent.v4beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class JobName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/jobs/{jobs}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String jobs; + + public String getProject() { + return project; + } + + public String getJobs() { + return jobs; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private JobName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + jobs = Preconditions.checkNotNull(builder.getJobs()); + } + + public static JobName of(String project, String jobs) { + return newBuilder().setProject(project).setJobs(jobs).build(); + } + + public static String format(String project, String jobs) { + return newBuilder().setProject(project).setJobs(jobs).build().toString(); + } + + public static JobName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "JobName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("jobs")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (JobName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("jobs", jobs); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "jobs", jobs); + } + + /** Builder for JobName. */ + public static class Builder { + + private String project; + private String jobs; + + public String getProject() { + return project; + } + + public String getJobs() { + return jobs; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setJobs(String jobs) { + this.jobs = jobs; + return this; + } + + private Builder() {} + + private Builder(JobName jobName) { + project = jobName.project; + jobs = jobName.jobs; + } + + public JobName build() { + return new JobName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof JobName) { + JobName that = (JobName) o; + return (this.project.equals(that.project)) && (this.jobs.equals(that.jobs)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= jobs.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobOrBuilder.java new file mode 100644 index 000000000000..4667ecf62c2f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobOrBuilder.java @@ -0,0 +1,1291 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job.proto + +package com.google.cloud.talent.v4beta1; + +public interface JobOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Job) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required during job update.
+   * The resource name for the job. This is generated by the service when a
+   * job is created.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * Use of this field in job queries and API calls is preferred over the use of
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this
+   * value is unique.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required during job update.
+   * The resource name for the job. This is generated by the service when a
+   * job is created.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * Use of this field in job queries and API calls is preferred over the use of
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this
+   * value is unique.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required.
+   * The resource name of the company listing the job, such as
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string company_name = 2; + */ + java.lang.String getCompanyName(); + /** + * + * + *
+   * Required.
+   * The resource name of the company listing the job, such as
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string company_name = 2; + */ + com.google.protobuf.ByteString getCompanyNameBytes(); + + /** + * + * + *
+   * Required.
+   * The requisition ID, also referred to as the posting ID, is assigned by the
+   * client to identify a job. This field is intended to be used by clients
+   * for client identification and tracking of postings. A job isn't allowed
+   * to be created if there is another job with the same
+   * [company][google.cloud.talent.v4beta1.Job.name],
+   * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string requisition_id = 3; + */ + java.lang.String getRequisitionId(); + /** + * + * + *
+   * Required.
+   * The requisition ID, also referred to as the posting ID, is assigned by the
+   * client to identify a job. This field is intended to be used by clients
+   * for client identification and tracking of postings. A job isn't allowed
+   * to be created if there is another job with the same
+   * [company][google.cloud.talent.v4beta1.Job.name],
+   * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string requisition_id = 3; + */ + com.google.protobuf.ByteString getRequisitionIdBytes(); + + /** + * + * + *
+   * Required.
+   * The title of the job, such as "Software Engineer"
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * string title = 4; + */ + java.lang.String getTitle(); + /** + * + * + *
+   * Required.
+   * The title of the job, such as "Software Engineer"
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * string title = 4; + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
+   * Required.
+   * The description of the job, which typically includes a multi-paragraph
+   * description of the company and related information. Separate fields are
+   * provided on the job object for
+   * [responsibilities][google.cloud.talent.v4beta1.Job.responsibilities],
+   * [qualifications][google.cloud.talent.v4beta1.Job.qualifications], and other
+   * job characteristics. Use of these separate job fields is recommended.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 100,000.
+   * 
+ * + * string description = 5; + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Required.
+   * The description of the job, which typically includes a multi-paragraph
+   * description of the company and related information. Separate fields are
+   * provided on the job object for
+   * [responsibilities][google.cloud.talent.v4beta1.Job.responsibilities],
+   * [qualifications][google.cloud.talent.v4beta1.Job.qualifications], and other
+   * job characteristics. Use of these separate job fields is recommended.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 100,000.
+   * 
+ * + * string description = 5; + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional but strongly recommended for the best service experience.
+   * Location(s) where the employer is looking to hire for this job posting.
+   * Specifying the full street address(es) of the hiring location enables
+   * better API results, especially job searches by commute time.
+   * At most 50 locations are allowed for best search performance. If a job has
+   * more locations, it is suggested to split it into multiple jobs with unique
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+   * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+   * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+   * allowed. If the original
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+   * preserved, a custom field should be used for storage. It is also suggested
+   * to group the locations that close to each other in the same job for better
+   * search experience.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * repeated string addresses = 6; + */ + java.util.List getAddressesList(); + /** + * + * + *
+   * Optional but strongly recommended for the best service experience.
+   * Location(s) where the employer is looking to hire for this job posting.
+   * Specifying the full street address(es) of the hiring location enables
+   * better API results, especially job searches by commute time.
+   * At most 50 locations are allowed for best search performance. If a job has
+   * more locations, it is suggested to split it into multiple jobs with unique
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+   * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+   * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+   * allowed. If the original
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+   * preserved, a custom field should be used for storage. It is also suggested
+   * to group the locations that close to each other in the same job for better
+   * search experience.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * repeated string addresses = 6; + */ + int getAddressesCount(); + /** + * + * + *
+   * Optional but strongly recommended for the best service experience.
+   * Location(s) where the employer is looking to hire for this job posting.
+   * Specifying the full street address(es) of the hiring location enables
+   * better API results, especially job searches by commute time.
+   * At most 50 locations are allowed for best search performance. If a job has
+   * more locations, it is suggested to split it into multiple jobs with unique
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+   * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+   * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+   * allowed. If the original
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+   * preserved, a custom field should be used for storage. It is also suggested
+   * to group the locations that close to each other in the same job for better
+   * search experience.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * repeated string addresses = 6; + */ + java.lang.String getAddresses(int index); + /** + * + * + *
+   * Optional but strongly recommended for the best service experience.
+   * Location(s) where the employer is looking to hire for this job posting.
+   * Specifying the full street address(es) of the hiring location enables
+   * better API results, especially job searches by commute time.
+   * At most 50 locations are allowed for best search performance. If a job has
+   * more locations, it is suggested to split it into multiple jobs with unique
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+   * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+   * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+   * allowed. If the original
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+   * preserved, a custom field should be used for storage. It is also suggested
+   * to group the locations that close to each other in the same job for better
+   * search experience.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * repeated string addresses = 6; + */ + com.google.protobuf.ByteString getAddressesBytes(int index); + + /** + * + * + *
+   * Required. At least one field within
+   * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+   * specified.
+   * Job application information.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + boolean hasApplicationInfo(); + /** + * + * + *
+   * Required. At least one field within
+   * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+   * specified.
+   * Job application information.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + com.google.cloud.talent.v4beta1.Job.ApplicationInfo getApplicationInfo(); + /** + * + * + *
+   * Required. At least one field within
+   * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+   * specified.
+   * Job application information.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + com.google.cloud.talent.v4beta1.Job.ApplicationInfoOrBuilder getApplicationInfoOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The benefits included with the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + java.util.List getJobBenefitsList(); + /** + * + * + *
+   * Optional.
+   * The benefits included with the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + int getJobBenefitsCount(); + /** + * + * + *
+   * Optional.
+   * The benefits included with the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + com.google.cloud.talent.v4beta1.JobBenefit getJobBenefits(int index); + /** + * + * + *
+   * Optional.
+   * The benefits included with the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + java.util.List getJobBenefitsValueList(); + /** + * + * + *
+   * Optional.
+   * The benefits included with the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + int getJobBenefitsValue(int index); + + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + boolean hasCompensationInfo(); + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + com.google.cloud.talent.v4beta1.CompensationInfo getCompensationInfo(); + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + com.google.cloud.talent.v4beta1.CompensationInfoOrBuilder getCompensationInfoOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom job
+   * attributes that are not covered by the provided structured fields.
+   * The keys of the map are strings up to 64 bytes and must match the
+   * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+   * KEY_1_LIKE_THIS.
+   * At most 100 filterable and at most 100 unfilterable keys are supported.
+   * For filterable `string_values`, across all keys at most 200 values are
+   * allowed, with each string no more than 255 characters. For unfilterable
+   * `string_values`, the maximum total size of `string_values` across all keys
+   * is 50KB.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + int getCustomAttributesCount(); + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom job
+   * attributes that are not covered by the provided structured fields.
+   * The keys of the map are strings up to 64 bytes and must match the
+   * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+   * KEY_1_LIKE_THIS.
+   * At most 100 filterable and at most 100 unfilterable keys are supported.
+   * For filterable `string_values`, across all keys at most 200 values are
+   * allowed, with each string no more than 255 characters. For unfilterable
+   * `string_values`, the maximum total size of `string_values` across all keys
+   * is 50KB.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + boolean containsCustomAttributes(java.lang.String key); + /** Use {@link #getCustomAttributesMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getCustomAttributes(); + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom job
+   * attributes that are not covered by the provided structured fields.
+   * The keys of the map are strings up to 64 bytes and must match the
+   * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+   * KEY_1_LIKE_THIS.
+   * At most 100 filterable and at most 100 unfilterable keys are supported.
+   * For filterable `string_values`, across all keys at most 200 values are
+   * allowed, with each string no more than 255 characters. For unfilterable
+   * `string_values`, the maximum total size of `string_values` across all keys
+   * is 50KB.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + java.util.Map + getCustomAttributesMap(); + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom job
+   * attributes that are not covered by the provided structured fields.
+   * The keys of the map are strings up to 64 bytes and must match the
+   * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+   * KEY_1_LIKE_THIS.
+   * At most 100 filterable and at most 100 unfilterable keys are supported.
+   * For filterable `string_values`, across all keys at most 200 values are
+   * allowed, with each string no more than 255 characters. For unfilterable
+   * `string_values`, the maximum total size of `string_values` across all keys
+   * is 50KB.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrDefault( + java.lang.String key, com.google.cloud.talent.v4beta1.CustomAttribute defaultValue); + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom job
+   * attributes that are not covered by the provided structured fields.
+   * The keys of the map are strings up to 64 bytes and must match the
+   * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+   * KEY_1_LIKE_THIS.
+   * At most 100 filterable and at most 100 unfilterable keys are supported.
+   * For filterable `string_values`, across all keys at most 200 values are
+   * allowed, with each string no more than 255 characters. For unfilterable
+   * `string_values`, the maximum total size of `string_values` across all keys
+   * is 50KB.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrThrow(java.lang.String key); + + /** + * + * + *
+   * Optional.
+   * The desired education degrees for the job, such as Bachelors, Masters.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + java.util.List getDegreeTypesList(); + /** + * + * + *
+   * Optional.
+   * The desired education degrees for the job, such as Bachelors, Masters.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + int getDegreeTypesCount(); + /** + * + * + *
+   * Optional.
+   * The desired education degrees for the job, such as Bachelors, Masters.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + com.google.cloud.talent.v4beta1.DegreeType getDegreeTypes(int index); + /** + * + * + *
+   * Optional.
+   * The desired education degrees for the job, such as Bachelors, Masters.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + java.util.List getDegreeTypesValueList(); + /** + * + * + *
+   * Optional.
+   * The desired education degrees for the job, such as Bachelors, Masters.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + int getDegreeTypesValue(int index); + + /** + * + * + *
+   * Optional.
+   * The department or functional area within the company with the open
+   * position.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string department = 12; + */ + java.lang.String getDepartment(); + /** + * + * + *
+   * Optional.
+   * The department or functional area within the company with the open
+   * position.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string department = 12; + */ + com.google.protobuf.ByteString getDepartmentBytes(); + + /** + * + * + *
+   * Optional.
+   * The employment type(s) of a job, for example,
+   * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+   * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + java.util.List getEmploymentTypesList(); + /** + * + * + *
+   * Optional.
+   * The employment type(s) of a job, for example,
+   * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+   * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + int getEmploymentTypesCount(); + /** + * + * + *
+   * Optional.
+   * The employment type(s) of a job, for example,
+   * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+   * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + com.google.cloud.talent.v4beta1.EmploymentType getEmploymentTypes(int index); + /** + * + * + *
+   * Optional.
+   * The employment type(s) of a job, for example,
+   * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+   * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + java.util.List getEmploymentTypesValueList(); + /** + * + * + *
+   * Optional.
+   * The employment type(s) of a job, for example,
+   * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+   * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + int getEmploymentTypesValue(int index); + + /** + * + * + *
+   * Optional.
+   * A description of bonus, commission, and other compensation
+   * incentives associated with the job not including salary or pay.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string incentives = 14; + */ + java.lang.String getIncentives(); + /** + * + * + *
+   * Optional.
+   * A description of bonus, commission, and other compensation
+   * incentives associated with the job not including salary or pay.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string incentives = 14; + */ + com.google.protobuf.ByteString getIncentivesBytes(); + + /** + * + * + *
+   * Optional.
+   * The language of the posting. This field is distinct from
+   * any requirements for fluency that are associated with the job.
+   * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+   * class="external" target="_blank" }.
+   * If this field is unspecified and
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] is present,
+   * detected language code based on
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] is assigned,
+   * otherwise defaults to 'en_US'.
+   * 
+ * + * string language_code = 15; + */ + java.lang.String getLanguageCode(); + /** + * + * + *
+   * Optional.
+   * The language of the posting. This field is distinct from
+   * any requirements for fluency that are associated with the job.
+   * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+   * class="external" target="_blank" }.
+   * If this field is unspecified and
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] is present,
+   * detected language code based on
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] is assigned,
+   * otherwise defaults to 'en_US'.
+   * 
+ * + * string language_code = 15; + */ + com.google.protobuf.ByteString getLanguageCodeBytes(); + + /** + * + * + *
+   * Optional.
+   * The experience level associated with the job, such as "Entry Level".
+   * 
+ * + * .google.cloud.talent.v4beta1.JobLevel job_level = 16; + */ + int getJobLevelValue(); + /** + * + * + *
+   * Optional.
+   * The experience level associated with the job, such as "Entry Level".
+   * 
+ * + * .google.cloud.talent.v4beta1.JobLevel job_level = 16; + */ + com.google.cloud.talent.v4beta1.JobLevel getJobLevel(); + + /** + * + * + *
+   * Optional.
+   * A promotion value of the job, as determined by the client.
+   * The value determines the sort order of the jobs returned when searching for
+   * jobs using the featured jobs search call, with higher promotional values
+   * being returned first and ties being resolved by relevance sort. Only the
+   * jobs with a promotionValue >0 are returned in a FEATURED_JOB_SEARCH.
+   * Default value is 0, and negative values are treated as 0.
+   * 
+ * + * int32 promotion_value = 17; + */ + int getPromotionValue(); + + /** + * + * + *
+   * Optional.
+   * A description of the qualifications required to perform the
+   * job. The use of this field is recommended
+   * as an alternative to using the more general
+   * [description][google.cloud.talent.v4beta1.Job.description] field.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string qualifications = 18; + */ + java.lang.String getQualifications(); + /** + * + * + *
+   * Optional.
+   * A description of the qualifications required to perform the
+   * job. The use of this field is recommended
+   * as an alternative to using the more general
+   * [description][google.cloud.talent.v4beta1.Job.description] field.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string qualifications = 18; + */ + com.google.protobuf.ByteString getQualificationsBytes(); + + /** + * + * + *
+   * Optional.
+   * A description of job responsibilities. The use of this field is
+   * recommended as an alternative to using the more general
+   * [description][google.cloud.talent.v4beta1.Job.description] field.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string responsibilities = 19; + */ + java.lang.String getResponsibilities(); + /** + * + * + *
+   * Optional.
+   * A description of job responsibilities. The use of this field is
+   * recommended as an alternative to using the more general
+   * [description][google.cloud.talent.v4beta1.Job.description] field.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string responsibilities = 19; + */ + com.google.protobuf.ByteString getResponsibilitiesBytes(); + + /** + * + * + *
+   * Optional.
+   * The job [PostingRegion][google.cloud.talent.v4beta1.PostingRegion] (for
+   * example, state, country) throughout which the job is available. If this
+   * field is set, a
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in a search
+   * query within the job region finds this job posting if an exact location
+   * match isn't specified. If this field is set to
+   * [PostingRegion.NATION][google.cloud.talent.v4beta1.PostingRegion.NATION] or
+   * [PostingRegion.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA],
+   * setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to
+   * the same location level as this field is strongly recommended.
+   * 
+ * + * .google.cloud.talent.v4beta1.PostingRegion posting_region = 20; + */ + int getPostingRegionValue(); + /** + * + * + *
+   * Optional.
+   * The job [PostingRegion][google.cloud.talent.v4beta1.PostingRegion] (for
+   * example, state, country) throughout which the job is available. If this
+   * field is set, a
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in a search
+   * query within the job region finds this job posting if an exact location
+   * match isn't specified. If this field is set to
+   * [PostingRegion.NATION][google.cloud.talent.v4beta1.PostingRegion.NATION] or
+   * [PostingRegion.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA],
+   * setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to
+   * the same location level as this field is strongly recommended.
+   * 
+ * + * .google.cloud.talent.v4beta1.PostingRegion posting_region = 20; + */ + com.google.cloud.talent.v4beta1.PostingRegion getPostingRegion(); + + /** + * + * + *
+   * Optional.
+   * The visibility of the job.
+   * Defaults to
+   * [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY]
+   * if not specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.Visibility visibility = 21; + */ + int getVisibilityValue(); + /** + * + * + *
+   * Optional.
+   * The visibility of the job.
+   * Defaults to
+   * [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY]
+   * if not specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.Visibility visibility = 21; + */ + com.google.cloud.talent.v4beta1.Visibility getVisibility(); + + /** + * + * + *
+   * Optional.
+   * The start timestamp of the job in UTC time zone. Typically this field
+   * is used for contracting engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + boolean hasJobStartTime(); + /** + * + * + *
+   * Optional.
+   * The start timestamp of the job in UTC time zone. Typically this field
+   * is used for contracting engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + com.google.protobuf.Timestamp getJobStartTime(); + /** + * + * + *
+   * Optional.
+   * The start timestamp of the job in UTC time zone. Typically this field
+   * is used for contracting engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + com.google.protobuf.TimestampOrBuilder getJobStartTimeOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The end timestamp of the job. Typically this field is used for contracting
+   * engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + boolean hasJobEndTime(); + /** + * + * + *
+   * Optional.
+   * The end timestamp of the job. Typically this field is used for contracting
+   * engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + com.google.protobuf.Timestamp getJobEndTime(); + /** + * + * + *
+   * Optional.
+   * The end timestamp of the job. Typically this field is used for contracting
+   * engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + com.google.protobuf.TimestampOrBuilder getJobEndTimeOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The timestamp this job posting was most recently published. The default
+   * value is the time the request arrives at the server. Invalid timestamps are
+   * ignored.
+   * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + boolean hasPostingPublishTime(); + /** + * + * + *
+   * Optional.
+   * The timestamp this job posting was most recently published. The default
+   * value is the time the request arrives at the server. Invalid timestamps are
+   * ignored.
+   * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + com.google.protobuf.Timestamp getPostingPublishTime(); + /** + * + * + *
+   * Optional.
+   * The timestamp this job posting was most recently published. The default
+   * value is the time the request arrives at the server. Invalid timestamps are
+   * ignored.
+   * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + com.google.protobuf.TimestampOrBuilder getPostingPublishTimeOrBuilder(); + + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * The expiration timestamp of the job. After this timestamp, the
+   * job is marked as expired, and it no longer appears in search results. The
+   * expired job can't be deleted or listed by the [DeleteJob][] and
+   * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+   * updated with the [UpdateJob][] API. An expired job can be updated and
+   * opened again by using a future expiration timestamp. Updating an expired
+   * job fails if there is another existing open job with same
+   * [company][google.cloud.talent.v4beta1.Job.name][],
+   * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+   * The expired jobs are retained in our system for 90 days. However, the
+   * overall expired job count cannot exceed 3 times the maximum of open jobs
+   * count over the past week, otherwise jobs with earlier expire time are
+   * cleaned first. Expired jobs are no longer accessible after they are cleaned
+   * out.
+   * Invalid timestamps are ignored, and treated as expire time not provided.
+   * Timestamp before the instant request is made is considered valid, the job
+   * will be treated as expired immediately.
+   * If this value isn't provided at the time of job creation or is invalid,
+   * the job posting expires after 30 days from the job's creation time. For
+   * example, if the job was created on 2017/01/01 13:00AM UTC with an
+   * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+   * If this value isn't provided on job update, it depends on the field masks
+   * set by
+   * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+   * If the field masks include [expiry_time][], or the masks are empty meaning
+   * that every field is updated, the job posting expires after 30 days from the
+   * job's last update time. Otherwise the expiration date isn't updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + boolean hasPostingExpireTime(); + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * The expiration timestamp of the job. After this timestamp, the
+   * job is marked as expired, and it no longer appears in search results. The
+   * expired job can't be deleted or listed by the [DeleteJob][] and
+   * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+   * updated with the [UpdateJob][] API. An expired job can be updated and
+   * opened again by using a future expiration timestamp. Updating an expired
+   * job fails if there is another existing open job with same
+   * [company][google.cloud.talent.v4beta1.Job.name][],
+   * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+   * The expired jobs are retained in our system for 90 days. However, the
+   * overall expired job count cannot exceed 3 times the maximum of open jobs
+   * count over the past week, otherwise jobs with earlier expire time are
+   * cleaned first. Expired jobs are no longer accessible after they are cleaned
+   * out.
+   * Invalid timestamps are ignored, and treated as expire time not provided.
+   * Timestamp before the instant request is made is considered valid, the job
+   * will be treated as expired immediately.
+   * If this value isn't provided at the time of job creation or is invalid,
+   * the job posting expires after 30 days from the job's creation time. For
+   * example, if the job was created on 2017/01/01 13:00AM UTC with an
+   * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+   * If this value isn't provided on job update, it depends on the field masks
+   * set by
+   * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+   * If the field masks include [expiry_time][], or the masks are empty meaning
+   * that every field is updated, the job posting expires after 30 days from the
+   * job's last update time. Otherwise the expiration date isn't updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + com.google.protobuf.Timestamp getPostingExpireTime(); + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * The expiration timestamp of the job. After this timestamp, the
+   * job is marked as expired, and it no longer appears in search results. The
+   * expired job can't be deleted or listed by the [DeleteJob][] and
+   * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+   * updated with the [UpdateJob][] API. An expired job can be updated and
+   * opened again by using a future expiration timestamp. Updating an expired
+   * job fails if there is another existing open job with same
+   * [company][google.cloud.talent.v4beta1.Job.name][],
+   * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+   * The expired jobs are retained in our system for 90 days. However, the
+   * overall expired job count cannot exceed 3 times the maximum of open jobs
+   * count over the past week, otherwise jobs with earlier expire time are
+   * cleaned first. Expired jobs are no longer accessible after they are cleaned
+   * out.
+   * Invalid timestamps are ignored, and treated as expire time not provided.
+   * Timestamp before the instant request is made is considered valid, the job
+   * will be treated as expired immediately.
+   * If this value isn't provided at the time of job creation or is invalid,
+   * the job posting expires after 30 days from the job's creation time. For
+   * example, if the job was created on 2017/01/01 13:00AM UTC with an
+   * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+   * If this value isn't provided on job update, it depends on the field masks
+   * set by
+   * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+   * If the field masks include [expiry_time][], or the masks are empty meaning
+   * that every field is updated, the job posting expires after 30 days from the
+   * job's last update time. Otherwise the expiration date isn't updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + com.google.protobuf.TimestampOrBuilder getPostingExpireTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The timestamp when this job posting was created.
+   * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + boolean hasPostingCreateTime(); + /** + * + * + *
+   * Output only. The timestamp when this job posting was created.
+   * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + com.google.protobuf.Timestamp getPostingCreateTime(); + /** + * + * + *
+   * Output only. The timestamp when this job posting was created.
+   * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + com.google.protobuf.TimestampOrBuilder getPostingCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The timestamp when this job posting was last updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + boolean hasPostingUpdateTime(); + /** + * + * + *
+   * Output only. The timestamp when this job posting was last updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + com.google.protobuf.Timestamp getPostingUpdateTime(); + /** + * + * + *
+   * Output only. The timestamp when this job posting was last updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + com.google.protobuf.TimestampOrBuilder getPostingUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Display name of the company listing the job.
+   * 
+ * + * string company_display_name = 28; + */ + java.lang.String getCompanyDisplayName(); + /** + * + * + *
+   * Output only. Display name of the company listing the job.
+   * 
+ * + * string company_display_name = 28; + */ + com.google.protobuf.ByteString getCompanyDisplayNameBytes(); + + /** + * + * + *
+   * Output only. Derived details about the job posting.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + boolean hasDerivedInfo(); + /** + * + * + *
+   * Output only. Derived details about the job posting.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + com.google.cloud.talent.v4beta1.Job.DerivedInfo getDerivedInfo(); + /** + * + * + *
+   * Output only. Derived details about the job posting.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + com.google.cloud.talent.v4beta1.Job.DerivedInfoOrBuilder getDerivedInfoOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Options for job processing.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + boolean hasProcessingOptions(); + /** + * + * + *
+   * Optional.
+   * Options for job processing.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + com.google.cloud.talent.v4beta1.Job.ProcessingOptions getProcessingOptions(); + /** + * + * + *
+   * Optional.
+   * Options for job processing.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + com.google.cloud.talent.v4beta1.Job.ProcessingOptionsOrBuilder getProcessingOptionsOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQuery.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQuery.java new file mode 100644 index 000000000000..bbe1abacaa37 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQuery.java @@ -0,0 +1,4880 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * The query required to perform a search query.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.JobQuery} + */ +public final class JobQuery extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.JobQuery) + JobQueryOrBuilder { + private static final long serialVersionUID = 0L; + // Use JobQuery.newBuilder() to construct. + private JobQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private JobQuery() { + query_ = ""; + companyNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + locationFilters_ = java.util.Collections.emptyList(); + jobCategories_ = java.util.Collections.emptyList(); + companyDisplayNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + customAttributeFilter_ = ""; + disableSpellCheck_ = false; + employmentTypes_ = java.util.Collections.emptyList(); + languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + excludedJobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private JobQuery( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + query_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + companyNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + companyNames_.add(s); + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + locationFilters_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + locationFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.LocationFilter.parser(), extensionRegistry)); + break; + } + case 32: + { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + jobCategories_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + jobCategories_.add(rawValue); + break; + } + case 34: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + jobCategories_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + jobCategories_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 42: + { + com.google.cloud.talent.v4beta1.CommuteFilter.Builder subBuilder = null; + if (commuteFilter_ != null) { + subBuilder = commuteFilter_.toBuilder(); + } + commuteFilter_ = + input.readMessage( + com.google.cloud.talent.v4beta1.CommuteFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(commuteFilter_); + commuteFilter_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + companyDisplayNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000020; + } + companyDisplayNames_.add(s); + break; + } + case 58: + { + com.google.cloud.talent.v4beta1.CompensationFilter.Builder subBuilder = null; + if (compensationFilter_ != null) { + subBuilder = compensationFilter_.toBuilder(); + } + compensationFilter_ = + input.readMessage( + com.google.cloud.talent.v4beta1.CompensationFilter.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compensationFilter_); + compensationFilter_ = subBuilder.buildPartial(); + } + + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + customAttributeFilter_ = s; + break; + } + case 72: + { + disableSpellCheck_ = input.readBool(); + break; + } + case 80: + { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + employmentTypes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000200; + } + employmentTypes_.add(rawValue); + break; + } + case 82: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + employmentTypes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000200; + } + employmentTypes_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + languageCodes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000400; + } + languageCodes_.add(s); + break; + } + case 98: + { + com.google.cloud.talent.v4beta1.TimestampRange.Builder subBuilder = null; + if (publishTimeRange_ != null) { + subBuilder = publishTimeRange_.toBuilder(); + } + publishTimeRange_ = + input.readMessage( + com.google.cloud.talent.v4beta1.TimestampRange.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(publishTimeRange_); + publishTimeRange_ = subBuilder.buildPartial(); + } + + break; + } + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + excludedJobs_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00001000; + } + excludedJobs_.add(s); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + companyNames_ = companyNames_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + locationFilters_ = java.util.Collections.unmodifiableList(locationFilters_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + jobCategories_ = java.util.Collections.unmodifiableList(jobCategories_); + } + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + companyDisplayNames_ = companyDisplayNames_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + employmentTypes_ = java.util.Collections.unmodifiableList(employmentTypes_); + } + if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + languageCodes_ = languageCodes_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + excludedJobs_ = excludedJobs_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_JobQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_JobQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.JobQuery.class, + com.google.cloud.talent.v4beta1.JobQuery.Builder.class); + } + + private int bitField0_; + public static final int QUERY_FIELD_NUMBER = 1; + private volatile java.lang.Object query_; + /** + * + * + *
+   * Optional.
+   * The query string that matches against the job title, description, and
+   * location fields.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string query = 1; + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The query string that matches against the job title, description, and
+   * location fields.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string query = 1; + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPANY_NAMES_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList companyNames_; + /** + * + * + *
+   * Optional.
+   * This filter specifies the company entities to search against.
+   * If a value isn't specified, jobs are searched for against all
+   * companies.
+   * If multiple values are specified, jobs are searched against the
+   * companies specified.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * At most 20 company filters are allowed.
+   * 
+ * + * repeated string company_names = 2; + */ + public com.google.protobuf.ProtocolStringList getCompanyNamesList() { + return companyNames_; + } + /** + * + * + *
+   * Optional.
+   * This filter specifies the company entities to search against.
+   * If a value isn't specified, jobs are searched for against all
+   * companies.
+   * If multiple values are specified, jobs are searched against the
+   * companies specified.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * At most 20 company filters are allowed.
+   * 
+ * + * repeated string company_names = 2; + */ + public int getCompanyNamesCount() { + return companyNames_.size(); + } + /** + * + * + *
+   * Optional.
+   * This filter specifies the company entities to search against.
+   * If a value isn't specified, jobs are searched for against all
+   * companies.
+   * If multiple values are specified, jobs are searched against the
+   * companies specified.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * At most 20 company filters are allowed.
+   * 
+ * + * repeated string company_names = 2; + */ + public java.lang.String getCompanyNames(int index) { + return companyNames_.get(index); + } + /** + * + * + *
+   * Optional.
+   * This filter specifies the company entities to search against.
+   * If a value isn't specified, jobs are searched for against all
+   * companies.
+   * If multiple values are specified, jobs are searched against the
+   * companies specified.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * At most 20 company filters are allowed.
+   * 
+ * + * repeated string company_names = 2; + */ + public com.google.protobuf.ByteString getCompanyNamesBytes(int index) { + return companyNames_.getByteString(index); + } + + public static final int LOCATION_FILTERS_FIELD_NUMBER = 3; + private java.util.List locationFilters_; + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the jobs to
+   * search against. See
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+   * information.
+   * If a location value isn't specified, jobs fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If multiple values are specified, jobs are retrieved from any of the
+   * specified locations. If different values are specified for the
+   * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+   * parameter, the maximum provided distance is used for all locations.
+   * At most 5 location filters are allowed.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public java.util.List getLocationFiltersList() { + return locationFilters_; + } + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the jobs to
+   * search against. See
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+   * information.
+   * If a location value isn't specified, jobs fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If multiple values are specified, jobs are retrieved from any of the
+   * specified locations. If different values are specified for the
+   * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+   * parameter, the maximum provided distance is used for all locations.
+   * At most 5 location filters are allowed.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public java.util.List + getLocationFiltersOrBuilderList() { + return locationFilters_; + } + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the jobs to
+   * search against. See
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+   * information.
+   * If a location value isn't specified, jobs fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If multiple values are specified, jobs are retrieved from any of the
+   * specified locations. If different values are specified for the
+   * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+   * parameter, the maximum provided distance is used for all locations.
+   * At most 5 location filters are allowed.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public int getLocationFiltersCount() { + return locationFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the jobs to
+   * search against. See
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+   * information.
+   * If a location value isn't specified, jobs fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If multiple values are specified, jobs are retrieved from any of the
+   * specified locations. If different values are specified for the
+   * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+   * parameter, the maximum provided distance is used for all locations.
+   * At most 5 location filters are allowed.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public com.google.cloud.talent.v4beta1.LocationFilter getLocationFilters(int index) { + return locationFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the jobs to
+   * search against. See
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+   * information.
+   * If a location value isn't specified, jobs fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If multiple values are specified, jobs are retrieved from any of the
+   * specified locations. If different values are specified for the
+   * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+   * parameter, the maximum provided distance is used for all locations.
+   * At most 5 location filters are allowed.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public com.google.cloud.talent.v4beta1.LocationFilterOrBuilder getLocationFiltersOrBuilder( + int index) { + return locationFilters_.get(index); + } + + public static final int JOB_CATEGORIES_FIELD_NUMBER = 4; + private java.util.List jobCategories_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobCategory> + jobCategories_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobCategory>() { + public com.google.cloud.talent.v4beta1.JobCategory convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobCategory result = + com.google.cloud.talent.v4beta1.JobCategory.valueOf(from); + return result == null + ? com.google.cloud.talent.v4beta1.JobCategory.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Optional.
+   * The category filter specifies the categories of jobs to search against.
+   * See [Category][] for more information.
+   * If a value isn't specified, jobs from any category are searched against.
+   * If multiple values are specified, jobs from any of the specified
+   * categories are searched against.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public java.util.List getJobCategoriesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobCategory>( + jobCategories_, jobCategories_converter_); + } + /** + * + * + *
+   * Optional.
+   * The category filter specifies the categories of jobs to search against.
+   * See [Category][] for more information.
+   * If a value isn't specified, jobs from any category are searched against.
+   * If multiple values are specified, jobs from any of the specified
+   * categories are searched against.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public int getJobCategoriesCount() { + return jobCategories_.size(); + } + /** + * + * + *
+   * Optional.
+   * The category filter specifies the categories of jobs to search against.
+   * See [Category][] for more information.
+   * If a value isn't specified, jobs from any category are searched against.
+   * If multiple values are specified, jobs from any of the specified
+   * categories are searched against.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public com.google.cloud.talent.v4beta1.JobCategory getJobCategories(int index) { + return jobCategories_converter_.convert(jobCategories_.get(index)); + } + /** + * + * + *
+   * Optional.
+   * The category filter specifies the categories of jobs to search against.
+   * See [Category][] for more information.
+   * If a value isn't specified, jobs from any category are searched against.
+   * If multiple values are specified, jobs from any of the specified
+   * categories are searched against.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public java.util.List getJobCategoriesValueList() { + return jobCategories_; + } + /** + * + * + *
+   * Optional.
+   * The category filter specifies the categories of jobs to search against.
+   * See [Category][] for more information.
+   * If a value isn't specified, jobs from any category are searched against.
+   * If multiple values are specified, jobs from any of the specified
+   * categories are searched against.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public int getJobCategoriesValue(int index) { + return jobCategories_.get(index); + } + + private int jobCategoriesMemoizedSerializedSize; + + public static final int COMMUTE_FILTER_FIELD_NUMBER = 5; + private com.google.cloud.talent.v4beta1.CommuteFilter commuteFilter_; + /** + * + * + *
+   * Optional.
+   *  Allows filtering jobs by commute time with different travel methods (for
+   *  example, driving or public transit). Note: This only works with [COMMUTE
+   *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+   *  ignored.
+   *  Currently we don't support sorting by commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + public boolean hasCommuteFilter() { + return commuteFilter_ != null; + } + /** + * + * + *
+   * Optional.
+   *  Allows filtering jobs by commute time with different travel methods (for
+   *  example, driving or public transit). Note: This only works with [COMMUTE
+   *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+   *  ignored.
+   *  Currently we don't support sorting by commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + public com.google.cloud.talent.v4beta1.CommuteFilter getCommuteFilter() { + return commuteFilter_ == null + ? com.google.cloud.talent.v4beta1.CommuteFilter.getDefaultInstance() + : commuteFilter_; + } + /** + * + * + *
+   * Optional.
+   *  Allows filtering jobs by commute time with different travel methods (for
+   *  example, driving or public transit). Note: This only works with [COMMUTE
+   *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+   *  ignored.
+   *  Currently we don't support sorting by commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + public com.google.cloud.talent.v4beta1.CommuteFilterOrBuilder getCommuteFilterOrBuilder() { + return getCommuteFilter(); + } + + public static final int COMPANY_DISPLAY_NAMES_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList companyDisplayNames_; + /** + * + * + *
+   * Optional.
+   * This filter specifies the exact [company display
+   * name][Company.display_name] of the jobs to search against.
+   * If a value isn't specified, jobs within the search results are
+   * associated with any company.
+   * If multiple values are specified, jobs within the search results may be
+   * associated with any of the specified companies.
+   * At most 20 company display name filters are allowed.
+   * 
+ * + * repeated string company_display_names = 6; + */ + public com.google.protobuf.ProtocolStringList getCompanyDisplayNamesList() { + return companyDisplayNames_; + } + /** + * + * + *
+   * Optional.
+   * This filter specifies the exact [company display
+   * name][Company.display_name] of the jobs to search against.
+   * If a value isn't specified, jobs within the search results are
+   * associated with any company.
+   * If multiple values are specified, jobs within the search results may be
+   * associated with any of the specified companies.
+   * At most 20 company display name filters are allowed.
+   * 
+ * + * repeated string company_display_names = 6; + */ + public int getCompanyDisplayNamesCount() { + return companyDisplayNames_.size(); + } + /** + * + * + *
+   * Optional.
+   * This filter specifies the exact [company display
+   * name][Company.display_name] of the jobs to search against.
+   * If a value isn't specified, jobs within the search results are
+   * associated with any company.
+   * If multiple values are specified, jobs within the search results may be
+   * associated with any of the specified companies.
+   * At most 20 company display name filters are allowed.
+   * 
+ * + * repeated string company_display_names = 6; + */ + public java.lang.String getCompanyDisplayNames(int index) { + return companyDisplayNames_.get(index); + } + /** + * + * + *
+   * Optional.
+   * This filter specifies the exact [company display
+   * name][Company.display_name] of the jobs to search against.
+   * If a value isn't specified, jobs within the search results are
+   * associated with any company.
+   * If multiple values are specified, jobs within the search results may be
+   * associated with any of the specified companies.
+   * At most 20 company display name filters are allowed.
+   * 
+ * + * repeated string company_display_names = 6; + */ + public com.google.protobuf.ByteString getCompanyDisplayNamesBytes(int index) { + return companyDisplayNames_.getByteString(index); + } + + public static final int COMPENSATION_FILTER_FIELD_NUMBER = 7; + private com.google.cloud.talent.v4beta1.CompensationFilter compensationFilter_; + /** + * + * + *
+   * Optional.
+   * This search filter is applied only to
+   * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+   * For example, if the filter is specified as "Hourly job with per-hour
+   * compensation > $15", only jobs meeting these criteria are searched. If a
+   * filter isn't defined, all open jobs are searched.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + public boolean hasCompensationFilter() { + return compensationFilter_ != null; + } + /** + * + * + *
+   * Optional.
+   * This search filter is applied only to
+   * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+   * For example, if the filter is specified as "Hourly job with per-hour
+   * compensation > $15", only jobs meeting these criteria are searched. If a
+   * filter isn't defined, all open jobs are searched.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + public com.google.cloud.talent.v4beta1.CompensationFilter getCompensationFilter() { + return compensationFilter_ == null + ? com.google.cloud.talent.v4beta1.CompensationFilter.getDefaultInstance() + : compensationFilter_; + } + /** + * + * + *
+   * Optional.
+   * This search filter is applied only to
+   * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+   * For example, if the filter is specified as "Hourly job with per-hour
+   * compensation > $15", only jobs meeting these criteria are searched. If a
+   * filter isn't defined, all open jobs are searched.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + public com.google.cloud.talent.v4beta1.CompensationFilterOrBuilder + getCompensationFilterOrBuilder() { + return getCompensationFilter(); + } + + public static final int CUSTOM_ATTRIBUTE_FILTER_FIELD_NUMBER = 8; + private volatile java.lang.Object customAttributeFilter_; + /** + * + * + *
+   * Optional.
+   * This filter specifies a structured syntax to match against the
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+   * marked as `filterable`.
+   * The syntax for this expression is a subset of SQL syntax.
+   * Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the
+   * left of the operator is a custom field key and the right of the operator
+   * is a number or a quoted string. You must escape backslash (\\) and
+   * quote (\") characters.
+   * Supported functions are `LOWER([field_name])` to
+   * perform a case insensitive match and `EMPTY([field_name])` to filter on the
+   * existence of a key.
+   * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+   * nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100
+   * comparisons or functions are allowed in the expression. The expression
+   * must be < 3000 bytes in length.
+   * Sample Query:
+   * `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
+   * driving_years > 10`
+   * 
+ * + * string custom_attribute_filter = 8; + */ + public java.lang.String getCustomAttributeFilter() { + java.lang.Object ref = customAttributeFilter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customAttributeFilter_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * This filter specifies a structured syntax to match against the
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+   * marked as `filterable`.
+   * The syntax for this expression is a subset of SQL syntax.
+   * Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the
+   * left of the operator is a custom field key and the right of the operator
+   * is a number or a quoted string. You must escape backslash (\\) and
+   * quote (\") characters.
+   * Supported functions are `LOWER([field_name])` to
+   * perform a case insensitive match and `EMPTY([field_name])` to filter on the
+   * existence of a key.
+   * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+   * nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100
+   * comparisons or functions are allowed in the expression. The expression
+   * must be < 3000 bytes in length.
+   * Sample Query:
+   * `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
+   * driving_years > 10`
+   * 
+ * + * string custom_attribute_filter = 8; + */ + public com.google.protobuf.ByteString getCustomAttributeFilterBytes() { + java.lang.Object ref = customAttributeFilter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customAttributeFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISABLE_SPELL_CHECK_FIELD_NUMBER = 9; + private boolean disableSpellCheck_; + /** + * + * + *
+   * Optional.
+   * This flag controls the spell-check feature. If false, the
+   * service attempts to correct a misspelled query,
+   * for example, "enginee" is corrected to "engineer".
+   * Defaults to false: a spell check is performed.
+   * 
+ * + * bool disable_spell_check = 9; + */ + public boolean getDisableSpellCheck() { + return disableSpellCheck_; + } + + public static final int EMPLOYMENT_TYPES_FIELD_NUMBER = 10; + private java.util.List employmentTypes_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.EmploymentType> + employmentTypes_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.EmploymentType>() { + public com.google.cloud.talent.v4beta1.EmploymentType convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.EmploymentType result = + com.google.cloud.talent.v4beta1.EmploymentType.valueOf(from); + return result == null + ? com.google.cloud.talent.v4beta1.EmploymentType.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Optional.
+   * The employment type filter specifies the employment type of jobs to
+   * search against, such as
+   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+   * If a value isn't specified, jobs in the search results includes any
+   * employment type.
+   * If multiple values are specified, jobs in the search results include
+   * any of the specified employment types.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public java.util.List getEmploymentTypesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.EmploymentType>( + employmentTypes_, employmentTypes_converter_); + } + /** + * + * + *
+   * Optional.
+   * The employment type filter specifies the employment type of jobs to
+   * search against, such as
+   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+   * If a value isn't specified, jobs in the search results includes any
+   * employment type.
+   * If multiple values are specified, jobs in the search results include
+   * any of the specified employment types.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public int getEmploymentTypesCount() { + return employmentTypes_.size(); + } + /** + * + * + *
+   * Optional.
+   * The employment type filter specifies the employment type of jobs to
+   * search against, such as
+   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+   * If a value isn't specified, jobs in the search results includes any
+   * employment type.
+   * If multiple values are specified, jobs in the search results include
+   * any of the specified employment types.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public com.google.cloud.talent.v4beta1.EmploymentType getEmploymentTypes(int index) { + return employmentTypes_converter_.convert(employmentTypes_.get(index)); + } + /** + * + * + *
+   * Optional.
+   * The employment type filter specifies the employment type of jobs to
+   * search against, such as
+   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+   * If a value isn't specified, jobs in the search results includes any
+   * employment type.
+   * If multiple values are specified, jobs in the search results include
+   * any of the specified employment types.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public java.util.List getEmploymentTypesValueList() { + return employmentTypes_; + } + /** + * + * + *
+   * Optional.
+   * The employment type filter specifies the employment type of jobs to
+   * search against, such as
+   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+   * If a value isn't specified, jobs in the search results includes any
+   * employment type.
+   * If multiple values are specified, jobs in the search results include
+   * any of the specified employment types.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public int getEmploymentTypesValue(int index) { + return employmentTypes_.get(index); + } + + private int employmentTypesMemoizedSerializedSize; + + public static final int LANGUAGE_CODES_FIELD_NUMBER = 11; + private com.google.protobuf.LazyStringList languageCodes_; + /** + * + * + *
+   * Optional.
+   * This filter specifies the locale of jobs to search against,
+   * for example, "en-US".
+   * If a value isn't specified, the search results can contain jobs in any
+   * locale.
+   * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * At most 10 language code filters are allowed.
+   * 
+ * + * repeated string language_codes = 11; + */ + public com.google.protobuf.ProtocolStringList getLanguageCodesList() { + return languageCodes_; + } + /** + * + * + *
+   * Optional.
+   * This filter specifies the locale of jobs to search against,
+   * for example, "en-US".
+   * If a value isn't specified, the search results can contain jobs in any
+   * locale.
+   * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * At most 10 language code filters are allowed.
+   * 
+ * + * repeated string language_codes = 11; + */ + public int getLanguageCodesCount() { + return languageCodes_.size(); + } + /** + * + * + *
+   * Optional.
+   * This filter specifies the locale of jobs to search against,
+   * for example, "en-US".
+   * If a value isn't specified, the search results can contain jobs in any
+   * locale.
+   * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * At most 10 language code filters are allowed.
+   * 
+ * + * repeated string language_codes = 11; + */ + public java.lang.String getLanguageCodes(int index) { + return languageCodes_.get(index); + } + /** + * + * + *
+   * Optional.
+   * This filter specifies the locale of jobs to search against,
+   * for example, "en-US".
+   * If a value isn't specified, the search results can contain jobs in any
+   * locale.
+   * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * At most 10 language code filters are allowed.
+   * 
+ * + * repeated string language_codes = 11; + */ + public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { + return languageCodes_.getByteString(index); + } + + public static final int PUBLISH_TIME_RANGE_FIELD_NUMBER = 12; + private com.google.cloud.talent.v4beta1.TimestampRange publishTimeRange_; + /** + * + * + *
+   * Optional.
+   * Jobs published within a range specified by this filter are searched
+   * against.
+   * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + public boolean hasPublishTimeRange() { + return publishTimeRange_ != null; + } + /** + * + * + *
+   * Optional.
+   * Jobs published within a range specified by this filter are searched
+   * against.
+   * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + public com.google.cloud.talent.v4beta1.TimestampRange getPublishTimeRange() { + return publishTimeRange_ == null + ? com.google.cloud.talent.v4beta1.TimestampRange.getDefaultInstance() + : publishTimeRange_; + } + /** + * + * + *
+   * Optional.
+   * Jobs published within a range specified by this filter are searched
+   * against.
+   * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + public com.google.cloud.talent.v4beta1.TimestampRangeOrBuilder getPublishTimeRangeOrBuilder() { + return getPublishTimeRange(); + } + + public static final int EXCLUDED_JOBS_FIELD_NUMBER = 13; + private com.google.protobuf.LazyStringList excludedJobs_; + /** + * + * + *
+   * Optional.
+   * This filter specifies a list of job names to be excluded during search.
+   * At most 200 excluded job names are allowed.
+   * 
+ * + * repeated string excluded_jobs = 13; + */ + public com.google.protobuf.ProtocolStringList getExcludedJobsList() { + return excludedJobs_; + } + /** + * + * + *
+   * Optional.
+   * This filter specifies a list of job names to be excluded during search.
+   * At most 200 excluded job names are allowed.
+   * 
+ * + * repeated string excluded_jobs = 13; + */ + public int getExcludedJobsCount() { + return excludedJobs_.size(); + } + /** + * + * + *
+   * Optional.
+   * This filter specifies a list of job names to be excluded during search.
+   * At most 200 excluded job names are allowed.
+   * 
+ * + * repeated string excluded_jobs = 13; + */ + public java.lang.String getExcludedJobs(int index) { + return excludedJobs_.get(index); + } + /** + * + * + *
+   * Optional.
+   * This filter specifies a list of job names to be excluded during search.
+   * At most 200 excluded job names are allowed.
+   * 
+ * + * repeated string excluded_jobs = 13; + */ + public com.google.protobuf.ByteString getExcludedJobsBytes(int index) { + return excludedJobs_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (!getQueryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); + } + for (int i = 0; i < companyNames_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, companyNames_.getRaw(i)); + } + for (int i = 0; i < locationFilters_.size(); i++) { + output.writeMessage(3, locationFilters_.get(i)); + } + if (getJobCategoriesList().size() > 0) { + output.writeUInt32NoTag(34); + output.writeUInt32NoTag(jobCategoriesMemoizedSerializedSize); + } + for (int i = 0; i < jobCategories_.size(); i++) { + output.writeEnumNoTag(jobCategories_.get(i)); + } + if (commuteFilter_ != null) { + output.writeMessage(5, getCommuteFilter()); + } + for (int i = 0; i < companyDisplayNames_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, companyDisplayNames_.getRaw(i)); + } + if (compensationFilter_ != null) { + output.writeMessage(7, getCompensationFilter()); + } + if (!getCustomAttributeFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, customAttributeFilter_); + } + if (disableSpellCheck_ != false) { + output.writeBool(9, disableSpellCheck_); + } + if (getEmploymentTypesList().size() > 0) { + output.writeUInt32NoTag(82); + output.writeUInt32NoTag(employmentTypesMemoizedSerializedSize); + } + for (int i = 0; i < employmentTypes_.size(); i++) { + output.writeEnumNoTag(employmentTypes_.get(i)); + } + for (int i = 0; i < languageCodes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, languageCodes_.getRaw(i)); + } + if (publishTimeRange_ != null) { + output.writeMessage(12, getPublishTimeRange()); + } + for (int i = 0; i < excludedJobs_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, excludedJobs_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getQueryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); + } + { + int dataSize = 0; + for (int i = 0; i < companyNames_.size(); i++) { + dataSize += computeStringSizeNoTag(companyNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getCompanyNamesList().size(); + } + for (int i = 0; i < locationFilters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, locationFilters_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < jobCategories_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(jobCategories_.get(i)); + } + size += dataSize; + if (!getJobCategoriesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + jobCategoriesMemoizedSerializedSize = dataSize; + } + if (commuteFilter_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCommuteFilter()); + } + { + int dataSize = 0; + for (int i = 0; i < companyDisplayNames_.size(); i++) { + dataSize += computeStringSizeNoTag(companyDisplayNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getCompanyDisplayNamesList().size(); + } + if (compensationFilter_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCompensationFilter()); + } + if (!getCustomAttributeFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, customAttributeFilter_); + } + if (disableSpellCheck_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, disableSpellCheck_); + } + { + int dataSize = 0; + for (int i = 0; i < employmentTypes_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(employmentTypes_.get(i)); + } + size += dataSize; + if (!getEmploymentTypesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + employmentTypesMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < languageCodes_.size(); i++) { + dataSize += computeStringSizeNoTag(languageCodes_.getRaw(i)); + } + size += dataSize; + size += 1 * getLanguageCodesList().size(); + } + if (publishTimeRange_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getPublishTimeRange()); + } + { + int dataSize = 0; + for (int i = 0; i < excludedJobs_.size(); i++) { + dataSize += computeStringSizeNoTag(excludedJobs_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludedJobsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.JobQuery)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.JobQuery other = (com.google.cloud.talent.v4beta1.JobQuery) obj; + + boolean result = true; + result = result && getQuery().equals(other.getQuery()); + result = result && getCompanyNamesList().equals(other.getCompanyNamesList()); + result = result && getLocationFiltersList().equals(other.getLocationFiltersList()); + result = result && jobCategories_.equals(other.jobCategories_); + result = result && (hasCommuteFilter() == other.hasCommuteFilter()); + if (hasCommuteFilter()) { + result = result && getCommuteFilter().equals(other.getCommuteFilter()); + } + result = result && getCompanyDisplayNamesList().equals(other.getCompanyDisplayNamesList()); + result = result && (hasCompensationFilter() == other.hasCompensationFilter()); + if (hasCompensationFilter()) { + result = result && getCompensationFilter().equals(other.getCompensationFilter()); + } + result = result && getCustomAttributeFilter().equals(other.getCustomAttributeFilter()); + result = result && (getDisableSpellCheck() == other.getDisableSpellCheck()); + result = result && employmentTypes_.equals(other.employmentTypes_); + result = result && getLanguageCodesList().equals(other.getLanguageCodesList()); + result = result && (hasPublishTimeRange() == other.hasPublishTimeRange()); + if (hasPublishTimeRange()) { + result = result && getPublishTimeRange().equals(other.getPublishTimeRange()); + } + result = result && getExcludedJobsList().equals(other.getExcludedJobsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + if (getCompanyNamesCount() > 0) { + hash = (37 * hash) + COMPANY_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getCompanyNamesList().hashCode(); + } + if (getLocationFiltersCount() > 0) { + hash = (37 * hash) + LOCATION_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getLocationFiltersList().hashCode(); + } + if (getJobCategoriesCount() > 0) { + hash = (37 * hash) + JOB_CATEGORIES_FIELD_NUMBER; + hash = (53 * hash) + jobCategories_.hashCode(); + } + if (hasCommuteFilter()) { + hash = (37 * hash) + COMMUTE_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getCommuteFilter().hashCode(); + } + if (getCompanyDisplayNamesCount() > 0) { + hash = (37 * hash) + COMPANY_DISPLAY_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getCompanyDisplayNamesList().hashCode(); + } + if (hasCompensationFilter()) { + hash = (37 * hash) + COMPENSATION_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getCompensationFilter().hashCode(); + } + hash = (37 * hash) + CUSTOM_ATTRIBUTE_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getCustomAttributeFilter().hashCode(); + hash = (37 * hash) + DISABLE_SPELL_CHECK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableSpellCheck()); + if (getEmploymentTypesCount() > 0) { + hash = (37 * hash) + EMPLOYMENT_TYPES_FIELD_NUMBER; + hash = (53 * hash) + employmentTypes_.hashCode(); + } + if (getLanguageCodesCount() > 0) { + hash = (37 * hash) + LANGUAGE_CODES_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCodesList().hashCode(); + } + if (hasPublishTimeRange()) { + hash = (37 * hash) + PUBLISH_TIME_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getPublishTimeRange().hashCode(); + } + if (getExcludedJobsCount() > 0) { + hash = (37 * hash) + EXCLUDED_JOBS_FIELD_NUMBER; + hash = (53 * hash) + getExcludedJobsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.JobQuery parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobQuery parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobQuery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobQuery parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobQuery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobQuery parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobQuery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobQuery parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobQuery parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobQuery parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobQuery parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobQuery parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.JobQuery prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * The query required to perform a search query.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.JobQuery} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.JobQuery) + com.google.cloud.talent.v4beta1.JobQueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_JobQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_JobQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.JobQuery.class, + com.google.cloud.talent.v4beta1.JobQuery.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.JobQuery.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLocationFiltersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + query_ = ""; + + companyNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + if (locationFiltersBuilder_ == null) { + locationFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + locationFiltersBuilder_.clear(); + } + jobCategories_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + if (commuteFilterBuilder_ == null) { + commuteFilter_ = null; + } else { + commuteFilter_ = null; + commuteFilterBuilder_ = null; + } + companyDisplayNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + if (compensationFilterBuilder_ == null) { + compensationFilter_ = null; + } else { + compensationFilter_ = null; + compensationFilterBuilder_ = null; + } + customAttributeFilter_ = ""; + + disableSpellCheck_ = false; + + employmentTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000400); + if (publishTimeRangeBuilder_ == null) { + publishTimeRange_ = null; + } else { + publishTimeRange_ = null; + publishTimeRangeBuilder_ = null; + } + excludedJobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00001000); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_JobQuery_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobQuery getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.JobQuery.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobQuery build() { + com.google.cloud.talent.v4beta1.JobQuery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobQuery buildPartial() { + com.google.cloud.talent.v4beta1.JobQuery result = + new com.google.cloud.talent.v4beta1.JobQuery(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.query_ = query_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + companyNames_ = companyNames_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.companyNames_ = companyNames_; + if (locationFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + locationFilters_ = java.util.Collections.unmodifiableList(locationFilters_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.locationFilters_ = locationFilters_; + } else { + result.locationFilters_ = locationFiltersBuilder_.build(); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + jobCategories_ = java.util.Collections.unmodifiableList(jobCategories_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.jobCategories_ = jobCategories_; + if (commuteFilterBuilder_ == null) { + result.commuteFilter_ = commuteFilter_; + } else { + result.commuteFilter_ = commuteFilterBuilder_.build(); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + companyDisplayNames_ = companyDisplayNames_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.companyDisplayNames_ = companyDisplayNames_; + if (compensationFilterBuilder_ == null) { + result.compensationFilter_ = compensationFilter_; + } else { + result.compensationFilter_ = compensationFilterBuilder_.build(); + } + result.customAttributeFilter_ = customAttributeFilter_; + result.disableSpellCheck_ = disableSpellCheck_; + if (((bitField0_ & 0x00000200) == 0x00000200)) { + employmentTypes_ = java.util.Collections.unmodifiableList(employmentTypes_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.employmentTypes_ = employmentTypes_; + if (((bitField0_ & 0x00000400) == 0x00000400)) { + languageCodes_ = languageCodes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.languageCodes_ = languageCodes_; + if (publishTimeRangeBuilder_ == null) { + result.publishTimeRange_ = publishTimeRange_; + } else { + result.publishTimeRange_ = publishTimeRangeBuilder_.build(); + } + if (((bitField0_ & 0x00001000) == 0x00001000)) { + excludedJobs_ = excludedJobs_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.excludedJobs_ = excludedJobs_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.JobQuery) { + return mergeFrom((com.google.cloud.talent.v4beta1.JobQuery) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.JobQuery other) { + if (other == com.google.cloud.talent.v4beta1.JobQuery.getDefaultInstance()) return this; + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + onChanged(); + } + if (!other.companyNames_.isEmpty()) { + if (companyNames_.isEmpty()) { + companyNames_ = other.companyNames_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureCompanyNamesIsMutable(); + companyNames_.addAll(other.companyNames_); + } + onChanged(); + } + if (locationFiltersBuilder_ == null) { + if (!other.locationFilters_.isEmpty()) { + if (locationFilters_.isEmpty()) { + locationFilters_ = other.locationFilters_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureLocationFiltersIsMutable(); + locationFilters_.addAll(other.locationFilters_); + } + onChanged(); + } + } else { + if (!other.locationFilters_.isEmpty()) { + if (locationFiltersBuilder_.isEmpty()) { + locationFiltersBuilder_.dispose(); + locationFiltersBuilder_ = null; + locationFilters_ = other.locationFilters_; + bitField0_ = (bitField0_ & ~0x00000004); + locationFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLocationFiltersFieldBuilder() + : null; + } else { + locationFiltersBuilder_.addAllMessages(other.locationFilters_); + } + } + } + if (!other.jobCategories_.isEmpty()) { + if (jobCategories_.isEmpty()) { + jobCategories_ = other.jobCategories_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureJobCategoriesIsMutable(); + jobCategories_.addAll(other.jobCategories_); + } + onChanged(); + } + if (other.hasCommuteFilter()) { + mergeCommuteFilter(other.getCommuteFilter()); + } + if (!other.companyDisplayNames_.isEmpty()) { + if (companyDisplayNames_.isEmpty()) { + companyDisplayNames_ = other.companyDisplayNames_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureCompanyDisplayNamesIsMutable(); + companyDisplayNames_.addAll(other.companyDisplayNames_); + } + onChanged(); + } + if (other.hasCompensationFilter()) { + mergeCompensationFilter(other.getCompensationFilter()); + } + if (!other.getCustomAttributeFilter().isEmpty()) { + customAttributeFilter_ = other.customAttributeFilter_; + onChanged(); + } + if (other.getDisableSpellCheck() != false) { + setDisableSpellCheck(other.getDisableSpellCheck()); + } + if (!other.employmentTypes_.isEmpty()) { + if (employmentTypes_.isEmpty()) { + employmentTypes_ = other.employmentTypes_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureEmploymentTypesIsMutable(); + employmentTypes_.addAll(other.employmentTypes_); + } + onChanged(); + } + if (!other.languageCodes_.isEmpty()) { + if (languageCodes_.isEmpty()) { + languageCodes_ = other.languageCodes_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureLanguageCodesIsMutable(); + languageCodes_.addAll(other.languageCodes_); + } + onChanged(); + } + if (other.hasPublishTimeRange()) { + mergePublishTimeRange(other.getPublishTimeRange()); + } + if (!other.excludedJobs_.isEmpty()) { + if (excludedJobs_.isEmpty()) { + excludedJobs_ = other.excludedJobs_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureExcludedJobsIsMutable(); + excludedJobs_.addAll(other.excludedJobs_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.JobQuery parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.JobQuery) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object query_ = ""; + /** + * + * + *
+     * Optional.
+     * The query string that matches against the job title, description, and
+     * location fields.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string query = 1; + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The query string that matches against the job title, description, and
+     * location fields.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string query = 1; + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The query string that matches against the job title, description, and
+     * location fields.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string query = 1; + */ + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + query_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The query string that matches against the job title, description, and
+     * location fields.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string query = 1; + */ + public Builder clearQuery() { + + query_ = getDefaultInstance().getQuery(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The query string that matches against the job title, description, and
+     * location fields.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string query = 1; + */ + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + query_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList companyNames_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureCompanyNamesIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + companyNames_ = new com.google.protobuf.LazyStringArrayList(companyNames_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the company entities to search against.
+     * If a value isn't specified, jobs are searched for against all
+     * companies.
+     * If multiple values are specified, jobs are searched against the
+     * companies specified.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * At most 20 company filters are allowed.
+     * 
+ * + * repeated string company_names = 2; + */ + public com.google.protobuf.ProtocolStringList getCompanyNamesList() { + return companyNames_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the company entities to search against.
+     * If a value isn't specified, jobs are searched for against all
+     * companies.
+     * If multiple values are specified, jobs are searched against the
+     * companies specified.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * At most 20 company filters are allowed.
+     * 
+ * + * repeated string company_names = 2; + */ + public int getCompanyNamesCount() { + return companyNames_.size(); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the company entities to search against.
+     * If a value isn't specified, jobs are searched for against all
+     * companies.
+     * If multiple values are specified, jobs are searched against the
+     * companies specified.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * At most 20 company filters are allowed.
+     * 
+ * + * repeated string company_names = 2; + */ + public java.lang.String getCompanyNames(int index) { + return companyNames_.get(index); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the company entities to search against.
+     * If a value isn't specified, jobs are searched for against all
+     * companies.
+     * If multiple values are specified, jobs are searched against the
+     * companies specified.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * At most 20 company filters are allowed.
+     * 
+ * + * repeated string company_names = 2; + */ + public com.google.protobuf.ByteString getCompanyNamesBytes(int index) { + return companyNames_.getByteString(index); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the company entities to search against.
+     * If a value isn't specified, jobs are searched for against all
+     * companies.
+     * If multiple values are specified, jobs are searched against the
+     * companies specified.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * At most 20 company filters are allowed.
+     * 
+ * + * repeated string company_names = 2; + */ + public Builder setCompanyNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompanyNamesIsMutable(); + companyNames_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the company entities to search against.
+     * If a value isn't specified, jobs are searched for against all
+     * companies.
+     * If multiple values are specified, jobs are searched against the
+     * companies specified.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * At most 20 company filters are allowed.
+     * 
+ * + * repeated string company_names = 2; + */ + public Builder addCompanyNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompanyNamesIsMutable(); + companyNames_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the company entities to search against.
+     * If a value isn't specified, jobs are searched for against all
+     * companies.
+     * If multiple values are specified, jobs are searched against the
+     * companies specified.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * At most 20 company filters are allowed.
+     * 
+ * + * repeated string company_names = 2; + */ + public Builder addAllCompanyNames(java.lang.Iterable values) { + ensureCompanyNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, companyNames_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the company entities to search against.
+     * If a value isn't specified, jobs are searched for against all
+     * companies.
+     * If multiple values are specified, jobs are searched against the
+     * companies specified.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * At most 20 company filters are allowed.
+     * 
+ * + * repeated string company_names = 2; + */ + public Builder clearCompanyNames() { + companyNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the company entities to search against.
+     * If a value isn't specified, jobs are searched for against all
+     * companies.
+     * If multiple values are specified, jobs are searched against the
+     * companies specified.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * At most 20 company filters are allowed.
+     * 
+ * + * repeated string company_names = 2; + */ + public Builder addCompanyNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCompanyNamesIsMutable(); + companyNames_.add(value); + onChanged(); + return this; + } + + private java.util.List locationFilters_ = + java.util.Collections.emptyList(); + + private void ensureLocationFiltersIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + locationFilters_ = + new java.util.ArrayList( + locationFilters_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.LocationFilter, + com.google.cloud.talent.v4beta1.LocationFilter.Builder, + com.google.cloud.talent.v4beta1.LocationFilterOrBuilder> + locationFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public java.util.List getLocationFiltersList() { + if (locationFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(locationFilters_); + } else { + return locationFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public int getLocationFiltersCount() { + if (locationFiltersBuilder_ == null) { + return locationFilters_.size(); + } else { + return locationFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public com.google.cloud.talent.v4beta1.LocationFilter getLocationFilters(int index) { + if (locationFiltersBuilder_ == null) { + return locationFilters_.get(index); + } else { + return locationFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public Builder setLocationFilters( + int index, com.google.cloud.talent.v4beta1.LocationFilter value) { + if (locationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationFiltersIsMutable(); + locationFilters_.set(index, value); + onChanged(); + } else { + locationFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public Builder setLocationFilters( + int index, com.google.cloud.talent.v4beta1.LocationFilter.Builder builderForValue) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + locationFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public Builder addLocationFilters(com.google.cloud.talent.v4beta1.LocationFilter value) { + if (locationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationFiltersIsMutable(); + locationFilters_.add(value); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public Builder addLocationFilters( + int index, com.google.cloud.talent.v4beta1.LocationFilter value) { + if (locationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationFiltersIsMutable(); + locationFilters_.add(index, value); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public Builder addLocationFilters( + com.google.cloud.talent.v4beta1.LocationFilter.Builder builderForValue) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.add(builderForValue.build()); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public Builder addLocationFilters( + int index, com.google.cloud.talent.v4beta1.LocationFilter.Builder builderForValue) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public Builder addAllLocationFilters( + java.lang.Iterable values) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locationFilters_); + onChanged(); + } else { + locationFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public Builder clearLocationFilters() { + if (locationFiltersBuilder_ == null) { + locationFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + locationFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public Builder removeLocationFilters(int index) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.remove(index); + onChanged(); + } else { + locationFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public com.google.cloud.talent.v4beta1.LocationFilter.Builder getLocationFiltersBuilder( + int index) { + return getLocationFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public com.google.cloud.talent.v4beta1.LocationFilterOrBuilder getLocationFiltersOrBuilder( + int index) { + if (locationFiltersBuilder_ == null) { + return locationFilters_.get(index); + } else { + return locationFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public java.util.List + getLocationFiltersOrBuilderList() { + if (locationFiltersBuilder_ != null) { + return locationFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(locationFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public com.google.cloud.talent.v4beta1.LocationFilter.Builder addLocationFiltersBuilder() { + return getLocationFiltersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.LocationFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public com.google.cloud.talent.v4beta1.LocationFilter.Builder addLocationFiltersBuilder( + int index) { + return getLocationFiltersFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.LocationFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public java.util.List + getLocationFiltersBuilderList() { + return getLocationFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.LocationFilter, + com.google.cloud.talent.v4beta1.LocationFilter.Builder, + com.google.cloud.talent.v4beta1.LocationFilterOrBuilder> + getLocationFiltersFieldBuilder() { + if (locationFiltersBuilder_ == null) { + locationFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.LocationFilter, + com.google.cloud.talent.v4beta1.LocationFilter.Builder, + com.google.cloud.talent.v4beta1.LocationFilterOrBuilder>( + locationFilters_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + locationFilters_ = null; + } + return locationFiltersBuilder_; + } + + private java.util.List jobCategories_ = java.util.Collections.emptyList(); + + private void ensureJobCategoriesIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + jobCategories_ = new java.util.ArrayList(jobCategories_); + bitField0_ |= 0x00000008; + } + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public java.util.List getJobCategoriesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobCategory>( + jobCategories_, jobCategories_converter_); + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public int getJobCategoriesCount() { + return jobCategories_.size(); + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public com.google.cloud.talent.v4beta1.JobCategory getJobCategories(int index) { + return jobCategories_converter_.convert(jobCategories_.get(index)); + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public Builder setJobCategories(int index, com.google.cloud.talent.v4beta1.JobCategory value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobCategoriesIsMutable(); + jobCategories_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public Builder addJobCategories(com.google.cloud.talent.v4beta1.JobCategory value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobCategoriesIsMutable(); + jobCategories_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public Builder addAllJobCategories( + java.lang.Iterable values) { + ensureJobCategoriesIsMutable(); + for (com.google.cloud.talent.v4beta1.JobCategory value : values) { + jobCategories_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public Builder clearJobCategories() { + jobCategories_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public java.util.List getJobCategoriesValueList() { + return java.util.Collections.unmodifiableList(jobCategories_); + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public int getJobCategoriesValue(int index) { + return jobCategories_.get(index); + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public Builder setJobCategoriesValue(int index, int value) { + ensureJobCategoriesIsMutable(); + jobCategories_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public Builder addJobCategoriesValue(int value) { + ensureJobCategoriesIsMutable(); + jobCategories_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public Builder addAllJobCategoriesValue(java.lang.Iterable values) { + ensureJobCategoriesIsMutable(); + for (int value : values) { + jobCategories_.add(value); + } + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.CommuteFilter commuteFilter_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CommuteFilter, + com.google.cloud.talent.v4beta1.CommuteFilter.Builder, + com.google.cloud.talent.v4beta1.CommuteFilterOrBuilder> + commuteFilterBuilder_; + /** + * + * + *
+     * Optional.
+     *  Allows filtering jobs by commute time with different travel methods (for
+     *  example, driving or public transit). Note: This only works with [COMMUTE
+     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+     *  ignored.
+     *  Currently we don't support sorting by commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + public boolean hasCommuteFilter() { + return commuteFilterBuilder_ != null || commuteFilter_ != null; + } + /** + * + * + *
+     * Optional.
+     *  Allows filtering jobs by commute time with different travel methods (for
+     *  example, driving or public transit). Note: This only works with [COMMUTE
+     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+     *  ignored.
+     *  Currently we don't support sorting by commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + public com.google.cloud.talent.v4beta1.CommuteFilter getCommuteFilter() { + if (commuteFilterBuilder_ == null) { + return commuteFilter_ == null + ? com.google.cloud.talent.v4beta1.CommuteFilter.getDefaultInstance() + : commuteFilter_; + } else { + return commuteFilterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     *  Allows filtering jobs by commute time with different travel methods (for
+     *  example, driving or public transit). Note: This only works with [COMMUTE
+     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+     *  ignored.
+     *  Currently we don't support sorting by commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + public Builder setCommuteFilter(com.google.cloud.talent.v4beta1.CommuteFilter value) { + if (commuteFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + commuteFilter_ = value; + onChanged(); + } else { + commuteFilterBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     *  Allows filtering jobs by commute time with different travel methods (for
+     *  example, driving or public transit). Note: This only works with [COMMUTE
+     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+     *  ignored.
+     *  Currently we don't support sorting by commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + public Builder setCommuteFilter( + com.google.cloud.talent.v4beta1.CommuteFilter.Builder builderForValue) { + if (commuteFilterBuilder_ == null) { + commuteFilter_ = builderForValue.build(); + onChanged(); + } else { + commuteFilterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     *  Allows filtering jobs by commute time with different travel methods (for
+     *  example, driving or public transit). Note: This only works with [COMMUTE
+     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+     *  ignored.
+     *  Currently we don't support sorting by commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + public Builder mergeCommuteFilter(com.google.cloud.talent.v4beta1.CommuteFilter value) { + if (commuteFilterBuilder_ == null) { + if (commuteFilter_ != null) { + commuteFilter_ = + com.google.cloud.talent.v4beta1.CommuteFilter.newBuilder(commuteFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + commuteFilter_ = value; + } + onChanged(); + } else { + commuteFilterBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     *  Allows filtering jobs by commute time with different travel methods (for
+     *  example, driving or public transit). Note: This only works with [COMMUTE
+     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+     *  ignored.
+     *  Currently we don't support sorting by commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + public Builder clearCommuteFilter() { + if (commuteFilterBuilder_ == null) { + commuteFilter_ = null; + onChanged(); + } else { + commuteFilter_ = null; + commuteFilterBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     *  Allows filtering jobs by commute time with different travel methods (for
+     *  example, driving or public transit). Note: This only works with [COMMUTE
+     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+     *  ignored.
+     *  Currently we don't support sorting by commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + public com.google.cloud.talent.v4beta1.CommuteFilter.Builder getCommuteFilterBuilder() { + + onChanged(); + return getCommuteFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     *  Allows filtering jobs by commute time with different travel methods (for
+     *  example, driving or public transit). Note: This only works with [COMMUTE
+     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+     *  ignored.
+     *  Currently we don't support sorting by commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + public com.google.cloud.talent.v4beta1.CommuteFilterOrBuilder getCommuteFilterOrBuilder() { + if (commuteFilterBuilder_ != null) { + return commuteFilterBuilder_.getMessageOrBuilder(); + } else { + return commuteFilter_ == null + ? com.google.cloud.talent.v4beta1.CommuteFilter.getDefaultInstance() + : commuteFilter_; + } + } + /** + * + * + *
+     * Optional.
+     *  Allows filtering jobs by commute time with different travel methods (for
+     *  example, driving or public transit). Note: This only works with [COMMUTE
+     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+     *  ignored.
+     *  Currently we don't support sorting by commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CommuteFilter, + com.google.cloud.talent.v4beta1.CommuteFilter.Builder, + com.google.cloud.talent.v4beta1.CommuteFilterOrBuilder> + getCommuteFilterFieldBuilder() { + if (commuteFilterBuilder_ == null) { + commuteFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CommuteFilter, + com.google.cloud.talent.v4beta1.CommuteFilter.Builder, + com.google.cloud.talent.v4beta1.CommuteFilterOrBuilder>( + getCommuteFilter(), getParentForChildren(), isClean()); + commuteFilter_ = null; + } + return commuteFilterBuilder_; + } + + private com.google.protobuf.LazyStringList companyDisplayNames_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureCompanyDisplayNamesIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + companyDisplayNames_ = new com.google.protobuf.LazyStringArrayList(companyDisplayNames_); + bitField0_ |= 0x00000020; + } + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the exact [company display
+     * name][Company.display_name] of the jobs to search against.
+     * If a value isn't specified, jobs within the search results are
+     * associated with any company.
+     * If multiple values are specified, jobs within the search results may be
+     * associated with any of the specified companies.
+     * At most 20 company display name filters are allowed.
+     * 
+ * + * repeated string company_display_names = 6; + */ + public com.google.protobuf.ProtocolStringList getCompanyDisplayNamesList() { + return companyDisplayNames_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the exact [company display
+     * name][Company.display_name] of the jobs to search against.
+     * If a value isn't specified, jobs within the search results are
+     * associated with any company.
+     * If multiple values are specified, jobs within the search results may be
+     * associated with any of the specified companies.
+     * At most 20 company display name filters are allowed.
+     * 
+ * + * repeated string company_display_names = 6; + */ + public int getCompanyDisplayNamesCount() { + return companyDisplayNames_.size(); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the exact [company display
+     * name][Company.display_name] of the jobs to search against.
+     * If a value isn't specified, jobs within the search results are
+     * associated with any company.
+     * If multiple values are specified, jobs within the search results may be
+     * associated with any of the specified companies.
+     * At most 20 company display name filters are allowed.
+     * 
+ * + * repeated string company_display_names = 6; + */ + public java.lang.String getCompanyDisplayNames(int index) { + return companyDisplayNames_.get(index); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the exact [company display
+     * name][Company.display_name] of the jobs to search against.
+     * If a value isn't specified, jobs within the search results are
+     * associated with any company.
+     * If multiple values are specified, jobs within the search results may be
+     * associated with any of the specified companies.
+     * At most 20 company display name filters are allowed.
+     * 
+ * + * repeated string company_display_names = 6; + */ + public com.google.protobuf.ByteString getCompanyDisplayNamesBytes(int index) { + return companyDisplayNames_.getByteString(index); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the exact [company display
+     * name][Company.display_name] of the jobs to search against.
+     * If a value isn't specified, jobs within the search results are
+     * associated with any company.
+     * If multiple values are specified, jobs within the search results may be
+     * associated with any of the specified companies.
+     * At most 20 company display name filters are allowed.
+     * 
+ * + * repeated string company_display_names = 6; + */ + public Builder setCompanyDisplayNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompanyDisplayNamesIsMutable(); + companyDisplayNames_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the exact [company display
+     * name][Company.display_name] of the jobs to search against.
+     * If a value isn't specified, jobs within the search results are
+     * associated with any company.
+     * If multiple values are specified, jobs within the search results may be
+     * associated with any of the specified companies.
+     * At most 20 company display name filters are allowed.
+     * 
+ * + * repeated string company_display_names = 6; + */ + public Builder addCompanyDisplayNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompanyDisplayNamesIsMutable(); + companyDisplayNames_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the exact [company display
+     * name][Company.display_name] of the jobs to search against.
+     * If a value isn't specified, jobs within the search results are
+     * associated with any company.
+     * If multiple values are specified, jobs within the search results may be
+     * associated with any of the specified companies.
+     * At most 20 company display name filters are allowed.
+     * 
+ * + * repeated string company_display_names = 6; + */ + public Builder addAllCompanyDisplayNames(java.lang.Iterable values) { + ensureCompanyDisplayNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, companyDisplayNames_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the exact [company display
+     * name][Company.display_name] of the jobs to search against.
+     * If a value isn't specified, jobs within the search results are
+     * associated with any company.
+     * If multiple values are specified, jobs within the search results may be
+     * associated with any of the specified companies.
+     * At most 20 company display name filters are allowed.
+     * 
+ * + * repeated string company_display_names = 6; + */ + public Builder clearCompanyDisplayNames() { + companyDisplayNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the exact [company display
+     * name][Company.display_name] of the jobs to search against.
+     * If a value isn't specified, jobs within the search results are
+     * associated with any company.
+     * If multiple values are specified, jobs within the search results may be
+     * associated with any of the specified companies.
+     * At most 20 company display name filters are allowed.
+     * 
+ * + * repeated string company_display_names = 6; + */ + public Builder addCompanyDisplayNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCompanyDisplayNamesIsMutable(); + companyDisplayNames_.add(value); + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.CompensationFilter compensationFilter_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationFilter, + com.google.cloud.talent.v4beta1.CompensationFilter.Builder, + com.google.cloud.talent.v4beta1.CompensationFilterOrBuilder> + compensationFilterBuilder_; + /** + * + * + *
+     * Optional.
+     * This search filter is applied only to
+     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+     * For example, if the filter is specified as "Hourly job with per-hour
+     * compensation > $15", only jobs meeting these criteria are searched. If a
+     * filter isn't defined, all open jobs are searched.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + public boolean hasCompensationFilter() { + return compensationFilterBuilder_ != null || compensationFilter_ != null; + } + /** + * + * + *
+     * Optional.
+     * This search filter is applied only to
+     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+     * For example, if the filter is specified as "Hourly job with per-hour
+     * compensation > $15", only jobs meeting these criteria are searched. If a
+     * filter isn't defined, all open jobs are searched.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + public com.google.cloud.talent.v4beta1.CompensationFilter getCompensationFilter() { + if (compensationFilterBuilder_ == null) { + return compensationFilter_ == null + ? com.google.cloud.talent.v4beta1.CompensationFilter.getDefaultInstance() + : compensationFilter_; + } else { + return compensationFilterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * This search filter is applied only to
+     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+     * For example, if the filter is specified as "Hourly job with per-hour
+     * compensation > $15", only jobs meeting these criteria are searched. If a
+     * filter isn't defined, all open jobs are searched.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + public Builder setCompensationFilter(com.google.cloud.talent.v4beta1.CompensationFilter value) { + if (compensationFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + compensationFilter_ = value; + onChanged(); + } else { + compensationFilterBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * This search filter is applied only to
+     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+     * For example, if the filter is specified as "Hourly job with per-hour
+     * compensation > $15", only jobs meeting these criteria are searched. If a
+     * filter isn't defined, all open jobs are searched.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + public Builder setCompensationFilter( + com.google.cloud.talent.v4beta1.CompensationFilter.Builder builderForValue) { + if (compensationFilterBuilder_ == null) { + compensationFilter_ = builderForValue.build(); + onChanged(); + } else { + compensationFilterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * This search filter is applied only to
+     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+     * For example, if the filter is specified as "Hourly job with per-hour
+     * compensation > $15", only jobs meeting these criteria are searched. If a
+     * filter isn't defined, all open jobs are searched.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + public Builder mergeCompensationFilter( + com.google.cloud.talent.v4beta1.CompensationFilter value) { + if (compensationFilterBuilder_ == null) { + if (compensationFilter_ != null) { + compensationFilter_ = + com.google.cloud.talent.v4beta1.CompensationFilter.newBuilder(compensationFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + compensationFilter_ = value; + } + onChanged(); + } else { + compensationFilterBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * This search filter is applied only to
+     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+     * For example, if the filter is specified as "Hourly job with per-hour
+     * compensation > $15", only jobs meeting these criteria are searched. If a
+     * filter isn't defined, all open jobs are searched.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + public Builder clearCompensationFilter() { + if (compensationFilterBuilder_ == null) { + compensationFilter_ = null; + onChanged(); + } else { + compensationFilter_ = null; + compensationFilterBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * This search filter is applied only to
+     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+     * For example, if the filter is specified as "Hourly job with per-hour
+     * compensation > $15", only jobs meeting these criteria are searched. If a
+     * filter isn't defined, all open jobs are searched.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + public com.google.cloud.talent.v4beta1.CompensationFilter.Builder + getCompensationFilterBuilder() { + + onChanged(); + return getCompensationFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * This search filter is applied only to
+     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+     * For example, if the filter is specified as "Hourly job with per-hour
+     * compensation > $15", only jobs meeting these criteria are searched. If a
+     * filter isn't defined, all open jobs are searched.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + public com.google.cloud.talent.v4beta1.CompensationFilterOrBuilder + getCompensationFilterOrBuilder() { + if (compensationFilterBuilder_ != null) { + return compensationFilterBuilder_.getMessageOrBuilder(); + } else { + return compensationFilter_ == null + ? com.google.cloud.talent.v4beta1.CompensationFilter.getDefaultInstance() + : compensationFilter_; + } + } + /** + * + * + *
+     * Optional.
+     * This search filter is applied only to
+     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+     * For example, if the filter is specified as "Hourly job with per-hour
+     * compensation > $15", only jobs meeting these criteria are searched. If a
+     * filter isn't defined, all open jobs are searched.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationFilter, + com.google.cloud.talent.v4beta1.CompensationFilter.Builder, + com.google.cloud.talent.v4beta1.CompensationFilterOrBuilder> + getCompensationFilterFieldBuilder() { + if (compensationFilterBuilder_ == null) { + compensationFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationFilter, + com.google.cloud.talent.v4beta1.CompensationFilter.Builder, + com.google.cloud.talent.v4beta1.CompensationFilterOrBuilder>( + getCompensationFilter(), getParentForChildren(), isClean()); + compensationFilter_ = null; + } + return compensationFilterBuilder_; + } + + private java.lang.Object customAttributeFilter_ = ""; + /** + * + * + *
+     * Optional.
+     * This filter specifies a structured syntax to match against the
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+     * marked as `filterable`.
+     * The syntax for this expression is a subset of SQL syntax.
+     * Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the
+     * left of the operator is a custom field key and the right of the operator
+     * is a number or a quoted string. You must escape backslash (\\) and
+     * quote (\") characters.
+     * Supported functions are `LOWER([field_name])` to
+     * perform a case insensitive match and `EMPTY([field_name])` to filter on the
+     * existence of a key.
+     * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+     * nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100
+     * comparisons or functions are allowed in the expression. The expression
+     * must be < 3000 bytes in length.
+     * Sample Query:
+     * `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
+     * driving_years > 10`
+     * 
+ * + * string custom_attribute_filter = 8; + */ + public java.lang.String getCustomAttributeFilter() { + java.lang.Object ref = customAttributeFilter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customAttributeFilter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a structured syntax to match against the
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+     * marked as `filterable`.
+     * The syntax for this expression is a subset of SQL syntax.
+     * Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the
+     * left of the operator is a custom field key and the right of the operator
+     * is a number or a quoted string. You must escape backslash (\\) and
+     * quote (\") characters.
+     * Supported functions are `LOWER([field_name])` to
+     * perform a case insensitive match and `EMPTY([field_name])` to filter on the
+     * existence of a key.
+     * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+     * nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100
+     * comparisons or functions are allowed in the expression. The expression
+     * must be < 3000 bytes in length.
+     * Sample Query:
+     * `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
+     * driving_years > 10`
+     * 
+ * + * string custom_attribute_filter = 8; + */ + public com.google.protobuf.ByteString getCustomAttributeFilterBytes() { + java.lang.Object ref = customAttributeFilter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customAttributeFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a structured syntax to match against the
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+     * marked as `filterable`.
+     * The syntax for this expression is a subset of SQL syntax.
+     * Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the
+     * left of the operator is a custom field key and the right of the operator
+     * is a number or a quoted string. You must escape backslash (\\) and
+     * quote (\") characters.
+     * Supported functions are `LOWER([field_name])` to
+     * perform a case insensitive match and `EMPTY([field_name])` to filter on the
+     * existence of a key.
+     * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+     * nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100
+     * comparisons or functions are allowed in the expression. The expression
+     * must be < 3000 bytes in length.
+     * Sample Query:
+     * `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
+     * driving_years > 10`
+     * 
+ * + * string custom_attribute_filter = 8; + */ + public Builder setCustomAttributeFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + customAttributeFilter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a structured syntax to match against the
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+     * marked as `filterable`.
+     * The syntax for this expression is a subset of SQL syntax.
+     * Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the
+     * left of the operator is a custom field key and the right of the operator
+     * is a number or a quoted string. You must escape backslash (\\) and
+     * quote (\") characters.
+     * Supported functions are `LOWER([field_name])` to
+     * perform a case insensitive match and `EMPTY([field_name])` to filter on the
+     * existence of a key.
+     * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+     * nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100
+     * comparisons or functions are allowed in the expression. The expression
+     * must be < 3000 bytes in length.
+     * Sample Query:
+     * `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
+     * driving_years > 10`
+     * 
+ * + * string custom_attribute_filter = 8; + */ + public Builder clearCustomAttributeFilter() { + + customAttributeFilter_ = getDefaultInstance().getCustomAttributeFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a structured syntax to match against the
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+     * marked as `filterable`.
+     * The syntax for this expression is a subset of SQL syntax.
+     * Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the
+     * left of the operator is a custom field key and the right of the operator
+     * is a number or a quoted string. You must escape backslash (\\) and
+     * quote (\") characters.
+     * Supported functions are `LOWER([field_name])` to
+     * perform a case insensitive match and `EMPTY([field_name])` to filter on the
+     * existence of a key.
+     * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+     * nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100
+     * comparisons or functions are allowed in the expression. The expression
+     * must be < 3000 bytes in length.
+     * Sample Query:
+     * `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
+     * driving_years > 10`
+     * 
+ * + * string custom_attribute_filter = 8; + */ + public Builder setCustomAttributeFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + customAttributeFilter_ = value; + onChanged(); + return this; + } + + private boolean disableSpellCheck_; + /** + * + * + *
+     * Optional.
+     * This flag controls the spell-check feature. If false, the
+     * service attempts to correct a misspelled query,
+     * for example, "enginee" is corrected to "engineer".
+     * Defaults to false: a spell check is performed.
+     * 
+ * + * bool disable_spell_check = 9; + */ + public boolean getDisableSpellCheck() { + return disableSpellCheck_; + } + /** + * + * + *
+     * Optional.
+     * This flag controls the spell-check feature. If false, the
+     * service attempts to correct a misspelled query,
+     * for example, "enginee" is corrected to "engineer".
+     * Defaults to false: a spell check is performed.
+     * 
+ * + * bool disable_spell_check = 9; + */ + public Builder setDisableSpellCheck(boolean value) { + + disableSpellCheck_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This flag controls the spell-check feature. If false, the
+     * service attempts to correct a misspelled query,
+     * for example, "enginee" is corrected to "engineer".
+     * Defaults to false: a spell check is performed.
+     * 
+ * + * bool disable_spell_check = 9; + */ + public Builder clearDisableSpellCheck() { + + disableSpellCheck_ = false; + onChanged(); + return this; + } + + private java.util.List employmentTypes_ = java.util.Collections.emptyList(); + + private void ensureEmploymentTypesIsMutable() { + if (!((bitField0_ & 0x00000200) == 0x00000200)) { + employmentTypes_ = new java.util.ArrayList(employmentTypes_); + bitField0_ |= 0x00000200; + } + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public java.util.List getEmploymentTypesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.EmploymentType>( + employmentTypes_, employmentTypes_converter_); + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public int getEmploymentTypesCount() { + return employmentTypes_.size(); + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public com.google.cloud.talent.v4beta1.EmploymentType getEmploymentTypes(int index) { + return employmentTypes_converter_.convert(employmentTypes_.get(index)); + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public Builder setEmploymentTypes( + int index, com.google.cloud.talent.v4beta1.EmploymentType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmploymentTypesIsMutable(); + employmentTypes_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public Builder addEmploymentTypes(com.google.cloud.talent.v4beta1.EmploymentType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmploymentTypesIsMutable(); + employmentTypes_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public Builder addAllEmploymentTypes( + java.lang.Iterable values) { + ensureEmploymentTypesIsMutable(); + for (com.google.cloud.talent.v4beta1.EmploymentType value : values) { + employmentTypes_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public Builder clearEmploymentTypes() { + employmentTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public java.util.List getEmploymentTypesValueList() { + return java.util.Collections.unmodifiableList(employmentTypes_); + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public int getEmploymentTypesValue(int index) { + return employmentTypes_.get(index); + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public Builder setEmploymentTypesValue(int index, int value) { + ensureEmploymentTypesIsMutable(); + employmentTypes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public Builder addEmploymentTypesValue(int value) { + ensureEmploymentTypesIsMutable(); + employmentTypes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public Builder addAllEmploymentTypesValue(java.lang.Iterable values) { + ensureEmploymentTypesIsMutable(); + for (int value : values) { + employmentTypes_.add(value); + } + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList languageCodes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureLanguageCodesIsMutable() { + if (!((bitField0_ & 0x00000400) == 0x00000400)) { + languageCodes_ = new com.google.protobuf.LazyStringArrayList(languageCodes_); + bitField0_ |= 0x00000400; + } + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the locale of jobs to search against,
+     * for example, "en-US".
+     * If a value isn't specified, the search results can contain jobs in any
+     * locale.
+     * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * At most 10 language code filters are allowed.
+     * 
+ * + * repeated string language_codes = 11; + */ + public com.google.protobuf.ProtocolStringList getLanguageCodesList() { + return languageCodes_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the locale of jobs to search against,
+     * for example, "en-US".
+     * If a value isn't specified, the search results can contain jobs in any
+     * locale.
+     * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * At most 10 language code filters are allowed.
+     * 
+ * + * repeated string language_codes = 11; + */ + public int getLanguageCodesCount() { + return languageCodes_.size(); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the locale of jobs to search against,
+     * for example, "en-US".
+     * If a value isn't specified, the search results can contain jobs in any
+     * locale.
+     * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * At most 10 language code filters are allowed.
+     * 
+ * + * repeated string language_codes = 11; + */ + public java.lang.String getLanguageCodes(int index) { + return languageCodes_.get(index); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the locale of jobs to search against,
+     * for example, "en-US".
+     * If a value isn't specified, the search results can contain jobs in any
+     * locale.
+     * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * At most 10 language code filters are allowed.
+     * 
+ * + * repeated string language_codes = 11; + */ + public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { + return languageCodes_.getByteString(index); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the locale of jobs to search against,
+     * for example, "en-US".
+     * If a value isn't specified, the search results can contain jobs in any
+     * locale.
+     * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * At most 10 language code filters are allowed.
+     * 
+ * + * repeated string language_codes = 11; + */ + public Builder setLanguageCodes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLanguageCodesIsMutable(); + languageCodes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the locale of jobs to search against,
+     * for example, "en-US".
+     * If a value isn't specified, the search results can contain jobs in any
+     * locale.
+     * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * At most 10 language code filters are allowed.
+     * 
+ * + * repeated string language_codes = 11; + */ + public Builder addLanguageCodes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLanguageCodesIsMutable(); + languageCodes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the locale of jobs to search against,
+     * for example, "en-US".
+     * If a value isn't specified, the search results can contain jobs in any
+     * locale.
+     * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * At most 10 language code filters are allowed.
+     * 
+ * + * repeated string language_codes = 11; + */ + public Builder addAllLanguageCodes(java.lang.Iterable values) { + ensureLanguageCodesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageCodes_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the locale of jobs to search against,
+     * for example, "en-US".
+     * If a value isn't specified, the search results can contain jobs in any
+     * locale.
+     * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * At most 10 language code filters are allowed.
+     * 
+ * + * repeated string language_codes = 11; + */ + public Builder clearLanguageCodes() { + languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the locale of jobs to search against,
+     * for example, "en-US".
+     * If a value isn't specified, the search results can contain jobs in any
+     * locale.
+     * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * At most 10 language code filters are allowed.
+     * 
+ * + * repeated string language_codes = 11; + */ + public Builder addLanguageCodesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLanguageCodesIsMutable(); + languageCodes_.add(value); + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.TimestampRange publishTimeRange_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.TimestampRange, + com.google.cloud.talent.v4beta1.TimestampRange.Builder, + com.google.cloud.talent.v4beta1.TimestampRangeOrBuilder> + publishTimeRangeBuilder_; + /** + * + * + *
+     * Optional.
+     * Jobs published within a range specified by this filter are searched
+     * against.
+     * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + public boolean hasPublishTimeRange() { + return publishTimeRangeBuilder_ != null || publishTimeRange_ != null; + } + /** + * + * + *
+     * Optional.
+     * Jobs published within a range specified by this filter are searched
+     * against.
+     * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + public com.google.cloud.talent.v4beta1.TimestampRange getPublishTimeRange() { + if (publishTimeRangeBuilder_ == null) { + return publishTimeRange_ == null + ? com.google.cloud.talent.v4beta1.TimestampRange.getDefaultInstance() + : publishTimeRange_; + } else { + return publishTimeRangeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Jobs published within a range specified by this filter are searched
+     * against.
+     * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + public Builder setPublishTimeRange(com.google.cloud.talent.v4beta1.TimestampRange value) { + if (publishTimeRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + publishTimeRange_ = value; + onChanged(); + } else { + publishTimeRangeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Jobs published within a range specified by this filter are searched
+     * against.
+     * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + public Builder setPublishTimeRange( + com.google.cloud.talent.v4beta1.TimestampRange.Builder builderForValue) { + if (publishTimeRangeBuilder_ == null) { + publishTimeRange_ = builderForValue.build(); + onChanged(); + } else { + publishTimeRangeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Jobs published within a range specified by this filter are searched
+     * against.
+     * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + public Builder mergePublishTimeRange(com.google.cloud.talent.v4beta1.TimestampRange value) { + if (publishTimeRangeBuilder_ == null) { + if (publishTimeRange_ != null) { + publishTimeRange_ = + com.google.cloud.talent.v4beta1.TimestampRange.newBuilder(publishTimeRange_) + .mergeFrom(value) + .buildPartial(); + } else { + publishTimeRange_ = value; + } + onChanged(); + } else { + publishTimeRangeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Jobs published within a range specified by this filter are searched
+     * against.
+     * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + public Builder clearPublishTimeRange() { + if (publishTimeRangeBuilder_ == null) { + publishTimeRange_ = null; + onChanged(); + } else { + publishTimeRange_ = null; + publishTimeRangeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Jobs published within a range specified by this filter are searched
+     * against.
+     * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + public com.google.cloud.talent.v4beta1.TimestampRange.Builder getPublishTimeRangeBuilder() { + + onChanged(); + return getPublishTimeRangeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Jobs published within a range specified by this filter are searched
+     * against.
+     * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + public com.google.cloud.talent.v4beta1.TimestampRangeOrBuilder getPublishTimeRangeOrBuilder() { + if (publishTimeRangeBuilder_ != null) { + return publishTimeRangeBuilder_.getMessageOrBuilder(); + } else { + return publishTimeRange_ == null + ? com.google.cloud.talent.v4beta1.TimestampRange.getDefaultInstance() + : publishTimeRange_; + } + } + /** + * + * + *
+     * Optional.
+     * Jobs published within a range specified by this filter are searched
+     * against.
+     * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.TimestampRange, + com.google.cloud.talent.v4beta1.TimestampRange.Builder, + com.google.cloud.talent.v4beta1.TimestampRangeOrBuilder> + getPublishTimeRangeFieldBuilder() { + if (publishTimeRangeBuilder_ == null) { + publishTimeRangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.TimestampRange, + com.google.cloud.talent.v4beta1.TimestampRange.Builder, + com.google.cloud.talent.v4beta1.TimestampRangeOrBuilder>( + getPublishTimeRange(), getParentForChildren(), isClean()); + publishTimeRange_ = null; + } + return publishTimeRangeBuilder_; + } + + private com.google.protobuf.LazyStringList excludedJobs_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureExcludedJobsIsMutable() { + if (!((bitField0_ & 0x00001000) == 0x00001000)) { + excludedJobs_ = new com.google.protobuf.LazyStringArrayList(excludedJobs_); + bitField0_ |= 0x00001000; + } + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a list of job names to be excluded during search.
+     * At most 200 excluded job names are allowed.
+     * 
+ * + * repeated string excluded_jobs = 13; + */ + public com.google.protobuf.ProtocolStringList getExcludedJobsList() { + return excludedJobs_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a list of job names to be excluded during search.
+     * At most 200 excluded job names are allowed.
+     * 
+ * + * repeated string excluded_jobs = 13; + */ + public int getExcludedJobsCount() { + return excludedJobs_.size(); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a list of job names to be excluded during search.
+     * At most 200 excluded job names are allowed.
+     * 
+ * + * repeated string excluded_jobs = 13; + */ + public java.lang.String getExcludedJobs(int index) { + return excludedJobs_.get(index); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a list of job names to be excluded during search.
+     * At most 200 excluded job names are allowed.
+     * 
+ * + * repeated string excluded_jobs = 13; + */ + public com.google.protobuf.ByteString getExcludedJobsBytes(int index) { + return excludedJobs_.getByteString(index); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a list of job names to be excluded during search.
+     * At most 200 excluded job names are allowed.
+     * 
+ * + * repeated string excluded_jobs = 13; + */ + public Builder setExcludedJobs(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedJobsIsMutable(); + excludedJobs_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a list of job names to be excluded during search.
+     * At most 200 excluded job names are allowed.
+     * 
+ * + * repeated string excluded_jobs = 13; + */ + public Builder addExcludedJobs(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedJobsIsMutable(); + excludedJobs_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a list of job names to be excluded during search.
+     * At most 200 excluded job names are allowed.
+     * 
+ * + * repeated string excluded_jobs = 13; + */ + public Builder addAllExcludedJobs(java.lang.Iterable values) { + ensureExcludedJobsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludedJobs_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a list of job names to be excluded during search.
+     * At most 200 excluded job names are allowed.
+     * 
+ * + * repeated string excluded_jobs = 13; + */ + public Builder clearExcludedJobs() { + excludedJobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a list of job names to be excluded during search.
+     * At most 200 excluded job names are allowed.
+     * 
+ * + * repeated string excluded_jobs = 13; + */ + public Builder addExcludedJobsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludedJobsIsMutable(); + excludedJobs_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.JobQuery) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.JobQuery) + private static final com.google.cloud.talent.v4beta1.JobQuery DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.JobQuery(); + } + + public static com.google.cloud.talent.v4beta1.JobQuery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JobQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new JobQuery(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobQuery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQueryOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQueryOrBuilder.java new file mode 100644 index 000000000000..a087101e8b33 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQueryOrBuilder.java @@ -0,0 +1,771 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface JobQueryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.JobQuery) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The query string that matches against the job title, description, and
+   * location fields.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string query = 1; + */ + java.lang.String getQuery(); + /** + * + * + *
+   * Optional.
+   * The query string that matches against the job title, description, and
+   * location fields.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string query = 1; + */ + com.google.protobuf.ByteString getQueryBytes(); + + /** + * + * + *
+   * Optional.
+   * This filter specifies the company entities to search against.
+   * If a value isn't specified, jobs are searched for against all
+   * companies.
+   * If multiple values are specified, jobs are searched against the
+   * companies specified.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * At most 20 company filters are allowed.
+   * 
+ * + * repeated string company_names = 2; + */ + java.util.List getCompanyNamesList(); + /** + * + * + *
+   * Optional.
+   * This filter specifies the company entities to search against.
+   * If a value isn't specified, jobs are searched for against all
+   * companies.
+   * If multiple values are specified, jobs are searched against the
+   * companies specified.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * At most 20 company filters are allowed.
+   * 
+ * + * repeated string company_names = 2; + */ + int getCompanyNamesCount(); + /** + * + * + *
+   * Optional.
+   * This filter specifies the company entities to search against.
+   * If a value isn't specified, jobs are searched for against all
+   * companies.
+   * If multiple values are specified, jobs are searched against the
+   * companies specified.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * At most 20 company filters are allowed.
+   * 
+ * + * repeated string company_names = 2; + */ + java.lang.String getCompanyNames(int index); + /** + * + * + *
+   * Optional.
+   * This filter specifies the company entities to search against.
+   * If a value isn't specified, jobs are searched for against all
+   * companies.
+   * If multiple values are specified, jobs are searched against the
+   * companies specified.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * At most 20 company filters are allowed.
+   * 
+ * + * repeated string company_names = 2; + */ + com.google.protobuf.ByteString getCompanyNamesBytes(int index); + + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the jobs to
+   * search against. See
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+   * information.
+   * If a location value isn't specified, jobs fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If multiple values are specified, jobs are retrieved from any of the
+   * specified locations. If different values are specified for the
+   * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+   * parameter, the maximum provided distance is used for all locations.
+   * At most 5 location filters are allowed.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + java.util.List getLocationFiltersList(); + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the jobs to
+   * search against. See
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+   * information.
+   * If a location value isn't specified, jobs fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If multiple values are specified, jobs are retrieved from any of the
+   * specified locations. If different values are specified for the
+   * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+   * parameter, the maximum provided distance is used for all locations.
+   * At most 5 location filters are allowed.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + com.google.cloud.talent.v4beta1.LocationFilter getLocationFilters(int index); + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the jobs to
+   * search against. See
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+   * information.
+   * If a location value isn't specified, jobs fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If multiple values are specified, jobs are retrieved from any of the
+   * specified locations. If different values are specified for the
+   * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+   * parameter, the maximum provided distance is used for all locations.
+   * At most 5 location filters are allowed.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + int getLocationFiltersCount(); + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the jobs to
+   * search against. See
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+   * information.
+   * If a location value isn't specified, jobs fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If multiple values are specified, jobs are retrieved from any of the
+   * specified locations. If different values are specified for the
+   * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+   * parameter, the maximum provided distance is used for all locations.
+   * At most 5 location filters are allowed.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + java.util.List + getLocationFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the jobs to
+   * search against. See
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+   * information.
+   * If a location value isn't specified, jobs fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If multiple values are specified, jobs are retrieved from any of the
+   * specified locations. If different values are specified for the
+   * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+   * parameter, the maximum provided distance is used for all locations.
+   * At most 5 location filters are allowed.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + com.google.cloud.talent.v4beta1.LocationFilterOrBuilder getLocationFiltersOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The category filter specifies the categories of jobs to search against.
+   * See [Category][] for more information.
+   * If a value isn't specified, jobs from any category are searched against.
+   * If multiple values are specified, jobs from any of the specified
+   * categories are searched against.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + java.util.List getJobCategoriesList(); + /** + * + * + *
+   * Optional.
+   * The category filter specifies the categories of jobs to search against.
+   * See [Category][] for more information.
+   * If a value isn't specified, jobs from any category are searched against.
+   * If multiple values are specified, jobs from any of the specified
+   * categories are searched against.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + int getJobCategoriesCount(); + /** + * + * + *
+   * Optional.
+   * The category filter specifies the categories of jobs to search against.
+   * See [Category][] for more information.
+   * If a value isn't specified, jobs from any category are searched against.
+   * If multiple values are specified, jobs from any of the specified
+   * categories are searched against.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + com.google.cloud.talent.v4beta1.JobCategory getJobCategories(int index); + /** + * + * + *
+   * Optional.
+   * The category filter specifies the categories of jobs to search against.
+   * See [Category][] for more information.
+   * If a value isn't specified, jobs from any category are searched against.
+   * If multiple values are specified, jobs from any of the specified
+   * categories are searched against.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + java.util.List getJobCategoriesValueList(); + /** + * + * + *
+   * Optional.
+   * The category filter specifies the categories of jobs to search against.
+   * See [Category][] for more information.
+   * If a value isn't specified, jobs from any category are searched against.
+   * If multiple values are specified, jobs from any of the specified
+   * categories are searched against.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + int getJobCategoriesValue(int index); + + /** + * + * + *
+   * Optional.
+   *  Allows filtering jobs by commute time with different travel methods (for
+   *  example, driving or public transit). Note: This only works with [COMMUTE
+   *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+   *  ignored.
+   *  Currently we don't support sorting by commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + boolean hasCommuteFilter(); + /** + * + * + *
+   * Optional.
+   *  Allows filtering jobs by commute time with different travel methods (for
+   *  example, driving or public transit). Note: This only works with [COMMUTE
+   *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+   *  ignored.
+   *  Currently we don't support sorting by commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + com.google.cloud.talent.v4beta1.CommuteFilter getCommuteFilter(); + /** + * + * + *
+   * Optional.
+   *  Allows filtering jobs by commute time with different travel methods (for
+   *  example, driving or public transit). Note: This only works with [COMMUTE
+   *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+   *  ignored.
+   *  Currently we don't support sorting by commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + com.google.cloud.talent.v4beta1.CommuteFilterOrBuilder getCommuteFilterOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * This filter specifies the exact [company display
+   * name][Company.display_name] of the jobs to search against.
+   * If a value isn't specified, jobs within the search results are
+   * associated with any company.
+   * If multiple values are specified, jobs within the search results may be
+   * associated with any of the specified companies.
+   * At most 20 company display name filters are allowed.
+   * 
+ * + * repeated string company_display_names = 6; + */ + java.util.List getCompanyDisplayNamesList(); + /** + * + * + *
+   * Optional.
+   * This filter specifies the exact [company display
+   * name][Company.display_name] of the jobs to search against.
+   * If a value isn't specified, jobs within the search results are
+   * associated with any company.
+   * If multiple values are specified, jobs within the search results may be
+   * associated with any of the specified companies.
+   * At most 20 company display name filters are allowed.
+   * 
+ * + * repeated string company_display_names = 6; + */ + int getCompanyDisplayNamesCount(); + /** + * + * + *
+   * Optional.
+   * This filter specifies the exact [company display
+   * name][Company.display_name] of the jobs to search against.
+   * If a value isn't specified, jobs within the search results are
+   * associated with any company.
+   * If multiple values are specified, jobs within the search results may be
+   * associated with any of the specified companies.
+   * At most 20 company display name filters are allowed.
+   * 
+ * + * repeated string company_display_names = 6; + */ + java.lang.String getCompanyDisplayNames(int index); + /** + * + * + *
+   * Optional.
+   * This filter specifies the exact [company display
+   * name][Company.display_name] of the jobs to search against.
+   * If a value isn't specified, jobs within the search results are
+   * associated with any company.
+   * If multiple values are specified, jobs within the search results may be
+   * associated with any of the specified companies.
+   * At most 20 company display name filters are allowed.
+   * 
+ * + * repeated string company_display_names = 6; + */ + com.google.protobuf.ByteString getCompanyDisplayNamesBytes(int index); + + /** + * + * + *
+   * Optional.
+   * This search filter is applied only to
+   * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+   * For example, if the filter is specified as "Hourly job with per-hour
+   * compensation > $15", only jobs meeting these criteria are searched. If a
+   * filter isn't defined, all open jobs are searched.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + boolean hasCompensationFilter(); + /** + * + * + *
+   * Optional.
+   * This search filter is applied only to
+   * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+   * For example, if the filter is specified as "Hourly job with per-hour
+   * compensation > $15", only jobs meeting these criteria are searched. If a
+   * filter isn't defined, all open jobs are searched.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + com.google.cloud.talent.v4beta1.CompensationFilter getCompensationFilter(); + /** + * + * + *
+   * Optional.
+   * This search filter is applied only to
+   * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+   * For example, if the filter is specified as "Hourly job with per-hour
+   * compensation > $15", only jobs meeting these criteria are searched. If a
+   * filter isn't defined, all open jobs are searched.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + com.google.cloud.talent.v4beta1.CompensationFilterOrBuilder getCompensationFilterOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * This filter specifies a structured syntax to match against the
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+   * marked as `filterable`.
+   * The syntax for this expression is a subset of SQL syntax.
+   * Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the
+   * left of the operator is a custom field key and the right of the operator
+   * is a number or a quoted string. You must escape backslash (\\) and
+   * quote (\") characters.
+   * Supported functions are `LOWER([field_name])` to
+   * perform a case insensitive match and `EMPTY([field_name])` to filter on the
+   * existence of a key.
+   * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+   * nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100
+   * comparisons or functions are allowed in the expression. The expression
+   * must be < 3000 bytes in length.
+   * Sample Query:
+   * `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
+   * driving_years > 10`
+   * 
+ * + * string custom_attribute_filter = 8; + */ + java.lang.String getCustomAttributeFilter(); + /** + * + * + *
+   * Optional.
+   * This filter specifies a structured syntax to match against the
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+   * marked as `filterable`.
+   * The syntax for this expression is a subset of SQL syntax.
+   * Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the
+   * left of the operator is a custom field key and the right of the operator
+   * is a number or a quoted string. You must escape backslash (\\) and
+   * quote (\") characters.
+   * Supported functions are `LOWER([field_name])` to
+   * perform a case insensitive match and `EMPTY([field_name])` to filter on the
+   * existence of a key.
+   * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+   * nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100
+   * comparisons or functions are allowed in the expression. The expression
+   * must be < 3000 bytes in length.
+   * Sample Query:
+   * `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
+   * driving_years > 10`
+   * 
+ * + * string custom_attribute_filter = 8; + */ + com.google.protobuf.ByteString getCustomAttributeFilterBytes(); + + /** + * + * + *
+   * Optional.
+   * This flag controls the spell-check feature. If false, the
+   * service attempts to correct a misspelled query,
+   * for example, "enginee" is corrected to "engineer".
+   * Defaults to false: a spell check is performed.
+   * 
+ * + * bool disable_spell_check = 9; + */ + boolean getDisableSpellCheck(); + + /** + * + * + *
+   * Optional.
+   * The employment type filter specifies the employment type of jobs to
+   * search against, such as
+   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+   * If a value isn't specified, jobs in the search results includes any
+   * employment type.
+   * If multiple values are specified, jobs in the search results include
+   * any of the specified employment types.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + java.util.List getEmploymentTypesList(); + /** + * + * + *
+   * Optional.
+   * The employment type filter specifies the employment type of jobs to
+   * search against, such as
+   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+   * If a value isn't specified, jobs in the search results includes any
+   * employment type.
+   * If multiple values are specified, jobs in the search results include
+   * any of the specified employment types.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + int getEmploymentTypesCount(); + /** + * + * + *
+   * Optional.
+   * The employment type filter specifies the employment type of jobs to
+   * search against, such as
+   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+   * If a value isn't specified, jobs in the search results includes any
+   * employment type.
+   * If multiple values are specified, jobs in the search results include
+   * any of the specified employment types.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + com.google.cloud.talent.v4beta1.EmploymentType getEmploymentTypes(int index); + /** + * + * + *
+   * Optional.
+   * The employment type filter specifies the employment type of jobs to
+   * search against, such as
+   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+   * If a value isn't specified, jobs in the search results includes any
+   * employment type.
+   * If multiple values are specified, jobs in the search results include
+   * any of the specified employment types.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + java.util.List getEmploymentTypesValueList(); + /** + * + * + *
+   * Optional.
+   * The employment type filter specifies the employment type of jobs to
+   * search against, such as
+   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+   * If a value isn't specified, jobs in the search results includes any
+   * employment type.
+   * If multiple values are specified, jobs in the search results include
+   * any of the specified employment types.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + int getEmploymentTypesValue(int index); + + /** + * + * + *
+   * Optional.
+   * This filter specifies the locale of jobs to search against,
+   * for example, "en-US".
+   * If a value isn't specified, the search results can contain jobs in any
+   * locale.
+   * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * At most 10 language code filters are allowed.
+   * 
+ * + * repeated string language_codes = 11; + */ + java.util.List getLanguageCodesList(); + /** + * + * + *
+   * Optional.
+   * This filter specifies the locale of jobs to search against,
+   * for example, "en-US".
+   * If a value isn't specified, the search results can contain jobs in any
+   * locale.
+   * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * At most 10 language code filters are allowed.
+   * 
+ * + * repeated string language_codes = 11; + */ + int getLanguageCodesCount(); + /** + * + * + *
+   * Optional.
+   * This filter specifies the locale of jobs to search against,
+   * for example, "en-US".
+   * If a value isn't specified, the search results can contain jobs in any
+   * locale.
+   * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * At most 10 language code filters are allowed.
+   * 
+ * + * repeated string language_codes = 11; + */ + java.lang.String getLanguageCodes(int index); + /** + * + * + *
+   * Optional.
+   * This filter specifies the locale of jobs to search against,
+   * for example, "en-US".
+   * If a value isn't specified, the search results can contain jobs in any
+   * locale.
+   * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * At most 10 language code filters are allowed.
+   * 
+ * + * repeated string language_codes = 11; + */ + com.google.protobuf.ByteString getLanguageCodesBytes(int index); + + /** + * + * + *
+   * Optional.
+   * Jobs published within a range specified by this filter are searched
+   * against.
+   * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + boolean hasPublishTimeRange(); + /** + * + * + *
+   * Optional.
+   * Jobs published within a range specified by this filter are searched
+   * against.
+   * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + com.google.cloud.talent.v4beta1.TimestampRange getPublishTimeRange(); + /** + * + * + *
+   * Optional.
+   * Jobs published within a range specified by this filter are searched
+   * against.
+   * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + com.google.cloud.talent.v4beta1.TimestampRangeOrBuilder getPublishTimeRangeOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * This filter specifies a list of job names to be excluded during search.
+   * At most 200 excluded job names are allowed.
+   * 
+ * + * repeated string excluded_jobs = 13; + */ + java.util.List getExcludedJobsList(); + /** + * + * + *
+   * Optional.
+   * This filter specifies a list of job names to be excluded during search.
+   * At most 200 excluded job names are allowed.
+   * 
+ * + * repeated string excluded_jobs = 13; + */ + int getExcludedJobsCount(); + /** + * + * + *
+   * Optional.
+   * This filter specifies a list of job names to be excluded during search.
+   * At most 200 excluded job names are allowed.
+   * 
+ * + * repeated string excluded_jobs = 13; + */ + java.lang.String getExcludedJobs(int index); + /** + * + * + *
+   * Optional.
+   * This filter specifies a list of job names to be excluded during search.
+   * At most 200 excluded job names are allowed.
+   * 
+ * + * repeated string excluded_jobs = 13; + */ + com.google.protobuf.ByteString getExcludedJobsBytes(int index); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobResourceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobResourceProto.java new file mode 100644 index 000000000000..5c503c1d3997 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobResourceProto.java @@ -0,0 +1,190 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job.proto + +package com.google.cloud.talent.v4beta1; + +public final class JobResourceProto { + private JobResourceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Job_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Job_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Job_ApplicationInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Job_ApplicationInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Job_DerivedInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Job_DerivedInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Job_ProcessingOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Job_ProcessingOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Job_CustomAttributesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Job_CustomAttributesEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n%google/cloud/talent/v4beta1/job.proto\022" + + "\033google.cloud.talent.v4beta1\032\034google/api" + + "/annotations.proto\032(google/cloud/talent/" + + "v4beta1/common.proto\032\037google/protobuf/ti" + + "mestamp.proto\"\254\016\n\003Job\022\014\n\004name\030\001 \001(\t\022\024\n\014c" + + "ompany_name\030\002 \001(\t\022\026\n\016requisition_id\030\003 \001(" + + "\t\022\r\n\005title\030\004 \001(\t\022\023\n\013description\030\005 \001(\t\022\021\n" + + "\taddresses\030\006 \003(\t\022J\n\020application_info\030\007 \001" + + "(\01320.google.cloud.talent.v4beta1.Job.App" + + "licationInfo\022=\n\014job_benefits\030\010 \003(\0162\'.goo" + + "gle.cloud.talent.v4beta1.JobBenefit\022H\n\021c" + + "ompensation_info\030\t \001(\0132-.google.cloud.ta" + + "lent.v4beta1.CompensationInfo\022Q\n\021custom_" + + "attributes\030\n \003(\01326.google.cloud.talent.v" + + "4beta1.Job.CustomAttributesEntry\022=\n\014degr" + + "ee_types\030\013 \003(\0162\'.google.cloud.talent.v4b" + + "eta1.DegreeType\022\022\n\ndepartment\030\014 \001(\t\022E\n\020e" + + "mployment_types\030\r \003(\0162+.google.cloud.tal" + + "ent.v4beta1.EmploymentType\022\022\n\nincentives" + + "\030\016 \001(\t\022\025\n\rlanguage_code\030\017 \001(\t\0228\n\tjob_lev" + + "el\030\020 \001(\0162%.google.cloud.talent.v4beta1.J" + + "obLevel\022\027\n\017promotion_value\030\021 \001(\005\022\026\n\016qual" + + "ifications\030\022 \001(\t\022\030\n\020responsibilities\030\023 \001" + + "(\t\022B\n\016posting_region\030\024 \001(\0162*.google.clou" + + "d.talent.v4beta1.PostingRegion\022;\n\nvisibi" + + "lity\030\025 \001(\0162\'.google.cloud.talent.v4beta1" + + ".Visibility\0222\n\016job_start_time\030\026 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\0220\n\014job_end_time\030" + + "\027 \001(\0132\032.google.protobuf.Timestamp\0228\n\024pos" + + "ting_publish_time\030\030 \001(\0132\032.google.protobu" + + "f.Timestamp\0227\n\023posting_expire_time\030\031 \001(\013" + + "2\032.google.protobuf.Timestamp\0227\n\023posting_" + + "create_time\030\032 \001(\0132\032.google.protobuf.Time" + + "stamp\0227\n\023posting_update_time\030\033 \001(\0132\032.goo" + + "gle.protobuf.Timestamp\022\034\n\024company_displa" + + "y_name\030\034 \001(\t\022B\n\014derived_info\030\035 \001(\0132,.goo" + + "gle.cloud.talent.v4beta1.Job.DerivedInfo" + + "\022N\n\022processing_options\030\036 \001(\01322.google.cl" + + "oud.talent.v4beta1.Job.ProcessingOptions" + + "\032D\n\017ApplicationInfo\022\016\n\006emails\030\001 \003(\t\022\023\n\013i" + + "nstruction\030\002 \001(\t\022\014\n\004uris\030\003 \003(\t\032\211\001\n\013Deriv" + + "edInfo\0228\n\tlocations\030\001 \003(\0132%.google.cloud" + + ".talent.v4beta1.Location\022@\n\016job_categori" + + "es\030\003 \003(\0162(.google.cloud.talent.v4beta1.J" + + "obCategory\032\210\001\n\021ProcessingOptions\022)\n!disa" + + "ble_street_address_resolution\030\001 \001(\010\022H\n\021h" + + "tml_sanitization\030\002 \001(\0162-.google.cloud.ta" + + "lent.v4beta1.HtmlSanitization\032e\n\025CustomA" + + "ttributesEntry\022\013\n\003key\030\001 \001(\t\022;\n\005value\030\002 \001" + + "(\0132,.google.cloud.talent.v4beta1.CustomA" + + "ttribute:\0028\001B~\n\037com.google.cloud.talent." + + "v4beta1B\020JobResourceProtoP\001ZAgoogle.gola" + + "ng.org/genproto/googleapis/cloud/talent/" + + "v4beta1;talent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_Job_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_Job_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Job_descriptor, + new java.lang.String[] { + "Name", + "CompanyName", + "RequisitionId", + "Title", + "Description", + "Addresses", + "ApplicationInfo", + "JobBenefits", + "CompensationInfo", + "CustomAttributes", + "DegreeTypes", + "Department", + "EmploymentTypes", + "Incentives", + "LanguageCode", + "JobLevel", + "PromotionValue", + "Qualifications", + "Responsibilities", + "PostingRegion", + "Visibility", + "JobStartTime", + "JobEndTime", + "PostingPublishTime", + "PostingExpireTime", + "PostingCreateTime", + "PostingUpdateTime", + "CompanyDisplayName", + "DerivedInfo", + "ProcessingOptions", + }); + internal_static_google_cloud_talent_v4beta1_Job_ApplicationInfo_descriptor = + internal_static_google_cloud_talent_v4beta1_Job_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_talent_v4beta1_Job_ApplicationInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Job_ApplicationInfo_descriptor, + new java.lang.String[] { + "Emails", "Instruction", "Uris", + }); + internal_static_google_cloud_talent_v4beta1_Job_DerivedInfo_descriptor = + internal_static_google_cloud_talent_v4beta1_Job_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_talent_v4beta1_Job_DerivedInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Job_DerivedInfo_descriptor, + new java.lang.String[] { + "Locations", "JobCategories", + }); + internal_static_google_cloud_talent_v4beta1_Job_ProcessingOptions_descriptor = + internal_static_google_cloud_talent_v4beta1_Job_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_talent_v4beta1_Job_ProcessingOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Job_ProcessingOptions_descriptor, + new java.lang.String[] { + "DisableStreetAddressResolution", "HtmlSanitization", + }); + internal_static_google_cloud_talent_v4beta1_Job_CustomAttributesEntry_descriptor = + internal_static_google_cloud_talent_v4beta1_Job_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_talent_v4beta1_Job_CustomAttributesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Job_CustomAttributesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobServiceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobServiceProto.java new file mode 100644 index 000000000000..73488e373bf5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobServiceProto.java @@ -0,0 +1,353 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +public final class JobServiceProto { + private JobServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CreateJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CreateJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_GetJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_GetJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_UpdateJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_UpdateJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_DeleteJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_DeleteJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_BatchDeleteJobsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_BatchDeleteJobsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ListJobsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ListJobsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ListJobsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ListJobsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_CustomRankingInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_CustomRankingInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_MatchingJob_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_MatchingJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_CommuteInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_CommuteInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n-google/cloud/talent/v4beta1/job_servic" + + "e.proto\022\033google.cloud.talent.v4beta1\032\034go" + + "ogle/api/annotations.proto\032\'google/cloud" + + "/talent/v4beta1/batch.proto\032(google/clou" + + "d/talent/v4beta1/common.proto\032)google/cl" + + "oud/talent/v4beta1/filters.proto\032+google" + + "/cloud/talent/v4beta1/histogram.proto\032%g" + + "oogle/cloud/talent/v4beta1/job.proto\032#go" + + "ogle/longrunning/operations.proto\032\036googl" + + "e/protobuf/duration.proto\032\033google/protob" + + "uf/empty.proto\032 google/protobuf/field_ma" + + "sk.proto\"Q\n\020CreateJobRequest\022\016\n\006parent\030\001" + + " \001(\t\022-\n\003job\030\002 \001(\0132 .google.cloud.talent." + + "v4beta1.Job\"\035\n\rGetJobRequest\022\014\n\004name\030\001 \001" + + "(\t\"r\n\020UpdateJobRequest\022-\n\003job\030\001 \001(\0132 .go" + + "ogle.cloud.talent.v4beta1.Job\022/\n\013update_" + + "mask\030\002 \001(\0132\032.google.protobuf.FieldMask\" " + + "\n\020DeleteJobRequest\022\014\n\004name\030\001 \001(\t\"8\n\026Batc" + + "hDeleteJobsRequest\022\016\n\006parent\030\001 \001(\t\022\016\n\006fi" + + "lter\030\002 \001(\t\"\220\001\n\017ListJobsRequest\022\016\n\006parent" + + "\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\022\n\npage_token\030\003 \001" + + "(\t\022\021\n\tpage_size\030\004 \001(\005\0226\n\010job_view\030\005 \001(\0162" + + "$.google.cloud.talent.v4beta1.JobView\"\234\001" + + "\n\020ListJobsResponse\022.\n\004jobs\030\001 \003(\0132 .googl" + + "e.cloud.talent.v4beta1.Job\022\027\n\017next_page_" + + "token\030\002 \001(\t\022?\n\010metadata\030\003 \001(\0132-.google.c" + + "loud.talent.v4beta1.ResponseMetadata\"\240\t\n" + + "\021SearchJobsRequest\022\016\n\006parent\030\001 \001(\t\022N\n\013se" + + "arch_mode\030\002 \001(\01629.google.cloud.talent.v4" + + "beta1.SearchJobsRequest.SearchMode\022F\n\020re" + + "quest_metadata\030\003 \001(\0132,.google.cloud.tale" + + "nt.v4beta1.RequestMetadata\0228\n\tjob_query\030" + + "\004 \001(\0132%.google.cloud.talent.v4beta1.JobQ" + + "uery\022\031\n\021enable_broadening\030\005 \001(\010\022#\n\033requi" + + "re_precise_result_size\030\006 \001(\010\022F\n\021histogra" + + "m_queries\030\007 \003(\0132+.google.cloud.talent.v4" + + "beta1.HistogramQuery\0226\n\010job_view\030\010 \001(\0162$" + + ".google.cloud.talent.v4beta1.JobView\022\016\n\006" + + "offset\030\t \001(\005\022\021\n\tpage_size\030\n \001(\005\022\022\n\npage_" + + "token\030\013 \001(\t\022\020\n\010order_by\030\014 \001(\t\022b\n\025diversi" + + "fication_level\030\r \001(\0162C.google.cloud.tale" + + "nt.v4beta1.SearchJobsRequest.Diversifica" + + "tionLevel\022]\n\023custom_ranking_info\030\016 \001(\0132@" + + ".google.cloud.talent.v4beta1.SearchJobsR" + + "equest.CustomRankingInfo\022\035\n\025disable_keyw" + + "ord_match\030\020 \001(\010\032\220\002\n\021CustomRankingInfo\022j\n" + + "\020importance_level\030\001 \001(\0162P.google.cloud.t" + + "alent.v4beta1.SearchJobsRequest.CustomRa" + + "nkingInfo.ImportanceLevel\022\032\n\022ranking_exp" + + "ression\030\002 \001(\t\"s\n\017ImportanceLevel\022 \n\034IMPO" + + "RTANCE_LEVEL_UNSPECIFIED\020\000\022\010\n\004NONE\020\001\022\007\n\003" + + "LOW\020\002\022\010\n\004MILD\020\003\022\n\n\006MEDIUM\020\004\022\010\n\004HIGH\020\005\022\013\n" + + "\007EXTREME\020\006\"R\n\nSearchMode\022\033\n\027SEARCH_MODE_" + + "UNSPECIFIED\020\000\022\016\n\nJOB_SEARCH\020\001\022\027\n\023FEATURE" + + "D_JOB_SEARCH\020\002\"W\n\024DiversificationLevel\022%" + + "\n!DIVERSIFICATION_LEVEL_UNSPECIFIED\020\000\022\014\n" + + "\010DISABLED\020\001\022\n\n\006SIMPLE\020\002\"\327\006\n\022SearchJobsRe" + + "sponse\022R\n\rmatching_jobs\030\001 \003(\0132;.google.c" + + "loud.talent.v4beta1.SearchJobsResponse.M" + + "atchingJob\022R\n\027histogram_query_results\030\002 " + + "\003(\01321.google.cloud.talent.v4beta1.Histog" + + "ramQueryResult\022\027\n\017next_page_token\030\003 \001(\t\022" + + "?\n\020location_filters\030\004 \003(\0132%.google.cloud" + + ".talent.v4beta1.Location\022\034\n\024estimated_to" + + "tal_size\030\005 \001(\005\022\022\n\ntotal_size\030\006 \001(\005\022?\n\010me" + + "tadata\030\007 \001(\0132-.google.cloud.talent.v4bet" + + "a1.ResponseMetadata\022\"\n\032broadened_query_j" + + "obs_count\030\010 \001(\005\022I\n\020spell_correction\030\t \001(" + + "\0132/.google.cloud.talent.v4beta1.Spelling" + + "Correction\032\334\001\n\013MatchingJob\022-\n\003job\030\001 \001(\0132" + + " .google.cloud.talent.v4beta1.Job\022\023\n\013job" + + "_summary\030\002 \001(\t\022\031\n\021job_title_snippet\030\003 \001(" + + "\t\022\033\n\023search_text_snippet\030\004 \001(\t\022Q\n\014commut" + + "e_info\030\005 \001(\0132;.google.cloud.talent.v4bet" + + "a1.SearchJobsResponse.CommuteInfo\032~\n\013Com" + + "muteInfo\022;\n\014job_location\030\001 \001(\0132%.google." + + "cloud.talent.v4beta1.Location\0222\n\017travel_" + + "duration\030\002 \001(\0132\031.google.protobuf.Duratio" + + "n*v\n\007JobView\022\030\n\024JOB_VIEW_UNSPECIFIED\020\000\022\024" + + "\n\020JOB_VIEW_ID_ONLY\020\001\022\024\n\020JOB_VIEW_MINIMAL" + + "\020\002\022\022\n\016JOB_VIEW_SMALL\020\003\022\021\n\rJOB_VIEW_FULL\020" + + "\0042\267\t\n\nJobService\022\212\001\n\tCreateJob\022-.google." + + "cloud.talent.v4beta1.CreateJobRequest\032 ." + + "google.cloud.talent.v4beta1.Job\",\202\323\344\223\002&\"" + + "!/v4beta1/{parent=projects/*}/jobs:\001*\022\201\001" + + "\n\006GetJob\022*.google.cloud.talent.v4beta1.G" + + "etJobRequest\032 .google.cloud.talent.v4bet" + + "a1.Job\")\202\323\344\223\002#\022!/v4beta1/{name=projects/" + + "*/jobs/*}\022\216\001\n\tUpdateJob\022-.google.cloud.t" + + "alent.v4beta1.UpdateJobRequest\032 .google." + + "cloud.talent.v4beta1.Job\"0\202\323\344\223\002*2%/v4bet" + + "a1/{job.name=projects/*/jobs/*}:\001*\022}\n\tDe" + + "leteJob\022-.google.cloud.talent.v4beta1.De" + + "leteJobRequest\032\026.google.protobuf.Empty\")" + + "\202\323\344\223\002#*!/v4beta1/{name=projects/*/jobs/*" + + "}\022\222\001\n\010ListJobs\022,.google.cloud.talent.v4b" + + "eta1.ListJobsRequest\032-.google.cloud.tale" + + "nt.v4beta1.ListJobsResponse\")\202\323\344\223\002#\022!/v4" + + "beta1/{parent=projects/*}/jobs\022\230\001\n\017Batch" + + "DeleteJobs\0223.google.cloud.talent.v4beta1" + + ".BatchDeleteJobsRequest\032\026.google.protobu" + + "f.Empty\"8\202\323\344\223\0022\"-/v4beta1/{parent=projec" + + "ts/*}/jobs:batchDelete:\001*\022\242\001\n\nSearchJobs" + + "\022..google.cloud.talent.v4beta1.SearchJob" + + "sRequest\032/.google.cloud.talent.v4beta1.S" + + "earchJobsResponse\"3\202\323\344\223\002-\"(/v4beta1/{par" + + "ent=projects/*}/jobs:search:\001*\022\262\001\n\022Searc" + + "hJobsForAlert\022..google.cloud.talent.v4be" + + "ta1.SearchJobsRequest\032/.google.cloud.tal" + + "ent.v4beta1.SearchJobsResponse\";\202\323\344\223\0025\"0" + + "/v4beta1/{parent=projects/*}/jobs:search" + + "ForAlert:\001*B}\n\037com.google.cloud.talent.v" + + "4beta1B\017JobServiceProtoP\001ZAgoogle.golang" + + ".org/genproto/googleapis/cloud/talent/v4" + + "beta1;talent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.BatchProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), + com.google.cloud.talent.v4beta1.FiltersProto.getDescriptor(), + com.google.cloud.talent.v4beta1.HistogramProto.getDescriptor(), + com.google.cloud.talent.v4beta1.JobResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_CreateJobRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_CreateJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CreateJobRequest_descriptor, + new java.lang.String[] { + "Parent", "Job", + }); + internal_static_google_cloud_talent_v4beta1_GetJobRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_talent_v4beta1_GetJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_GetJobRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_talent_v4beta1_UpdateJobRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_talent_v4beta1_UpdateJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_UpdateJobRequest_descriptor, + new java.lang.String[] { + "Job", "UpdateMask", + }); + internal_static_google_cloud_talent_v4beta1_DeleteJobRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_talent_v4beta1_DeleteJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_DeleteJobRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_talent_v4beta1_BatchDeleteJobsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_talent_v4beta1_BatchDeleteJobsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_BatchDeleteJobsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", + }); + internal_static_google_cloud_talent_v4beta1_ListJobsRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_talent_v4beta1_ListJobsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ListJobsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageToken", "PageSize", "JobView", + }); + internal_static_google_cloud_talent_v4beta1_ListJobsResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_talent_v4beta1_ListJobsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ListJobsResponse_descriptor, + new java.lang.String[] { + "Jobs", "NextPageToken", "Metadata", + }); + internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_descriptor, + new java.lang.String[] { + "Parent", + "SearchMode", + "RequestMetadata", + "JobQuery", + "EnableBroadening", + "RequirePreciseResultSize", + "HistogramQueries", + "JobView", + "Offset", + "PageSize", + "PageToken", + "OrderBy", + "DiversificationLevel", + "CustomRankingInfo", + "DisableKeywordMatch", + }); + internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_CustomRankingInfo_descriptor = + internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_CustomRankingInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_CustomRankingInfo_descriptor, + new java.lang.String[] { + "ImportanceLevel", "RankingExpression", + }); + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_descriptor, + new java.lang.String[] { + "MatchingJobs", + "HistogramQueryResults", + "NextPageToken", + "LocationFilters", + "EstimatedTotalSize", + "TotalSize", + "Metadata", + "BroadenedQueryJobsCount", + "SpellCorrection", + }); + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_MatchingJob_descriptor = + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_MatchingJob_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_MatchingJob_descriptor, + new java.lang.String[] { + "Job", "JobSummary", "JobTitleSnippet", "SearchTextSnippet", "CommuteInfo", + }); + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_CommuteInfo_descriptor = + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_CommuteInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_CommuteInfo_descriptor, + new java.lang.String[] { + "JobLocation", "TravelDuration", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.BatchProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); + com.google.cloud.talent.v4beta1.FiltersProto.getDescriptor(); + com.google.cloud.talent.v4beta1.HistogramProto.getDescriptor(); + com.google.cloud.talent.v4beta1.JobResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobTitleFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobTitleFilter.java new file mode 100644 index 000000000000..e40192c690d7 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobTitleFilter.java @@ -0,0 +1,694 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Job title of the search.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.JobTitleFilter} + */ +public final class JobTitleFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.JobTitleFilter) + JobTitleFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use JobTitleFilter.newBuilder() to construct. + private JobTitleFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private JobTitleFilter() { + jobTitle_ = ""; + negated_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private JobTitleFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobTitle_ = s; + break; + } + case 16: + { + negated_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_JobTitleFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_JobTitleFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.JobTitleFilter.class, + com.google.cloud.talent.v4beta1.JobTitleFilter.Builder.class); + } + + public static final int JOB_TITLE_FIELD_NUMBER = 1; + private volatile java.lang.Object jobTitle_; + /** + * + * + *
+   * Required.
+   * The job title, for example, "Software engineer", or "Product manager".
+   * 
+ * + * string job_title = 1; + */ + public java.lang.String getJobTitle() { + java.lang.Object ref = jobTitle_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobTitle_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The job title, for example, "Software engineer", or "Product manager".
+   * 
+ * + * string job_title = 1; + */ + public com.google.protobuf.ByteString getJobTitleBytes() { + java.lang.Object ref = jobTitle_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitle_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEGATED_FIELD_NUMBER = 2; + private boolean negated_; + /** + * + * + *
+   * Optional.
+   * Whether to apply negation to the filter so profiles matching the filter
+   * are excluded.
+   * 
+ * + * bool negated = 2; + */ + public boolean getNegated() { + return negated_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getJobTitleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, jobTitle_); + } + if (negated_ != false) { + output.writeBool(2, negated_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getJobTitleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, jobTitle_); + } + if (negated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, negated_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.JobTitleFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.JobTitleFilter other = + (com.google.cloud.talent.v4beta1.JobTitleFilter) obj; + + boolean result = true; + result = result && getJobTitle().equals(other.getJobTitle()); + result = result && (getNegated() == other.getNegated()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + JOB_TITLE_FIELD_NUMBER; + hash = (53 * hash) + getJobTitle().hashCode(); + hash = (37 * hash) + NEGATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.JobTitleFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Job title of the search.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.JobTitleFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.JobTitleFilter) + com.google.cloud.talent.v4beta1.JobTitleFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_JobTitleFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_JobTitleFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.JobTitleFilter.class, + com.google.cloud.talent.v4beta1.JobTitleFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.JobTitleFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + jobTitle_ = ""; + + negated_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_JobTitleFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobTitleFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.JobTitleFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobTitleFilter build() { + com.google.cloud.talent.v4beta1.JobTitleFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobTitleFilter buildPartial() { + com.google.cloud.talent.v4beta1.JobTitleFilter result = + new com.google.cloud.talent.v4beta1.JobTitleFilter(this); + result.jobTitle_ = jobTitle_; + result.negated_ = negated_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.JobTitleFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.JobTitleFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.JobTitleFilter other) { + if (other == com.google.cloud.talent.v4beta1.JobTitleFilter.getDefaultInstance()) return this; + if (!other.getJobTitle().isEmpty()) { + jobTitle_ = other.jobTitle_; + onChanged(); + } + if (other.getNegated() != false) { + setNegated(other.getNegated()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.JobTitleFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.JobTitleFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object jobTitle_ = ""; + /** + * + * + *
+     * Required.
+     * The job title, for example, "Software engineer", or "Product manager".
+     * 
+ * + * string job_title = 1; + */ + public java.lang.String getJobTitle() { + java.lang.Object ref = jobTitle_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobTitle_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The job title, for example, "Software engineer", or "Product manager".
+     * 
+ * + * string job_title = 1; + */ + public com.google.protobuf.ByteString getJobTitleBytes() { + java.lang.Object ref = jobTitle_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitle_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The job title, for example, "Software engineer", or "Product manager".
+     * 
+ * + * string job_title = 1; + */ + public Builder setJobTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobTitle_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The job title, for example, "Software engineer", or "Product manager".
+     * 
+ * + * string job_title = 1; + */ + public Builder clearJobTitle() { + + jobTitle_ = getDefaultInstance().getJobTitle(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The job title, for example, "Software engineer", or "Product manager".
+     * 
+ * + * string job_title = 1; + */ + public Builder setJobTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobTitle_ = value; + onChanged(); + return this; + } + + private boolean negated_; + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * are excluded.
+     * 
+ * + * bool negated = 2; + */ + public boolean getNegated() { + return negated_; + } + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * are excluded.
+     * 
+ * + * bool negated = 2; + */ + public Builder setNegated(boolean value) { + + negated_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * are excluded.
+     * 
+ * + * bool negated = 2; + */ + public Builder clearNegated() { + + negated_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.JobTitleFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.JobTitleFilter) + private static final com.google.cloud.talent.v4beta1.JobTitleFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.JobTitleFilter(); + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JobTitleFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new JobTitleFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobTitleFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobTitleFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobTitleFilterOrBuilder.java new file mode 100644 index 000000000000..a3623d46cc5c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobTitleFilterOrBuilder.java @@ -0,0 +1,46 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface JobTitleFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.JobTitleFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The job title, for example, "Software engineer", or "Product manager".
+   * 
+ * + * string job_title = 1; + */ + java.lang.String getJobTitle(); + /** + * + * + *
+   * Required.
+   * The job title, for example, "Software engineer", or "Product manager".
+   * 
+ * + * string job_title = 1; + */ + com.google.protobuf.ByteString getJobTitleBytes(); + + /** + * + * + *
+   * Optional.
+   * Whether to apply negation to the filter so profiles matching the filter
+   * are excluded.
+   * 
+ * + * bool negated = 2; + */ + boolean getNegated(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobView.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobView.java new file mode 100644 index 000000000000..b5f0cb13fd5b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobView.java @@ -0,0 +1,231 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * An enum that specifies the job attributes that are returned in the
+ * [MatchingJob.Job][] in
+ * [SearchJobsResponse][google.cloud.talent.v4beta1.SearchJobsResponse] or
+ * [Job][google.cloud.talent.v4beta1.Job] objects in
+ * [ListJobsResponse][google.cloud.talent.v4beta1.ListJobsResponse].
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.JobView} + */ +public enum JobView implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value.
+   * 
+ * + * JOB_VIEW_UNSPECIFIED = 0; + */ + JOB_VIEW_UNSPECIFIED(0), + /** + * + * + *
+   * A ID only view of job, with following attributes:
+   * [Job.name][google.cloud.talent.v4beta1.Job.name],
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code].
+   * 
+ * + * JOB_VIEW_ID_ONLY = 1; + */ + JOB_VIEW_ID_ONLY(1), + /** + * + * + *
+   * A minimal view of the job, with the following attributes:
+   * [Job.name][google.cloud.talent.v4beta1.Job.name],
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.job_title][],
+   * [Job.company_name][google.cloud.talent.v4beta1.Job.company_name],
+   * [Job.DerivedInfo.locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations],
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code].
+   * 
+ * + * JOB_VIEW_MINIMAL = 2; + */ + JOB_VIEW_MINIMAL(2), + /** + * + * + *
+   * A small view of the job, with the following attributes in the search
+   * results: [Job.name][google.cloud.talent.v4beta1.Job.name],
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.job_title][],
+   * [Job.company_name][google.cloud.talent.v4beta1.Job.company_name],
+   * [Job.DerivedInfo.locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations],
+   * [Job.visibility][google.cloud.talent.v4beta1.Job.visibility],
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code],
+   * [Job.description][google.cloud.talent.v4beta1.Job.description].
+   * 
+ * + * JOB_VIEW_SMALL = 3; + */ + JOB_VIEW_SMALL(3), + /** + * + * + *
+   * All available attributes are included in the search results.
+   * 
+ * + * JOB_VIEW_FULL = 4; + */ + JOB_VIEW_FULL(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value.
+   * 
+ * + * JOB_VIEW_UNSPECIFIED = 0; + */ + public static final int JOB_VIEW_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * A ID only view of job, with following attributes:
+   * [Job.name][google.cloud.talent.v4beta1.Job.name],
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code].
+   * 
+ * + * JOB_VIEW_ID_ONLY = 1; + */ + public static final int JOB_VIEW_ID_ONLY_VALUE = 1; + /** + * + * + *
+   * A minimal view of the job, with the following attributes:
+   * [Job.name][google.cloud.talent.v4beta1.Job.name],
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.job_title][],
+   * [Job.company_name][google.cloud.talent.v4beta1.Job.company_name],
+   * [Job.DerivedInfo.locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations],
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code].
+   * 
+ * + * JOB_VIEW_MINIMAL = 2; + */ + public static final int JOB_VIEW_MINIMAL_VALUE = 2; + /** + * + * + *
+   * A small view of the job, with the following attributes in the search
+   * results: [Job.name][google.cloud.talent.v4beta1.Job.name],
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.job_title][],
+   * [Job.company_name][google.cloud.talent.v4beta1.Job.company_name],
+   * [Job.DerivedInfo.locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations],
+   * [Job.visibility][google.cloud.talent.v4beta1.Job.visibility],
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code],
+   * [Job.description][google.cloud.talent.v4beta1.Job.description].
+   * 
+ * + * JOB_VIEW_SMALL = 3; + */ + public static final int JOB_VIEW_SMALL_VALUE = 3; + /** + * + * + *
+   * All available attributes are included in the search results.
+   * 
+ * + * JOB_VIEW_FULL = 4; + */ + public static final int JOB_VIEW_FULL_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static JobView valueOf(int value) { + return forNumber(value); + } + + public static JobView forNumber(int value) { + switch (value) { + case 0: + return JOB_VIEW_UNSPECIFIED; + case 1: + return JOB_VIEW_ID_ONLY; + case 2: + return JOB_VIEW_MINIMAL; + case 3: + return JOB_VIEW_SMALL; + case 4: + return JOB_VIEW_FULL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public JobView findValueByNumber(int number) { + return JobView.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto.getDescriptor().getEnumTypes().get(0); + } + + private static final JobView[] VALUES = values(); + + public static JobView valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private JobView(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.JobView) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesRequest.java new file mode 100644 index 000000000000..0e2d9968fd23 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesRequest.java @@ -0,0 +1,976 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * List companies for which the client has ACL visibility.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListCompaniesRequest} + */ +public final class ListCompaniesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ListCompaniesRequest) + ListCompaniesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCompaniesRequest.newBuilder() to construct. + private ListCompaniesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCompaniesRequest() { + parent_ = ""; + pageToken_ = ""; + pageSize_ = 0; + requireOpenJobs_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListCompaniesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 32: + { + requireOpenJobs_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_ListCompaniesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_ListCompaniesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListCompaniesRequest.class, + com.google.cloud.talent.v4beta1.ListCompaniesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the company is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the company is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * Optional.
+   * The starting indicator from which to return results.
+   * 
+ * + * string page_token = 2; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The starting indicator from which to return results.
+   * 
+ * + * string page_token = 2; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_; + /** + * + * + *
+   * Optional.
+   * The maximum number of companies to be returned, at most 100.
+   * Default is 100 if a non-positive number is provided.
+   * 
+ * + * int32 page_size = 3; + */ + public int getPageSize() { + return pageSize_; + } + + public static final int REQUIRE_OPEN_JOBS_FIELD_NUMBER = 4; + private boolean requireOpenJobs_; + /** + * + * + *
+   * Optional.
+   * Set to true if the companies requested must have open jobs.
+   * Defaults to false.
+   * If true, at most
+   * [page_size][google.cloud.talent.v4beta1.ListCompaniesRequest.page_size] of
+   * companies are fetched, among which only those with open jobs are returned.
+   * 
+ * + * bool require_open_jobs = 4; + */ + public boolean getRequireOpenJobs() { + return requireOpenJobs_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (requireOpenJobs_ != false) { + output.writeBool(4, requireOpenJobs_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (requireOpenJobs_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, requireOpenJobs_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ListCompaniesRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ListCompaniesRequest other = + (com.google.cloud.talent.v4beta1.ListCompaniesRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && getPageToken().equals(other.getPageToken()); + result = result && (getPageSize() == other.getPageSize()); + result = result && (getRequireOpenJobs() == other.getRequireOpenJobs()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + REQUIRE_OPEN_JOBS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequireOpenJobs()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.ListCompaniesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * List companies for which the client has ACL visibility.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListCompaniesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ListCompaniesRequest) + com.google.cloud.talent.v4beta1.ListCompaniesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_ListCompaniesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_ListCompaniesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListCompaniesRequest.class, + com.google.cloud.talent.v4beta1.ListCompaniesRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ListCompaniesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageToken_ = ""; + + pageSize_ = 0; + + requireOpenJobs_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_ListCompaniesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListCompaniesRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ListCompaniesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListCompaniesRequest build() { + com.google.cloud.talent.v4beta1.ListCompaniesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListCompaniesRequest buildPartial() { + com.google.cloud.talent.v4beta1.ListCompaniesRequest result = + new com.google.cloud.talent.v4beta1.ListCompaniesRequest(this); + result.parent_ = parent_; + result.pageToken_ = pageToken_; + result.pageSize_ = pageSize_; + result.requireOpenJobs_ = requireOpenJobs_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ListCompaniesRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.ListCompaniesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ListCompaniesRequest other) { + if (other == com.google.cloud.talent.v4beta1.ListCompaniesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (other.getRequireOpenJobs() != false) { + setRequireOpenJobs(other.getRequireOpenJobs()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ListCompaniesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ListCompaniesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the company is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the company is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the company is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the company is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the company is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional.
+     * The maximum number of companies to be returned, at most 100.
+     * Default is 100 if a non-positive number is provided.
+     * 
+ * + * int32 page_size = 3; + */ + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional.
+     * The maximum number of companies to be returned, at most 100.
+     * Default is 100 if a non-positive number is provided.
+     * 
+ * + * int32 page_size = 3; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The maximum number of companies to be returned, at most 100.
+     * Default is 100 if a non-positive number is provided.
+     * 
+ * + * int32 page_size = 3; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private boolean requireOpenJobs_; + /** + * + * + *
+     * Optional.
+     * Set to true if the companies requested must have open jobs.
+     * Defaults to false.
+     * If true, at most
+     * [page_size][google.cloud.talent.v4beta1.ListCompaniesRequest.page_size] of
+     * companies are fetched, among which only those with open jobs are returned.
+     * 
+ * + * bool require_open_jobs = 4; + */ + public boolean getRequireOpenJobs() { + return requireOpenJobs_; + } + /** + * + * + *
+     * Optional.
+     * Set to true if the companies requested must have open jobs.
+     * Defaults to false.
+     * If true, at most
+     * [page_size][google.cloud.talent.v4beta1.ListCompaniesRequest.page_size] of
+     * companies are fetched, among which only those with open jobs are returned.
+     * 
+ * + * bool require_open_jobs = 4; + */ + public Builder setRequireOpenJobs(boolean value) { + + requireOpenJobs_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Set to true if the companies requested must have open jobs.
+     * Defaults to false.
+     * If true, at most
+     * [page_size][google.cloud.talent.v4beta1.ListCompaniesRequest.page_size] of
+     * companies are fetched, among which only those with open jobs are returned.
+     * 
+ * + * bool require_open_jobs = 4; + */ + public Builder clearRequireOpenJobs() { + + requireOpenJobs_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ListCompaniesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListCompaniesRequest) + private static final com.google.cloud.talent.v4beta1.ListCompaniesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ListCompaniesRequest(); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCompaniesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCompaniesRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListCompaniesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesRequestOrBuilder.java new file mode 100644 index 000000000000..7392d93df2f5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesRequestOrBuilder.java @@ -0,0 +1,89 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface ListCompaniesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ListCompaniesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the company is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the company is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional.
+   * The starting indicator from which to return results.
+   * 
+ * + * string page_token = 2; + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional.
+   * The starting indicator from which to return results.
+   * 
+ * + * string page_token = 2; + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional.
+   * The maximum number of companies to be returned, at most 100.
+   * Default is 100 if a non-positive number is provided.
+   * 
+ * + * int32 page_size = 3; + */ + int getPageSize(); + + /** + * + * + *
+   * Optional.
+   * Set to true if the companies requested must have open jobs.
+   * Defaults to false.
+   * If true, at most
+   * [page_size][google.cloud.talent.v4beta1.ListCompaniesRequest.page_size] of
+   * companies are fetched, among which only those with open jobs are returned.
+   * 
+ * + * bool require_open_jobs = 4; + */ + boolean getRequireOpenJobs(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesResponse.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesResponse.java new file mode 100644 index 000000000000..8c2317acf46e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesResponse.java @@ -0,0 +1,1373 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Output only.
+ * The List companies response object.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListCompaniesResponse} + */ +public final class ListCompaniesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ListCompaniesResponse) + ListCompaniesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCompaniesResponse.newBuilder() to construct. + private ListCompaniesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCompaniesResponse() { + companies_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListCompaniesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + companies_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + companies_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Company.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 26: + { + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = + input.readMessage( + com.google.cloud.talent.v4beta1.ResponseMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + companies_ = java.util.Collections.unmodifiableList(companies_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_ListCompaniesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_ListCompaniesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListCompaniesResponse.class, + com.google.cloud.talent.v4beta1.ListCompaniesResponse.Builder.class); + } + + private int bitField0_; + public static final int COMPANIES_FIELD_NUMBER = 1; + private java.util.List companies_; + /** + * + * + *
+   * Companies for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public java.util.List getCompaniesList() { + return companies_; + } + /** + * + * + *
+   * Companies for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public java.util.List + getCompaniesOrBuilderList() { + return companies_; + } + /** + * + * + *
+   * Companies for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public int getCompaniesCount() { + return companies_.size(); + } + /** + * + * + *
+   * Companies for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public com.google.cloud.talent.v4beta1.Company getCompanies(int index) { + return companies_.get(index); + } + /** + * + * + *
+   * Companies for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public com.google.cloud.talent.v4beta1.CompanyOrBuilder getCompaniesOrBuilder(int index) { + return companies_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 3; + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_; + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < companies_.size(); i++) { + output.writeMessage(1, companies_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (metadata_ != null) { + output.writeMessage(3, getMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < companies_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, companies_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ListCompaniesResponse)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ListCompaniesResponse other = + (com.google.cloud.talent.v4beta1.ListCompaniesResponse) obj; + + boolean result = true; + result = result && getCompaniesList().equals(other.getCompaniesList()); + result = result && getNextPageToken().equals(other.getNextPageToken()); + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata().equals(other.getMetadata()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCompaniesCount() > 0) { + hash = (37 * hash) + COMPANIES_FIELD_NUMBER; + hash = (53 * hash) + getCompaniesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.ListCompaniesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Output only.
+   * The List companies response object.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListCompaniesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ListCompaniesResponse) + com.google.cloud.talent.v4beta1.ListCompaniesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_ListCompaniesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_ListCompaniesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListCompaniesResponse.class, + com.google.cloud.talent.v4beta1.ListCompaniesResponse.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ListCompaniesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCompaniesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (companiesBuilder_ == null) { + companies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + companiesBuilder_.clear(); + } + nextPageToken_ = ""; + + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_ListCompaniesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListCompaniesResponse getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ListCompaniesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListCompaniesResponse build() { + com.google.cloud.talent.v4beta1.ListCompaniesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListCompaniesResponse buildPartial() { + com.google.cloud.talent.v4beta1.ListCompaniesResponse result = + new com.google.cloud.talent.v4beta1.ListCompaniesResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (companiesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + companies_ = java.util.Collections.unmodifiableList(companies_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.companies_ = companies_; + } else { + result.companies_ = companiesBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ListCompaniesResponse) { + return mergeFrom((com.google.cloud.talent.v4beta1.ListCompaniesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ListCompaniesResponse other) { + if (other == com.google.cloud.talent.v4beta1.ListCompaniesResponse.getDefaultInstance()) + return this; + if (companiesBuilder_ == null) { + if (!other.companies_.isEmpty()) { + if (companies_.isEmpty()) { + companies_ = other.companies_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCompaniesIsMutable(); + companies_.addAll(other.companies_); + } + onChanged(); + } + } else { + if (!other.companies_.isEmpty()) { + if (companiesBuilder_.isEmpty()) { + companiesBuilder_.dispose(); + companiesBuilder_ = null; + companies_ = other.companies_; + bitField0_ = (bitField0_ & ~0x00000001); + companiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCompaniesFieldBuilder() + : null; + } else { + companiesBuilder_.addAllMessages(other.companies_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ListCompaniesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ListCompaniesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List companies_ = + java.util.Collections.emptyList(); + + private void ensureCompaniesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + companies_ = new java.util.ArrayList(companies_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company, + com.google.cloud.talent.v4beta1.Company.Builder, + com.google.cloud.talent.v4beta1.CompanyOrBuilder> + companiesBuilder_; + + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public java.util.List getCompaniesList() { + if (companiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(companies_); + } else { + return companiesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public int getCompaniesCount() { + if (companiesBuilder_ == null) { + return companies_.size(); + } else { + return companiesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public com.google.cloud.talent.v4beta1.Company getCompanies(int index) { + if (companiesBuilder_ == null) { + return companies_.get(index); + } else { + return companiesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public Builder setCompanies(int index, com.google.cloud.talent.v4beta1.Company value) { + if (companiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompaniesIsMutable(); + companies_.set(index, value); + onChanged(); + } else { + companiesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public Builder setCompanies( + int index, com.google.cloud.talent.v4beta1.Company.Builder builderForValue) { + if (companiesBuilder_ == null) { + ensureCompaniesIsMutable(); + companies_.set(index, builderForValue.build()); + onChanged(); + } else { + companiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public Builder addCompanies(com.google.cloud.talent.v4beta1.Company value) { + if (companiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompaniesIsMutable(); + companies_.add(value); + onChanged(); + } else { + companiesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public Builder addCompanies(int index, com.google.cloud.talent.v4beta1.Company value) { + if (companiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompaniesIsMutable(); + companies_.add(index, value); + onChanged(); + } else { + companiesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public Builder addCompanies(com.google.cloud.talent.v4beta1.Company.Builder builderForValue) { + if (companiesBuilder_ == null) { + ensureCompaniesIsMutable(); + companies_.add(builderForValue.build()); + onChanged(); + } else { + companiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public Builder addCompanies( + int index, com.google.cloud.talent.v4beta1.Company.Builder builderForValue) { + if (companiesBuilder_ == null) { + ensureCompaniesIsMutable(); + companies_.add(index, builderForValue.build()); + onChanged(); + } else { + companiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public Builder addAllCompanies( + java.lang.Iterable values) { + if (companiesBuilder_ == null) { + ensureCompaniesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, companies_); + onChanged(); + } else { + companiesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public Builder clearCompanies() { + if (companiesBuilder_ == null) { + companies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + companiesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public Builder removeCompanies(int index) { + if (companiesBuilder_ == null) { + ensureCompaniesIsMutable(); + companies_.remove(index); + onChanged(); + } else { + companiesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public com.google.cloud.talent.v4beta1.Company.Builder getCompaniesBuilder(int index) { + return getCompaniesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public com.google.cloud.talent.v4beta1.CompanyOrBuilder getCompaniesOrBuilder(int index) { + if (companiesBuilder_ == null) { + return companies_.get(index); + } else { + return companiesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public java.util.List + getCompaniesOrBuilderList() { + if (companiesBuilder_ != null) { + return companiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(companies_); + } + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public com.google.cloud.talent.v4beta1.Company.Builder addCompaniesBuilder() { + return getCompaniesFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Company.getDefaultInstance()); + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public com.google.cloud.talent.v4beta1.Company.Builder addCompaniesBuilder(int index) { + return getCompaniesFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Company.getDefaultInstance()); + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public java.util.List + getCompaniesBuilderList() { + return getCompaniesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company, + com.google.cloud.talent.v4beta1.Company.Builder, + com.google.cloud.talent.v4beta1.CompanyOrBuilder> + getCompaniesFieldBuilder() { + if (companiesBuilder_ == null) { + companiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company, + com.google.cloud.talent.v4beta1.Company.Builder, + com.google.cloud.talent.v4beta1.CompanyOrBuilder>( + companies_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + companies_ = null; + } + return companiesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + metadataBuilder_; + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder setMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder setMetadata( + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder mergeMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.cloud.talent.v4beta1.ResponseMetadata.newBuilder(metadata_) + .mergeFrom(value) + .buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ListCompaniesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListCompaniesResponse) + private static final com.google.cloud.talent.v4beta1.ListCompaniesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ListCompaniesResponse(); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCompaniesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCompaniesResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListCompaniesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesResponseOrBuilder.java new file mode 100644 index 000000000000..526e9a65eca3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesResponseOrBuilder.java @@ -0,0 +1,117 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface ListCompaniesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ListCompaniesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Companies for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + java.util.List getCompaniesList(); + /** + * + * + *
+   * Companies for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + com.google.cloud.talent.v4beta1.Company getCompanies(int index); + /** + * + * + *
+   * Companies for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + int getCompaniesCount(); + /** + * + * + *
+   * Companies for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + java.util.List + getCompaniesOrBuilderList(); + /** + * + * + *
+   * Companies for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + com.google.cloud.talent.v4beta1.CompanyOrBuilder getCompaniesOrBuilder(int index); + + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + boolean hasMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequest.java new file mode 100644 index 000000000000..13c2012aa246 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequest.java @@ -0,0 +1,1306 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * List jobs request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListJobsRequest} + */ +public final class ListJobsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ListJobsRequest) + ListJobsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListJobsRequest.newBuilder() to construct. + private ListJobsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListJobsRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + pageSize_ = 0; + jobView_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListJobsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 32: + { + pageSize_ = input.readInt32(); + break; + } + case 40: + { + int rawValue = input.readEnum(); + + jobView_ = rawValue; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_ListJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_ListJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListJobsRequest.class, + com.google.cloud.talent.v4beta1.ListJobsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * Required.
+   * The filter string specifies the jobs to be enumerated.
+   * Supported operator: =, AND
+   * The fields eligible for filtering are:
+   * * `companyName` (Required)
+   * * `requisitionId` (Optional)
+   * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to
+   * OPEN if no value is specified.
+   * Sample Query:
+   * * companyName = "projects/api-test-project/companies/123"
+   * * companyName = "projects/api-test-project/companies/123" AND requisitionId
+   * = "req-1"
+   * * companyName = "projects/api-test-project/companies/123" AND status =
+   * "EXPIRED"
+   * 
+ * + * string filter = 2; + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The filter string specifies the jobs to be enumerated.
+   * Supported operator: =, AND
+   * The fields eligible for filtering are:
+   * * `companyName` (Required)
+   * * `requisitionId` (Optional)
+   * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to
+   * OPEN if no value is specified.
+   * Sample Query:
+   * * companyName = "projects/api-test-project/companies/123"
+   * * companyName = "projects/api-test-project/companies/123" AND requisitionId
+   * = "req-1"
+   * * companyName = "projects/api-test-project/companies/123" AND status =
+   * "EXPIRED"
+   * 
+ * + * string filter = 2; + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * Optional.
+   * The starting point of a query result.
+   * 
+ * + * string page_token = 3; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The starting point of a query result.
+   * 
+ * + * string page_token = 3; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 4; + private int pageSize_; + /** + * + * + *
+   * Optional.
+   * The maximum number of jobs to be returned per page of results.
+   * If [job_view][google.cloud.talent.v4beta1.ListJobsRequest.job_view] is set
+   * to
+   * [JobView.JOB_VIEW_ID_ONLY][google.cloud.talent.v4beta1.JobView.JOB_VIEW_ID_ONLY],
+   * the maximum allowed page size is 1000. Otherwise, the maximum allowed page
+   * size is 100.
+   * Default is 100 if empty or a number < 1 is specified.
+   * 
+ * + * int32 page_size = 4; + */ + public int getPageSize() { + return pageSize_; + } + + public static final int JOB_VIEW_FIELD_NUMBER = 5; + private int jobView_; + /** + * + * + *
+   * Optional.
+   * The desired job attributes returned for jobs in the
+   * search response. Defaults to
+   * [JobView.JOB_VIEW_FULL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL]
+   * if no value is specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 5; + */ + public int getJobViewValue() { + return jobView_; + } + /** + * + * + *
+   * Optional.
+   * The desired job attributes returned for jobs in the
+   * search response. Defaults to
+   * [JobView.JOB_VIEW_FULL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL]
+   * if no value is specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 5; + */ + public com.google.cloud.talent.v4beta1.JobView getJobView() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobView result = + com.google.cloud.talent.v4beta1.JobView.valueOf(jobView_); + return result == null ? com.google.cloud.talent.v4beta1.JobView.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!getFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (pageSize_ != 0) { + output.writeInt32(4, pageSize_); + } + if (jobView_ != com.google.cloud.talent.v4beta1.JobView.JOB_VIEW_UNSPECIFIED.getNumber()) { + output.writeEnum(5, jobView_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!getFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + } + if (jobView_ != com.google.cloud.talent.v4beta1.JobView.JOB_VIEW_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, jobView_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ListJobsRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ListJobsRequest other = + (com.google.cloud.talent.v4beta1.ListJobsRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && getFilter().equals(other.getFilter()); + result = result && getPageToken().equals(other.getPageToken()); + result = result && (getPageSize() == other.getPageSize()); + result = result && jobView_ == other.jobView_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + JOB_VIEW_FIELD_NUMBER; + hash = (53 * hash) + jobView_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.ListJobsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * List jobs request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListJobsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ListJobsRequest) + com.google.cloud.talent.v4beta1.ListJobsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_ListJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_ListJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListJobsRequest.class, + com.google.cloud.talent.v4beta1.ListJobsRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ListJobsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + filter_ = ""; + + pageToken_ = ""; + + pageSize_ = 0; + + jobView_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_ListJobsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListJobsRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ListJobsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListJobsRequest build() { + com.google.cloud.talent.v4beta1.ListJobsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListJobsRequest buildPartial() { + com.google.cloud.talent.v4beta1.ListJobsRequest result = + new com.google.cloud.talent.v4beta1.ListJobsRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + result.pageToken_ = pageToken_; + result.pageSize_ = pageSize_; + result.jobView_ = jobView_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ListJobsRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.ListJobsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ListJobsRequest other) { + if (other == com.google.cloud.talent.v4beta1.ListJobsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (other.jobView_ != 0) { + setJobViewValue(other.getJobViewValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ListJobsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.ListJobsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Required.
+     * The filter string specifies the jobs to be enumerated.
+     * Supported operator: =, AND
+     * The fields eligible for filtering are:
+     * * `companyName` (Required)
+     * * `requisitionId` (Optional)
+     * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to
+     * OPEN if no value is specified.
+     * Sample Query:
+     * * companyName = "projects/api-test-project/companies/123"
+     * * companyName = "projects/api-test-project/companies/123" AND requisitionId
+     * = "req-1"
+     * * companyName = "projects/api-test-project/companies/123" AND status =
+     * "EXPIRED"
+     * 
+ * + * string filter = 2; + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The filter string specifies the jobs to be enumerated.
+     * Supported operator: =, AND
+     * The fields eligible for filtering are:
+     * * `companyName` (Required)
+     * * `requisitionId` (Optional)
+     * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to
+     * OPEN if no value is specified.
+     * Sample Query:
+     * * companyName = "projects/api-test-project/companies/123"
+     * * companyName = "projects/api-test-project/companies/123" AND requisitionId
+     * = "req-1"
+     * * companyName = "projects/api-test-project/companies/123" AND status =
+     * "EXPIRED"
+     * 
+ * + * string filter = 2; + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The filter string specifies the jobs to be enumerated.
+     * Supported operator: =, AND
+     * The fields eligible for filtering are:
+     * * `companyName` (Required)
+     * * `requisitionId` (Optional)
+     * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to
+     * OPEN if no value is specified.
+     * Sample Query:
+     * * companyName = "projects/api-test-project/companies/123"
+     * * companyName = "projects/api-test-project/companies/123" AND requisitionId
+     * = "req-1"
+     * * companyName = "projects/api-test-project/companies/123" AND status =
+     * "EXPIRED"
+     * 
+ * + * string filter = 2; + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The filter string specifies the jobs to be enumerated.
+     * Supported operator: =, AND
+     * The fields eligible for filtering are:
+     * * `companyName` (Required)
+     * * `requisitionId` (Optional)
+     * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to
+     * OPEN if no value is specified.
+     * Sample Query:
+     * * companyName = "projects/api-test-project/companies/123"
+     * * companyName = "projects/api-test-project/companies/123" AND requisitionId
+     * = "req-1"
+     * * companyName = "projects/api-test-project/companies/123" AND status =
+     * "EXPIRED"
+     * 
+ * + * string filter = 2; + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The filter string specifies the jobs to be enumerated.
+     * Supported operator: =, AND
+     * The fields eligible for filtering are:
+     * * `companyName` (Required)
+     * * `requisitionId` (Optional)
+     * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to
+     * OPEN if no value is specified.
+     * Sample Query:
+     * * companyName = "projects/api-test-project/companies/123"
+     * * companyName = "projects/api-test-project/companies/123" AND requisitionId
+     * = "req-1"
+     * * companyName = "projects/api-test-project/companies/123" AND status =
+     * "EXPIRED"
+     * 
+ * + * string filter = 2; + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional.
+     * The starting point of a query result.
+     * 
+ * + * string page_token = 3; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The starting point of a query result.
+     * 
+ * + * string page_token = 3; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The starting point of a query result.
+     * 
+ * + * string page_token = 3; + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The starting point of a query result.
+     * 
+ * + * string page_token = 3; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The starting point of a query result.
+     * 
+ * + * string page_token = 3; + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional.
+     * The maximum number of jobs to be returned per page of results.
+     * If [job_view][google.cloud.talent.v4beta1.ListJobsRequest.job_view] is set
+     * to
+     * [JobView.JOB_VIEW_ID_ONLY][google.cloud.talent.v4beta1.JobView.JOB_VIEW_ID_ONLY],
+     * the maximum allowed page size is 1000. Otherwise, the maximum allowed page
+     * size is 100.
+     * Default is 100 if empty or a number < 1 is specified.
+     * 
+ * + * int32 page_size = 4; + */ + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional.
+     * The maximum number of jobs to be returned per page of results.
+     * If [job_view][google.cloud.talent.v4beta1.ListJobsRequest.job_view] is set
+     * to
+     * [JobView.JOB_VIEW_ID_ONLY][google.cloud.talent.v4beta1.JobView.JOB_VIEW_ID_ONLY],
+     * the maximum allowed page size is 1000. Otherwise, the maximum allowed page
+     * size is 100.
+     * Default is 100 if empty or a number < 1 is specified.
+     * 
+ * + * int32 page_size = 4; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The maximum number of jobs to be returned per page of results.
+     * If [job_view][google.cloud.talent.v4beta1.ListJobsRequest.job_view] is set
+     * to
+     * [JobView.JOB_VIEW_ID_ONLY][google.cloud.talent.v4beta1.JobView.JOB_VIEW_ID_ONLY],
+     * the maximum allowed page size is 1000. Otherwise, the maximum allowed page
+     * size is 100.
+     * Default is 100 if empty or a number < 1 is specified.
+     * 
+ * + * int32 page_size = 4; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private int jobView_ = 0; + /** + * + * + *
+     * Optional.
+     * The desired job attributes returned for jobs in the
+     * search response. Defaults to
+     * [JobView.JOB_VIEW_FULL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL]
+     * if no value is specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 5; + */ + public int getJobViewValue() { + return jobView_; + } + /** + * + * + *
+     * Optional.
+     * The desired job attributes returned for jobs in the
+     * search response. Defaults to
+     * [JobView.JOB_VIEW_FULL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL]
+     * if no value is specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 5; + */ + public Builder setJobViewValue(int value) { + jobView_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The desired job attributes returned for jobs in the
+     * search response. Defaults to
+     * [JobView.JOB_VIEW_FULL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL]
+     * if no value is specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 5; + */ + public com.google.cloud.talent.v4beta1.JobView getJobView() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobView result = + com.google.cloud.talent.v4beta1.JobView.valueOf(jobView_); + return result == null ? com.google.cloud.talent.v4beta1.JobView.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional.
+     * The desired job attributes returned for jobs in the
+     * search response. Defaults to
+     * [JobView.JOB_VIEW_FULL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL]
+     * if no value is specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 5; + */ + public Builder setJobView(com.google.cloud.talent.v4beta1.JobView value) { + if (value == null) { + throw new NullPointerException(); + } + + jobView_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The desired job attributes returned for jobs in the
+     * search response. Defaults to
+     * [JobView.JOB_VIEW_FULL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL]
+     * if no value is specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 5; + */ + public Builder clearJobView() { + + jobView_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ListJobsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListJobsRequest) + private static final com.google.cloud.talent.v4beta1.ListJobsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ListJobsRequest(); + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListJobsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListJobsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListJobsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequestOrBuilder.java new file mode 100644 index 000000000000..7b6046a8dc03 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequestOrBuilder.java @@ -0,0 +1,154 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface ListJobsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ListJobsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required.
+   * The filter string specifies the jobs to be enumerated.
+   * Supported operator: =, AND
+   * The fields eligible for filtering are:
+   * * `companyName` (Required)
+   * * `requisitionId` (Optional)
+   * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to
+   * OPEN if no value is specified.
+   * Sample Query:
+   * * companyName = "projects/api-test-project/companies/123"
+   * * companyName = "projects/api-test-project/companies/123" AND requisitionId
+   * = "req-1"
+   * * companyName = "projects/api-test-project/companies/123" AND status =
+   * "EXPIRED"
+   * 
+ * + * string filter = 2; + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Required.
+   * The filter string specifies the jobs to be enumerated.
+   * Supported operator: =, AND
+   * The fields eligible for filtering are:
+   * * `companyName` (Required)
+   * * `requisitionId` (Optional)
+   * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to
+   * OPEN if no value is specified.
+   * Sample Query:
+   * * companyName = "projects/api-test-project/companies/123"
+   * * companyName = "projects/api-test-project/companies/123" AND requisitionId
+   * = "req-1"
+   * * companyName = "projects/api-test-project/companies/123" AND status =
+   * "EXPIRED"
+   * 
+ * + * string filter = 2; + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional.
+   * The starting point of a query result.
+   * 
+ * + * string page_token = 3; + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional.
+   * The starting point of a query result.
+   * 
+ * + * string page_token = 3; + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional.
+   * The maximum number of jobs to be returned per page of results.
+   * If [job_view][google.cloud.talent.v4beta1.ListJobsRequest.job_view] is set
+   * to
+   * [JobView.JOB_VIEW_ID_ONLY][google.cloud.talent.v4beta1.JobView.JOB_VIEW_ID_ONLY],
+   * the maximum allowed page size is 1000. Otherwise, the maximum allowed page
+   * size is 100.
+   * Default is 100 if empty or a number < 1 is specified.
+   * 
+ * + * int32 page_size = 4; + */ + int getPageSize(); + + /** + * + * + *
+   * Optional.
+   * The desired job attributes returned for jobs in the
+   * search response. Defaults to
+   * [JobView.JOB_VIEW_FULL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL]
+   * if no value is specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 5; + */ + int getJobViewValue(); + /** + * + * + *
+   * Optional.
+   * The desired job attributes returned for jobs in the
+   * search response. Defaults to
+   * [JobView.JOB_VIEW_FULL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL]
+   * if no value is specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 5; + */ + com.google.cloud.talent.v4beta1.JobView getJobView(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsResponse.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsResponse.java new file mode 100644 index 000000000000..bb07334aab85 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsResponse.java @@ -0,0 +1,1414 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Output only.
+ * List jobs response.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListJobsResponse} + */ +public final class ListJobsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ListJobsResponse) + ListJobsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListJobsResponse.newBuilder() to construct. + private ListJobsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListJobsResponse() { + jobs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListJobsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + jobs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + jobs_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Job.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 26: + { + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = + input.readMessage( + com.google.cloud.talent.v4beta1.ResponseMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + jobs_ = java.util.Collections.unmodifiableList(jobs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_ListJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_ListJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListJobsResponse.class, + com.google.cloud.talent.v4beta1.ListJobsResponse.Builder.class); + } + + private int bitField0_; + public static final int JOBS_FIELD_NUMBER = 1; + private java.util.List jobs_; + /** + * + * + *
+   * The Jobs for a given company.
+   * The maximum number of items returned is based on the limit field
+   * provided in the request.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public java.util.List getJobsList() { + return jobs_; + } + /** + * + * + *
+   * The Jobs for a given company.
+   * The maximum number of items returned is based on the limit field
+   * provided in the request.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public java.util.List + getJobsOrBuilderList() { + return jobs_; + } + /** + * + * + *
+   * The Jobs for a given company.
+   * The maximum number of items returned is based on the limit field
+   * provided in the request.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public int getJobsCount() { + return jobs_.size(); + } + /** + * + * + *
+   * The Jobs for a given company.
+   * The maximum number of items returned is based on the limit field
+   * provided in the request.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public com.google.cloud.talent.v4beta1.Job getJobs(int index) { + return jobs_.get(index); + } + /** + * + * + *
+   * The Jobs for a given company.
+   * The maximum number of items returned is based on the limit field
+   * provided in the request.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public com.google.cloud.talent.v4beta1.JobOrBuilder getJobsOrBuilder(int index) { + return jobs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 3; + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_; + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < jobs_.size(); i++) { + output.writeMessage(1, jobs_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (metadata_ != null) { + output.writeMessage(3, getMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < jobs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, jobs_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ListJobsResponse)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ListJobsResponse other = + (com.google.cloud.talent.v4beta1.ListJobsResponse) obj; + + boolean result = true; + result = result && getJobsList().equals(other.getJobsList()); + result = result && getNextPageToken().equals(other.getNextPageToken()); + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata().equals(other.getMetadata()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getJobsCount() > 0) { + hash = (37 * hash) + JOBS_FIELD_NUMBER; + hash = (53 * hash) + getJobsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.ListJobsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Output only.
+   * List jobs response.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListJobsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ListJobsResponse) + com.google.cloud.talent.v4beta1.ListJobsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_ListJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_ListJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListJobsResponse.class, + com.google.cloud.talent.v4beta1.ListJobsResponse.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ListJobsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getJobsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (jobsBuilder_ == null) { + jobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + jobsBuilder_.clear(); + } + nextPageToken_ = ""; + + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_ListJobsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListJobsResponse getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ListJobsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListJobsResponse build() { + com.google.cloud.talent.v4beta1.ListJobsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListJobsResponse buildPartial() { + com.google.cloud.talent.v4beta1.ListJobsResponse result = + new com.google.cloud.talent.v4beta1.ListJobsResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (jobsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + jobs_ = java.util.Collections.unmodifiableList(jobs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.jobs_ = jobs_; + } else { + result.jobs_ = jobsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ListJobsResponse) { + return mergeFrom((com.google.cloud.talent.v4beta1.ListJobsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ListJobsResponse other) { + if (other == com.google.cloud.talent.v4beta1.ListJobsResponse.getDefaultInstance()) + return this; + if (jobsBuilder_ == null) { + if (!other.jobs_.isEmpty()) { + if (jobs_.isEmpty()) { + jobs_ = other.jobs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureJobsIsMutable(); + jobs_.addAll(other.jobs_); + } + onChanged(); + } + } else { + if (!other.jobs_.isEmpty()) { + if (jobsBuilder_.isEmpty()) { + jobsBuilder_.dispose(); + jobsBuilder_ = null; + jobs_ = other.jobs_; + bitField0_ = (bitField0_ & ~0x00000001); + jobsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getJobsFieldBuilder() + : null; + } else { + jobsBuilder_.addAllMessages(other.jobs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ListJobsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.ListJobsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List jobs_ = + java.util.Collections.emptyList(); + + private void ensureJobsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + jobs_ = new java.util.ArrayList(jobs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder> + jobsBuilder_; + + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public java.util.List getJobsList() { + if (jobsBuilder_ == null) { + return java.util.Collections.unmodifiableList(jobs_); + } else { + return jobsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public int getJobsCount() { + if (jobsBuilder_ == null) { + return jobs_.size(); + } else { + return jobsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public com.google.cloud.talent.v4beta1.Job getJobs(int index) { + if (jobsBuilder_ == null) { + return jobs_.get(index); + } else { + return jobsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public Builder setJobs(int index, com.google.cloud.talent.v4beta1.Job value) { + if (jobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobsIsMutable(); + jobs_.set(index, value); + onChanged(); + } else { + jobsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public Builder setJobs(int index, com.google.cloud.talent.v4beta1.Job.Builder builderForValue) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.set(index, builderForValue.build()); + onChanged(); + } else { + jobsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public Builder addJobs(com.google.cloud.talent.v4beta1.Job value) { + if (jobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobsIsMutable(); + jobs_.add(value); + onChanged(); + } else { + jobsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public Builder addJobs(int index, com.google.cloud.talent.v4beta1.Job value) { + if (jobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobsIsMutable(); + jobs_.add(index, value); + onChanged(); + } else { + jobsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public Builder addJobs(com.google.cloud.talent.v4beta1.Job.Builder builderForValue) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.add(builderForValue.build()); + onChanged(); + } else { + jobsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public Builder addJobs(int index, com.google.cloud.talent.v4beta1.Job.Builder builderForValue) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.add(index, builderForValue.build()); + onChanged(); + } else { + jobsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public Builder addAllJobs( + java.lang.Iterable values) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jobs_); + onChanged(); + } else { + jobsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public Builder clearJobs() { + if (jobsBuilder_ == null) { + jobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + jobsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public Builder removeJobs(int index) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.remove(index); + onChanged(); + } else { + jobsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public com.google.cloud.talent.v4beta1.Job.Builder getJobsBuilder(int index) { + return getJobsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public com.google.cloud.talent.v4beta1.JobOrBuilder getJobsOrBuilder(int index) { + if (jobsBuilder_ == null) { + return jobs_.get(index); + } else { + return jobsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public java.util.List + getJobsOrBuilderList() { + if (jobsBuilder_ != null) { + return jobsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(jobs_); + } + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public com.google.cloud.talent.v4beta1.Job.Builder addJobsBuilder() { + return getJobsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Job.getDefaultInstance()); + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public com.google.cloud.talent.v4beta1.Job.Builder addJobsBuilder(int index) { + return getJobsFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Job.getDefaultInstance()); + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public java.util.List getJobsBuilderList() { + return getJobsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder> + getJobsFieldBuilder() { + if (jobsBuilder_ == null) { + jobsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder>( + jobs_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + jobs_ = null; + } + return jobsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + metadataBuilder_; + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder setMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder setMetadata( + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder mergeMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.cloud.talent.v4beta1.ResponseMetadata.newBuilder(metadata_) + .mergeFrom(value) + .buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ListJobsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListJobsResponse) + private static final com.google.cloud.talent.v4beta1.ListJobsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ListJobsResponse(); + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListJobsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListJobsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListJobsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsResponseOrBuilder.java new file mode 100644 index 000000000000..94d9909647ac --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsResponseOrBuilder.java @@ -0,0 +1,126 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface ListJobsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ListJobsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Jobs for a given company.
+   * The maximum number of items returned is based on the limit field
+   * provided in the request.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + java.util.List getJobsList(); + /** + * + * + *
+   * The Jobs for a given company.
+   * The maximum number of items returned is based on the limit field
+   * provided in the request.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + com.google.cloud.talent.v4beta1.Job getJobs(int index); + /** + * + * + *
+   * The Jobs for a given company.
+   * The maximum number of items returned is based on the limit field
+   * provided in the request.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + int getJobsCount(); + /** + * + * + *
+   * The Jobs for a given company.
+   * The maximum number of items returned is based on the limit field
+   * provided in the request.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + java.util.List getJobsOrBuilderList(); + /** + * + * + *
+   * The Jobs for a given company.
+   * The maximum number of items returned is based on the limit field
+   * provided in the request.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + com.google.cloud.talent.v4beta1.JobOrBuilder getJobsOrBuilder(int index); + + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + boolean hasMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequest.java new file mode 100644 index 000000000000..a9393cd5c846 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequest.java @@ -0,0 +1,1202 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * List profiles request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListProfilesRequest} + */ +public final class ListProfilesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ListProfilesRequest) + ListProfilesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListProfilesRequest.newBuilder() to construct. + private ListProfilesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListProfilesRequest() { + parent_ = ""; + pageToken_ = ""; + pageSize_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListProfilesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 34: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (fieldMask_ != null) { + subBuilder = fieldMask_.toBuilder(); + } + fieldMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fieldMask_); + fieldMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListProfilesRequest.class, + com.google.cloud.talent.v4beta1.ListProfilesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * The resource name of the tenant under which the job is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the tenant under which the job is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * Optional.
+   * The token that specifies the current offset (that is, starting result).
+   * Please set the value to
+   * [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token]
+   * to continue the list.
+   * 
+ * + * string page_token = 2; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The token that specifies the current offset (that is, starting result).
+   * Please set the value to
+   * [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token]
+   * to continue the list.
+   * 
+ * + * string page_token = 2; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_; + /** + * + * + *
+   * Optional.
+   * The maximum number of profiles to be returned, at most 100.
+   * Default is 100 unless a positive number smaller than 100 is specified.
+   * 
+ * + * int32 page_size = 3; + */ + public int getPageSize() { + return pageSize_; + } + + public static final int FIELD_MASK_FIELD_NUMBER = 4; + private com.google.protobuf.FieldMask fieldMask_; + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to be listed in response.
+   * All fields are listed if it is unset.
+   * Valid values are:
+   * * name
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + public boolean hasFieldMask() { + return fieldMask_ != null; + } + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to be listed in response.
+   * All fields are listed if it is unset.
+   * Valid values are:
+   * * name
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + public com.google.protobuf.FieldMask getFieldMask() { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to be listed in response.
+   * All fields are listed if it is unset.
+   * Valid values are:
+   * * name
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { + return getFieldMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (fieldMask_ != null) { + output.writeMessage(4, getFieldMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (fieldMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getFieldMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ListProfilesRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ListProfilesRequest other = + (com.google.cloud.talent.v4beta1.ListProfilesRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && getPageToken().equals(other.getPageToken()); + result = result && (getPageSize() == other.getPageSize()); + result = result && (hasFieldMask() == other.hasFieldMask()); + if (hasFieldMask()) { + result = result && getFieldMask().equals(other.getFieldMask()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + if (hasFieldMask()) { + hash = (37 * hash) + FIELD_MASK_FIELD_NUMBER; + hash = (53 * hash) + getFieldMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.ListProfilesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * List profiles request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListProfilesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ListProfilesRequest) + com.google.cloud.talent.v4beta1.ListProfilesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListProfilesRequest.class, + com.google.cloud.talent.v4beta1.ListProfilesRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ListProfilesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageToken_ = ""; + + pageSize_ = 0; + + if (fieldMaskBuilder_ == null) { + fieldMask_ = null; + } else { + fieldMask_ = null; + fieldMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListProfilesRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ListProfilesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListProfilesRequest build() { + com.google.cloud.talent.v4beta1.ListProfilesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListProfilesRequest buildPartial() { + com.google.cloud.talent.v4beta1.ListProfilesRequest result = + new com.google.cloud.talent.v4beta1.ListProfilesRequest(this); + result.parent_ = parent_; + result.pageToken_ = pageToken_; + result.pageSize_ = pageSize_; + if (fieldMaskBuilder_ == null) { + result.fieldMask_ = fieldMask_; + } else { + result.fieldMask_ = fieldMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ListProfilesRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.ListProfilesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ListProfilesRequest other) { + if (other == com.google.cloud.talent.v4beta1.ListProfilesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (other.hasFieldMask()) { + mergeFieldMask(other.getFieldMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ListProfilesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ListProfilesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the tenant under which the job is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant under which the job is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant under which the job is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant under which the job is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant under which the job is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional.
+     * The token that specifies the current offset (that is, starting result).
+     * Please set the value to
+     * [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token]
+     * to continue the list.
+     * 
+ * + * string page_token = 2; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The token that specifies the current offset (that is, starting result).
+     * Please set the value to
+     * [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token]
+     * to continue the list.
+     * 
+ * + * string page_token = 2; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The token that specifies the current offset (that is, starting result).
+     * Please set the value to
+     * [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token]
+     * to continue the list.
+     * 
+ * + * string page_token = 2; + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The token that specifies the current offset (that is, starting result).
+     * Please set the value to
+     * [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token]
+     * to continue the list.
+     * 
+ * + * string page_token = 2; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The token that specifies the current offset (that is, starting result).
+     * Please set the value to
+     * [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token]
+     * to continue the list.
+     * 
+ * + * string page_token = 2; + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional.
+     * The maximum number of profiles to be returned, at most 100.
+     * Default is 100 unless a positive number smaller than 100 is specified.
+     * 
+ * + * int32 page_size = 3; + */ + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional.
+     * The maximum number of profiles to be returned, at most 100.
+     * Default is 100 unless a positive number smaller than 100 is specified.
+     * 
+ * + * int32 page_size = 3; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The maximum number of profiles to be returned, at most 100.
+     * Default is 100 unless a positive number smaller than 100 is specified.
+     * 
+ * + * int32 page_size = 3; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.FieldMask fieldMask_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + fieldMaskBuilder_; + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to be listed in response.
+     * All fields are listed if it is unset.
+     * Valid values are:
+     * * name
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + public boolean hasFieldMask() { + return fieldMaskBuilder_ != null || fieldMask_ != null; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to be listed in response.
+     * All fields are listed if it is unset.
+     * Valid values are:
+     * * name
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + public com.google.protobuf.FieldMask getFieldMask() { + if (fieldMaskBuilder_ == null) { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } else { + return fieldMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to be listed in response.
+     * All fields are listed if it is unset.
+     * Valid values are:
+     * * name
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + public Builder setFieldMask(com.google.protobuf.FieldMask value) { + if (fieldMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fieldMask_ = value; + onChanged(); + } else { + fieldMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to be listed in response.
+     * All fields are listed if it is unset.
+     * Valid values are:
+     * * name
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (fieldMaskBuilder_ == null) { + fieldMask_ = builderForValue.build(); + onChanged(); + } else { + fieldMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to be listed in response.
+     * All fields are listed if it is unset.
+     * Valid values are:
+     * * name
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { + if (fieldMaskBuilder_ == null) { + if (fieldMask_ != null) { + fieldMask_ = + com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); + } else { + fieldMask_ = value; + } + onChanged(); + } else { + fieldMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to be listed in response.
+     * All fields are listed if it is unset.
+     * Valid values are:
+     * * name
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + public Builder clearFieldMask() { + if (fieldMaskBuilder_ == null) { + fieldMask_ = null; + onChanged(); + } else { + fieldMask_ = null; + fieldMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to be listed in response.
+     * All fields are listed if it is unset.
+     * Valid values are:
+     * * name
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { + + onChanged(); + return getFieldMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to be listed in response.
+     * All fields are listed if it is unset.
+     * Valid values are:
+     * * name
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { + if (fieldMaskBuilder_ != null) { + return fieldMaskBuilder_.getMessageOrBuilder(); + } else { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to be listed in response.
+     * All fields are listed if it is unset.
+     * Valid values are:
+     * * name
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getFieldMaskFieldBuilder() { + if (fieldMaskBuilder_ == null) { + fieldMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getFieldMask(), getParentForChildren(), isClean()); + fieldMask_ = null; + } + return fieldMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ListProfilesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListProfilesRequest) + private static final com.google.cloud.talent.v4beta1.ListProfilesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ListProfilesRequest(); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProfilesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProfilesRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListProfilesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequestOrBuilder.java new file mode 100644 index 000000000000..7cbb0c4929f1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequestOrBuilder.java @@ -0,0 +1,122 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface ListProfilesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ListProfilesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the tenant under which the job is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * The resource name of the tenant under which the job is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional.
+   * The token that specifies the current offset (that is, starting result).
+   * Please set the value to
+   * [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token]
+   * to continue the list.
+   * 
+ * + * string page_token = 2; + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional.
+   * The token that specifies the current offset (that is, starting result).
+   * Please set the value to
+   * [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token]
+   * to continue the list.
+   * 
+ * + * string page_token = 2; + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional.
+   * The maximum number of profiles to be returned, at most 100.
+   * Default is 100 unless a positive number smaller than 100 is specified.
+   * 
+ * + * int32 page_size = 3; + */ + int getPageSize(); + + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to be listed in response.
+   * All fields are listed if it is unset.
+   * Valid values are:
+   * * name
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + boolean hasFieldMask(); + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to be listed in response.
+   * All fields are listed if it is unset.
+   * Valid values are:
+   * * name
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + com.google.protobuf.FieldMask getFieldMask(); + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to be listed in response.
+   * All fields are listed if it is unset.
+   * Valid values are:
+   * * name
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesResponse.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesResponse.java new file mode 100644 index 000000000000..b523fd92215a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesResponse.java @@ -0,0 +1,1098 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * The List profiles response object.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListProfilesResponse} + */ +public final class ListProfilesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ListProfilesResponse) + ListProfilesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListProfilesResponse.newBuilder() to construct. + private ListProfilesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListProfilesResponse() { + profiles_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListProfilesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + profiles_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + profiles_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Profile.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + profiles_ = java.util.Collections.unmodifiableList(profiles_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListProfilesResponse.class, + com.google.cloud.talent.v4beta1.ListProfilesResponse.Builder.class); + } + + private int bitField0_; + public static final int PROFILES_FIELD_NUMBER = 1; + private java.util.List profiles_; + /** + * + * + *
+   * Profiles for the specific tenant.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public java.util.List getProfilesList() { + return profiles_; + } + /** + * + * + *
+   * Profiles for the specific tenant.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public java.util.List + getProfilesOrBuilderList() { + return profiles_; + } + /** + * + * + *
+   * Profiles for the specific tenant.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public int getProfilesCount() { + return profiles_.size(); + } + /** + * + * + *
+   * Profiles for the specific tenant.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.Profile getProfiles(int index) { + return profiles_.get(index); + } + /** + * + * + *
+   * Profiles for the specific tenant.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfilesOrBuilder(int index) { + return profiles_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token to retrieve the next page of results. This is empty if there are no
+   * more results.
+   * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token to retrieve the next page of results. This is empty if there are no
+   * more results.
+   * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < profiles_.size(); i++) { + output.writeMessage(1, profiles_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < profiles_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, profiles_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ListProfilesResponse)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ListProfilesResponse other = + (com.google.cloud.talent.v4beta1.ListProfilesResponse) obj; + + boolean result = true; + result = result && getProfilesList().equals(other.getProfilesList()); + result = result && getNextPageToken().equals(other.getNextPageToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getProfilesCount() > 0) { + hash = (37 * hash) + PROFILES_FIELD_NUMBER; + hash = (53 * hash) + getProfilesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.ListProfilesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The List profiles response object.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListProfilesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ListProfilesResponse) + com.google.cloud.talent.v4beta1.ListProfilesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListProfilesResponse.class, + com.google.cloud.talent.v4beta1.ListProfilesResponse.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ListProfilesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getProfilesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (profilesBuilder_ == null) { + profiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + profilesBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListProfilesResponse getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ListProfilesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListProfilesResponse build() { + com.google.cloud.talent.v4beta1.ListProfilesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListProfilesResponse buildPartial() { + com.google.cloud.talent.v4beta1.ListProfilesResponse result = + new com.google.cloud.talent.v4beta1.ListProfilesResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (profilesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + profiles_ = java.util.Collections.unmodifiableList(profiles_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.profiles_ = profiles_; + } else { + result.profiles_ = profilesBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ListProfilesResponse) { + return mergeFrom((com.google.cloud.talent.v4beta1.ListProfilesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ListProfilesResponse other) { + if (other == com.google.cloud.talent.v4beta1.ListProfilesResponse.getDefaultInstance()) + return this; + if (profilesBuilder_ == null) { + if (!other.profiles_.isEmpty()) { + if (profiles_.isEmpty()) { + profiles_ = other.profiles_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureProfilesIsMutable(); + profiles_.addAll(other.profiles_); + } + onChanged(); + } + } else { + if (!other.profiles_.isEmpty()) { + if (profilesBuilder_.isEmpty()) { + profilesBuilder_.dispose(); + profilesBuilder_ = null; + profiles_ = other.profiles_; + bitField0_ = (bitField0_ & ~0x00000001); + profilesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getProfilesFieldBuilder() + : null; + } else { + profilesBuilder_.addAllMessages(other.profiles_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ListProfilesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ListProfilesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List profiles_ = + java.util.Collections.emptyList(); + + private void ensureProfilesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + profiles_ = new java.util.ArrayList(profiles_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + profilesBuilder_; + + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public java.util.List getProfilesList() { + if (profilesBuilder_ == null) { + return java.util.Collections.unmodifiableList(profiles_); + } else { + return profilesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public int getProfilesCount() { + if (profilesBuilder_ == null) { + return profiles_.size(); + } else { + return profilesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.Profile getProfiles(int index) { + if (profilesBuilder_ == null) { + return profiles_.get(index); + } else { + return profilesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder setProfiles(int index, com.google.cloud.talent.v4beta1.Profile value) { + if (profilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProfilesIsMutable(); + profiles_.set(index, value); + onChanged(); + } else { + profilesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder setProfiles( + int index, com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + profiles_.set(index, builderForValue.build()); + onChanged(); + } else { + profilesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder addProfiles(com.google.cloud.talent.v4beta1.Profile value) { + if (profilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProfilesIsMutable(); + profiles_.add(value); + onChanged(); + } else { + profilesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder addProfiles(int index, com.google.cloud.talent.v4beta1.Profile value) { + if (profilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProfilesIsMutable(); + profiles_.add(index, value); + onChanged(); + } else { + profilesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder addProfiles(com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + profiles_.add(builderForValue.build()); + onChanged(); + } else { + profilesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder addProfiles( + int index, com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + profiles_.add(index, builderForValue.build()); + onChanged(); + } else { + profilesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder addAllProfiles( + java.lang.Iterable values) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, profiles_); + onChanged(); + } else { + profilesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder clearProfiles() { + if (profilesBuilder_ == null) { + profiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + profilesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder removeProfiles(int index) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + profiles_.remove(index); + onChanged(); + } else { + profilesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.Profile.Builder getProfilesBuilder(int index) { + return getProfilesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfilesOrBuilder(int index) { + if (profilesBuilder_ == null) { + return profiles_.get(index); + } else { + return profilesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public java.util.List + getProfilesOrBuilderList() { + if (profilesBuilder_ != null) { + return profilesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(profiles_); + } + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.Profile.Builder addProfilesBuilder() { + return getProfilesFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Profile.getDefaultInstance()); + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.Profile.Builder addProfilesBuilder(int index) { + return getProfilesFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Profile.getDefaultInstance()); + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public java.util.List + getProfilesBuilderList() { + return getProfilesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + getProfilesFieldBuilder() { + if (profilesBuilder_ == null) { + profilesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder>( + profiles_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + profiles_ = null; + } + return profilesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token to retrieve the next page of results. This is empty if there are no
+     * more results.
+     * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results. This is empty if there are no
+     * more results.
+     * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results. This is empty if there are no
+     * more results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results. This is empty if there are no
+     * more results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results. This is empty if there are no
+     * more results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ListProfilesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListProfilesResponse) + private static final com.google.cloud.talent.v4beta1.ListProfilesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ListProfilesResponse(); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProfilesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProfilesResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListProfilesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesResponseOrBuilder.java new file mode 100644 index 000000000000..1e74130652d0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesResponseOrBuilder.java @@ -0,0 +1,85 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface ListProfilesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ListProfilesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Profiles for the specific tenant.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + java.util.List getProfilesList(); + /** + * + * + *
+   * Profiles for the specific tenant.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + com.google.cloud.talent.v4beta1.Profile getProfiles(int index); + /** + * + * + *
+   * Profiles for the specific tenant.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + int getProfilesCount(); + /** + * + * + *
+   * Profiles for the specific tenant.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + java.util.List + getProfilesOrBuilderList(); + /** + * + * + *
+   * Profiles for the specific tenant.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfilesOrBuilder(int index); + + /** + * + * + *
+   * A token to retrieve the next page of results. This is empty if there are no
+   * more results.
+   * 
+ * + * string next_page_token = 2; + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token to retrieve the next page of results. This is empty if there are no
+   * more results.
+   * 
+ * + * string next_page_token = 2; + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsRequest.java new file mode 100644 index 000000000000..681261be2f00 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsRequest.java @@ -0,0 +1,876 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * List tenants for which the client has ACL visibility.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListTenantsRequest} + */ +public final class ListTenantsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ListTenantsRequest) + ListTenantsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTenantsRequest.newBuilder() to construct. + private ListTenantsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTenantsRequest() { + parent_ = ""; + pageToken_ = ""; + pageSize_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListTenantsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_ListTenantsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_ListTenantsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListTenantsRequest.class, + com.google.cloud.talent.v4beta1.ListTenantsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the tenant is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the tenant is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * Optional.
+   * The starting indicator from which to return results.
+   * 
+ * + * string page_token = 2; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The starting indicator from which to return results.
+   * 
+ * + * string page_token = 2; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_; + /** + * + * + *
+   * Optional.
+   * The maximum number of tenants to be returned, at most 100.
+   * Default is 100 if a non-positive number is provided.
+   * 
+ * + * int32 page_size = 3; + */ + public int getPageSize() { + return pageSize_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ListTenantsRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ListTenantsRequest other = + (com.google.cloud.talent.v4beta1.ListTenantsRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && getPageToken().equals(other.getPageToken()); + result = result && (getPageSize() == other.getPageSize()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.ListTenantsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * List tenants for which the client has ACL visibility.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListTenantsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ListTenantsRequest) + com.google.cloud.talent.v4beta1.ListTenantsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_ListTenantsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_ListTenantsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListTenantsRequest.class, + com.google.cloud.talent.v4beta1.ListTenantsRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ListTenantsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageToken_ = ""; + + pageSize_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_ListTenantsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListTenantsRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ListTenantsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListTenantsRequest build() { + com.google.cloud.talent.v4beta1.ListTenantsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListTenantsRequest buildPartial() { + com.google.cloud.talent.v4beta1.ListTenantsRequest result = + new com.google.cloud.talent.v4beta1.ListTenantsRequest(this); + result.parent_ = parent_; + result.pageToken_ = pageToken_; + result.pageSize_ = pageSize_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ListTenantsRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.ListTenantsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ListTenantsRequest other) { + if (other == com.google.cloud.talent.v4beta1.ListTenantsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ListTenantsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ListTenantsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the tenant is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the tenant is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the tenant is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the tenant is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the tenant is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional.
+     * The maximum number of tenants to be returned, at most 100.
+     * Default is 100 if a non-positive number is provided.
+     * 
+ * + * int32 page_size = 3; + */ + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional.
+     * The maximum number of tenants to be returned, at most 100.
+     * Default is 100 if a non-positive number is provided.
+     * 
+ * + * int32 page_size = 3; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The maximum number of tenants to be returned, at most 100.
+     * Default is 100 if a non-positive number is provided.
+     * 
+ * + * int32 page_size = 3; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ListTenantsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListTenantsRequest) + private static final com.google.cloud.talent.v4beta1.ListTenantsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ListTenantsRequest(); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTenantsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListTenantsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListTenantsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsRequestOrBuilder.java new file mode 100644 index 000000000000..e07e301e58bf --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsRequestOrBuilder.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface ListTenantsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ListTenantsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the tenant is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the tenant is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional.
+   * The starting indicator from which to return results.
+   * 
+ * + * string page_token = 2; + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional.
+   * The starting indicator from which to return results.
+   * 
+ * + * string page_token = 2; + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional.
+   * The maximum number of tenants to be returned, at most 100.
+   * Default is 100 if a non-positive number is provided.
+   * 
+ * + * int32 page_size = 3; + */ + int getPageSize(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsResponse.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsResponse.java new file mode 100644 index 000000000000..59b06d30cb17 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsResponse.java @@ -0,0 +1,1371 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Output only.
+ * The List tenants response object.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListTenantsResponse} + */ +public final class ListTenantsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ListTenantsResponse) + ListTenantsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTenantsResponse.newBuilder() to construct. + private ListTenantsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTenantsResponse() { + tenants_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListTenantsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + tenants_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + tenants_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Tenant.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 26: + { + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = + input.readMessage( + com.google.cloud.talent.v4beta1.ResponseMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + tenants_ = java.util.Collections.unmodifiableList(tenants_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_ListTenantsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_ListTenantsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListTenantsResponse.class, + com.google.cloud.talent.v4beta1.ListTenantsResponse.Builder.class); + } + + private int bitField0_; + public static final int TENANTS_FIELD_NUMBER = 1; + private java.util.List tenants_; + /** + * + * + *
+   * Tenants for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public java.util.List getTenantsList() { + return tenants_; + } + /** + * + * + *
+   * Tenants for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public java.util.List + getTenantsOrBuilderList() { + return tenants_; + } + /** + * + * + *
+   * Tenants for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public int getTenantsCount() { + return tenants_.size(); + } + /** + * + * + *
+   * Tenants for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public com.google.cloud.talent.v4beta1.Tenant getTenants(int index) { + return tenants_.get(index); + } + /** + * + * + *
+   * Tenants for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public com.google.cloud.talent.v4beta1.TenantOrBuilder getTenantsOrBuilder(int index) { + return tenants_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 3; + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_; + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < tenants_.size(); i++) { + output.writeMessage(1, tenants_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (metadata_ != null) { + output.writeMessage(3, getMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < tenants_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tenants_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ListTenantsResponse)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ListTenantsResponse other = + (com.google.cloud.talent.v4beta1.ListTenantsResponse) obj; + + boolean result = true; + result = result && getTenantsList().equals(other.getTenantsList()); + result = result && getNextPageToken().equals(other.getNextPageToken()); + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata().equals(other.getMetadata()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTenantsCount() > 0) { + hash = (37 * hash) + TENANTS_FIELD_NUMBER; + hash = (53 * hash) + getTenantsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.ListTenantsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Output only.
+   * The List tenants response object.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListTenantsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ListTenantsResponse) + com.google.cloud.talent.v4beta1.ListTenantsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_ListTenantsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_ListTenantsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListTenantsResponse.class, + com.google.cloud.talent.v4beta1.ListTenantsResponse.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ListTenantsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTenantsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (tenantsBuilder_ == null) { + tenants_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + tenantsBuilder_.clear(); + } + nextPageToken_ = ""; + + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_ListTenantsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListTenantsResponse getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ListTenantsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListTenantsResponse build() { + com.google.cloud.talent.v4beta1.ListTenantsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListTenantsResponse buildPartial() { + com.google.cloud.talent.v4beta1.ListTenantsResponse result = + new com.google.cloud.talent.v4beta1.ListTenantsResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (tenantsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + tenants_ = java.util.Collections.unmodifiableList(tenants_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tenants_ = tenants_; + } else { + result.tenants_ = tenantsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ListTenantsResponse) { + return mergeFrom((com.google.cloud.talent.v4beta1.ListTenantsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ListTenantsResponse other) { + if (other == com.google.cloud.talent.v4beta1.ListTenantsResponse.getDefaultInstance()) + return this; + if (tenantsBuilder_ == null) { + if (!other.tenants_.isEmpty()) { + if (tenants_.isEmpty()) { + tenants_ = other.tenants_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTenantsIsMutable(); + tenants_.addAll(other.tenants_); + } + onChanged(); + } + } else { + if (!other.tenants_.isEmpty()) { + if (tenantsBuilder_.isEmpty()) { + tenantsBuilder_.dispose(); + tenantsBuilder_ = null; + tenants_ = other.tenants_; + bitField0_ = (bitField0_ & ~0x00000001); + tenantsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTenantsFieldBuilder() + : null; + } else { + tenantsBuilder_.addAllMessages(other.tenants_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ListTenantsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ListTenantsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List tenants_ = + java.util.Collections.emptyList(); + + private void ensureTenantsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + tenants_ = new java.util.ArrayList(tenants_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Tenant, + com.google.cloud.talent.v4beta1.Tenant.Builder, + com.google.cloud.talent.v4beta1.TenantOrBuilder> + tenantsBuilder_; + + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public java.util.List getTenantsList() { + if (tenantsBuilder_ == null) { + return java.util.Collections.unmodifiableList(tenants_); + } else { + return tenantsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public int getTenantsCount() { + if (tenantsBuilder_ == null) { + return tenants_.size(); + } else { + return tenantsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public com.google.cloud.talent.v4beta1.Tenant getTenants(int index) { + if (tenantsBuilder_ == null) { + return tenants_.get(index); + } else { + return tenantsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public Builder setTenants(int index, com.google.cloud.talent.v4beta1.Tenant value) { + if (tenantsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTenantsIsMutable(); + tenants_.set(index, value); + onChanged(); + } else { + tenantsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public Builder setTenants( + int index, com.google.cloud.talent.v4beta1.Tenant.Builder builderForValue) { + if (tenantsBuilder_ == null) { + ensureTenantsIsMutable(); + tenants_.set(index, builderForValue.build()); + onChanged(); + } else { + tenantsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public Builder addTenants(com.google.cloud.talent.v4beta1.Tenant value) { + if (tenantsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTenantsIsMutable(); + tenants_.add(value); + onChanged(); + } else { + tenantsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public Builder addTenants(int index, com.google.cloud.talent.v4beta1.Tenant value) { + if (tenantsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTenantsIsMutable(); + tenants_.add(index, value); + onChanged(); + } else { + tenantsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public Builder addTenants(com.google.cloud.talent.v4beta1.Tenant.Builder builderForValue) { + if (tenantsBuilder_ == null) { + ensureTenantsIsMutable(); + tenants_.add(builderForValue.build()); + onChanged(); + } else { + tenantsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public Builder addTenants( + int index, com.google.cloud.talent.v4beta1.Tenant.Builder builderForValue) { + if (tenantsBuilder_ == null) { + ensureTenantsIsMutable(); + tenants_.add(index, builderForValue.build()); + onChanged(); + } else { + tenantsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public Builder addAllTenants( + java.lang.Iterable values) { + if (tenantsBuilder_ == null) { + ensureTenantsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tenants_); + onChanged(); + } else { + tenantsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public Builder clearTenants() { + if (tenantsBuilder_ == null) { + tenants_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + tenantsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public Builder removeTenants(int index) { + if (tenantsBuilder_ == null) { + ensureTenantsIsMutable(); + tenants_.remove(index); + onChanged(); + } else { + tenantsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public com.google.cloud.talent.v4beta1.Tenant.Builder getTenantsBuilder(int index) { + return getTenantsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public com.google.cloud.talent.v4beta1.TenantOrBuilder getTenantsOrBuilder(int index) { + if (tenantsBuilder_ == null) { + return tenants_.get(index); + } else { + return tenantsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public java.util.List + getTenantsOrBuilderList() { + if (tenantsBuilder_ != null) { + return tenantsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tenants_); + } + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public com.google.cloud.talent.v4beta1.Tenant.Builder addTenantsBuilder() { + return getTenantsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance()); + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public com.google.cloud.talent.v4beta1.Tenant.Builder addTenantsBuilder(int index) { + return getTenantsFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance()); + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public java.util.List getTenantsBuilderList() { + return getTenantsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Tenant, + com.google.cloud.talent.v4beta1.Tenant.Builder, + com.google.cloud.talent.v4beta1.TenantOrBuilder> + getTenantsFieldBuilder() { + if (tenantsBuilder_ == null) { + tenantsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Tenant, + com.google.cloud.talent.v4beta1.Tenant.Builder, + com.google.cloud.talent.v4beta1.TenantOrBuilder>( + tenants_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + tenants_ = null; + } + return tenantsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + metadataBuilder_; + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder setMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder setMetadata( + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder mergeMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.cloud.talent.v4beta1.ResponseMetadata.newBuilder(metadata_) + .mergeFrom(value) + .buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ListTenantsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListTenantsResponse) + private static final com.google.cloud.talent.v4beta1.ListTenantsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ListTenantsResponse(); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTenantsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListTenantsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListTenantsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsResponseOrBuilder.java new file mode 100644 index 000000000000..4d3812ce8f1e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsResponseOrBuilder.java @@ -0,0 +1,117 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface ListTenantsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ListTenantsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Tenants for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + java.util.List getTenantsList(); + /** + * + * + *
+   * Tenants for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + com.google.cloud.talent.v4beta1.Tenant getTenants(int index); + /** + * + * + *
+   * Tenants for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + int getTenantsCount(); + /** + * + * + *
+   * Tenants for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + java.util.List + getTenantsOrBuilderList(); + /** + * + * + *
+   * Tenants for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + com.google.cloud.talent.v4beta1.TenantOrBuilder getTenantsOrBuilder(int index); + + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + boolean hasMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Location.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Location.java new file mode 100644 index 000000000000..80eb5f9b3f2b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Location.java @@ -0,0 +1,1577 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Output only.
+ * A resource that represents a location with full geographic information.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Location} + */ +public final class Location extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Location) + LocationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Location.newBuilder() to construct. + private Location(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Location() { + locationType_ = 0; + radiusMiles_ = 0D; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Location( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + locationType_ = rawValue; + break; + } + case 18: + { + com.google.type.PostalAddress.Builder subBuilder = null; + if (postalAddress_ != null) { + subBuilder = postalAddress_.toBuilder(); + } + postalAddress_ = + input.readMessage(com.google.type.PostalAddress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(postalAddress_); + postalAddress_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.type.LatLng.Builder subBuilder = null; + if (latLng_ != null) { + subBuilder = latLng_.toBuilder(); + } + latLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latLng_); + latLng_ = subBuilder.buildPartial(); + } + + break; + } + case 33: + { + radiusMiles_ = input.readDouble(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_Location_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_Location_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Location.class, + com.google.cloud.talent.v4beta1.Location.Builder.class); + } + + /** + * + * + *
+   * An enum which represents the type of a location.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.Location.LocationType} + */ + public enum LocationType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value if the type isn't specified.
+     * 
+ * + * LOCATION_TYPE_UNSPECIFIED = 0; + */ + LOCATION_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * A country level location.
+     * 
+ * + * COUNTRY = 1; + */ + COUNTRY(1), + /** + * + * + *
+     * A state or equivalent level location.
+     * 
+ * + * ADMINISTRATIVE_AREA = 2; + */ + ADMINISTRATIVE_AREA(2), + /** + * + * + *
+     * A county or equivalent level location.
+     * 
+ * + * SUB_ADMINISTRATIVE_AREA = 3; + */ + SUB_ADMINISTRATIVE_AREA(3), + /** + * + * + *
+     * A city or equivalent level location.
+     * 
+ * + * LOCALITY = 4; + */ + LOCALITY(4), + /** + * + * + *
+     * A postal code level location.
+     * 
+ * + * POSTAL_CODE = 5; + */ + POSTAL_CODE(5), + /** + * + * + *
+     * A sublocality is a subdivision of a locality, for example a city borough,
+     * ward, or arrondissement. Sublocalities are usually recognized by a local
+     * political authority. For example, Manhattan and Brooklyn are recognized
+     * as boroughs by the City of New York, and are therefore modeled as
+     * sublocalities.
+     * 
+ * + * SUB_LOCALITY = 6; + */ + SUB_LOCALITY(6), + /** + * + * + *
+     * A district or equivalent level location.
+     * 
+ * + * SUB_LOCALITY_1 = 7; + */ + SUB_LOCALITY_1(7), + /** + * + * + *
+     * A smaller district or equivalent level display.
+     * 
+ * + * SUB_LOCALITY_2 = 8; + */ + SUB_LOCALITY_2(8), + /** + * + * + *
+     * A neighborhood level location.
+     * 
+ * + * NEIGHBORHOOD = 9; + */ + NEIGHBORHOOD(9), + /** + * + * + *
+     * A street address level location.
+     * 
+ * + * STREET_ADDRESS = 10; + */ + STREET_ADDRESS(10), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value if the type isn't specified.
+     * 
+ * + * LOCATION_TYPE_UNSPECIFIED = 0; + */ + public static final int LOCATION_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * A country level location.
+     * 
+ * + * COUNTRY = 1; + */ + public static final int COUNTRY_VALUE = 1; + /** + * + * + *
+     * A state or equivalent level location.
+     * 
+ * + * ADMINISTRATIVE_AREA = 2; + */ + public static final int ADMINISTRATIVE_AREA_VALUE = 2; + /** + * + * + *
+     * A county or equivalent level location.
+     * 
+ * + * SUB_ADMINISTRATIVE_AREA = 3; + */ + public static final int SUB_ADMINISTRATIVE_AREA_VALUE = 3; + /** + * + * + *
+     * A city or equivalent level location.
+     * 
+ * + * LOCALITY = 4; + */ + public static final int LOCALITY_VALUE = 4; + /** + * + * + *
+     * A postal code level location.
+     * 
+ * + * POSTAL_CODE = 5; + */ + public static final int POSTAL_CODE_VALUE = 5; + /** + * + * + *
+     * A sublocality is a subdivision of a locality, for example a city borough,
+     * ward, or arrondissement. Sublocalities are usually recognized by a local
+     * political authority. For example, Manhattan and Brooklyn are recognized
+     * as boroughs by the City of New York, and are therefore modeled as
+     * sublocalities.
+     * 
+ * + * SUB_LOCALITY = 6; + */ + public static final int SUB_LOCALITY_VALUE = 6; + /** + * + * + *
+     * A district or equivalent level location.
+     * 
+ * + * SUB_LOCALITY_1 = 7; + */ + public static final int SUB_LOCALITY_1_VALUE = 7; + /** + * + * + *
+     * A smaller district or equivalent level display.
+     * 
+ * + * SUB_LOCALITY_2 = 8; + */ + public static final int SUB_LOCALITY_2_VALUE = 8; + /** + * + * + *
+     * A neighborhood level location.
+     * 
+ * + * NEIGHBORHOOD = 9; + */ + public static final int NEIGHBORHOOD_VALUE = 9; + /** + * + * + *
+     * A street address level location.
+     * 
+ * + * STREET_ADDRESS = 10; + */ + public static final int STREET_ADDRESS_VALUE = 10; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static LocationType valueOf(int value) { + return forNumber(value); + } + + public static LocationType forNumber(int value) { + switch (value) { + case 0: + return LOCATION_TYPE_UNSPECIFIED; + case 1: + return COUNTRY; + case 2: + return ADMINISTRATIVE_AREA; + case 3: + return SUB_ADMINISTRATIVE_AREA; + case 4: + return LOCALITY; + case 5: + return POSTAL_CODE; + case 6: + return SUB_LOCALITY; + case 7: + return SUB_LOCALITY_1; + case 8: + return SUB_LOCALITY_2; + case 9: + return NEIGHBORHOOD; + case 10: + return STREET_ADDRESS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LocationType findValueByNumber(int number) { + return LocationType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.Location.getDescriptor().getEnumTypes().get(0); + } + + private static final LocationType[] VALUES = values(); + + public static LocationType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LocationType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.Location.LocationType) + } + + public static final int LOCATION_TYPE_FIELD_NUMBER = 1; + private int locationType_; + /** + * + * + *
+   * The type of a location, which corresponds to the address lines field of
+   * [PostalAddress][]. For example, "Downtown, Atlanta, GA, USA" has a type of
+   * [LocationType#NEIGHBORHOOD][], and "Kansas City, KS, USA" has a type of
+   * [LocationType#LOCALITY][].
+   * 
+ * + * .google.cloud.talent.v4beta1.Location.LocationType location_type = 1; + */ + public int getLocationTypeValue() { + return locationType_; + } + /** + * + * + *
+   * The type of a location, which corresponds to the address lines field of
+   * [PostalAddress][]. For example, "Downtown, Atlanta, GA, USA" has a type of
+   * [LocationType#NEIGHBORHOOD][], and "Kansas City, KS, USA" has a type of
+   * [LocationType#LOCALITY][].
+   * 
+ * + * .google.cloud.talent.v4beta1.Location.LocationType location_type = 1; + */ + public com.google.cloud.talent.v4beta1.Location.LocationType getLocationType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.Location.LocationType result = + com.google.cloud.talent.v4beta1.Location.LocationType.valueOf(locationType_); + return result == null + ? com.google.cloud.talent.v4beta1.Location.LocationType.UNRECOGNIZED + : result; + } + + public static final int POSTAL_ADDRESS_FIELD_NUMBER = 2; + private com.google.type.PostalAddress postalAddress_; + /** + * + * + *
+   * Postal address of the location that includes human readable information,
+   * such as postal delivery and payments addresses. Given a postal address,
+   * a postal service can deliver items to a premises, P.O. Box, or other
+   * delivery location.
+   * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + public boolean hasPostalAddress() { + return postalAddress_ != null; + } + /** + * + * + *
+   * Postal address of the location that includes human readable information,
+   * such as postal delivery and payments addresses. Given a postal address,
+   * a postal service can deliver items to a premises, P.O. Box, or other
+   * delivery location.
+   * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + public com.google.type.PostalAddress getPostalAddress() { + return postalAddress_ == null + ? com.google.type.PostalAddress.getDefaultInstance() + : postalAddress_; + } + /** + * + * + *
+   * Postal address of the location that includes human readable information,
+   * such as postal delivery and payments addresses. Given a postal address,
+   * a postal service can deliver items to a premises, P.O. Box, or other
+   * delivery location.
+   * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + public com.google.type.PostalAddressOrBuilder getPostalAddressOrBuilder() { + return getPostalAddress(); + } + + public static final int LAT_LNG_FIELD_NUMBER = 3; + private com.google.type.LatLng latLng_; + /** + * + * + *
+   * An object representing a latitude/longitude pair.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public boolean hasLatLng() { + return latLng_ != null; + } + /** + * + * + *
+   * An object representing a latitude/longitude pair.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public com.google.type.LatLng getLatLng() { + return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; + } + /** + * + * + *
+   * An object representing a latitude/longitude pair.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { + return getLatLng(); + } + + public static final int RADIUS_MILES_FIELD_NUMBER = 4; + private double radiusMiles_; + /** + * + * + *
+   * Radius in miles of the job location. This value is derived from the
+   * location bounding box in which a circle with the specified radius
+   * centered from [LatLng][] covers the area associated with the job location.
+   * For example, currently, "Mountain View, CA, USA" has a radius of
+   * 6.17 miles.
+   * 
+ * + * double radius_miles = 4; + */ + public double getRadiusMiles() { + return radiusMiles_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (locationType_ + != com.google.cloud.talent.v4beta1.Location.LocationType.LOCATION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, locationType_); + } + if (postalAddress_ != null) { + output.writeMessage(2, getPostalAddress()); + } + if (latLng_ != null) { + output.writeMessage(3, getLatLng()); + } + if (radiusMiles_ != 0D) { + output.writeDouble(4, radiusMiles_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (locationType_ + != com.google.cloud.talent.v4beta1.Location.LocationType.LOCATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, locationType_); + } + if (postalAddress_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPostalAddress()); + } + if (latLng_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLatLng()); + } + if (radiusMiles_ != 0D) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, radiusMiles_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Location)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Location other = (com.google.cloud.talent.v4beta1.Location) obj; + + boolean result = true; + result = result && locationType_ == other.locationType_; + result = result && (hasPostalAddress() == other.hasPostalAddress()); + if (hasPostalAddress()) { + result = result && getPostalAddress().equals(other.getPostalAddress()); + } + result = result && (hasLatLng() == other.hasLatLng()); + if (hasLatLng()) { + result = result && getLatLng().equals(other.getLatLng()); + } + result = + result + && (java.lang.Double.doubleToLongBits(getRadiusMiles()) + == java.lang.Double.doubleToLongBits(other.getRadiusMiles())); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LOCATION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + locationType_; + if (hasPostalAddress()) { + hash = (37 * hash) + POSTAL_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getPostalAddress().hashCode(); + } + if (hasLatLng()) { + hash = (37 * hash) + LAT_LNG_FIELD_NUMBER; + hash = (53 * hash) + getLatLng().hashCode(); + } + hash = (37 * hash) + RADIUS_MILES_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getRadiusMiles())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Location parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Location parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Location parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Location parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Location parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Location parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Location parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Location parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Location parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Location parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Location parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Location parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.Location prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Output only.
+   * A resource that represents a location with full geographic information.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Location} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Location) + com.google.cloud.talent.v4beta1.LocationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_Location_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_Location_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Location.class, + com.google.cloud.talent.v4beta1.Location.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Location.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + locationType_ = 0; + + if (postalAddressBuilder_ == null) { + postalAddress_ = null; + } else { + postalAddress_ = null; + postalAddressBuilder_ = null; + } + if (latLngBuilder_ == null) { + latLng_ = null; + } else { + latLng_ = null; + latLngBuilder_ = null; + } + radiusMiles_ = 0D; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_Location_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Location getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Location.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Location build() { + com.google.cloud.talent.v4beta1.Location result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Location buildPartial() { + com.google.cloud.talent.v4beta1.Location result = + new com.google.cloud.talent.v4beta1.Location(this); + result.locationType_ = locationType_; + if (postalAddressBuilder_ == null) { + result.postalAddress_ = postalAddress_; + } else { + result.postalAddress_ = postalAddressBuilder_.build(); + } + if (latLngBuilder_ == null) { + result.latLng_ = latLng_; + } else { + result.latLng_ = latLngBuilder_.build(); + } + result.radiusMiles_ = radiusMiles_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Location) { + return mergeFrom((com.google.cloud.talent.v4beta1.Location) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Location other) { + if (other == com.google.cloud.talent.v4beta1.Location.getDefaultInstance()) return this; + if (other.locationType_ != 0) { + setLocationTypeValue(other.getLocationTypeValue()); + } + if (other.hasPostalAddress()) { + mergePostalAddress(other.getPostalAddress()); + } + if (other.hasLatLng()) { + mergeLatLng(other.getLatLng()); + } + if (other.getRadiusMiles() != 0D) { + setRadiusMiles(other.getRadiusMiles()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Location parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Location) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int locationType_ = 0; + /** + * + * + *
+     * The type of a location, which corresponds to the address lines field of
+     * [PostalAddress][]. For example, "Downtown, Atlanta, GA, USA" has a type of
+     * [LocationType#NEIGHBORHOOD][], and "Kansas City, KS, USA" has a type of
+     * [LocationType#LOCALITY][].
+     * 
+ * + * .google.cloud.talent.v4beta1.Location.LocationType location_type = 1; + */ + public int getLocationTypeValue() { + return locationType_; + } + /** + * + * + *
+     * The type of a location, which corresponds to the address lines field of
+     * [PostalAddress][]. For example, "Downtown, Atlanta, GA, USA" has a type of
+     * [LocationType#NEIGHBORHOOD][], and "Kansas City, KS, USA" has a type of
+     * [LocationType#LOCALITY][].
+     * 
+ * + * .google.cloud.talent.v4beta1.Location.LocationType location_type = 1; + */ + public Builder setLocationTypeValue(int value) { + locationType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The type of a location, which corresponds to the address lines field of
+     * [PostalAddress][]. For example, "Downtown, Atlanta, GA, USA" has a type of
+     * [LocationType#NEIGHBORHOOD][], and "Kansas City, KS, USA" has a type of
+     * [LocationType#LOCALITY][].
+     * 
+ * + * .google.cloud.talent.v4beta1.Location.LocationType location_type = 1; + */ + public com.google.cloud.talent.v4beta1.Location.LocationType getLocationType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.Location.LocationType result = + com.google.cloud.talent.v4beta1.Location.LocationType.valueOf(locationType_); + return result == null + ? com.google.cloud.talent.v4beta1.Location.LocationType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The type of a location, which corresponds to the address lines field of
+     * [PostalAddress][]. For example, "Downtown, Atlanta, GA, USA" has a type of
+     * [LocationType#NEIGHBORHOOD][], and "Kansas City, KS, USA" has a type of
+     * [LocationType#LOCALITY][].
+     * 
+ * + * .google.cloud.talent.v4beta1.Location.LocationType location_type = 1; + */ + public Builder setLocationType(com.google.cloud.talent.v4beta1.Location.LocationType value) { + if (value == null) { + throw new NullPointerException(); + } + + locationType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The type of a location, which corresponds to the address lines field of
+     * [PostalAddress][]. For example, "Downtown, Atlanta, GA, USA" has a type of
+     * [LocationType#NEIGHBORHOOD][], and "Kansas City, KS, USA" has a type of
+     * [LocationType#LOCALITY][].
+     * 
+ * + * .google.cloud.talent.v4beta1.Location.LocationType location_type = 1; + */ + public Builder clearLocationType() { + + locationType_ = 0; + onChanged(); + return this; + } + + private com.google.type.PostalAddress postalAddress_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.PostalAddress, + com.google.type.PostalAddress.Builder, + com.google.type.PostalAddressOrBuilder> + postalAddressBuilder_; + /** + * + * + *
+     * Postal address of the location that includes human readable information,
+     * such as postal delivery and payments addresses. Given a postal address,
+     * a postal service can deliver items to a premises, P.O. Box, or other
+     * delivery location.
+     * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + public boolean hasPostalAddress() { + return postalAddressBuilder_ != null || postalAddress_ != null; + } + /** + * + * + *
+     * Postal address of the location that includes human readable information,
+     * such as postal delivery and payments addresses. Given a postal address,
+     * a postal service can deliver items to a premises, P.O. Box, or other
+     * delivery location.
+     * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + public com.google.type.PostalAddress getPostalAddress() { + if (postalAddressBuilder_ == null) { + return postalAddress_ == null + ? com.google.type.PostalAddress.getDefaultInstance() + : postalAddress_; + } else { + return postalAddressBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Postal address of the location that includes human readable information,
+     * such as postal delivery and payments addresses. Given a postal address,
+     * a postal service can deliver items to a premises, P.O. Box, or other
+     * delivery location.
+     * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + public Builder setPostalAddress(com.google.type.PostalAddress value) { + if (postalAddressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + postalAddress_ = value; + onChanged(); + } else { + postalAddressBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Postal address of the location that includes human readable information,
+     * such as postal delivery and payments addresses. Given a postal address,
+     * a postal service can deliver items to a premises, P.O. Box, or other
+     * delivery location.
+     * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + public Builder setPostalAddress(com.google.type.PostalAddress.Builder builderForValue) { + if (postalAddressBuilder_ == null) { + postalAddress_ = builderForValue.build(); + onChanged(); + } else { + postalAddressBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Postal address of the location that includes human readable information,
+     * such as postal delivery and payments addresses. Given a postal address,
+     * a postal service can deliver items to a premises, P.O. Box, or other
+     * delivery location.
+     * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + public Builder mergePostalAddress(com.google.type.PostalAddress value) { + if (postalAddressBuilder_ == null) { + if (postalAddress_ != null) { + postalAddress_ = + com.google.type.PostalAddress.newBuilder(postalAddress_) + .mergeFrom(value) + .buildPartial(); + } else { + postalAddress_ = value; + } + onChanged(); + } else { + postalAddressBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Postal address of the location that includes human readable information,
+     * such as postal delivery and payments addresses. Given a postal address,
+     * a postal service can deliver items to a premises, P.O. Box, or other
+     * delivery location.
+     * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + public Builder clearPostalAddress() { + if (postalAddressBuilder_ == null) { + postalAddress_ = null; + onChanged(); + } else { + postalAddress_ = null; + postalAddressBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Postal address of the location that includes human readable information,
+     * such as postal delivery and payments addresses. Given a postal address,
+     * a postal service can deliver items to a premises, P.O. Box, or other
+     * delivery location.
+     * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + public com.google.type.PostalAddress.Builder getPostalAddressBuilder() { + + onChanged(); + return getPostalAddressFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Postal address of the location that includes human readable information,
+     * such as postal delivery and payments addresses. Given a postal address,
+     * a postal service can deliver items to a premises, P.O. Box, or other
+     * delivery location.
+     * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + public com.google.type.PostalAddressOrBuilder getPostalAddressOrBuilder() { + if (postalAddressBuilder_ != null) { + return postalAddressBuilder_.getMessageOrBuilder(); + } else { + return postalAddress_ == null + ? com.google.type.PostalAddress.getDefaultInstance() + : postalAddress_; + } + } + /** + * + * + *
+     * Postal address of the location that includes human readable information,
+     * such as postal delivery and payments addresses. Given a postal address,
+     * a postal service can deliver items to a premises, P.O. Box, or other
+     * delivery location.
+     * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.PostalAddress, + com.google.type.PostalAddress.Builder, + com.google.type.PostalAddressOrBuilder> + getPostalAddressFieldBuilder() { + if (postalAddressBuilder_ == null) { + postalAddressBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.PostalAddress, + com.google.type.PostalAddress.Builder, + com.google.type.PostalAddressOrBuilder>( + getPostalAddress(), getParentForChildren(), isClean()); + postalAddress_ = null; + } + return postalAddressBuilder_; + } + + private com.google.type.LatLng latLng_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + latLngBuilder_; + /** + * + * + *
+     * An object representing a latitude/longitude pair.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public boolean hasLatLng() { + return latLngBuilder_ != null || latLng_ != null; + } + /** + * + * + *
+     * An object representing a latitude/longitude pair.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public com.google.type.LatLng getLatLng() { + if (latLngBuilder_ == null) { + return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; + } else { + return latLngBuilder_.getMessage(); + } + } + /** + * + * + *
+     * An object representing a latitude/longitude pair.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public Builder setLatLng(com.google.type.LatLng value) { + if (latLngBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + latLng_ = value; + onChanged(); + } else { + latLngBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * An object representing a latitude/longitude pair.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public Builder setLatLng(com.google.type.LatLng.Builder builderForValue) { + if (latLngBuilder_ == null) { + latLng_ = builderForValue.build(); + onChanged(); + } else { + latLngBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * An object representing a latitude/longitude pair.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public Builder mergeLatLng(com.google.type.LatLng value) { + if (latLngBuilder_ == null) { + if (latLng_ != null) { + latLng_ = com.google.type.LatLng.newBuilder(latLng_).mergeFrom(value).buildPartial(); + } else { + latLng_ = value; + } + onChanged(); + } else { + latLngBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * An object representing a latitude/longitude pair.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public Builder clearLatLng() { + if (latLngBuilder_ == null) { + latLng_ = null; + onChanged(); + } else { + latLng_ = null; + latLngBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * An object representing a latitude/longitude pair.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public com.google.type.LatLng.Builder getLatLngBuilder() { + + onChanged(); + return getLatLngFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * An object representing a latitude/longitude pair.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { + if (latLngBuilder_ != null) { + return latLngBuilder_.getMessageOrBuilder(); + } else { + return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; + } + } + /** + * + * + *
+     * An object representing a latitude/longitude pair.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + getLatLngFieldBuilder() { + if (latLngBuilder_ == null) { + latLngBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>(getLatLng(), getParentForChildren(), isClean()); + latLng_ = null; + } + return latLngBuilder_; + } + + private double radiusMiles_; + /** + * + * + *
+     * Radius in miles of the job location. This value is derived from the
+     * location bounding box in which a circle with the specified radius
+     * centered from [LatLng][] covers the area associated with the job location.
+     * For example, currently, "Mountain View, CA, USA" has a radius of
+     * 6.17 miles.
+     * 
+ * + * double radius_miles = 4; + */ + public double getRadiusMiles() { + return radiusMiles_; + } + /** + * + * + *
+     * Radius in miles of the job location. This value is derived from the
+     * location bounding box in which a circle with the specified radius
+     * centered from [LatLng][] covers the area associated with the job location.
+     * For example, currently, "Mountain View, CA, USA" has a radius of
+     * 6.17 miles.
+     * 
+ * + * double radius_miles = 4; + */ + public Builder setRadiusMiles(double value) { + + radiusMiles_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Radius in miles of the job location. This value is derived from the
+     * location bounding box in which a circle with the specified radius
+     * centered from [LatLng][] covers the area associated with the job location.
+     * For example, currently, "Mountain View, CA, USA" has a radius of
+     * 6.17 miles.
+     * 
+ * + * double radius_miles = 4; + */ + public Builder clearRadiusMiles() { + + radiusMiles_ = 0D; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Location) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Location) + private static final com.google.cloud.talent.v4beta1.Location DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Location(); + } + + public static com.google.cloud.talent.v4beta1.Location getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Location parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Location(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Location getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilter.java new file mode 100644 index 000000000000..40f7bbb05452 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilter.java @@ -0,0 +1,1719 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Geographic region of the search.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.LocationFilter} + */ +public final class LocationFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.LocationFilter) + LocationFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use LocationFilter.newBuilder() to construct. + private LocationFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LocationFilter() { + address_ = ""; + regionCode_ = ""; + distanceInMiles_ = 0D; + telecommutePreference_ = 0; + negated_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private LocationFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + address_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + regionCode_ = s; + break; + } + case 26: + { + com.google.type.LatLng.Builder subBuilder = null; + if (latLng_ != null) { + subBuilder = latLng_.toBuilder(); + } + latLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latLng_); + latLng_ = subBuilder.buildPartial(); + } + + break; + } + case 33: + { + distanceInMiles_ = input.readDouble(); + break; + } + case 40: + { + int rawValue = input.readEnum(); + + telecommutePreference_ = rawValue; + break; + } + case 48: + { + negated_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_LocationFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_LocationFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.LocationFilter.class, + com.google.cloud.talent.v4beta1.LocationFilter.Builder.class); + } + + /** + * + * + *
+   * Specify whether including telecommute jobs.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference} + */ + public enum TelecommutePreference implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value if the telecommute preference isn't specified.
+     * 
+ * + * TELECOMMUTE_PREFERENCE_UNSPECIFIED = 0; + */ + TELECOMMUTE_PREFERENCE_UNSPECIFIED(0), + /** + * + * + *
+     * Exclude telecommute jobs.
+     * 
+ * + * TELECOMMUTE_EXCLUDED = 1; + */ + TELECOMMUTE_EXCLUDED(1), + /** + * + * + *
+     * Allow telecommute jobs.
+     * 
+ * + * TELECOMMUTE_ALLOWED = 2; + */ + TELECOMMUTE_ALLOWED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value if the telecommute preference isn't specified.
+     * 
+ * + * TELECOMMUTE_PREFERENCE_UNSPECIFIED = 0; + */ + public static final int TELECOMMUTE_PREFERENCE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Exclude telecommute jobs.
+     * 
+ * + * TELECOMMUTE_EXCLUDED = 1; + */ + public static final int TELECOMMUTE_EXCLUDED_VALUE = 1; + /** + * + * + *
+     * Allow telecommute jobs.
+     * 
+ * + * TELECOMMUTE_ALLOWED = 2; + */ + public static final int TELECOMMUTE_ALLOWED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static TelecommutePreference valueOf(int value) { + return forNumber(value); + } + + public static TelecommutePreference forNumber(int value) { + switch (value) { + case 0: + return TELECOMMUTE_PREFERENCE_UNSPECIFIED; + case 1: + return TELECOMMUTE_EXCLUDED; + case 2: + return TELECOMMUTE_ALLOWED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TelecommutePreference findValueByNumber(int number) { + return TelecommutePreference.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.LocationFilter.getDescriptor().getEnumTypes().get(0); + } + + private static final TelecommutePreference[] VALUES = values(); + + public static TelecommutePreference valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private TelecommutePreference(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference) + } + + public static final int ADDRESS_FIELD_NUMBER = 1; + private volatile java.lang.Object address_; + /** + * + * + *
+   * Optional.
+   * The address name, such as "Mountain View" or "Bay Area".
+   * 
+ * + * string address = 1; + */ + public java.lang.String getAddress() { + java.lang.Object ref = address_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + address_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The address name, such as "Mountain View" or "Bay Area".
+   * 
+ * + * string address = 1; + */ + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + address_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_CODE_FIELD_NUMBER = 2; + private volatile java.lang.Object regionCode_; + /** + * + * + *
+   * Optional.
+   * CLDR region code of the country/region of the address. This is used
+   * to address ambiguity of the user-input location, for example, "Liverpool"
+   * against "Liverpool, NY, US" or "Liverpool, UK".
+   * Set this field if all the jobs to search against are from a same region,
+   * or jobs are world-wide, but the job seeker is from a specific region.
+   * See http://cldr.unicode.org/ and
+   * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+   * for details. Example: "CH" for Switzerland.
+   * 
+ * + * string region_code = 2; + */ + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regionCode_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * CLDR region code of the country/region of the address. This is used
+   * to address ambiguity of the user-input location, for example, "Liverpool"
+   * against "Liverpool, NY, US" or "Liverpool, UK".
+   * Set this field if all the jobs to search against are from a same region,
+   * or jobs are world-wide, but the job seeker is from a specific region.
+   * See http://cldr.unicode.org/ and
+   * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+   * for details. Example: "CH" for Switzerland.
+   * 
+ * + * string region_code = 2; + */ + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regionCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LAT_LNG_FIELD_NUMBER = 3; + private com.google.type.LatLng latLng_; + /** + * + * + *
+   * Optional.
+   * The latitude and longitude of the geographic center from which to
+   * search. This field's ignored if `address` is provided.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public boolean hasLatLng() { + return latLng_ != null; + } + /** + * + * + *
+   * Optional.
+   * The latitude and longitude of the geographic center from which to
+   * search. This field's ignored if `address` is provided.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public com.google.type.LatLng getLatLng() { + return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; + } + /** + * + * + *
+   * Optional.
+   * The latitude and longitude of the geographic center from which to
+   * search. This field's ignored if `address` is provided.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { + return getLatLng(); + } + + public static final int DISTANCE_IN_MILES_FIELD_NUMBER = 4; + private double distanceInMiles_; + /** + * + * + *
+   * Optional.
+   * The distance_in_miles is applied when the location being searched for is
+   * identified as a city or smaller. When the location being searched for is a
+   * state or larger, this field is ignored.
+   * 
+ * + * double distance_in_miles = 4; + */ + public double getDistanceInMiles() { + return distanceInMiles_; + } + + public static final int TELECOMMUTE_PREFERENCE_FIELD_NUMBER = 5; + private int telecommutePreference_; + /** + * + * + *
+   * Optional.
+   * Allows the client to return jobs without a
+   * set location, specifically, telecommuting jobs (telecomuting is considered
+   * by the service as a special location.
+   * [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region]
+   * indicates if a job permits telecommuting. If this field is set to
+   * [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED],
+   * telecommuting jobs are searched, and
+   * [address][google.cloud.talent.v4beta1.LocationFilter.address] and
+   * [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are ignored.
+   * If not set or set to
+   * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED],
+   * telecommute job are not searched.
+   * This filter can be used by itself to search exclusively for telecommuting
+   * jobs, or it can be combined with another location
+   * filter to search for a combination of job locations,
+   * such as "Mountain View" or "telecommuting" jobs. However, when used in
+   * combination with other location filters, telecommuting jobs can be
+   * treated as less relevant than other jobs in the search response.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference telecommute_preference = 5; + * + */ + public int getTelecommutePreferenceValue() { + return telecommutePreference_; + } + /** + * + * + *
+   * Optional.
+   * Allows the client to return jobs without a
+   * set location, specifically, telecommuting jobs (telecomuting is considered
+   * by the service as a special location.
+   * [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region]
+   * indicates if a job permits telecommuting. If this field is set to
+   * [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED],
+   * telecommuting jobs are searched, and
+   * [address][google.cloud.talent.v4beta1.LocationFilter.address] and
+   * [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are ignored.
+   * If not set or set to
+   * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED],
+   * telecommute job are not searched.
+   * This filter can be used by itself to search exclusively for telecommuting
+   * jobs, or it can be combined with another location
+   * filter to search for a combination of job locations,
+   * such as "Mountain View" or "telecommuting" jobs. However, when used in
+   * combination with other location filters, telecommuting jobs can be
+   * treated as less relevant than other jobs in the search response.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference telecommute_preference = 5; + * + */ + public com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference + getTelecommutePreference() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference result = + com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.valueOf( + telecommutePreference_); + return result == null + ? com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.UNRECOGNIZED + : result; + } + + public static final int NEGATED_FIELD_NUMBER = 6; + private boolean negated_; + /** + * + * + *
+   * Optional.
+   * Whether to apply negation to the filter so profiles matching the filter
+   * are excluded.
+   * Currently only supported in profile search.
+   * 
+ * + * bool negated = 6; + */ + public boolean getNegated() { + return negated_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getAddressBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); + } + if (!getRegionCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, regionCode_); + } + if (latLng_ != null) { + output.writeMessage(3, getLatLng()); + } + if (distanceInMiles_ != 0D) { + output.writeDouble(4, distanceInMiles_); + } + if (telecommutePreference_ + != com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference + .TELECOMMUTE_PREFERENCE_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, telecommutePreference_); + } + if (negated_ != false) { + output.writeBool(6, negated_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getAddressBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); + } + if (!getRegionCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, regionCode_); + } + if (latLng_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLatLng()); + } + if (distanceInMiles_ != 0D) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, distanceInMiles_); + } + if (telecommutePreference_ + != com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference + .TELECOMMUTE_PREFERENCE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, telecommutePreference_); + } + if (negated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, negated_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.LocationFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.LocationFilter other = + (com.google.cloud.talent.v4beta1.LocationFilter) obj; + + boolean result = true; + result = result && getAddress().equals(other.getAddress()); + result = result && getRegionCode().equals(other.getRegionCode()); + result = result && (hasLatLng() == other.hasLatLng()); + if (hasLatLng()) { + result = result && getLatLng().equals(other.getLatLng()); + } + result = + result + && (java.lang.Double.doubleToLongBits(getDistanceInMiles()) + == java.lang.Double.doubleToLongBits(other.getDistanceInMiles())); + result = result && telecommutePreference_ == other.telecommutePreference_; + result = result && (getNegated() == other.getNegated()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + hash = (37 * hash) + REGION_CODE_FIELD_NUMBER; + hash = (53 * hash) + getRegionCode().hashCode(); + if (hasLatLng()) { + hash = (37 * hash) + LAT_LNG_FIELD_NUMBER; + hash = (53 * hash) + getLatLng().hashCode(); + } + hash = (37 * hash) + DISTANCE_IN_MILES_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDistanceInMiles())); + hash = (37 * hash) + TELECOMMUTE_PREFERENCE_FIELD_NUMBER; + hash = (53 * hash) + telecommutePreference_; + hash = (37 * hash) + NEGATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.LocationFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.LocationFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.LocationFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.LocationFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.LocationFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.LocationFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.LocationFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.LocationFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.LocationFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.LocationFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.LocationFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.LocationFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.LocationFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Geographic region of the search.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.LocationFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.LocationFilter) + com.google.cloud.talent.v4beta1.LocationFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_LocationFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_LocationFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.LocationFilter.class, + com.google.cloud.talent.v4beta1.LocationFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.LocationFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + address_ = ""; + + regionCode_ = ""; + + if (latLngBuilder_ == null) { + latLng_ = null; + } else { + latLng_ = null; + latLngBuilder_ = null; + } + distanceInMiles_ = 0D; + + telecommutePreference_ = 0; + + negated_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_LocationFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.LocationFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.LocationFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.LocationFilter build() { + com.google.cloud.talent.v4beta1.LocationFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.LocationFilter buildPartial() { + com.google.cloud.talent.v4beta1.LocationFilter result = + new com.google.cloud.talent.v4beta1.LocationFilter(this); + result.address_ = address_; + result.regionCode_ = regionCode_; + if (latLngBuilder_ == null) { + result.latLng_ = latLng_; + } else { + result.latLng_ = latLngBuilder_.build(); + } + result.distanceInMiles_ = distanceInMiles_; + result.telecommutePreference_ = telecommutePreference_; + result.negated_ = negated_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.LocationFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.LocationFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.LocationFilter other) { + if (other == com.google.cloud.talent.v4beta1.LocationFilter.getDefaultInstance()) return this; + if (!other.getAddress().isEmpty()) { + address_ = other.address_; + onChanged(); + } + if (!other.getRegionCode().isEmpty()) { + regionCode_ = other.regionCode_; + onChanged(); + } + if (other.hasLatLng()) { + mergeLatLng(other.getLatLng()); + } + if (other.getDistanceInMiles() != 0D) { + setDistanceInMiles(other.getDistanceInMiles()); + } + if (other.telecommutePreference_ != 0) { + setTelecommutePreferenceValue(other.getTelecommutePreferenceValue()); + } + if (other.getNegated() != false) { + setNegated(other.getNegated()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.LocationFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.LocationFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object address_ = ""; + /** + * + * + *
+     * Optional.
+     * The address name, such as "Mountain View" or "Bay Area".
+     * 
+ * + * string address = 1; + */ + public java.lang.String getAddress() { + java.lang.Object ref = address_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + address_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The address name, such as "Mountain View" or "Bay Area".
+     * 
+ * + * string address = 1; + */ + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + address_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The address name, such as "Mountain View" or "Bay Area".
+     * 
+ * + * string address = 1; + */ + public Builder setAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + address_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The address name, such as "Mountain View" or "Bay Area".
+     * 
+ * + * string address = 1; + */ + public Builder clearAddress() { + + address_ = getDefaultInstance().getAddress(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The address name, such as "Mountain View" or "Bay Area".
+     * 
+ * + * string address = 1; + */ + public Builder setAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + address_ = value; + onChanged(); + return this; + } + + private java.lang.Object regionCode_ = ""; + /** + * + * + *
+     * Optional.
+     * CLDR region code of the country/region of the address. This is used
+     * to address ambiguity of the user-input location, for example, "Liverpool"
+     * against "Liverpool, NY, US" or "Liverpool, UK".
+     * Set this field if all the jobs to search against are from a same region,
+     * or jobs are world-wide, but the job seeker is from a specific region.
+     * See http://cldr.unicode.org/ and
+     * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+     * for details. Example: "CH" for Switzerland.
+     * 
+ * + * string region_code = 2; + */ + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regionCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * CLDR region code of the country/region of the address. This is used
+     * to address ambiguity of the user-input location, for example, "Liverpool"
+     * against "Liverpool, NY, US" or "Liverpool, UK".
+     * Set this field if all the jobs to search against are from a same region,
+     * or jobs are world-wide, but the job seeker is from a specific region.
+     * See http://cldr.unicode.org/ and
+     * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+     * for details. Example: "CH" for Switzerland.
+     * 
+ * + * string region_code = 2; + */ + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regionCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * CLDR region code of the country/region of the address. This is used
+     * to address ambiguity of the user-input location, for example, "Liverpool"
+     * against "Liverpool, NY, US" or "Liverpool, UK".
+     * Set this field if all the jobs to search against are from a same region,
+     * or jobs are world-wide, but the job seeker is from a specific region.
+     * See http://cldr.unicode.org/ and
+     * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+     * for details. Example: "CH" for Switzerland.
+     * 
+ * + * string region_code = 2; + */ + public Builder setRegionCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + regionCode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * CLDR region code of the country/region of the address. This is used
+     * to address ambiguity of the user-input location, for example, "Liverpool"
+     * against "Liverpool, NY, US" or "Liverpool, UK".
+     * Set this field if all the jobs to search against are from a same region,
+     * or jobs are world-wide, but the job seeker is from a specific region.
+     * See http://cldr.unicode.org/ and
+     * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+     * for details. Example: "CH" for Switzerland.
+     * 
+ * + * string region_code = 2; + */ + public Builder clearRegionCode() { + + regionCode_ = getDefaultInstance().getRegionCode(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * CLDR region code of the country/region of the address. This is used
+     * to address ambiguity of the user-input location, for example, "Liverpool"
+     * against "Liverpool, NY, US" or "Liverpool, UK".
+     * Set this field if all the jobs to search against are from a same region,
+     * or jobs are world-wide, but the job seeker is from a specific region.
+     * See http://cldr.unicode.org/ and
+     * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+     * for details. Example: "CH" for Switzerland.
+     * 
+ * + * string region_code = 2; + */ + public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + regionCode_ = value; + onChanged(); + return this; + } + + private com.google.type.LatLng latLng_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + latLngBuilder_; + /** + * + * + *
+     * Optional.
+     * The latitude and longitude of the geographic center from which to
+     * search. This field's ignored if `address` is provided.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public boolean hasLatLng() { + return latLngBuilder_ != null || latLng_ != null; + } + /** + * + * + *
+     * Optional.
+     * The latitude and longitude of the geographic center from which to
+     * search. This field's ignored if `address` is provided.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public com.google.type.LatLng getLatLng() { + if (latLngBuilder_ == null) { + return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; + } else { + return latLngBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The latitude and longitude of the geographic center from which to
+     * search. This field's ignored if `address` is provided.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public Builder setLatLng(com.google.type.LatLng value) { + if (latLngBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + latLng_ = value; + onChanged(); + } else { + latLngBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The latitude and longitude of the geographic center from which to
+     * search. This field's ignored if `address` is provided.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public Builder setLatLng(com.google.type.LatLng.Builder builderForValue) { + if (latLngBuilder_ == null) { + latLng_ = builderForValue.build(); + onChanged(); + } else { + latLngBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The latitude and longitude of the geographic center from which to
+     * search. This field's ignored if `address` is provided.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public Builder mergeLatLng(com.google.type.LatLng value) { + if (latLngBuilder_ == null) { + if (latLng_ != null) { + latLng_ = com.google.type.LatLng.newBuilder(latLng_).mergeFrom(value).buildPartial(); + } else { + latLng_ = value; + } + onChanged(); + } else { + latLngBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The latitude and longitude of the geographic center from which to
+     * search. This field's ignored if `address` is provided.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public Builder clearLatLng() { + if (latLngBuilder_ == null) { + latLng_ = null; + onChanged(); + } else { + latLng_ = null; + latLngBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The latitude and longitude of the geographic center from which to
+     * search. This field's ignored if `address` is provided.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public com.google.type.LatLng.Builder getLatLngBuilder() { + + onChanged(); + return getLatLngFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The latitude and longitude of the geographic center from which to
+     * search. This field's ignored if `address` is provided.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { + if (latLngBuilder_ != null) { + return latLngBuilder_.getMessageOrBuilder(); + } else { + return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; + } + } + /** + * + * + *
+     * Optional.
+     * The latitude and longitude of the geographic center from which to
+     * search. This field's ignored if `address` is provided.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + getLatLngFieldBuilder() { + if (latLngBuilder_ == null) { + latLngBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>(getLatLng(), getParentForChildren(), isClean()); + latLng_ = null; + } + return latLngBuilder_; + } + + private double distanceInMiles_; + /** + * + * + *
+     * Optional.
+     * The distance_in_miles is applied when the location being searched for is
+     * identified as a city or smaller. When the location being searched for is a
+     * state or larger, this field is ignored.
+     * 
+ * + * double distance_in_miles = 4; + */ + public double getDistanceInMiles() { + return distanceInMiles_; + } + /** + * + * + *
+     * Optional.
+     * The distance_in_miles is applied when the location being searched for is
+     * identified as a city or smaller. When the location being searched for is a
+     * state or larger, this field is ignored.
+     * 
+ * + * double distance_in_miles = 4; + */ + public Builder setDistanceInMiles(double value) { + + distanceInMiles_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The distance_in_miles is applied when the location being searched for is
+     * identified as a city or smaller. When the location being searched for is a
+     * state or larger, this field is ignored.
+     * 
+ * + * double distance_in_miles = 4; + */ + public Builder clearDistanceInMiles() { + + distanceInMiles_ = 0D; + onChanged(); + return this; + } + + private int telecommutePreference_ = 0; + /** + * + * + *
+     * Optional.
+     * Allows the client to return jobs without a
+     * set location, specifically, telecommuting jobs (telecomuting is considered
+     * by the service as a special location.
+     * [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region]
+     * indicates if a job permits telecommuting. If this field is set to
+     * [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED],
+     * telecommuting jobs are searched, and
+     * [address][google.cloud.talent.v4beta1.LocationFilter.address] and
+     * [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are ignored.
+     * If not set or set to
+     * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED],
+     * telecommute job are not searched.
+     * This filter can be used by itself to search exclusively for telecommuting
+     * jobs, or it can be combined with another location
+     * filter to search for a combination of job locations,
+     * such as "Mountain View" or "telecommuting" jobs. However, when used in
+     * combination with other location filters, telecommuting jobs can be
+     * treated as less relevant than other jobs in the search response.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference telecommute_preference = 5; + * + */ + public int getTelecommutePreferenceValue() { + return telecommutePreference_; + } + /** + * + * + *
+     * Optional.
+     * Allows the client to return jobs without a
+     * set location, specifically, telecommuting jobs (telecomuting is considered
+     * by the service as a special location.
+     * [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region]
+     * indicates if a job permits telecommuting. If this field is set to
+     * [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED],
+     * telecommuting jobs are searched, and
+     * [address][google.cloud.talent.v4beta1.LocationFilter.address] and
+     * [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are ignored.
+     * If not set or set to
+     * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED],
+     * telecommute job are not searched.
+     * This filter can be used by itself to search exclusively for telecommuting
+     * jobs, or it can be combined with another location
+     * filter to search for a combination of job locations,
+     * such as "Mountain View" or "telecommuting" jobs. However, when used in
+     * combination with other location filters, telecommuting jobs can be
+     * treated as less relevant than other jobs in the search response.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference telecommute_preference = 5; + * + */ + public Builder setTelecommutePreferenceValue(int value) { + telecommutePreference_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Allows the client to return jobs without a
+     * set location, specifically, telecommuting jobs (telecomuting is considered
+     * by the service as a special location.
+     * [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region]
+     * indicates if a job permits telecommuting. If this field is set to
+     * [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED],
+     * telecommuting jobs are searched, and
+     * [address][google.cloud.talent.v4beta1.LocationFilter.address] and
+     * [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are ignored.
+     * If not set or set to
+     * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED],
+     * telecommute job are not searched.
+     * This filter can be used by itself to search exclusively for telecommuting
+     * jobs, or it can be combined with another location
+     * filter to search for a combination of job locations,
+     * such as "Mountain View" or "telecommuting" jobs. However, when used in
+     * combination with other location filters, telecommuting jobs can be
+     * treated as less relevant than other jobs in the search response.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference telecommute_preference = 5; + * + */ + public com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference + getTelecommutePreference() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference result = + com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.valueOf( + telecommutePreference_); + return result == null + ? com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * Allows the client to return jobs without a
+     * set location, specifically, telecommuting jobs (telecomuting is considered
+     * by the service as a special location.
+     * [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region]
+     * indicates if a job permits telecommuting. If this field is set to
+     * [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED],
+     * telecommuting jobs are searched, and
+     * [address][google.cloud.talent.v4beta1.LocationFilter.address] and
+     * [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are ignored.
+     * If not set or set to
+     * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED],
+     * telecommute job are not searched.
+     * This filter can be used by itself to search exclusively for telecommuting
+     * jobs, or it can be combined with another location
+     * filter to search for a combination of job locations,
+     * such as "Mountain View" or "telecommuting" jobs. However, when used in
+     * combination with other location filters, telecommuting jobs can be
+     * treated as less relevant than other jobs in the search response.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference telecommute_preference = 5; + * + */ + public Builder setTelecommutePreference( + com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference value) { + if (value == null) { + throw new NullPointerException(); + } + + telecommutePreference_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Allows the client to return jobs without a
+     * set location, specifically, telecommuting jobs (telecomuting is considered
+     * by the service as a special location.
+     * [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region]
+     * indicates if a job permits telecommuting. If this field is set to
+     * [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED],
+     * telecommuting jobs are searched, and
+     * [address][google.cloud.talent.v4beta1.LocationFilter.address] and
+     * [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are ignored.
+     * If not set or set to
+     * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED],
+     * telecommute job are not searched.
+     * This filter can be used by itself to search exclusively for telecommuting
+     * jobs, or it can be combined with another location
+     * filter to search for a combination of job locations,
+     * such as "Mountain View" or "telecommuting" jobs. However, when used in
+     * combination with other location filters, telecommuting jobs can be
+     * treated as less relevant than other jobs in the search response.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference telecommute_preference = 5; + * + */ + public Builder clearTelecommutePreference() { + + telecommutePreference_ = 0; + onChanged(); + return this; + } + + private boolean negated_; + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * are excluded.
+     * Currently only supported in profile search.
+     * 
+ * + * bool negated = 6; + */ + public boolean getNegated() { + return negated_; + } + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * are excluded.
+     * Currently only supported in profile search.
+     * 
+ * + * bool negated = 6; + */ + public Builder setNegated(boolean value) { + + negated_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * are excluded.
+     * Currently only supported in profile search.
+     * 
+ * + * bool negated = 6; + */ + public Builder clearNegated() { + + negated_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.LocationFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.LocationFilter) + private static final com.google.cloud.talent.v4beta1.LocationFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.LocationFilter(); + } + + public static com.google.cloud.talent.v4beta1.LocationFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LocationFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.LocationFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilterOrBuilder.java new file mode 100644 index 000000000000..fe1b46df3010 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilterOrBuilder.java @@ -0,0 +1,196 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface LocationFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.LocationFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The address name, such as "Mountain View" or "Bay Area".
+   * 
+ * + * string address = 1; + */ + java.lang.String getAddress(); + /** + * + * + *
+   * Optional.
+   * The address name, such as "Mountain View" or "Bay Area".
+   * 
+ * + * string address = 1; + */ + com.google.protobuf.ByteString getAddressBytes(); + + /** + * + * + *
+   * Optional.
+   * CLDR region code of the country/region of the address. This is used
+   * to address ambiguity of the user-input location, for example, "Liverpool"
+   * against "Liverpool, NY, US" or "Liverpool, UK".
+   * Set this field if all the jobs to search against are from a same region,
+   * or jobs are world-wide, but the job seeker is from a specific region.
+   * See http://cldr.unicode.org/ and
+   * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+   * for details. Example: "CH" for Switzerland.
+   * 
+ * + * string region_code = 2; + */ + java.lang.String getRegionCode(); + /** + * + * + *
+   * Optional.
+   * CLDR region code of the country/region of the address. This is used
+   * to address ambiguity of the user-input location, for example, "Liverpool"
+   * against "Liverpool, NY, US" or "Liverpool, UK".
+   * Set this field if all the jobs to search against are from a same region,
+   * or jobs are world-wide, but the job seeker is from a specific region.
+   * See http://cldr.unicode.org/ and
+   * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+   * for details. Example: "CH" for Switzerland.
+   * 
+ * + * string region_code = 2; + */ + com.google.protobuf.ByteString getRegionCodeBytes(); + + /** + * + * + *
+   * Optional.
+   * The latitude and longitude of the geographic center from which to
+   * search. This field's ignored if `address` is provided.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + boolean hasLatLng(); + /** + * + * + *
+   * Optional.
+   * The latitude and longitude of the geographic center from which to
+   * search. This field's ignored if `address` is provided.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + com.google.type.LatLng getLatLng(); + /** + * + * + *
+   * Optional.
+   * The latitude and longitude of the geographic center from which to
+   * search. This field's ignored if `address` is provided.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + com.google.type.LatLngOrBuilder getLatLngOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The distance_in_miles is applied when the location being searched for is
+   * identified as a city or smaller. When the location being searched for is a
+   * state or larger, this field is ignored.
+   * 
+ * + * double distance_in_miles = 4; + */ + double getDistanceInMiles(); + + /** + * + * + *
+   * Optional.
+   * Allows the client to return jobs without a
+   * set location, specifically, telecommuting jobs (telecomuting is considered
+   * by the service as a special location.
+   * [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region]
+   * indicates if a job permits telecommuting. If this field is set to
+   * [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED],
+   * telecommuting jobs are searched, and
+   * [address][google.cloud.talent.v4beta1.LocationFilter.address] and
+   * [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are ignored.
+   * If not set or set to
+   * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED],
+   * telecommute job are not searched.
+   * This filter can be used by itself to search exclusively for telecommuting
+   * jobs, or it can be combined with another location
+   * filter to search for a combination of job locations,
+   * such as "Mountain View" or "telecommuting" jobs. However, when used in
+   * combination with other location filters, telecommuting jobs can be
+   * treated as less relevant than other jobs in the search response.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference telecommute_preference = 5; + * + */ + int getTelecommutePreferenceValue(); + /** + * + * + *
+   * Optional.
+   * Allows the client to return jobs without a
+   * set location, specifically, telecommuting jobs (telecomuting is considered
+   * by the service as a special location.
+   * [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region]
+   * indicates if a job permits telecommuting. If this field is set to
+   * [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED],
+   * telecommuting jobs are searched, and
+   * [address][google.cloud.talent.v4beta1.LocationFilter.address] and
+   * [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are ignored.
+   * If not set or set to
+   * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED],
+   * telecommute job are not searched.
+   * This filter can be used by itself to search exclusively for telecommuting
+   * jobs, or it can be combined with another location
+   * filter to search for a combination of job locations,
+   * such as "Mountain View" or "telecommuting" jobs. However, when used in
+   * combination with other location filters, telecommuting jobs can be
+   * treated as less relevant than other jobs in the search response.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference telecommute_preference = 5; + * + */ + com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference getTelecommutePreference(); + + /** + * + * + *
+   * Optional.
+   * Whether to apply negation to the filter so profiles matching the filter
+   * are excluded.
+   * Currently only supported in profile search.
+   * 
+ * + * bool negated = 6; + */ + boolean getNegated(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationOrBuilder.java new file mode 100644 index 000000000000..9a5ac5bceba3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationOrBuilder.java @@ -0,0 +1,123 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +public interface LocationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Location) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The type of a location, which corresponds to the address lines field of
+   * [PostalAddress][]. For example, "Downtown, Atlanta, GA, USA" has a type of
+   * [LocationType#NEIGHBORHOOD][], and "Kansas City, KS, USA" has a type of
+   * [LocationType#LOCALITY][].
+   * 
+ * + * .google.cloud.talent.v4beta1.Location.LocationType location_type = 1; + */ + int getLocationTypeValue(); + /** + * + * + *
+   * The type of a location, which corresponds to the address lines field of
+   * [PostalAddress][]. For example, "Downtown, Atlanta, GA, USA" has a type of
+   * [LocationType#NEIGHBORHOOD][], and "Kansas City, KS, USA" has a type of
+   * [LocationType#LOCALITY][].
+   * 
+ * + * .google.cloud.talent.v4beta1.Location.LocationType location_type = 1; + */ + com.google.cloud.talent.v4beta1.Location.LocationType getLocationType(); + + /** + * + * + *
+   * Postal address of the location that includes human readable information,
+   * such as postal delivery and payments addresses. Given a postal address,
+   * a postal service can deliver items to a premises, P.O. Box, or other
+   * delivery location.
+   * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + boolean hasPostalAddress(); + /** + * + * + *
+   * Postal address of the location that includes human readable information,
+   * such as postal delivery and payments addresses. Given a postal address,
+   * a postal service can deliver items to a premises, P.O. Box, or other
+   * delivery location.
+   * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + com.google.type.PostalAddress getPostalAddress(); + /** + * + * + *
+   * Postal address of the location that includes human readable information,
+   * such as postal delivery and payments addresses. Given a postal address,
+   * a postal service can deliver items to a premises, P.O. Box, or other
+   * delivery location.
+   * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + com.google.type.PostalAddressOrBuilder getPostalAddressOrBuilder(); + + /** + * + * + *
+   * An object representing a latitude/longitude pair.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + boolean hasLatLng(); + /** + * + * + *
+   * An object representing a latitude/longitude pair.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + com.google.type.LatLng getLatLng(); + /** + * + * + *
+   * An object representing a latitude/longitude pair.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + com.google.type.LatLngOrBuilder getLatLngOrBuilder(); + + /** + * + * + *
+   * Radius in miles of the job location. This value is derived from the
+   * location bounding box in which a circle with the specified radius
+   * centered from [LatLng][] covers the area associated with the job location.
+   * For example, currently, "Mountain View, CA, USA" has a radius of
+   * 6.17 miles.
+   * 
+ * + * double radius_miles = 4; + */ + double getRadiusMiles(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeOptions.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeOptions.java new file mode 100644 index 000000000000..7c09ccb1d5fe --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeOptions.java @@ -0,0 +1,638 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/resume_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Options that change how the resume parse is performed.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ParseResumeOptions} + */ +public final class ParseResumeOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ParseResumeOptions) + ParseResumeOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParseResumeOptions.newBuilder() to construct. + private ParseResumeOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ParseResumeOptions() { + enableOcr_ = false; + enableFullSkillDetection_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ParseResumeOptions( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enableOcr_ = input.readBool(); + break; + } + case 16: + { + enableFullSkillDetection_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ParseResumeOptions.class, + com.google.cloud.talent.v4beta1.ParseResumeOptions.Builder.class); + } + + public static final int ENABLE_OCR_FIELD_NUMBER = 1; + private boolean enableOcr_; + /** + * + * + *
+   * Optional.
+   * Controls whether Optical Character Recognition (OCR) is enabled.
+   * OCR is used to decipher pictorial resumes, or resumes that have some
+   * element of pictorial detail (for example, contact information placed within
+   * an image in a pdf). Note that the API call has a higher latency if OCR is
+   * enabled.
+   * 
+ * + * bool enable_ocr = 1; + */ + public boolean getEnableOcr() { + return enableOcr_; + } + + public static final int ENABLE_FULL_SKILL_DETECTION_FIELD_NUMBER = 2; + private boolean enableFullSkillDetection_; + /** + * + * + *
+   * Optional.
+   * Controls whether detected skills are included in the parsed profile from
+   * sections of the resume other than just skills sections.
+   * Normally, returned skills are limited to those taken from a resume section
+   * intended to list skills. When enabled, this feature causes detected
+   * skills in other sections to also be included in the returned profile.
+   * 
+ * + * bool enable_full_skill_detection = 2; + */ + public boolean getEnableFullSkillDetection() { + return enableFullSkillDetection_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enableOcr_ != false) { + output.writeBool(1, enableOcr_); + } + if (enableFullSkillDetection_ != false) { + output.writeBool(2, enableFullSkillDetection_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableOcr_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableOcr_); + } + if (enableFullSkillDetection_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableFullSkillDetection_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ParseResumeOptions)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ParseResumeOptions other = + (com.google.cloud.talent.v4beta1.ParseResumeOptions) obj; + + boolean result = true; + result = result && (getEnableOcr() == other.getEnableOcr()); + result = result && (getEnableFullSkillDetection() == other.getEnableFullSkillDetection()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLE_OCR_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableOcr()); + hash = (37 * hash) + ENABLE_FULL_SKILL_DETECTION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableFullSkillDetection()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.ParseResumeOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Options that change how the resume parse is performed.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ParseResumeOptions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ParseResumeOptions) + com.google.cloud.talent.v4beta1.ParseResumeOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ParseResumeOptions.class, + com.google.cloud.talent.v4beta1.ParseResumeOptions.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ParseResumeOptions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enableOcr_ = false; + + enableFullSkillDetection_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ParseResumeOptions getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ParseResumeOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ParseResumeOptions build() { + com.google.cloud.talent.v4beta1.ParseResumeOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ParseResumeOptions buildPartial() { + com.google.cloud.talent.v4beta1.ParseResumeOptions result = + new com.google.cloud.talent.v4beta1.ParseResumeOptions(this); + result.enableOcr_ = enableOcr_; + result.enableFullSkillDetection_ = enableFullSkillDetection_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ParseResumeOptions) { + return mergeFrom((com.google.cloud.talent.v4beta1.ParseResumeOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ParseResumeOptions other) { + if (other == com.google.cloud.talent.v4beta1.ParseResumeOptions.getDefaultInstance()) + return this; + if (other.getEnableOcr() != false) { + setEnableOcr(other.getEnableOcr()); + } + if (other.getEnableFullSkillDetection() != false) { + setEnableFullSkillDetection(other.getEnableFullSkillDetection()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ParseResumeOptions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ParseResumeOptions) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enableOcr_; + /** + * + * + *
+     * Optional.
+     * Controls whether Optical Character Recognition (OCR) is enabled.
+     * OCR is used to decipher pictorial resumes, or resumes that have some
+     * element of pictorial detail (for example, contact information placed within
+     * an image in a pdf). Note that the API call has a higher latency if OCR is
+     * enabled.
+     * 
+ * + * bool enable_ocr = 1; + */ + public boolean getEnableOcr() { + return enableOcr_; + } + /** + * + * + *
+     * Optional.
+     * Controls whether Optical Character Recognition (OCR) is enabled.
+     * OCR is used to decipher pictorial resumes, or resumes that have some
+     * element of pictorial detail (for example, contact information placed within
+     * an image in a pdf). Note that the API call has a higher latency if OCR is
+     * enabled.
+     * 
+ * + * bool enable_ocr = 1; + */ + public Builder setEnableOcr(boolean value) { + + enableOcr_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Controls whether Optical Character Recognition (OCR) is enabled.
+     * OCR is used to decipher pictorial resumes, or resumes that have some
+     * element of pictorial detail (for example, contact information placed within
+     * an image in a pdf). Note that the API call has a higher latency if OCR is
+     * enabled.
+     * 
+ * + * bool enable_ocr = 1; + */ + public Builder clearEnableOcr() { + + enableOcr_ = false; + onChanged(); + return this; + } + + private boolean enableFullSkillDetection_; + /** + * + * + *
+     * Optional.
+     * Controls whether detected skills are included in the parsed profile from
+     * sections of the resume other than just skills sections.
+     * Normally, returned skills are limited to those taken from a resume section
+     * intended to list skills. When enabled, this feature causes detected
+     * skills in other sections to also be included in the returned profile.
+     * 
+ * + * bool enable_full_skill_detection = 2; + */ + public boolean getEnableFullSkillDetection() { + return enableFullSkillDetection_; + } + /** + * + * + *
+     * Optional.
+     * Controls whether detected skills are included in the parsed profile from
+     * sections of the resume other than just skills sections.
+     * Normally, returned skills are limited to those taken from a resume section
+     * intended to list skills. When enabled, this feature causes detected
+     * skills in other sections to also be included in the returned profile.
+     * 
+ * + * bool enable_full_skill_detection = 2; + */ + public Builder setEnableFullSkillDetection(boolean value) { + + enableFullSkillDetection_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Controls whether detected skills are included in the parsed profile from
+     * sections of the resume other than just skills sections.
+     * Normally, returned skills are limited to those taken from a resume section
+     * intended to list skills. When enabled, this feature causes detected
+     * skills in other sections to also be included in the returned profile.
+     * 
+ * + * bool enable_full_skill_detection = 2; + */ + public Builder clearEnableFullSkillDetection() { + + enableFullSkillDetection_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ParseResumeOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ParseResumeOptions) + private static final com.google.cloud.talent.v4beta1.ParseResumeOptions DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ParseResumeOptions(); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParseResumeOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ParseResumeOptions(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ParseResumeOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeOptionsOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeOptionsOrBuilder.java new file mode 100644 index 000000000000..d6d88c786dc4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeOptionsOrBuilder.java @@ -0,0 +1,42 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/resume_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface ParseResumeOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ParseResumeOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * Controls whether Optical Character Recognition (OCR) is enabled.
+   * OCR is used to decipher pictorial resumes, or resumes that have some
+   * element of pictorial detail (for example, contact information placed within
+   * an image in a pdf). Note that the API call has a higher latency if OCR is
+   * enabled.
+   * 
+ * + * bool enable_ocr = 1; + */ + boolean getEnableOcr(); + + /** + * + * + *
+   * Optional.
+   * Controls whether detected skills are included in the parsed profile from
+   * sections of the resume other than just skills sections.
+   * Normally, returned skills are limited to those taken from a resume section
+   * intended to list skills. When enabled, this feature causes detected
+   * skills in other sections to also be included in the returned profile.
+   * 
+ * + * bool enable_full_skill_detection = 2; + */ + boolean getEnableFullSkillDetection(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeRequest.java new file mode 100644 index 000000000000..b7a095feb2db --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeRequest.java @@ -0,0 +1,1387 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/resume_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Parse resume request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ParseResumeRequest} + */ +public final class ParseResumeRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ParseResumeRequest) + ParseResumeRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParseResumeRequest.newBuilder() to construct. + private ParseResumeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ParseResumeRequest() { + parent_ = ""; + resume_ = com.google.protobuf.ByteString.EMPTY; + regionCode_ = ""; + languageCode_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ParseResumeRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + resume_ = input.readBytes(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + regionCode_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + languageCode_ = s; + break; + } + case 42: + { + com.google.cloud.talent.v4beta1.ParseResumeOptions.Builder subBuilder = null; + if (options_ != null) { + subBuilder = options_.toBuilder(); + } + options_ = + input.readMessage( + com.google.cloud.talent.v4beta1.ParseResumeOptions.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(options_); + options_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ParseResumeRequest.class, + com.google.cloud.talent.v4beta1.ParseResumeRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * The resource name of the project.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the project.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESUME_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString resume_; + /** + * + * + *
+   * Required.
+   * The bytes of the resume file in common format, for example, PDF, TXT.
+   * UTF-8 encoding is required if the resume is text-based, otherwise an error
+   * is thrown.
+   * 
+ * + * bytes resume = 2; + */ + public com.google.protobuf.ByteString getResume() { + return resume_; + } + + public static final int REGION_CODE_FIELD_NUMBER = 3; + private volatile java.lang.Object regionCode_; + /** + * + * + *
+   * Optional.
+   * The region code indicating where the resume is from. Values
+   * are as per the ISO-3166-2 format. For example, US, FR, DE.
+   * This value is optional, but providing this value improves the resume
+   * parsing quality and performance.
+   * An error is thrown if the regionCode is invalid.
+   * 
+ * + * string region_code = 3; + */ + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regionCode_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The region code indicating where the resume is from. Values
+   * are as per the ISO-3166-2 format. For example, US, FR, DE.
+   * This value is optional, but providing this value improves the resume
+   * parsing quality and performance.
+   * An error is thrown if the regionCode is invalid.
+   * 
+ * + * string region_code = 3; + */ + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regionCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LANGUAGE_CODE_FIELD_NUMBER = 4; + private volatile java.lang.Object languageCode_; + /** + * + * + *
+   * Optional.
+   * The language code of contents in the resume.
+   * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+   * class="external" target="_blank" }.
+   * 
+ * + * string language_code = 4; + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The language code of contents in the resume.
+   * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+   * class="external" target="_blank" }.
+   * 
+ * + * string language_code = 4; + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPTIONS_FIELD_NUMBER = 5; + private com.google.cloud.talent.v4beta1.ParseResumeOptions options_; + /** + * + * + *
+   * Optional.
+   * Options that change how the resume parse is performed.
+   * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + public boolean hasOptions() { + return options_ != null; + } + /** + * + * + *
+   * Optional.
+   * Options that change how the resume parse is performed.
+   * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + public com.google.cloud.talent.v4beta1.ParseResumeOptions getOptions() { + return options_ == null + ? com.google.cloud.talent.v4beta1.ParseResumeOptions.getDefaultInstance() + : options_; + } + /** + * + * + *
+   * Optional.
+   * Options that change how the resume parse is performed.
+   * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + public com.google.cloud.talent.v4beta1.ParseResumeOptionsOrBuilder getOptionsOrBuilder() { + return getOptions(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!resume_.isEmpty()) { + output.writeBytes(2, resume_); + } + if (!getRegionCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, regionCode_); + } + if (!getLanguageCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, languageCode_); + } + if (options_ != null) { + output.writeMessage(5, getOptions()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!resume_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, resume_); + } + if (!getRegionCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, regionCode_); + } + if (!getLanguageCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, languageCode_); + } + if (options_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOptions()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ParseResumeRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ParseResumeRequest other = + (com.google.cloud.talent.v4beta1.ParseResumeRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && getResume().equals(other.getResume()); + result = result && getRegionCode().equals(other.getRegionCode()); + result = result && getLanguageCode().equals(other.getLanguageCode()); + result = result && (hasOptions() == other.hasOptions()); + if (hasOptions()) { + result = result && getOptions().equals(other.getOptions()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + RESUME_FIELD_NUMBER; + hash = (53 * hash) + getResume().hashCode(); + hash = (37 * hash) + REGION_CODE_FIELD_NUMBER; + hash = (53 * hash) + getRegionCode().hashCode(); + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); + if (hasOptions()) { + hash = (37 * hash) + OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getOptions().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.ParseResumeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Parse resume request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ParseResumeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ParseResumeRequest) + com.google.cloud.talent.v4beta1.ParseResumeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ParseResumeRequest.class, + com.google.cloud.talent.v4beta1.ParseResumeRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ParseResumeRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + resume_ = com.google.protobuf.ByteString.EMPTY; + + regionCode_ = ""; + + languageCode_ = ""; + + if (optionsBuilder_ == null) { + options_ = null; + } else { + options_ = null; + optionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ParseResumeRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ParseResumeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ParseResumeRequest build() { + com.google.cloud.talent.v4beta1.ParseResumeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ParseResumeRequest buildPartial() { + com.google.cloud.talent.v4beta1.ParseResumeRequest result = + new com.google.cloud.talent.v4beta1.ParseResumeRequest(this); + result.parent_ = parent_; + result.resume_ = resume_; + result.regionCode_ = regionCode_; + result.languageCode_ = languageCode_; + if (optionsBuilder_ == null) { + result.options_ = options_; + } else { + result.options_ = optionsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ParseResumeRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.ParseResumeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ParseResumeRequest other) { + if (other == com.google.cloud.talent.v4beta1.ParseResumeRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getResume() != com.google.protobuf.ByteString.EMPTY) { + setResume(other.getResume()); + } + if (!other.getRegionCode().isEmpty()) { + regionCode_ = other.regionCode_; + onChanged(); + } + if (!other.getLanguageCode().isEmpty()) { + languageCode_ = other.languageCode_; + onChanged(); + } + if (other.hasOptions()) { + mergeOptions(other.getOptions()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ParseResumeRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ParseResumeRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the project.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the project.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the project.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the project.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the project.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString resume_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
+     * Required.
+     * The bytes of the resume file in common format, for example, PDF, TXT.
+     * UTF-8 encoding is required if the resume is text-based, otherwise an error
+     * is thrown.
+     * 
+ * + * bytes resume = 2; + */ + public com.google.protobuf.ByteString getResume() { + return resume_; + } + /** + * + * + *
+     * Required.
+     * The bytes of the resume file in common format, for example, PDF, TXT.
+     * UTF-8 encoding is required if the resume is text-based, otherwise an error
+     * is thrown.
+     * 
+ * + * bytes resume = 2; + */ + public Builder setResume(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + resume_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The bytes of the resume file in common format, for example, PDF, TXT.
+     * UTF-8 encoding is required if the resume is text-based, otherwise an error
+     * is thrown.
+     * 
+ * + * bytes resume = 2; + */ + public Builder clearResume() { + + resume_ = getDefaultInstance().getResume(); + onChanged(); + return this; + } + + private java.lang.Object regionCode_ = ""; + /** + * + * + *
+     * Optional.
+     * The region code indicating where the resume is from. Values
+     * are as per the ISO-3166-2 format. For example, US, FR, DE.
+     * This value is optional, but providing this value improves the resume
+     * parsing quality and performance.
+     * An error is thrown if the regionCode is invalid.
+     * 
+ * + * string region_code = 3; + */ + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regionCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The region code indicating where the resume is from. Values
+     * are as per the ISO-3166-2 format. For example, US, FR, DE.
+     * This value is optional, but providing this value improves the resume
+     * parsing quality and performance.
+     * An error is thrown if the regionCode is invalid.
+     * 
+ * + * string region_code = 3; + */ + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regionCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The region code indicating where the resume is from. Values
+     * are as per the ISO-3166-2 format. For example, US, FR, DE.
+     * This value is optional, but providing this value improves the resume
+     * parsing quality and performance.
+     * An error is thrown if the regionCode is invalid.
+     * 
+ * + * string region_code = 3; + */ + public Builder setRegionCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + regionCode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The region code indicating where the resume is from. Values
+     * are as per the ISO-3166-2 format. For example, US, FR, DE.
+     * This value is optional, but providing this value improves the resume
+     * parsing quality and performance.
+     * An error is thrown if the regionCode is invalid.
+     * 
+ * + * string region_code = 3; + */ + public Builder clearRegionCode() { + + regionCode_ = getDefaultInstance().getRegionCode(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The region code indicating where the resume is from. Values
+     * are as per the ISO-3166-2 format. For example, US, FR, DE.
+     * This value is optional, but providing this value improves the resume
+     * parsing quality and performance.
+     * An error is thrown if the regionCode is invalid.
+     * 
+ * + * string region_code = 3; + */ + public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + regionCode_ = value; + onChanged(); + return this; + } + + private java.lang.Object languageCode_ = ""; + /** + * + * + *
+     * Optional.
+     * The language code of contents in the resume.
+     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+     * class="external" target="_blank" }.
+     * 
+ * + * string language_code = 4; + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The language code of contents in the resume.
+     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+     * class="external" target="_blank" }.
+     * 
+ * + * string language_code = 4; + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The language code of contents in the resume.
+     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+     * class="external" target="_blank" }.
+     * 
+ * + * string language_code = 4; + */ + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + languageCode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The language code of contents in the resume.
+     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+     * class="external" target="_blank" }.
+     * 
+ * + * string language_code = 4; + */ + public Builder clearLanguageCode() { + + languageCode_ = getDefaultInstance().getLanguageCode(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The language code of contents in the resume.
+     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+     * class="external" target="_blank" }.
+     * 
+ * + * string language_code = 4; + */ + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + languageCode_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.ParseResumeOptions options_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ParseResumeOptions, + com.google.cloud.talent.v4beta1.ParseResumeOptions.Builder, + com.google.cloud.talent.v4beta1.ParseResumeOptionsOrBuilder> + optionsBuilder_; + /** + * + * + *
+     * Optional.
+     * Options that change how the resume parse is performed.
+     * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + public boolean hasOptions() { + return optionsBuilder_ != null || options_ != null; + } + /** + * + * + *
+     * Optional.
+     * Options that change how the resume parse is performed.
+     * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + public com.google.cloud.talent.v4beta1.ParseResumeOptions getOptions() { + if (optionsBuilder_ == null) { + return options_ == null + ? com.google.cloud.talent.v4beta1.ParseResumeOptions.getDefaultInstance() + : options_; + } else { + return optionsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Options that change how the resume parse is performed.
+     * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + public Builder setOptions(com.google.cloud.talent.v4beta1.ParseResumeOptions value) { + if (optionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + options_ = value; + onChanged(); + } else { + optionsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Options that change how the resume parse is performed.
+     * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + public Builder setOptions( + com.google.cloud.talent.v4beta1.ParseResumeOptions.Builder builderForValue) { + if (optionsBuilder_ == null) { + options_ = builderForValue.build(); + onChanged(); + } else { + optionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Options that change how the resume parse is performed.
+     * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + public Builder mergeOptions(com.google.cloud.talent.v4beta1.ParseResumeOptions value) { + if (optionsBuilder_ == null) { + if (options_ != null) { + options_ = + com.google.cloud.talent.v4beta1.ParseResumeOptions.newBuilder(options_) + .mergeFrom(value) + .buildPartial(); + } else { + options_ = value; + } + onChanged(); + } else { + optionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Options that change how the resume parse is performed.
+     * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + public Builder clearOptions() { + if (optionsBuilder_ == null) { + options_ = null; + onChanged(); + } else { + options_ = null; + optionsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Options that change how the resume parse is performed.
+     * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + public com.google.cloud.talent.v4beta1.ParseResumeOptions.Builder getOptionsBuilder() { + + onChanged(); + return getOptionsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Options that change how the resume parse is performed.
+     * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + public com.google.cloud.talent.v4beta1.ParseResumeOptionsOrBuilder getOptionsOrBuilder() { + if (optionsBuilder_ != null) { + return optionsBuilder_.getMessageOrBuilder(); + } else { + return options_ == null + ? com.google.cloud.talent.v4beta1.ParseResumeOptions.getDefaultInstance() + : options_; + } + } + /** + * + * + *
+     * Optional.
+     * Options that change how the resume parse is performed.
+     * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ParseResumeOptions, + com.google.cloud.talent.v4beta1.ParseResumeOptions.Builder, + com.google.cloud.talent.v4beta1.ParseResumeOptionsOrBuilder> + getOptionsFieldBuilder() { + if (optionsBuilder_ == null) { + optionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ParseResumeOptions, + com.google.cloud.talent.v4beta1.ParseResumeOptions.Builder, + com.google.cloud.talent.v4beta1.ParseResumeOptionsOrBuilder>( + getOptions(), getParentForChildren(), isClean()); + options_ = null; + } + return optionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ParseResumeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ParseResumeRequest) + private static final com.google.cloud.talent.v4beta1.ParseResumeRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ParseResumeRequest(); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParseResumeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ParseResumeRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ParseResumeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeRequestOrBuilder.java new file mode 100644 index 000000000000..f4ca4847d5fb --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeRequestOrBuilder.java @@ -0,0 +1,147 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/resume_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface ParseResumeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ParseResumeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the project.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * The resource name of the project.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required.
+   * The bytes of the resume file in common format, for example, PDF, TXT.
+   * UTF-8 encoding is required if the resume is text-based, otherwise an error
+   * is thrown.
+   * 
+ * + * bytes resume = 2; + */ + com.google.protobuf.ByteString getResume(); + + /** + * + * + *
+   * Optional.
+   * The region code indicating where the resume is from. Values
+   * are as per the ISO-3166-2 format. For example, US, FR, DE.
+   * This value is optional, but providing this value improves the resume
+   * parsing quality and performance.
+   * An error is thrown if the regionCode is invalid.
+   * 
+ * + * string region_code = 3; + */ + java.lang.String getRegionCode(); + /** + * + * + *
+   * Optional.
+   * The region code indicating where the resume is from. Values
+   * are as per the ISO-3166-2 format. For example, US, FR, DE.
+   * This value is optional, but providing this value improves the resume
+   * parsing quality and performance.
+   * An error is thrown if the regionCode is invalid.
+   * 
+ * + * string region_code = 3; + */ + com.google.protobuf.ByteString getRegionCodeBytes(); + + /** + * + * + *
+   * Optional.
+   * The language code of contents in the resume.
+   * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+   * class="external" target="_blank" }.
+   * 
+ * + * string language_code = 4; + */ + java.lang.String getLanguageCode(); + /** + * + * + *
+   * Optional.
+   * The language code of contents in the resume.
+   * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+   * class="external" target="_blank" }.
+   * 
+ * + * string language_code = 4; + */ + com.google.protobuf.ByteString getLanguageCodeBytes(); + + /** + * + * + *
+   * Optional.
+   * Options that change how the resume parse is performed.
+   * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + boolean hasOptions(); + /** + * + * + *
+   * Optional.
+   * Options that change how the resume parse is performed.
+   * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + com.google.cloud.talent.v4beta1.ParseResumeOptions getOptions(); + /** + * + * + *
+   * Optional.
+   * Options that change how the resume parse is performed.
+   * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + com.google.cloud.talent.v4beta1.ParseResumeOptionsOrBuilder getOptionsOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeResponse.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeResponse.java new file mode 100644 index 000000000000..aa52350520c9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeResponse.java @@ -0,0 +1,865 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/resume_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Parse resume response.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ParseResumeResponse} + */ +public final class ParseResumeResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ParseResumeResponse) + ParseResumeResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParseResumeResponse.newBuilder() to construct. + private ParseResumeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ParseResumeResponse() { + rawText_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ParseResumeResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.talent.v4beta1.Profile.Builder subBuilder = null; + if (profile_ != null) { + subBuilder = profile_.toBuilder(); + } + profile_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Profile.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(profile_); + profile_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + rawText_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ParseResumeResponse.class, + com.google.cloud.talent.v4beta1.ParseResumeResponse.Builder.class); + } + + public static final int PROFILE_FIELD_NUMBER = 1; + private com.google.cloud.talent.v4beta1.Profile profile_; + /** + * + * + *
+   * The profile parsed from resume.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public boolean hasProfile() { + return profile_ != null; + } + /** + * + * + *
+   * The profile parsed from resume.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public com.google.cloud.talent.v4beta1.Profile getProfile() { + return profile_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : profile_; + } + /** + * + * + *
+   * The profile parsed from resume.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder() { + return getProfile(); + } + + public static final int RAW_TEXT_FIELD_NUMBER = 2; + private volatile java.lang.Object rawText_; + /** + * + * + *
+   * Raw text from resume.
+   * 
+ * + * string raw_text = 2; + */ + public java.lang.String getRawText() { + java.lang.Object ref = rawText_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rawText_ = s; + return s; + } + } + /** + * + * + *
+   * Raw text from resume.
+   * 
+ * + * string raw_text = 2; + */ + public com.google.protobuf.ByteString getRawTextBytes() { + java.lang.Object ref = rawText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rawText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (profile_ != null) { + output.writeMessage(1, getProfile()); + } + if (!getRawTextBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, rawText_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (profile_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProfile()); + } + if (!getRawTextBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, rawText_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ParseResumeResponse)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ParseResumeResponse other = + (com.google.cloud.talent.v4beta1.ParseResumeResponse) obj; + + boolean result = true; + result = result && (hasProfile() == other.hasProfile()); + if (hasProfile()) { + result = result && getProfile().equals(other.getProfile()); + } + result = result && getRawText().equals(other.getRawText()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasProfile()) { + hash = (37 * hash) + PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getProfile().hashCode(); + } + hash = (37 * hash) + RAW_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getRawText().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.ParseResumeResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Parse resume response.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ParseResumeResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ParseResumeResponse) + com.google.cloud.talent.v4beta1.ParseResumeResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ParseResumeResponse.class, + com.google.cloud.talent.v4beta1.ParseResumeResponse.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ParseResumeResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (profileBuilder_ == null) { + profile_ = null; + } else { + profile_ = null; + profileBuilder_ = null; + } + rawText_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ParseResumeResponse getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ParseResumeResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ParseResumeResponse build() { + com.google.cloud.talent.v4beta1.ParseResumeResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ParseResumeResponse buildPartial() { + com.google.cloud.talent.v4beta1.ParseResumeResponse result = + new com.google.cloud.talent.v4beta1.ParseResumeResponse(this); + if (profileBuilder_ == null) { + result.profile_ = profile_; + } else { + result.profile_ = profileBuilder_.build(); + } + result.rawText_ = rawText_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ParseResumeResponse) { + return mergeFrom((com.google.cloud.talent.v4beta1.ParseResumeResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ParseResumeResponse other) { + if (other == com.google.cloud.talent.v4beta1.ParseResumeResponse.getDefaultInstance()) + return this; + if (other.hasProfile()) { + mergeProfile(other.getProfile()); + } + if (!other.getRawText().isEmpty()) { + rawText_ = other.rawText_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ParseResumeResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ParseResumeResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.talent.v4beta1.Profile profile_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + profileBuilder_; + /** + * + * + *
+     * The profile parsed from resume.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public boolean hasProfile() { + return profileBuilder_ != null || profile_ != null; + } + /** + * + * + *
+     * The profile parsed from resume.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public com.google.cloud.talent.v4beta1.Profile getProfile() { + if (profileBuilder_ == null) { + return profile_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : profile_; + } else { + return profileBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The profile parsed from resume.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public Builder setProfile(com.google.cloud.talent.v4beta1.Profile value) { + if (profileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profile_ = value; + onChanged(); + } else { + profileBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The profile parsed from resume.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public Builder setProfile(com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { + if (profileBuilder_ == null) { + profile_ = builderForValue.build(); + onChanged(); + } else { + profileBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The profile parsed from resume.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public Builder mergeProfile(com.google.cloud.talent.v4beta1.Profile value) { + if (profileBuilder_ == null) { + if (profile_ != null) { + profile_ = + com.google.cloud.talent.v4beta1.Profile.newBuilder(profile_) + .mergeFrom(value) + .buildPartial(); + } else { + profile_ = value; + } + onChanged(); + } else { + profileBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The profile parsed from resume.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public Builder clearProfile() { + if (profileBuilder_ == null) { + profile_ = null; + onChanged(); + } else { + profile_ = null; + profileBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The profile parsed from resume.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public com.google.cloud.talent.v4beta1.Profile.Builder getProfileBuilder() { + + onChanged(); + return getProfileFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The profile parsed from resume.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder() { + if (profileBuilder_ != null) { + return profileBuilder_.getMessageOrBuilder(); + } else { + return profile_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : profile_; + } + } + /** + * + * + *
+     * The profile parsed from resume.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + getProfileFieldBuilder() { + if (profileBuilder_ == null) { + profileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder>( + getProfile(), getParentForChildren(), isClean()); + profile_ = null; + } + return profileBuilder_; + } + + private java.lang.Object rawText_ = ""; + /** + * + * + *
+     * Raw text from resume.
+     * 
+ * + * string raw_text = 2; + */ + public java.lang.String getRawText() { + java.lang.Object ref = rawText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rawText_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Raw text from resume.
+     * 
+ * + * string raw_text = 2; + */ + public com.google.protobuf.ByteString getRawTextBytes() { + java.lang.Object ref = rawText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rawText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Raw text from resume.
+     * 
+ * + * string raw_text = 2; + */ + public Builder setRawText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + rawText_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Raw text from resume.
+     * 
+ * + * string raw_text = 2; + */ + public Builder clearRawText() { + + rawText_ = getDefaultInstance().getRawText(); + onChanged(); + return this; + } + /** + * + * + *
+     * Raw text from resume.
+     * 
+ * + * string raw_text = 2; + */ + public Builder setRawTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + rawText_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ParseResumeResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ParseResumeResponse) + private static final com.google.cloud.talent.v4beta1.ParseResumeResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ParseResumeResponse(); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParseResumeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ParseResumeResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ParseResumeResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeResponseOrBuilder.java new file mode 100644 index 000000000000..a0a8563223a8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeResponseOrBuilder.java @@ -0,0 +1,62 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/resume_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface ParseResumeResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ParseResumeResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The profile parsed from resume.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + boolean hasProfile(); + /** + * + * + *
+   * The profile parsed from resume.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + com.google.cloud.talent.v4beta1.Profile getProfile(); + /** + * + * + *
+   * The profile parsed from resume.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder(); + + /** + * + * + *
+   * Raw text from resume.
+   * 
+ * + * string raw_text = 2; + */ + java.lang.String getRawText(); + /** + * + * + *
+   * Raw text from resume.
+   * 
+ * + * string raw_text = 2; + */ + com.google.protobuf.ByteString getRawTextBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Patent.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Patent.java new file mode 100644 index 000000000000..232d20a3dda3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Patent.java @@ -0,0 +1,2630 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents the patent acquired by a candidate.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Patent} + */ +public final class Patent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Patent) + PatentOrBuilder { + private static final long serialVersionUID = 0L; + // Use Patent.newBuilder() to construct. + private Patent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Patent() { + displayName_ = ""; + inventors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + patentStatus_ = ""; + patentOffice_ = ""; + patentNumber_ = ""; + patentDescription_ = ""; + skillsUsed_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Patent( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + inventors_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + inventors_.add(s); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + patentStatus_ = s; + break; + } + case 34: + { + com.google.type.Date.Builder subBuilder = null; + if (patentStatusDate_ != null) { + subBuilder = patentStatusDate_.toBuilder(); + } + patentStatusDate_ = + input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(patentStatusDate_); + patentStatusDate_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + com.google.type.Date.Builder subBuilder = null; + if (patentFilingDate_ != null) { + subBuilder = patentFilingDate_.toBuilder(); + } + patentFilingDate_ = + input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(patentFilingDate_); + patentFilingDate_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + patentOffice_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + patentNumber_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + patentDescription_ = s; + break; + } + case 74: + { + if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { + skillsUsed_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000100; + } + skillsUsed_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Skill.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + inventors_ = inventors_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { + skillsUsed_ = java.util.Collections.unmodifiableList(skillsUsed_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Patent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Patent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Patent.class, + com.google.cloud.talent.v4beta1.Patent.Builder.class); + } + + private int bitField0_; + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Optional.
+   * Name of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Name of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INVENTORS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList inventors_; + /** + * + * + *
+   * Optional.
+   * A list of inventors' names.
+   * Number of characters allowed for each is 100.
+   * 
+ * + * repeated string inventors = 2; + */ + public com.google.protobuf.ProtocolStringList getInventorsList() { + return inventors_; + } + /** + * + * + *
+   * Optional.
+   * A list of inventors' names.
+   * Number of characters allowed for each is 100.
+   * 
+ * + * repeated string inventors = 2; + */ + public int getInventorsCount() { + return inventors_.size(); + } + /** + * + * + *
+   * Optional.
+   * A list of inventors' names.
+   * Number of characters allowed for each is 100.
+   * 
+ * + * repeated string inventors = 2; + */ + public java.lang.String getInventors(int index) { + return inventors_.get(index); + } + /** + * + * + *
+   * Optional.
+   * A list of inventors' names.
+   * Number of characters allowed for each is 100.
+   * 
+ * + * repeated string inventors = 2; + */ + public com.google.protobuf.ByteString getInventorsBytes(int index) { + return inventors_.getByteString(index); + } + + public static final int PATENT_STATUS_FIELD_NUMBER = 3; + private volatile java.lang.Object patentStatus_; + /** + * + * + *
+   * Optional.
+   * The status of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_status = 3; + */ + public java.lang.String getPatentStatus() { + java.lang.Object ref = patentStatus_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + patentStatus_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The status of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_status = 3; + */ + public com.google.protobuf.ByteString getPatentStatusBytes() { + java.lang.Object ref = patentStatus_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + patentStatus_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PATENT_STATUS_DATE_FIELD_NUMBER = 4; + private com.google.type.Date patentStatusDate_; + /** + * + * + *
+   * Optional.
+   * The date the last time the status of the patent was checked.
+   * 
+ * + * .google.type.Date patent_status_date = 4; + */ + public boolean hasPatentStatusDate() { + return patentStatusDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * The date the last time the status of the patent was checked.
+   * 
+ * + * .google.type.Date patent_status_date = 4; + */ + public com.google.type.Date getPatentStatusDate() { + return patentStatusDate_ == null + ? com.google.type.Date.getDefaultInstance() + : patentStatusDate_; + } + /** + * + * + *
+   * Optional.
+   * The date the last time the status of the patent was checked.
+   * 
+ * + * .google.type.Date patent_status_date = 4; + */ + public com.google.type.DateOrBuilder getPatentStatusDateOrBuilder() { + return getPatentStatusDate(); + } + + public static final int PATENT_FILING_DATE_FIELD_NUMBER = 5; + private com.google.type.Date patentFilingDate_; + /** + * + * + *
+   * Optional.
+   * The date that the patent was filed.
+   * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + public boolean hasPatentFilingDate() { + return patentFilingDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * The date that the patent was filed.
+   * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + public com.google.type.Date getPatentFilingDate() { + return patentFilingDate_ == null + ? com.google.type.Date.getDefaultInstance() + : patentFilingDate_; + } + /** + * + * + *
+   * Optional.
+   * The date that the patent was filed.
+   * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + public com.google.type.DateOrBuilder getPatentFilingDateOrBuilder() { + return getPatentFilingDate(); + } + + public static final int PATENT_OFFICE_FIELD_NUMBER = 6; + private volatile java.lang.Object patentOffice_; + /** + * + * + *
+   * Optional.
+   * The name of the patent office.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_office = 6; + */ + public java.lang.String getPatentOffice() { + java.lang.Object ref = patentOffice_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + patentOffice_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The name of the patent office.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_office = 6; + */ + public com.google.protobuf.ByteString getPatentOfficeBytes() { + java.lang.Object ref = patentOffice_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + patentOffice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PATENT_NUMBER_FIELD_NUMBER = 7; + private volatile java.lang.Object patentNumber_; + /** + * + * + *
+   * Optional.
+   * The number of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_number = 7; + */ + public java.lang.String getPatentNumber() { + java.lang.Object ref = patentNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + patentNumber_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The number of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_number = 7; + */ + public com.google.protobuf.ByteString getPatentNumberBytes() { + java.lang.Object ref = patentNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + patentNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PATENT_DESCRIPTION_FIELD_NUMBER = 8; + private volatile java.lang.Object patentDescription_; + /** + * + * + *
+   * Optional.
+   * The description of the patent.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string patent_description = 8; + */ + public java.lang.String getPatentDescription() { + java.lang.Object ref = patentDescription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + patentDescription_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The description of the patent.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string patent_description = 8; + */ + public com.google.protobuf.ByteString getPatentDescriptionBytes() { + java.lang.Object ref = patentDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + patentDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKILLS_USED_FIELD_NUMBER = 9; + private java.util.List skillsUsed_; + /** + * + * + *
+   * Optional.
+   * The skills used in this patent.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public java.util.List getSkillsUsedList() { + return skillsUsed_; + } + /** + * + * + *
+   * Optional.
+   * The skills used in this patent.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public java.util.List + getSkillsUsedOrBuilderList() { + return skillsUsed_; + } + /** + * + * + *
+   * Optional.
+   * The skills used in this patent.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public int getSkillsUsedCount() { + return skillsUsed_.size(); + } + /** + * + * + *
+   * Optional.
+   * The skills used in this patent.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public com.google.cloud.talent.v4beta1.Skill getSkillsUsed(int index) { + return skillsUsed_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The skills used in this patent.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsUsedOrBuilder(int index) { + return skillsUsed_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + for (int i = 0; i < inventors_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inventors_.getRaw(i)); + } + if (!getPatentStatusBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, patentStatus_); + } + if (patentStatusDate_ != null) { + output.writeMessage(4, getPatentStatusDate()); + } + if (patentFilingDate_ != null) { + output.writeMessage(5, getPatentFilingDate()); + } + if (!getPatentOfficeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, patentOffice_); + } + if (!getPatentNumberBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, patentNumber_); + } + if (!getPatentDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, patentDescription_); + } + for (int i = 0; i < skillsUsed_.size(); i++) { + output.writeMessage(9, skillsUsed_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + { + int dataSize = 0; + for (int i = 0; i < inventors_.size(); i++) { + dataSize += computeStringSizeNoTag(inventors_.getRaw(i)); + } + size += dataSize; + size += 1 * getInventorsList().size(); + } + if (!getPatentStatusBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, patentStatus_); + } + if (patentStatusDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPatentStatusDate()); + } + if (patentFilingDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getPatentFilingDate()); + } + if (!getPatentOfficeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, patentOffice_); + } + if (!getPatentNumberBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, patentNumber_); + } + if (!getPatentDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, patentDescription_); + } + for (int i = 0; i < skillsUsed_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, skillsUsed_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Patent)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Patent other = (com.google.cloud.talent.v4beta1.Patent) obj; + + boolean result = true; + result = result && getDisplayName().equals(other.getDisplayName()); + result = result && getInventorsList().equals(other.getInventorsList()); + result = result && getPatentStatus().equals(other.getPatentStatus()); + result = result && (hasPatentStatusDate() == other.hasPatentStatusDate()); + if (hasPatentStatusDate()) { + result = result && getPatentStatusDate().equals(other.getPatentStatusDate()); + } + result = result && (hasPatentFilingDate() == other.hasPatentFilingDate()); + if (hasPatentFilingDate()) { + result = result && getPatentFilingDate().equals(other.getPatentFilingDate()); + } + result = result && getPatentOffice().equals(other.getPatentOffice()); + result = result && getPatentNumber().equals(other.getPatentNumber()); + result = result && getPatentDescription().equals(other.getPatentDescription()); + result = result && getSkillsUsedList().equals(other.getSkillsUsedList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (getInventorsCount() > 0) { + hash = (37 * hash) + INVENTORS_FIELD_NUMBER; + hash = (53 * hash) + getInventorsList().hashCode(); + } + hash = (37 * hash) + PATENT_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getPatentStatus().hashCode(); + if (hasPatentStatusDate()) { + hash = (37 * hash) + PATENT_STATUS_DATE_FIELD_NUMBER; + hash = (53 * hash) + getPatentStatusDate().hashCode(); + } + if (hasPatentFilingDate()) { + hash = (37 * hash) + PATENT_FILING_DATE_FIELD_NUMBER; + hash = (53 * hash) + getPatentFilingDate().hashCode(); + } + hash = (37 * hash) + PATENT_OFFICE_FIELD_NUMBER; + hash = (53 * hash) + getPatentOffice().hashCode(); + hash = (37 * hash) + PATENT_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getPatentNumber().hashCode(); + hash = (37 * hash) + PATENT_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getPatentDescription().hashCode(); + if (getSkillsUsedCount() > 0) { + hash = (37 * hash) + SKILLS_USED_FIELD_NUMBER; + hash = (53 * hash) + getSkillsUsedList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Patent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Patent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Patent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Patent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Patent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Patent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Patent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Patent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Patent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Patent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Patent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Patent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.Patent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Resource that represents the patent acquired by a candidate.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Patent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Patent) + com.google.cloud.talent.v4beta1.PatentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Patent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Patent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Patent.class, + com.google.cloud.talent.v4beta1.Patent.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Patent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSkillsUsedFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + displayName_ = ""; + + inventors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + patentStatus_ = ""; + + if (patentStatusDateBuilder_ == null) { + patentStatusDate_ = null; + } else { + patentStatusDate_ = null; + patentStatusDateBuilder_ = null; + } + if (patentFilingDateBuilder_ == null) { + patentFilingDate_ = null; + } else { + patentFilingDate_ = null; + patentFilingDateBuilder_ = null; + } + patentOffice_ = ""; + + patentNumber_ = ""; + + patentDescription_ = ""; + + if (skillsUsedBuilder_ == null) { + skillsUsed_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + } else { + skillsUsedBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Patent_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Patent getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Patent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Patent build() { + com.google.cloud.talent.v4beta1.Patent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Patent buildPartial() { + com.google.cloud.talent.v4beta1.Patent result = + new com.google.cloud.talent.v4beta1.Patent(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.displayName_ = displayName_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + inventors_ = inventors_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.inventors_ = inventors_; + result.patentStatus_ = patentStatus_; + if (patentStatusDateBuilder_ == null) { + result.patentStatusDate_ = patentStatusDate_; + } else { + result.patentStatusDate_ = patentStatusDateBuilder_.build(); + } + if (patentFilingDateBuilder_ == null) { + result.patentFilingDate_ = patentFilingDate_; + } else { + result.patentFilingDate_ = patentFilingDateBuilder_.build(); + } + result.patentOffice_ = patentOffice_; + result.patentNumber_ = patentNumber_; + result.patentDescription_ = patentDescription_; + if (skillsUsedBuilder_ == null) { + if (((bitField0_ & 0x00000100) == 0x00000100)) { + skillsUsed_ = java.util.Collections.unmodifiableList(skillsUsed_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.skillsUsed_ = skillsUsed_; + } else { + result.skillsUsed_ = skillsUsedBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Patent) { + return mergeFrom((com.google.cloud.talent.v4beta1.Patent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Patent other) { + if (other == com.google.cloud.talent.v4beta1.Patent.getDefaultInstance()) return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.inventors_.isEmpty()) { + if (inventors_.isEmpty()) { + inventors_ = other.inventors_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureInventorsIsMutable(); + inventors_.addAll(other.inventors_); + } + onChanged(); + } + if (!other.getPatentStatus().isEmpty()) { + patentStatus_ = other.patentStatus_; + onChanged(); + } + if (other.hasPatentStatusDate()) { + mergePatentStatusDate(other.getPatentStatusDate()); + } + if (other.hasPatentFilingDate()) { + mergePatentFilingDate(other.getPatentFilingDate()); + } + if (!other.getPatentOffice().isEmpty()) { + patentOffice_ = other.patentOffice_; + onChanged(); + } + if (!other.getPatentNumber().isEmpty()) { + patentNumber_ = other.patentNumber_; + onChanged(); + } + if (!other.getPatentDescription().isEmpty()) { + patentDescription_ = other.patentDescription_; + onChanged(); + } + if (skillsUsedBuilder_ == null) { + if (!other.skillsUsed_.isEmpty()) { + if (skillsUsed_.isEmpty()) { + skillsUsed_ = other.skillsUsed_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureSkillsUsedIsMutable(); + skillsUsed_.addAll(other.skillsUsed_); + } + onChanged(); + } + } else { + if (!other.skillsUsed_.isEmpty()) { + if (skillsUsedBuilder_.isEmpty()) { + skillsUsedBuilder_.dispose(); + skillsUsedBuilder_ = null; + skillsUsed_ = other.skillsUsed_; + bitField0_ = (bitField0_ & ~0x00000100); + skillsUsedBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSkillsUsedFieldBuilder() + : null; + } else { + skillsUsedBuilder_.addAllMessages(other.skillsUsed_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Patent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Patent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Optional.
+     * Name of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Name of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Name of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Name of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Name of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList inventors_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureInventorsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + inventors_ = new com.google.protobuf.LazyStringArrayList(inventors_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Optional.
+     * A list of inventors' names.
+     * Number of characters allowed for each is 100.
+     * 
+ * + * repeated string inventors = 2; + */ + public com.google.protobuf.ProtocolStringList getInventorsList() { + return inventors_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional.
+     * A list of inventors' names.
+     * Number of characters allowed for each is 100.
+     * 
+ * + * repeated string inventors = 2; + */ + public int getInventorsCount() { + return inventors_.size(); + } + /** + * + * + *
+     * Optional.
+     * A list of inventors' names.
+     * Number of characters allowed for each is 100.
+     * 
+ * + * repeated string inventors = 2; + */ + public java.lang.String getInventors(int index) { + return inventors_.get(index); + } + /** + * + * + *
+     * Optional.
+     * A list of inventors' names.
+     * Number of characters allowed for each is 100.
+     * 
+ * + * repeated string inventors = 2; + */ + public com.google.protobuf.ByteString getInventorsBytes(int index) { + return inventors_.getByteString(index); + } + /** + * + * + *
+     * Optional.
+     * A list of inventors' names.
+     * Number of characters allowed for each is 100.
+     * 
+ * + * repeated string inventors = 2; + */ + public Builder setInventors(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInventorsIsMutable(); + inventors_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of inventors' names.
+     * Number of characters allowed for each is 100.
+     * 
+ * + * repeated string inventors = 2; + */ + public Builder addInventors(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInventorsIsMutable(); + inventors_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of inventors' names.
+     * Number of characters allowed for each is 100.
+     * 
+ * + * repeated string inventors = 2; + */ + public Builder addAllInventors(java.lang.Iterable values) { + ensureInventorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inventors_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of inventors' names.
+     * Number of characters allowed for each is 100.
+     * 
+ * + * repeated string inventors = 2; + */ + public Builder clearInventors() { + inventors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of inventors' names.
+     * Number of characters allowed for each is 100.
+     * 
+ * + * repeated string inventors = 2; + */ + public Builder addInventorsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureInventorsIsMutable(); + inventors_.add(value); + onChanged(); + return this; + } + + private java.lang.Object patentStatus_ = ""; + /** + * + * + *
+     * Optional.
+     * The status of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_status = 3; + */ + public java.lang.String getPatentStatus() { + java.lang.Object ref = patentStatus_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + patentStatus_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The status of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_status = 3; + */ + public com.google.protobuf.ByteString getPatentStatusBytes() { + java.lang.Object ref = patentStatus_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + patentStatus_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The status of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_status = 3; + */ + public Builder setPatentStatus(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + patentStatus_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The status of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_status = 3; + */ + public Builder clearPatentStatus() { + + patentStatus_ = getDefaultInstance().getPatentStatus(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The status of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_status = 3; + */ + public Builder setPatentStatusBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + patentStatus_ = value; + onChanged(); + return this; + } + + private com.google.type.Date patentStatusDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + patentStatusDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The date the last time the status of the patent was checked.
+     * 
+ * + * .google.type.Date patent_status_date = 4; + */ + public boolean hasPatentStatusDate() { + return patentStatusDateBuilder_ != null || patentStatusDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The date the last time the status of the patent was checked.
+     * 
+ * + * .google.type.Date patent_status_date = 4; + */ + public com.google.type.Date getPatentStatusDate() { + if (patentStatusDateBuilder_ == null) { + return patentStatusDate_ == null + ? com.google.type.Date.getDefaultInstance() + : patentStatusDate_; + } else { + return patentStatusDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The date the last time the status of the patent was checked.
+     * 
+ * + * .google.type.Date patent_status_date = 4; + */ + public Builder setPatentStatusDate(com.google.type.Date value) { + if (patentStatusDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + patentStatusDate_ = value; + onChanged(); + } else { + patentStatusDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The date the last time the status of the patent was checked.
+     * 
+ * + * .google.type.Date patent_status_date = 4; + */ + public Builder setPatentStatusDate(com.google.type.Date.Builder builderForValue) { + if (patentStatusDateBuilder_ == null) { + patentStatusDate_ = builderForValue.build(); + onChanged(); + } else { + patentStatusDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The date the last time the status of the patent was checked.
+     * 
+ * + * .google.type.Date patent_status_date = 4; + */ + public Builder mergePatentStatusDate(com.google.type.Date value) { + if (patentStatusDateBuilder_ == null) { + if (patentStatusDate_ != null) { + patentStatusDate_ = + com.google.type.Date.newBuilder(patentStatusDate_).mergeFrom(value).buildPartial(); + } else { + patentStatusDate_ = value; + } + onChanged(); + } else { + patentStatusDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The date the last time the status of the patent was checked.
+     * 
+ * + * .google.type.Date patent_status_date = 4; + */ + public Builder clearPatentStatusDate() { + if (patentStatusDateBuilder_ == null) { + patentStatusDate_ = null; + onChanged(); + } else { + patentStatusDate_ = null; + patentStatusDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The date the last time the status of the patent was checked.
+     * 
+ * + * .google.type.Date patent_status_date = 4; + */ + public com.google.type.Date.Builder getPatentStatusDateBuilder() { + + onChanged(); + return getPatentStatusDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The date the last time the status of the patent was checked.
+     * 
+ * + * .google.type.Date patent_status_date = 4; + */ + public com.google.type.DateOrBuilder getPatentStatusDateOrBuilder() { + if (patentStatusDateBuilder_ != null) { + return patentStatusDateBuilder_.getMessageOrBuilder(); + } else { + return patentStatusDate_ == null + ? com.google.type.Date.getDefaultInstance() + : patentStatusDate_; + } + } + /** + * + * + *
+     * Optional.
+     * The date the last time the status of the patent was checked.
+     * 
+ * + * .google.type.Date patent_status_date = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getPatentStatusDateFieldBuilder() { + if (patentStatusDateBuilder_ == null) { + patentStatusDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getPatentStatusDate(), getParentForChildren(), isClean()); + patentStatusDate_ = null; + } + return patentStatusDateBuilder_; + } + + private com.google.type.Date patentFilingDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + patentFilingDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The date that the patent was filed.
+     * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + public boolean hasPatentFilingDate() { + return patentFilingDateBuilder_ != null || patentFilingDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The date that the patent was filed.
+     * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + public com.google.type.Date getPatentFilingDate() { + if (patentFilingDateBuilder_ == null) { + return patentFilingDate_ == null + ? com.google.type.Date.getDefaultInstance() + : patentFilingDate_; + } else { + return patentFilingDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The date that the patent was filed.
+     * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + public Builder setPatentFilingDate(com.google.type.Date value) { + if (patentFilingDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + patentFilingDate_ = value; + onChanged(); + } else { + patentFilingDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The date that the patent was filed.
+     * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + public Builder setPatentFilingDate(com.google.type.Date.Builder builderForValue) { + if (patentFilingDateBuilder_ == null) { + patentFilingDate_ = builderForValue.build(); + onChanged(); + } else { + patentFilingDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The date that the patent was filed.
+     * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + public Builder mergePatentFilingDate(com.google.type.Date value) { + if (patentFilingDateBuilder_ == null) { + if (patentFilingDate_ != null) { + patentFilingDate_ = + com.google.type.Date.newBuilder(patentFilingDate_).mergeFrom(value).buildPartial(); + } else { + patentFilingDate_ = value; + } + onChanged(); + } else { + patentFilingDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The date that the patent was filed.
+     * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + public Builder clearPatentFilingDate() { + if (patentFilingDateBuilder_ == null) { + patentFilingDate_ = null; + onChanged(); + } else { + patentFilingDate_ = null; + patentFilingDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The date that the patent was filed.
+     * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + public com.google.type.Date.Builder getPatentFilingDateBuilder() { + + onChanged(); + return getPatentFilingDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The date that the patent was filed.
+     * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + public com.google.type.DateOrBuilder getPatentFilingDateOrBuilder() { + if (patentFilingDateBuilder_ != null) { + return patentFilingDateBuilder_.getMessageOrBuilder(); + } else { + return patentFilingDate_ == null + ? com.google.type.Date.getDefaultInstance() + : patentFilingDate_; + } + } + /** + * + * + *
+     * Optional.
+     * The date that the patent was filed.
+     * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getPatentFilingDateFieldBuilder() { + if (patentFilingDateBuilder_ == null) { + patentFilingDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getPatentFilingDate(), getParentForChildren(), isClean()); + patentFilingDate_ = null; + } + return patentFilingDateBuilder_; + } + + private java.lang.Object patentOffice_ = ""; + /** + * + * + *
+     * Optional.
+     * The name of the patent office.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_office = 6; + */ + public java.lang.String getPatentOffice() { + java.lang.Object ref = patentOffice_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + patentOffice_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The name of the patent office.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_office = 6; + */ + public com.google.protobuf.ByteString getPatentOfficeBytes() { + java.lang.Object ref = patentOffice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + patentOffice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The name of the patent office.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_office = 6; + */ + public Builder setPatentOffice(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + patentOffice_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The name of the patent office.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_office = 6; + */ + public Builder clearPatentOffice() { + + patentOffice_ = getDefaultInstance().getPatentOffice(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The name of the patent office.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_office = 6; + */ + public Builder setPatentOfficeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + patentOffice_ = value; + onChanged(); + return this; + } + + private java.lang.Object patentNumber_ = ""; + /** + * + * + *
+     * Optional.
+     * The number of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_number = 7; + */ + public java.lang.String getPatentNumber() { + java.lang.Object ref = patentNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + patentNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The number of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_number = 7; + */ + public com.google.protobuf.ByteString getPatentNumberBytes() { + java.lang.Object ref = patentNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + patentNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The number of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_number = 7; + */ + public Builder setPatentNumber(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + patentNumber_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The number of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_number = 7; + */ + public Builder clearPatentNumber() { + + patentNumber_ = getDefaultInstance().getPatentNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The number of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_number = 7; + */ + public Builder setPatentNumberBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + patentNumber_ = value; + onChanged(); + return this; + } + + private java.lang.Object patentDescription_ = ""; + /** + * + * + *
+     * Optional.
+     * The description of the patent.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string patent_description = 8; + */ + public java.lang.String getPatentDescription() { + java.lang.Object ref = patentDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + patentDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The description of the patent.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string patent_description = 8; + */ + public com.google.protobuf.ByteString getPatentDescriptionBytes() { + java.lang.Object ref = patentDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + patentDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The description of the patent.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string patent_description = 8; + */ + public Builder setPatentDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + patentDescription_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The description of the patent.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string patent_description = 8; + */ + public Builder clearPatentDescription() { + + patentDescription_ = getDefaultInstance().getPatentDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The description of the patent.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string patent_description = 8; + */ + public Builder setPatentDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + patentDescription_ = value; + onChanged(); + return this; + } + + private java.util.List skillsUsed_ = + java.util.Collections.emptyList(); + + private void ensureSkillsUsedIsMutable() { + if (!((bitField0_ & 0x00000100) == 0x00000100)) { + skillsUsed_ = new java.util.ArrayList(skillsUsed_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Skill, + com.google.cloud.talent.v4beta1.Skill.Builder, + com.google.cloud.talent.v4beta1.SkillOrBuilder> + skillsUsedBuilder_; + + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public java.util.List getSkillsUsedList() { + if (skillsUsedBuilder_ == null) { + return java.util.Collections.unmodifiableList(skillsUsed_); + } else { + return skillsUsedBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public int getSkillsUsedCount() { + if (skillsUsedBuilder_ == null) { + return skillsUsed_.size(); + } else { + return skillsUsedBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public com.google.cloud.talent.v4beta1.Skill getSkillsUsed(int index) { + if (skillsUsedBuilder_ == null) { + return skillsUsed_.get(index); + } else { + return skillsUsedBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public Builder setSkillsUsed(int index, com.google.cloud.talent.v4beta1.Skill value) { + if (skillsUsedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsUsedIsMutable(); + skillsUsed_.set(index, value); + onChanged(); + } else { + skillsUsedBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public Builder setSkillsUsed( + int index, com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { + if (skillsUsedBuilder_ == null) { + ensureSkillsUsedIsMutable(); + skillsUsed_.set(index, builderForValue.build()); + onChanged(); + } else { + skillsUsedBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public Builder addSkillsUsed(com.google.cloud.talent.v4beta1.Skill value) { + if (skillsUsedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsUsedIsMutable(); + skillsUsed_.add(value); + onChanged(); + } else { + skillsUsedBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public Builder addSkillsUsed(int index, com.google.cloud.talent.v4beta1.Skill value) { + if (skillsUsedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsUsedIsMutable(); + skillsUsed_.add(index, value); + onChanged(); + } else { + skillsUsedBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public Builder addSkillsUsed(com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { + if (skillsUsedBuilder_ == null) { + ensureSkillsUsedIsMutable(); + skillsUsed_.add(builderForValue.build()); + onChanged(); + } else { + skillsUsedBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public Builder addSkillsUsed( + int index, com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { + if (skillsUsedBuilder_ == null) { + ensureSkillsUsedIsMutable(); + skillsUsed_.add(index, builderForValue.build()); + onChanged(); + } else { + skillsUsedBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public Builder addAllSkillsUsed( + java.lang.Iterable values) { + if (skillsUsedBuilder_ == null) { + ensureSkillsUsedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skillsUsed_); + onChanged(); + } else { + skillsUsedBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public Builder clearSkillsUsed() { + if (skillsUsedBuilder_ == null) { + skillsUsed_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + skillsUsedBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public Builder removeSkillsUsed(int index) { + if (skillsUsedBuilder_ == null) { + ensureSkillsUsedIsMutable(); + skillsUsed_.remove(index); + onChanged(); + } else { + skillsUsedBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public com.google.cloud.talent.v4beta1.Skill.Builder getSkillsUsedBuilder(int index) { + return getSkillsUsedFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsUsedOrBuilder(int index) { + if (skillsUsedBuilder_ == null) { + return skillsUsed_.get(index); + } else { + return skillsUsedBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public java.util.List + getSkillsUsedOrBuilderList() { + if (skillsUsedBuilder_ != null) { + return skillsUsedBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(skillsUsed_); + } + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public com.google.cloud.talent.v4beta1.Skill.Builder addSkillsUsedBuilder() { + return getSkillsUsedFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Skill.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public com.google.cloud.talent.v4beta1.Skill.Builder addSkillsUsedBuilder(int index) { + return getSkillsUsedFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Skill.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public java.util.List + getSkillsUsedBuilderList() { + return getSkillsUsedFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Skill, + com.google.cloud.talent.v4beta1.Skill.Builder, + com.google.cloud.talent.v4beta1.SkillOrBuilder> + getSkillsUsedFieldBuilder() { + if (skillsUsedBuilder_ == null) { + skillsUsedBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Skill, + com.google.cloud.talent.v4beta1.Skill.Builder, + com.google.cloud.talent.v4beta1.SkillOrBuilder>( + skillsUsed_, + ((bitField0_ & 0x00000100) == 0x00000100), + getParentForChildren(), + isClean()); + skillsUsed_ = null; + } + return skillsUsedBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Patent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Patent) + private static final com.google.cloud.talent.v4beta1.Patent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Patent(); + } + + public static com.google.cloud.talent.v4beta1.Patent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Patent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Patent(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Patent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PatentOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PatentOrBuilder.java new file mode 100644 index 000000000000..afa687caea83 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PatentOrBuilder.java @@ -0,0 +1,309 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface PatentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Patent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * Name of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Optional.
+   * Name of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional.
+   * A list of inventors' names.
+   * Number of characters allowed for each is 100.
+   * 
+ * + * repeated string inventors = 2; + */ + java.util.List getInventorsList(); + /** + * + * + *
+   * Optional.
+   * A list of inventors' names.
+   * Number of characters allowed for each is 100.
+   * 
+ * + * repeated string inventors = 2; + */ + int getInventorsCount(); + /** + * + * + *
+   * Optional.
+   * A list of inventors' names.
+   * Number of characters allowed for each is 100.
+   * 
+ * + * repeated string inventors = 2; + */ + java.lang.String getInventors(int index); + /** + * + * + *
+   * Optional.
+   * A list of inventors' names.
+   * Number of characters allowed for each is 100.
+   * 
+ * + * repeated string inventors = 2; + */ + com.google.protobuf.ByteString getInventorsBytes(int index); + + /** + * + * + *
+   * Optional.
+   * The status of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_status = 3; + */ + java.lang.String getPatentStatus(); + /** + * + * + *
+   * Optional.
+   * The status of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_status = 3; + */ + com.google.protobuf.ByteString getPatentStatusBytes(); + + /** + * + * + *
+   * Optional.
+   * The date the last time the status of the patent was checked.
+   * 
+ * + * .google.type.Date patent_status_date = 4; + */ + boolean hasPatentStatusDate(); + /** + * + * + *
+   * Optional.
+   * The date the last time the status of the patent was checked.
+   * 
+ * + * .google.type.Date patent_status_date = 4; + */ + com.google.type.Date getPatentStatusDate(); + /** + * + * + *
+   * Optional.
+   * The date the last time the status of the patent was checked.
+   * 
+ * + * .google.type.Date patent_status_date = 4; + */ + com.google.type.DateOrBuilder getPatentStatusDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The date that the patent was filed.
+   * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + boolean hasPatentFilingDate(); + /** + * + * + *
+   * Optional.
+   * The date that the patent was filed.
+   * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + com.google.type.Date getPatentFilingDate(); + /** + * + * + *
+   * Optional.
+   * The date that the patent was filed.
+   * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + com.google.type.DateOrBuilder getPatentFilingDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The name of the patent office.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_office = 6; + */ + java.lang.String getPatentOffice(); + /** + * + * + *
+   * Optional.
+   * The name of the patent office.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_office = 6; + */ + com.google.protobuf.ByteString getPatentOfficeBytes(); + + /** + * + * + *
+   * Optional.
+   * The number of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_number = 7; + */ + java.lang.String getPatentNumber(); + /** + * + * + *
+   * Optional.
+   * The number of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_number = 7; + */ + com.google.protobuf.ByteString getPatentNumberBytes(); + + /** + * + * + *
+   * Optional.
+   * The description of the patent.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string patent_description = 8; + */ + java.lang.String getPatentDescription(); + /** + * + * + *
+   * Optional.
+   * The description of the patent.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string patent_description = 8; + */ + com.google.protobuf.ByteString getPatentDescriptionBytes(); + + /** + * + * + *
+   * Optional.
+   * The skills used in this patent.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + java.util.List getSkillsUsedList(); + /** + * + * + *
+   * Optional.
+   * The skills used in this patent.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + com.google.cloud.talent.v4beta1.Skill getSkillsUsed(int index); + /** + * + * + *
+   * Optional.
+   * The skills used in this patent.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + int getSkillsUsedCount(); + /** + * + * + *
+   * Optional.
+   * The skills used in this patent.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + java.util.List + getSkillsUsedOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The skills used in this patent.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsUsedOrBuilder(int index); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonName.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonName.java new file mode 100644 index 000000000000..434ac7d22ab0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonName.java @@ -0,0 +1,2975 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents the name of a person.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.PersonName} + */ +public final class PersonName extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.PersonName) + PersonNameOrBuilder { + private static final long serialVersionUID = 0L; + // Use PersonName.newBuilder() to construct. + private PersonName(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PersonName() { + preferredName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PersonName( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + personNameCase_ = 1; + personName_ = s; + break; + } + case 18: + { + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.Builder subBuilder = + null; + if (personNameCase_ == 2) { + subBuilder = + ((com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_) + .toBuilder(); + } + personName_ = + input.readMessage( + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_); + personName_ = subBuilder.buildPartial(); + } + personNameCase_ = 2; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + preferredName_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonName_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonName_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.PersonName.class, + com.google.cloud.talent.v4beta1.PersonName.Builder.class); + } + + public interface PersonStructuredNameOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.PersonName.PersonStructuredName) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional.
+     * Given/first name.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 100.
+     * 
+ * + * string given_name = 1; + */ + java.lang.String getGivenName(); + /** + * + * + *
+     * Optional.
+     * Given/first name.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 100.
+     * 
+ * + * string given_name = 1; + */ + com.google.protobuf.ByteString getGivenNameBytes(); + + /** + * + * + *
+     * Optional.
+     * Middle initial.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 20.
+     * 
+ * + * string middle_initial = 2; + */ + java.lang.String getMiddleInitial(); + /** + * + * + *
+     * Optional.
+     * Middle initial.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 20.
+     * 
+ * + * string middle_initial = 2; + */ + com.google.protobuf.ByteString getMiddleInitialBytes(); + + /** + * + * + *
+     * Optional.
+     * Family/last name.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 100.
+     * 
+ * + * string family_name = 3; + */ + java.lang.String getFamilyName(); + /** + * + * + *
+     * Optional.
+     * Family/last name.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 100.
+     * 
+ * + * string family_name = 3; + */ + com.google.protobuf.ByteString getFamilyNameBytes(); + + /** + * + * + *
+     * Optional.
+     * Suffixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string suffixes = 4; + */ + java.util.List getSuffixesList(); + /** + * + * + *
+     * Optional.
+     * Suffixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string suffixes = 4; + */ + int getSuffixesCount(); + /** + * + * + *
+     * Optional.
+     * Suffixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string suffixes = 4; + */ + java.lang.String getSuffixes(int index); + /** + * + * + *
+     * Optional.
+     * Suffixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string suffixes = 4; + */ + com.google.protobuf.ByteString getSuffixesBytes(int index); + + /** + * + * + *
+     * Optional.
+     * Prefixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string prefixes = 5; + */ + java.util.List getPrefixesList(); + /** + * + * + *
+     * Optional.
+     * Prefixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string prefixes = 5; + */ + int getPrefixesCount(); + /** + * + * + *
+     * Optional.
+     * Prefixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string prefixes = 5; + */ + java.lang.String getPrefixes(int index); + /** + * + * + *
+     * Optional.
+     * Prefixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string prefixes = 5; + */ + com.google.protobuf.ByteString getPrefixesBytes(int index); + } + /** + * + * + *
+   * Resource that represents a person's structured name.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.PersonName.PersonStructuredName} + */ + public static final class PersonStructuredName extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.PersonName.PersonStructuredName) + PersonStructuredNameOrBuilder { + private static final long serialVersionUID = 0L; + // Use PersonStructuredName.newBuilder() to construct. + private PersonStructuredName(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PersonStructuredName() { + givenName_ = ""; + middleInitial_ = ""; + familyName_ = ""; + suffixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + prefixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PersonStructuredName( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + givenName_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + middleInitial_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + familyName_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + suffixes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000008; + } + suffixes_.add(s); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + prefixes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000010; + } + prefixes_.add(s); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + suffixes_ = suffixes_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + prefixes_ = prefixes_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.class, + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.Builder.class); + } + + private int bitField0_; + public static final int GIVEN_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object givenName_; + /** + * + * + *
+     * Optional.
+     * Given/first name.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 100.
+     * 
+ * + * string given_name = 1; + */ + public java.lang.String getGivenName() { + java.lang.Object ref = givenName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + givenName_ = s; + return s; + } + } + /** + * + * + *
+     * Optional.
+     * Given/first name.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 100.
+     * 
+ * + * string given_name = 1; + */ + public com.google.protobuf.ByteString getGivenNameBytes() { + java.lang.Object ref = givenName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + givenName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MIDDLE_INITIAL_FIELD_NUMBER = 2; + private volatile java.lang.Object middleInitial_; + /** + * + * + *
+     * Optional.
+     * Middle initial.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 20.
+     * 
+ * + * string middle_initial = 2; + */ + public java.lang.String getMiddleInitial() { + java.lang.Object ref = middleInitial_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + middleInitial_ = s; + return s; + } + } + /** + * + * + *
+     * Optional.
+     * Middle initial.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 20.
+     * 
+ * + * string middle_initial = 2; + */ + public com.google.protobuf.ByteString getMiddleInitialBytes() { + java.lang.Object ref = middleInitial_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + middleInitial_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FAMILY_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object familyName_; + /** + * + * + *
+     * Optional.
+     * Family/last name.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 100.
+     * 
+ * + * string family_name = 3; + */ + public java.lang.String getFamilyName() { + java.lang.Object ref = familyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + familyName_ = s; + return s; + } + } + /** + * + * + *
+     * Optional.
+     * Family/last name.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 100.
+     * 
+ * + * string family_name = 3; + */ + public com.google.protobuf.ByteString getFamilyNameBytes() { + java.lang.Object ref = familyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + familyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUFFIXES_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList suffixes_; + /** + * + * + *
+     * Optional.
+     * Suffixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string suffixes = 4; + */ + public com.google.protobuf.ProtocolStringList getSuffixesList() { + return suffixes_; + } + /** + * + * + *
+     * Optional.
+     * Suffixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string suffixes = 4; + */ + public int getSuffixesCount() { + return suffixes_.size(); + } + /** + * + * + *
+     * Optional.
+     * Suffixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string suffixes = 4; + */ + public java.lang.String getSuffixes(int index) { + return suffixes_.get(index); + } + /** + * + * + *
+     * Optional.
+     * Suffixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string suffixes = 4; + */ + public com.google.protobuf.ByteString getSuffixesBytes(int index) { + return suffixes_.getByteString(index); + } + + public static final int PREFIXES_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList prefixes_; + /** + * + * + *
+     * Optional.
+     * Prefixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string prefixes = 5; + */ + public com.google.protobuf.ProtocolStringList getPrefixesList() { + return prefixes_; + } + /** + * + * + *
+     * Optional.
+     * Prefixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string prefixes = 5; + */ + public int getPrefixesCount() { + return prefixes_.size(); + } + /** + * + * + *
+     * Optional.
+     * Prefixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string prefixes = 5; + */ + public java.lang.String getPrefixes(int index) { + return prefixes_.get(index); + } + /** + * + * + *
+     * Optional.
+     * Prefixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string prefixes = 5; + */ + public com.google.protobuf.ByteString getPrefixesBytes(int index) { + return prefixes_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getGivenNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, givenName_); + } + if (!getMiddleInitialBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, middleInitial_); + } + if (!getFamilyNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, familyName_); + } + for (int i = 0; i < suffixes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, suffixes_.getRaw(i)); + } + for (int i = 0; i < prefixes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, prefixes_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getGivenNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, givenName_); + } + if (!getMiddleInitialBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, middleInitial_); + } + if (!getFamilyNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, familyName_); + } + { + int dataSize = 0; + for (int i = 0; i < suffixes_.size(); i++) { + dataSize += computeStringSizeNoTag(suffixes_.getRaw(i)); + } + size += dataSize; + size += 1 * getSuffixesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < prefixes_.size(); i++) { + dataSize += computeStringSizeNoTag(prefixes_.getRaw(i)); + } + size += dataSize; + size += 1 * getPrefixesList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName other = + (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) obj; + + boolean result = true; + result = result && getGivenName().equals(other.getGivenName()); + result = result && getMiddleInitial().equals(other.getMiddleInitial()); + result = result && getFamilyName().equals(other.getFamilyName()); + result = result && getSuffixesList().equals(other.getSuffixesList()); + result = result && getPrefixesList().equals(other.getPrefixesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + GIVEN_NAME_FIELD_NUMBER; + hash = (53 * hash) + getGivenName().hashCode(); + hash = (37 * hash) + MIDDLE_INITIAL_FIELD_NUMBER; + hash = (53 * hash) + getMiddleInitial().hashCode(); + hash = (37 * hash) + FAMILY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFamilyName().hashCode(); + if (getSuffixesCount() > 0) { + hash = (37 * hash) + SUFFIXES_FIELD_NUMBER; + hash = (53 * hash) + getSuffixesList().hashCode(); + } + if (getPrefixesCount() > 0) { + hash = (37 * hash) + PREFIXES_FIELD_NUMBER; + hash = (53 * hash) + getPrefixesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Resource that represents a person's structured name.
+     * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.PersonName.PersonStructuredName} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.PersonName.PersonStructuredName) + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredNameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.class, + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.Builder.class); + } + + // Construct using + // com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + givenName_ = ""; + + middleInitial_ = ""; + + familyName_ = ""; + + suffixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + prefixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName + getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName build() { + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName buildPartial() { + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName result = + new com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.givenName_ = givenName_; + result.middleInitial_ = middleInitial_; + result.familyName_ = familyName_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + suffixes_ = suffixes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.suffixes_ = suffixes_; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + prefixes_ = prefixes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.prefixes_ = prefixes_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) { + return mergeFrom((com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName other) { + if (other + == com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.getDefaultInstance()) + return this; + if (!other.getGivenName().isEmpty()) { + givenName_ = other.givenName_; + onChanged(); + } + if (!other.getMiddleInitial().isEmpty()) { + middleInitial_ = other.middleInitial_; + onChanged(); + } + if (!other.getFamilyName().isEmpty()) { + familyName_ = other.familyName_; + onChanged(); + } + if (!other.suffixes_.isEmpty()) { + if (suffixes_.isEmpty()) { + suffixes_ = other.suffixes_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureSuffixesIsMutable(); + suffixes_.addAll(other.suffixes_); + } + onChanged(); + } + if (!other.prefixes_.isEmpty()) { + if (prefixes_.isEmpty()) { + prefixes_ = other.prefixes_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensurePrefixesIsMutable(); + prefixes_.addAll(other.prefixes_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object givenName_ = ""; + /** + * + * + *
+       * Optional.
+       * Given/first name.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 100.
+       * 
+ * + * string given_name = 1; + */ + public java.lang.String getGivenName() { + java.lang.Object ref = givenName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + givenName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional.
+       * Given/first name.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 100.
+       * 
+ * + * string given_name = 1; + */ + public com.google.protobuf.ByteString getGivenNameBytes() { + java.lang.Object ref = givenName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + givenName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional.
+       * Given/first name.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 100.
+       * 
+ * + * string given_name = 1; + */ + public Builder setGivenName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + givenName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Given/first name.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 100.
+       * 
+ * + * string given_name = 1; + */ + public Builder clearGivenName() { + + givenName_ = getDefaultInstance().getGivenName(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Given/first name.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 100.
+       * 
+ * + * string given_name = 1; + */ + public Builder setGivenNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + givenName_ = value; + onChanged(); + return this; + } + + private java.lang.Object middleInitial_ = ""; + /** + * + * + *
+       * Optional.
+       * Middle initial.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 20.
+       * 
+ * + * string middle_initial = 2; + */ + public java.lang.String getMiddleInitial() { + java.lang.Object ref = middleInitial_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + middleInitial_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional.
+       * Middle initial.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 20.
+       * 
+ * + * string middle_initial = 2; + */ + public com.google.protobuf.ByteString getMiddleInitialBytes() { + java.lang.Object ref = middleInitial_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + middleInitial_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional.
+       * Middle initial.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 20.
+       * 
+ * + * string middle_initial = 2; + */ + public Builder setMiddleInitial(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + middleInitial_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Middle initial.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 20.
+       * 
+ * + * string middle_initial = 2; + */ + public Builder clearMiddleInitial() { + + middleInitial_ = getDefaultInstance().getMiddleInitial(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Middle initial.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 20.
+       * 
+ * + * string middle_initial = 2; + */ + public Builder setMiddleInitialBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + middleInitial_ = value; + onChanged(); + return this; + } + + private java.lang.Object familyName_ = ""; + /** + * + * + *
+       * Optional.
+       * Family/last name.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 100.
+       * 
+ * + * string family_name = 3; + */ + public java.lang.String getFamilyName() { + java.lang.Object ref = familyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + familyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional.
+       * Family/last name.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 100.
+       * 
+ * + * string family_name = 3; + */ + public com.google.protobuf.ByteString getFamilyNameBytes() { + java.lang.Object ref = familyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + familyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional.
+       * Family/last name.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 100.
+       * 
+ * + * string family_name = 3; + */ + public Builder setFamilyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + familyName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Family/last name.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 100.
+       * 
+ * + * string family_name = 3; + */ + public Builder clearFamilyName() { + + familyName_ = getDefaultInstance().getFamilyName(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Family/last name.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 100.
+       * 
+ * + * string family_name = 3; + */ + public Builder setFamilyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + familyName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList suffixes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureSuffixesIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + suffixes_ = new com.google.protobuf.LazyStringArrayList(suffixes_); + bitField0_ |= 0x00000008; + } + } + /** + * + * + *
+       * Optional.
+       * Suffixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string suffixes = 4; + */ + public com.google.protobuf.ProtocolStringList getSuffixesList() { + return suffixes_.getUnmodifiableView(); + } + /** + * + * + *
+       * Optional.
+       * Suffixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string suffixes = 4; + */ + public int getSuffixesCount() { + return suffixes_.size(); + } + /** + * + * + *
+       * Optional.
+       * Suffixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string suffixes = 4; + */ + public java.lang.String getSuffixes(int index) { + return suffixes_.get(index); + } + /** + * + * + *
+       * Optional.
+       * Suffixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string suffixes = 4; + */ + public com.google.protobuf.ByteString getSuffixesBytes(int index) { + return suffixes_.getByteString(index); + } + /** + * + * + *
+       * Optional.
+       * Suffixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string suffixes = 4; + */ + public Builder setSuffixes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuffixesIsMutable(); + suffixes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Suffixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string suffixes = 4; + */ + public Builder addSuffixes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuffixesIsMutable(); + suffixes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Suffixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string suffixes = 4; + */ + public Builder addAllSuffixes(java.lang.Iterable values) { + ensureSuffixesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, suffixes_); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Suffixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string suffixes = 4; + */ + public Builder clearSuffixes() { + suffixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Suffixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string suffixes = 4; + */ + public Builder addSuffixesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSuffixesIsMutable(); + suffixes_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList prefixes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensurePrefixesIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + prefixes_ = new com.google.protobuf.LazyStringArrayList(prefixes_); + bitField0_ |= 0x00000010; + } + } + /** + * + * + *
+       * Optional.
+       * Prefixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string prefixes = 5; + */ + public com.google.protobuf.ProtocolStringList getPrefixesList() { + return prefixes_.getUnmodifiableView(); + } + /** + * + * + *
+       * Optional.
+       * Prefixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string prefixes = 5; + */ + public int getPrefixesCount() { + return prefixes_.size(); + } + /** + * + * + *
+       * Optional.
+       * Prefixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string prefixes = 5; + */ + public java.lang.String getPrefixes(int index) { + return prefixes_.get(index); + } + /** + * + * + *
+       * Optional.
+       * Prefixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string prefixes = 5; + */ + public com.google.protobuf.ByteString getPrefixesBytes(int index) { + return prefixes_.getByteString(index); + } + /** + * + * + *
+       * Optional.
+       * Prefixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string prefixes = 5; + */ + public Builder setPrefixes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrefixesIsMutable(); + prefixes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Prefixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string prefixes = 5; + */ + public Builder addPrefixes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrefixesIsMutable(); + prefixes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Prefixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string prefixes = 5; + */ + public Builder addAllPrefixes(java.lang.Iterable values) { + ensurePrefixesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, prefixes_); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Prefixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string prefixes = 5; + */ + public Builder clearPrefixes() { + prefixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Prefixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string prefixes = 5; + */ + public Builder addPrefixesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePrefixesIsMutable(); + prefixes_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.PersonName.PersonStructuredName) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.PersonName.PersonStructuredName) + private static final com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName(); + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PersonStructuredName parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PersonStructuredName(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int personNameCase_ = 0; + private java.lang.Object personName_; + + public enum PersonNameCase implements com.google.protobuf.Internal.EnumLite { + FORMATTED_NAME(1), + STRUCTURED_NAME(2), + PERSONNAME_NOT_SET(0); + private final int value; + + private PersonNameCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static PersonNameCase valueOf(int value) { + return forNumber(value); + } + + public static PersonNameCase forNumber(int value) { + switch (value) { + case 1: + return FORMATTED_NAME; + case 2: + return STRUCTURED_NAME; + case 0: + return PERSONNAME_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public PersonNameCase getPersonNameCase() { + return PersonNameCase.forNumber(personNameCase_); + } + + public static final int FORMATTED_NAME_FIELD_NUMBER = 1; + /** + * + * + *
+   * Optional.
+   * A string represents a person's full name. For example, "Dr. John Smith".
+   * Number of characters allowed is 100.
+   * 
+ * + * string formatted_name = 1; + */ + public java.lang.String getFormattedName() { + java.lang.Object ref = ""; + if (personNameCase_ == 1) { + ref = personName_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (personNameCase_ == 1) { + personName_ = s; + } + return s; + } + } + /** + * + * + *
+   * Optional.
+   * A string represents a person's full name. For example, "Dr. John Smith".
+   * Number of characters allowed is 100.
+   * 
+ * + * string formatted_name = 1; + */ + public com.google.protobuf.ByteString getFormattedNameBytes() { + java.lang.Object ref = ""; + if (personNameCase_ == 1) { + ref = personName_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (personNameCase_ == 1) { + personName_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STRUCTURED_NAME_FIELD_NUMBER = 2; + /** + * + * + *
+   * Optional.
+   * A person's name in a structured way (last name, first name, suffix, etc.)
+   * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + */ + public boolean hasStructuredName() { + return personNameCase_ == 2; + } + /** + * + * + *
+   * Optional.
+   * A person's name in a structured way (last name, first name, suffix, etc.)
+   * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + */ + public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName getStructuredName() { + if (personNameCase_ == 2) { + return (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_; + } + return com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.getDefaultInstance(); + } + /** + * + * + *
+   * Optional.
+   * A person's name in a structured way (last name, first name, suffix, etc.)
+   * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + */ + public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredNameOrBuilder + getStructuredNameOrBuilder() { + if (personNameCase_ == 2) { + return (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_; + } + return com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.getDefaultInstance(); + } + + public static final int PREFERRED_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object preferredName_; + /** + * + * + *
+   * Optional.
+   * Preferred name for the person.
+   * 
+ * + * string preferred_name = 3; + */ + public java.lang.String getPreferredName() { + java.lang.Object ref = preferredName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + preferredName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Preferred name for the person.
+   * 
+ * + * string preferred_name = 3; + */ + public com.google.protobuf.ByteString getPreferredNameBytes() { + java.lang.Object ref = preferredName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + preferredName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (personNameCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, personName_); + } + if (personNameCase_ == 2) { + output.writeMessage( + 2, (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_); + } + if (!getPreferredNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, preferredName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (personNameCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, personName_); + } + if (personNameCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_); + } + if (!getPreferredNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, preferredName_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.PersonName)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.PersonName other = + (com.google.cloud.talent.v4beta1.PersonName) obj; + + boolean result = true; + result = result && getPreferredName().equals(other.getPreferredName()); + result = result && getPersonNameCase().equals(other.getPersonNameCase()); + if (!result) return false; + switch (personNameCase_) { + case 1: + result = result && getFormattedName().equals(other.getFormattedName()); + break; + case 2: + result = result && getStructuredName().equals(other.getStructuredName()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PREFERRED_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPreferredName().hashCode(); + switch (personNameCase_) { + case 1: + hash = (37 * hash) + FORMATTED_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFormattedName().hashCode(); + break; + case 2: + hash = (37 * hash) + STRUCTURED_NAME_FIELD_NUMBER; + hash = (53 * hash) + getStructuredName().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.PersonName parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.PersonName parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonName parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.PersonName parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonName parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.PersonName parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonName parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.PersonName parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonName parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.PersonName parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonName parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.PersonName parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.PersonName prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Resource that represents the name of a person.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.PersonName} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.PersonName) + com.google.cloud.talent.v4beta1.PersonNameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonName_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonName_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.PersonName.class, + com.google.cloud.talent.v4beta1.PersonName.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.PersonName.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + preferredName_ = ""; + + personNameCase_ = 0; + personName_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonName_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.PersonName getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.PersonName.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.PersonName build() { + com.google.cloud.talent.v4beta1.PersonName result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.PersonName buildPartial() { + com.google.cloud.talent.v4beta1.PersonName result = + new com.google.cloud.talent.v4beta1.PersonName(this); + if (personNameCase_ == 1) { + result.personName_ = personName_; + } + if (personNameCase_ == 2) { + if (structuredNameBuilder_ == null) { + result.personName_ = personName_; + } else { + result.personName_ = structuredNameBuilder_.build(); + } + } + result.preferredName_ = preferredName_; + result.personNameCase_ = personNameCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.PersonName) { + return mergeFrom((com.google.cloud.talent.v4beta1.PersonName) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.PersonName other) { + if (other == com.google.cloud.talent.v4beta1.PersonName.getDefaultInstance()) return this; + if (!other.getPreferredName().isEmpty()) { + preferredName_ = other.preferredName_; + onChanged(); + } + switch (other.getPersonNameCase()) { + case FORMATTED_NAME: + { + personNameCase_ = 1; + personName_ = other.personName_; + onChanged(); + break; + } + case STRUCTURED_NAME: + { + mergeStructuredName(other.getStructuredName()); + break; + } + case PERSONNAME_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.PersonName parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.PersonName) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int personNameCase_ = 0; + private java.lang.Object personName_; + + public PersonNameCase getPersonNameCase() { + return PersonNameCase.forNumber(personNameCase_); + } + + public Builder clearPersonName() { + personNameCase_ = 0; + personName_ = null; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional.
+     * A string represents a person's full name. For example, "Dr. John Smith".
+     * Number of characters allowed is 100.
+     * 
+ * + * string formatted_name = 1; + */ + public java.lang.String getFormattedName() { + java.lang.Object ref = ""; + if (personNameCase_ == 1) { + ref = personName_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (personNameCase_ == 1) { + personName_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A string represents a person's full name. For example, "Dr. John Smith".
+     * Number of characters allowed is 100.
+     * 
+ * + * string formatted_name = 1; + */ + public com.google.protobuf.ByteString getFormattedNameBytes() { + java.lang.Object ref = ""; + if (personNameCase_ == 1) { + ref = personName_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (personNameCase_ == 1) { + personName_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A string represents a person's full name. For example, "Dr. John Smith".
+     * Number of characters allowed is 100.
+     * 
+ * + * string formatted_name = 1; + */ + public Builder setFormattedName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + personNameCase_ = 1; + personName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A string represents a person's full name. For example, "Dr. John Smith".
+     * Number of characters allowed is 100.
+     * 
+ * + * string formatted_name = 1; + */ + public Builder clearFormattedName() { + if (personNameCase_ == 1) { + personNameCase_ = 0; + personName_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A string represents a person's full name. For example, "Dr. John Smith".
+     * Number of characters allowed is 100.
+     * 
+ * + * string formatted_name = 1; + */ + public Builder setFormattedNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + personNameCase_ = 1; + personName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName, + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.Builder, + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredNameOrBuilder> + structuredNameBuilder_; + /** + * + * + *
+     * Optional.
+     * A person's name in a structured way (last name, first name, suffix, etc.)
+     * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + * + */ + public boolean hasStructuredName() { + return personNameCase_ == 2; + } + /** + * + * + *
+     * Optional.
+     * A person's name in a structured way (last name, first name, suffix, etc.)
+     * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + * + */ + public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName getStructuredName() { + if (structuredNameBuilder_ == null) { + if (personNameCase_ == 2) { + return (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_; + } + return com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.getDefaultInstance(); + } else { + if (personNameCase_ == 2) { + return structuredNameBuilder_.getMessage(); + } + return com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional.
+     * A person's name in a structured way (last name, first name, suffix, etc.)
+     * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + * + */ + public Builder setStructuredName( + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName value) { + if (structuredNameBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + personName_ = value; + onChanged(); + } else { + structuredNameBuilder_.setMessage(value); + } + personNameCase_ = 2; + return this; + } + /** + * + * + *
+     * Optional.
+     * A person's name in a structured way (last name, first name, suffix, etc.)
+     * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + * + */ + public Builder setStructuredName( + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.Builder builderForValue) { + if (structuredNameBuilder_ == null) { + personName_ = builderForValue.build(); + onChanged(); + } else { + structuredNameBuilder_.setMessage(builderForValue.build()); + } + personNameCase_ = 2; + return this; + } + /** + * + * + *
+     * Optional.
+     * A person's name in a structured way (last name, first name, suffix, etc.)
+     * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + * + */ + public Builder mergeStructuredName( + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName value) { + if (structuredNameBuilder_ == null) { + if (personNameCase_ == 2 + && personName_ + != com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName + .getDefaultInstance()) { + personName_ = + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.newBuilder( + (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_) + .mergeFrom(value) + .buildPartial(); + } else { + personName_ = value; + } + onChanged(); + } else { + if (personNameCase_ == 2) { + structuredNameBuilder_.mergeFrom(value); + } + structuredNameBuilder_.setMessage(value); + } + personNameCase_ = 2; + return this; + } + /** + * + * + *
+     * Optional.
+     * A person's name in a structured way (last name, first name, suffix, etc.)
+     * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + * + */ + public Builder clearStructuredName() { + if (structuredNameBuilder_ == null) { + if (personNameCase_ == 2) { + personNameCase_ = 0; + personName_ = null; + onChanged(); + } + } else { + if (personNameCase_ == 2) { + personNameCase_ = 0; + personName_ = null; + } + structuredNameBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A person's name in a structured way (last name, first name, suffix, etc.)
+     * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + * + */ + public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.Builder + getStructuredNameBuilder() { + return getStructuredNameFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * A person's name in a structured way (last name, first name, suffix, etc.)
+     * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + * + */ + public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredNameOrBuilder + getStructuredNameOrBuilder() { + if ((personNameCase_ == 2) && (structuredNameBuilder_ != null)) { + return structuredNameBuilder_.getMessageOrBuilder(); + } else { + if (personNameCase_ == 2) { + return (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_; + } + return com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional.
+     * A person's name in a structured way (last name, first name, suffix, etc.)
+     * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName, + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.Builder, + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredNameOrBuilder> + getStructuredNameFieldBuilder() { + if (structuredNameBuilder_ == null) { + if (!(personNameCase_ == 2)) { + personName_ = + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.getDefaultInstance(); + } + structuredNameBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName, + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.Builder, + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredNameOrBuilder>( + (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_, + getParentForChildren(), + isClean()); + personName_ = null; + } + personNameCase_ = 2; + onChanged(); + ; + return structuredNameBuilder_; + } + + private java.lang.Object preferredName_ = ""; + /** + * + * + *
+     * Optional.
+     * Preferred name for the person.
+     * 
+ * + * string preferred_name = 3; + */ + public java.lang.String getPreferredName() { + java.lang.Object ref = preferredName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + preferredName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Preferred name for the person.
+     * 
+ * + * string preferred_name = 3; + */ + public com.google.protobuf.ByteString getPreferredNameBytes() { + java.lang.Object ref = preferredName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + preferredName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Preferred name for the person.
+     * 
+ * + * string preferred_name = 3; + */ + public Builder setPreferredName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + preferredName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Preferred name for the person.
+     * 
+ * + * string preferred_name = 3; + */ + public Builder clearPreferredName() { + + preferredName_ = getDefaultInstance().getPreferredName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Preferred name for the person.
+     * 
+ * + * string preferred_name = 3; + */ + public Builder setPreferredNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + preferredName_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.PersonName) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.PersonName) + private static final com.google.cloud.talent.v4beta1.PersonName DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.PersonName(); + } + + public static com.google.cloud.talent.v4beta1.PersonName getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PersonName parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PersonName(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.PersonName getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonNameOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonNameOrBuilder.java new file mode 100644 index 000000000000..916ca05ec8db --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonNameOrBuilder.java @@ -0,0 +1,95 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface PersonNameOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.PersonName) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * A string represents a person's full name. For example, "Dr. John Smith".
+   * Number of characters allowed is 100.
+   * 
+ * + * string formatted_name = 1; + */ + java.lang.String getFormattedName(); + /** + * + * + *
+   * Optional.
+   * A string represents a person's full name. For example, "Dr. John Smith".
+   * Number of characters allowed is 100.
+   * 
+ * + * string formatted_name = 1; + */ + com.google.protobuf.ByteString getFormattedNameBytes(); + + /** + * + * + *
+   * Optional.
+   * A person's name in a structured way (last name, first name, suffix, etc.)
+   * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + */ + boolean hasStructuredName(); + /** + * + * + *
+   * Optional.
+   * A person's name in a structured way (last name, first name, suffix, etc.)
+   * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + */ + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName getStructuredName(); + /** + * + * + *
+   * Optional.
+   * A person's name in a structured way (last name, first name, suffix, etc.)
+   * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + */ + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredNameOrBuilder + getStructuredNameOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Preferred name for the person.
+   * 
+ * + * string preferred_name = 3; + */ + java.lang.String getPreferredName(); + /** + * + * + *
+   * Optional.
+   * Preferred name for the person.
+   * 
+ * + * string preferred_name = 3; + */ + com.google.protobuf.ByteString getPreferredNameBytes(); + + public com.google.cloud.talent.v4beta1.PersonName.PersonNameCase getPersonNameCase(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonalUri.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonalUri.java new file mode 100644 index 000000000000..b36f80bf7100 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonalUri.java @@ -0,0 +1,611 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents a valid URI for a personal use.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.PersonalUri} + */ +public final class PersonalUri extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.PersonalUri) + PersonalUriOrBuilder { + private static final long serialVersionUID = 0L; + // Use PersonalUri.newBuilder() to construct. + private PersonalUri(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PersonalUri() { + uri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PersonalUri( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + uri_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonalUri_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonalUri_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.PersonalUri.class, + com.google.cloud.talent.v4beta1.PersonalUri.Builder.class); + } + + public static final int URI_FIELD_NUMBER = 1; + private volatile java.lang.Object uri_; + /** + * + * + *
+   * Optional.
+   * The personal URI.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string uri = 1; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The personal URI.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string uri = 1; + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.PersonalUri)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.PersonalUri other = + (com.google.cloud.talent.v4beta1.PersonalUri) obj; + + boolean result = true; + result = result && getUri().equals(other.getUri()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonalUri parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.PersonalUri parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.PersonalUri prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Resource that represents a valid URI for a personal use.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.PersonalUri} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.PersonalUri) + com.google.cloud.talent.v4beta1.PersonalUriOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonalUri_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonalUri_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.PersonalUri.class, + com.google.cloud.talent.v4beta1.PersonalUri.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.PersonalUri.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + uri_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonalUri_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.PersonalUri getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.PersonalUri.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.PersonalUri build() { + com.google.cloud.talent.v4beta1.PersonalUri result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.PersonalUri buildPartial() { + com.google.cloud.talent.v4beta1.PersonalUri result = + new com.google.cloud.talent.v4beta1.PersonalUri(this); + result.uri_ = uri_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.PersonalUri) { + return mergeFrom((com.google.cloud.talent.v4beta1.PersonalUri) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.PersonalUri other) { + if (other == com.google.cloud.talent.v4beta1.PersonalUri.getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.PersonalUri parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.PersonalUri) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object uri_ = ""; + /** + * + * + *
+     * Optional.
+     * The personal URI.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string uri = 1; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The personal URI.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string uri = 1; + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The personal URI.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string uri = 1; + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The personal URI.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string uri = 1; + */ + public Builder clearUri() { + + uri_ = getDefaultInstance().getUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The personal URI.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string uri = 1; + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uri_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.PersonalUri) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.PersonalUri) + private static final com.google.cloud.talent.v4beta1.PersonalUri DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.PersonalUri(); + } + + public static com.google.cloud.talent.v4beta1.PersonalUri getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PersonalUri parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PersonalUri(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.PersonalUri getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonalUriOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonalUriOrBuilder.java new file mode 100644 index 000000000000..7b2ade421ca1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonalUriOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface PersonalUriOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.PersonalUri) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The personal URI.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string uri = 1; + */ + java.lang.String getUri(); + /** + * + * + *
+   * Optional.
+   * The personal URI.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string uri = 1; + */ + com.google.protobuf.ByteString getUriBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Phone.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Phone.java new file mode 100644 index 000000000000..9b822c84812d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Phone.java @@ -0,0 +1,1403 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents a person's telephone number.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Phone} + */ +public final class Phone extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Phone) + PhoneOrBuilder { + private static final long serialVersionUID = 0L; + // Use Phone.newBuilder() to construct. + private Phone(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Phone() { + usage_ = 0; + type_ = 0; + number_ = ""; + whenAvailable_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Phone( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + usage_ = rawValue; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + number_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + whenAvailable_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Phone_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Phone_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Phone.class, + com.google.cloud.talent.v4beta1.Phone.Builder.class); + } + + /** + * + * + *
+   * Enum that represents the type of the telephone.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.Phone.PhoneType} + */ + public enum PhoneType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * PHONE_TYPE_UNSPECIFIED = 0; + */ + PHONE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * A landline.
+     * 
+ * + * LANDLINE = 1; + */ + LANDLINE(1), + /** + * + * + *
+     * A mobile.
+     * 
+ * + * MOBILE = 2; + */ + MOBILE(2), + /** + * + * + *
+     * A fax.
+     * 
+ * + * FAX = 3; + */ + FAX(3), + /** + * + * + *
+     * A pager.
+     * 
+ * + * PAGER = 4; + */ + PAGER(4), + /** + * + * + *
+     * A TTY (test telephone) or TDD (telecommunication device for the deaf).
+     * 
+ * + * TTY_OR_TDD = 5; + */ + TTY_OR_TDD(5), + /** + * + * + *
+     * A voicemail.
+     * 
+ * + * VOICEMAIL = 6; + */ + VOICEMAIL(6), + /** + * + * + *
+     * A virtual telephone number is a number that can be routed to another
+     * number and managed by the user via Web, SMS, IVR, etc.  It is associated
+     * with a particular person, and may be routed to either a MOBILE or
+     * LANDLINE number. The phone usage (see ContactInfoUsage above) should be
+     * set to PERSONAL for these phone types. Some more information can be
+     * found here: http://en.wikipedia.org/wiki/Personal_Numbers
+     * 
+ * + * VIRTUAL = 7; + */ + VIRTUAL(7), + /** + * + * + *
+     * Voice over IP numbers. This includes TSoIP (Telephony Service over IP).
+     * 
+ * + * VOIP = 8; + */ + VOIP(8), + /** + * + * + *
+     * In some regions (e.g. the USA), it is impossible to distinguish between
+     * fixed-line and mobile numbers by looking at the phone number itself.
+     * 
+ * + * MOBILE_OR_LANDLINE = 9; + */ + MOBILE_OR_LANDLINE(9), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * PHONE_TYPE_UNSPECIFIED = 0; + */ + public static final int PHONE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * A landline.
+     * 
+ * + * LANDLINE = 1; + */ + public static final int LANDLINE_VALUE = 1; + /** + * + * + *
+     * A mobile.
+     * 
+ * + * MOBILE = 2; + */ + public static final int MOBILE_VALUE = 2; + /** + * + * + *
+     * A fax.
+     * 
+ * + * FAX = 3; + */ + public static final int FAX_VALUE = 3; + /** + * + * + *
+     * A pager.
+     * 
+ * + * PAGER = 4; + */ + public static final int PAGER_VALUE = 4; + /** + * + * + *
+     * A TTY (test telephone) or TDD (telecommunication device for the deaf).
+     * 
+ * + * TTY_OR_TDD = 5; + */ + public static final int TTY_OR_TDD_VALUE = 5; + /** + * + * + *
+     * A voicemail.
+     * 
+ * + * VOICEMAIL = 6; + */ + public static final int VOICEMAIL_VALUE = 6; + /** + * + * + *
+     * A virtual telephone number is a number that can be routed to another
+     * number and managed by the user via Web, SMS, IVR, etc.  It is associated
+     * with a particular person, and may be routed to either a MOBILE or
+     * LANDLINE number. The phone usage (see ContactInfoUsage above) should be
+     * set to PERSONAL for these phone types. Some more information can be
+     * found here: http://en.wikipedia.org/wiki/Personal_Numbers
+     * 
+ * + * VIRTUAL = 7; + */ + public static final int VIRTUAL_VALUE = 7; + /** + * + * + *
+     * Voice over IP numbers. This includes TSoIP (Telephony Service over IP).
+     * 
+ * + * VOIP = 8; + */ + public static final int VOIP_VALUE = 8; + /** + * + * + *
+     * In some regions (e.g. the USA), it is impossible to distinguish between
+     * fixed-line and mobile numbers by looking at the phone number itself.
+     * 
+ * + * MOBILE_OR_LANDLINE = 9; + */ + public static final int MOBILE_OR_LANDLINE_VALUE = 9; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static PhoneType valueOf(int value) { + return forNumber(value); + } + + public static PhoneType forNumber(int value) { + switch (value) { + case 0: + return PHONE_TYPE_UNSPECIFIED; + case 1: + return LANDLINE; + case 2: + return MOBILE; + case 3: + return FAX; + case 4: + return PAGER; + case 5: + return TTY_OR_TDD; + case 6: + return VOICEMAIL; + case 7: + return VIRTUAL; + case 8: + return VOIP; + case 9: + return MOBILE_OR_LANDLINE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PhoneType findValueByNumber(int number) { + return PhoneType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.Phone.getDescriptor().getEnumTypes().get(0); + } + + private static final PhoneType[] VALUES = values(); + + public static PhoneType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private PhoneType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.Phone.PhoneType) + } + + public static final int USAGE_FIELD_NUMBER = 1; + private int usage_; + /** + * + * + *
+   * Optional.
+   * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public int getUsageValue() { + return usage_; + } + /** + * + * + *
+   * Optional.
+   * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.ContactInfoUsage result = + com.google.cloud.talent.v4beta1.ContactInfoUsage.valueOf(usage_); + return result == null ? com.google.cloud.talent.v4beta1.ContactInfoUsage.UNRECOGNIZED : result; + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_; + /** + * + * + *
+   * Optional.
+   * The phone type. For example, LANDLINE, MOBILE, FAX.
+   * 
+ * + * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Optional.
+   * The phone type. For example, LANDLINE, MOBILE, FAX.
+   * 
+ * + * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; + */ + public com.google.cloud.talent.v4beta1.Phone.PhoneType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.Phone.PhoneType result = + com.google.cloud.talent.v4beta1.Phone.PhoneType.valueOf(type_); + return result == null ? com.google.cloud.talent.v4beta1.Phone.PhoneType.UNRECOGNIZED : result; + } + + public static final int NUMBER_FIELD_NUMBER = 3; + private volatile java.lang.Object number_; + /** + * + * + *
+   * Optional.
+   * Phone number.
+   * Any phone formats are supported and only exact matches are performed on
+   * searches. For example, if a phone number in profile is provided in the
+   * format of "(xxx)xxx-xxxx", in profile searches the same phone format
+   * has to be provided.
+   * Number of characters allowed is 20.
+   * 
+ * + * string number = 3; + */ + public java.lang.String getNumber() { + java.lang.Object ref = number_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + number_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Phone number.
+   * Any phone formats are supported and only exact matches are performed on
+   * searches. For example, if a phone number in profile is provided in the
+   * format of "(xxx)xxx-xxxx", in profile searches the same phone format
+   * has to be provided.
+   * Number of characters allowed is 20.
+   * 
+ * + * string number = 3; + */ + public com.google.protobuf.ByteString getNumberBytes() { + java.lang.Object ref = number_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + number_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WHEN_AVAILABLE_FIELD_NUMBER = 4; + private volatile java.lang.Object whenAvailable_; + /** + * + * + *
+   * Optional.
+   * When this number is available. Any descriptive string is expected.
+   * Number of characters allowed is 100.
+   * 
+ * + * string when_available = 4; + */ + public java.lang.String getWhenAvailable() { + java.lang.Object ref = whenAvailable_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + whenAvailable_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * When this number is available. Any descriptive string is expected.
+   * Number of characters allowed is 100.
+   * 
+ * + * string when_available = 4; + */ + public com.google.protobuf.ByteString getWhenAvailableBytes() { + java.lang.Object ref = whenAvailable_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + whenAvailable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (usage_ + != com.google.cloud.talent.v4beta1.ContactInfoUsage.CONTACT_INFO_USAGE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, usage_); + } + if (type_ + != com.google.cloud.talent.v4beta1.Phone.PhoneType.PHONE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, type_); + } + if (!getNumberBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, number_); + } + if (!getWhenAvailableBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, whenAvailable_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (usage_ + != com.google.cloud.talent.v4beta1.ContactInfoUsage.CONTACT_INFO_USAGE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, usage_); + } + if (type_ + != com.google.cloud.talent.v4beta1.Phone.PhoneType.PHONE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + } + if (!getNumberBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, number_); + } + if (!getWhenAvailableBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, whenAvailable_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Phone)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Phone other = (com.google.cloud.talent.v4beta1.Phone) obj; + + boolean result = true; + result = result && usage_ == other.usage_; + result = result && type_ == other.type_; + result = result && getNumber().equals(other.getNumber()); + result = result && getWhenAvailable().equals(other.getWhenAvailable()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USAGE_FIELD_NUMBER; + hash = (53 * hash) + usage_; + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getNumber().hashCode(); + hash = (37 * hash) + WHEN_AVAILABLE_FIELD_NUMBER; + hash = (53 * hash) + getWhenAvailable().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Phone parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Phone parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Phone parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Phone parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Phone parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Phone parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Phone parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Phone parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Phone parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Phone parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Phone parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Phone parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.Phone prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Resource that represents a person's telephone number.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Phone} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Phone) + com.google.cloud.talent.v4beta1.PhoneOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Phone_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Phone_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Phone.class, + com.google.cloud.talent.v4beta1.Phone.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Phone.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + usage_ = 0; + + type_ = 0; + + number_ = ""; + + whenAvailable_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Phone_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Phone getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Phone.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Phone build() { + com.google.cloud.talent.v4beta1.Phone result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Phone buildPartial() { + com.google.cloud.talent.v4beta1.Phone result = + new com.google.cloud.talent.v4beta1.Phone(this); + result.usage_ = usage_; + result.type_ = type_; + result.number_ = number_; + result.whenAvailable_ = whenAvailable_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Phone) { + return mergeFrom((com.google.cloud.talent.v4beta1.Phone) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Phone other) { + if (other == com.google.cloud.talent.v4beta1.Phone.getDefaultInstance()) return this; + if (other.usage_ != 0) { + setUsageValue(other.getUsageValue()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getNumber().isEmpty()) { + number_ = other.number_; + onChanged(); + } + if (!other.getWhenAvailable().isEmpty()) { + whenAvailable_ = other.whenAvailable_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Phone parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Phone) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int usage_ = 0; + /** + * + * + *
+     * Optional.
+     * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public int getUsageValue() { + return usage_; + } + /** + * + * + *
+     * Optional.
+     * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder setUsageValue(int value) { + usage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.ContactInfoUsage result = + com.google.cloud.talent.v4beta1.ContactInfoUsage.valueOf(usage_); + return result == null + ? com.google.cloud.talent.v4beta1.ContactInfoUsage.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder setUsage(com.google.cloud.talent.v4beta1.ContactInfoUsage value) { + if (value == null) { + throw new NullPointerException(); + } + + usage_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder clearUsage() { + + usage_ = 0; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * + * + *
+     * Optional.
+     * The phone type. For example, LANDLINE, MOBILE, FAX.
+     * 
+ * + * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Optional.
+     * The phone type. For example, LANDLINE, MOBILE, FAX.
+     * 
+ * + * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The phone type. For example, LANDLINE, MOBILE, FAX.
+     * 
+ * + * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; + */ + public com.google.cloud.talent.v4beta1.Phone.PhoneType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.Phone.PhoneType result = + com.google.cloud.talent.v4beta1.Phone.PhoneType.valueOf(type_); + return result == null ? com.google.cloud.talent.v4beta1.Phone.PhoneType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional.
+     * The phone type. For example, LANDLINE, MOBILE, FAX.
+     * 
+ * + * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; + */ + public Builder setType(com.google.cloud.talent.v4beta1.Phone.PhoneType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The phone type. For example, LANDLINE, MOBILE, FAX.
+     * 
+ * + * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object number_ = ""; + /** + * + * + *
+     * Optional.
+     * Phone number.
+     * Any phone formats are supported and only exact matches are performed on
+     * searches. For example, if a phone number in profile is provided in the
+     * format of "(xxx)xxx-xxxx", in profile searches the same phone format
+     * has to be provided.
+     * Number of characters allowed is 20.
+     * 
+ * + * string number = 3; + */ + public java.lang.String getNumber() { + java.lang.Object ref = number_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + number_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Phone number.
+     * Any phone formats are supported and only exact matches are performed on
+     * searches. For example, if a phone number in profile is provided in the
+     * format of "(xxx)xxx-xxxx", in profile searches the same phone format
+     * has to be provided.
+     * Number of characters allowed is 20.
+     * 
+ * + * string number = 3; + */ + public com.google.protobuf.ByteString getNumberBytes() { + java.lang.Object ref = number_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + number_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Phone number.
+     * Any phone formats are supported and only exact matches are performed on
+     * searches. For example, if a phone number in profile is provided in the
+     * format of "(xxx)xxx-xxxx", in profile searches the same phone format
+     * has to be provided.
+     * Number of characters allowed is 20.
+     * 
+ * + * string number = 3; + */ + public Builder setNumber(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + number_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Phone number.
+     * Any phone formats are supported and only exact matches are performed on
+     * searches. For example, if a phone number in profile is provided in the
+     * format of "(xxx)xxx-xxxx", in profile searches the same phone format
+     * has to be provided.
+     * Number of characters allowed is 20.
+     * 
+ * + * string number = 3; + */ + public Builder clearNumber() { + + number_ = getDefaultInstance().getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Phone number.
+     * Any phone formats are supported and only exact matches are performed on
+     * searches. For example, if a phone number in profile is provided in the
+     * format of "(xxx)xxx-xxxx", in profile searches the same phone format
+     * has to be provided.
+     * Number of characters allowed is 20.
+     * 
+ * + * string number = 3; + */ + public Builder setNumberBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + number_ = value; + onChanged(); + return this; + } + + private java.lang.Object whenAvailable_ = ""; + /** + * + * + *
+     * Optional.
+     * When this number is available. Any descriptive string is expected.
+     * Number of characters allowed is 100.
+     * 
+ * + * string when_available = 4; + */ + public java.lang.String getWhenAvailable() { + java.lang.Object ref = whenAvailable_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + whenAvailable_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * When this number is available. Any descriptive string is expected.
+     * Number of characters allowed is 100.
+     * 
+ * + * string when_available = 4; + */ + public com.google.protobuf.ByteString getWhenAvailableBytes() { + java.lang.Object ref = whenAvailable_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + whenAvailable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * When this number is available. Any descriptive string is expected.
+     * Number of characters allowed is 100.
+     * 
+ * + * string when_available = 4; + */ + public Builder setWhenAvailable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + whenAvailable_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * When this number is available. Any descriptive string is expected.
+     * Number of characters allowed is 100.
+     * 
+ * + * string when_available = 4; + */ + public Builder clearWhenAvailable() { + + whenAvailable_ = getDefaultInstance().getWhenAvailable(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * When this number is available. Any descriptive string is expected.
+     * Number of characters allowed is 100.
+     * 
+ * + * string when_available = 4; + */ + public Builder setWhenAvailableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + whenAvailable_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Phone) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Phone) + private static final com.google.cloud.talent.v4beta1.Phone DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Phone(); + } + + public static com.google.cloud.talent.v4beta1.Phone getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Phone parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Phone(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Phone getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PhoneOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PhoneOrBuilder.java new file mode 100644 index 000000000000..958d7d253301 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PhoneOrBuilder.java @@ -0,0 +1,114 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface PhoneOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Phone) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + int getUsageValue(); + /** + * + * + *
+   * Optional.
+   * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage(); + + /** + * + * + *
+   * Optional.
+   * The phone type. For example, LANDLINE, MOBILE, FAX.
+   * 
+ * + * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; + */ + int getTypeValue(); + /** + * + * + *
+   * Optional.
+   * The phone type. For example, LANDLINE, MOBILE, FAX.
+   * 
+ * + * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; + */ + com.google.cloud.talent.v4beta1.Phone.PhoneType getType(); + + /** + * + * + *
+   * Optional.
+   * Phone number.
+   * Any phone formats are supported and only exact matches are performed on
+   * searches. For example, if a phone number in profile is provided in the
+   * format of "(xxx)xxx-xxxx", in profile searches the same phone format
+   * has to be provided.
+   * Number of characters allowed is 20.
+   * 
+ * + * string number = 3; + */ + java.lang.String getNumber(); + /** + * + * + *
+   * Optional.
+   * Phone number.
+   * Any phone formats are supported and only exact matches are performed on
+   * searches. For example, if a phone number in profile is provided in the
+   * format of "(xxx)xxx-xxxx", in profile searches the same phone format
+   * has to be provided.
+   * Number of characters allowed is 20.
+   * 
+ * + * string number = 3; + */ + com.google.protobuf.ByteString getNumberBytes(); + + /** + * + * + *
+   * Optional.
+   * When this number is available. Any descriptive string is expected.
+   * Number of characters allowed is 100.
+   * 
+ * + * string when_available = 4; + */ + java.lang.String getWhenAvailable(); + /** + * + * + *
+   * Optional.
+   * When this number is available. Any descriptive string is expected.
+   * Number of characters allowed is 100.
+   * 
+ * + * string when_available = 4; + */ + com.google.protobuf.ByteString getWhenAvailableBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PostingRegion.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PostingRegion.java new file mode 100644 index 000000000000..f270640dcded --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PostingRegion.java @@ -0,0 +1,205 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * An enum that represents the job posting region. In most cases, job postings
+ * don't need to specify a region. If a region is given, jobs are
+ * eligible for searches in the specified region.
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.PostingRegion} + */ +public enum PostingRegion implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * If the region is unspecified, the job is only returned if it
+   * matches the [LocationFilter][google.cloud.talent.v4beta1.LocationFilter].
+   * 
+ * + * POSTING_REGION_UNSPECIFIED = 0; + */ + POSTING_REGION_UNSPECIFIED(0), + /** + * + * + *
+   * In addition to exact location matching, job posting is returned when the
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in the search
+   * query is in the same administrative area as the returned job posting. For
+   * example, if a `ADMINISTRATIVE_AREA` job is posted in "CA, USA", it's
+   * returned if [LocationFilter][google.cloud.talent.v4beta1.LocationFilter]
+   * has "Mountain View".
+   * Administrative area refers to top-level administrative subdivision of this
+   * country. For example, US state, IT region, UK constituent nation and
+   * JP prefecture.
+   * 
+ * + * ADMINISTRATIVE_AREA = 1; + */ + ADMINISTRATIVE_AREA(1), + /** + * + * + *
+   * In addition to exact location matching, job is returned when
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in search
+   * query is in the same country as this job. For example, if a `NATION_WIDE`
+   * job is posted in "USA", it's returned if
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] has 'Mountain
+   * View'.
+   * 
+ * + * NATION = 2; + */ + NATION(2), + /** + * + * + *
+   * Job allows employees to work remotely (telecommute).
+   * If [locations][] are provided with this value, the job is
+   * considered as having a location, but telecommuting is allowed.
+   * 
+ * + * TELECOMMUTE = 3; + */ + TELECOMMUTE(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * If the region is unspecified, the job is only returned if it
+   * matches the [LocationFilter][google.cloud.talent.v4beta1.LocationFilter].
+   * 
+ * + * POSTING_REGION_UNSPECIFIED = 0; + */ + public static final int POSTING_REGION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * In addition to exact location matching, job posting is returned when the
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in the search
+   * query is in the same administrative area as the returned job posting. For
+   * example, if a `ADMINISTRATIVE_AREA` job is posted in "CA, USA", it's
+   * returned if [LocationFilter][google.cloud.talent.v4beta1.LocationFilter]
+   * has "Mountain View".
+   * Administrative area refers to top-level administrative subdivision of this
+   * country. For example, US state, IT region, UK constituent nation and
+   * JP prefecture.
+   * 
+ * + * ADMINISTRATIVE_AREA = 1; + */ + public static final int ADMINISTRATIVE_AREA_VALUE = 1; + /** + * + * + *
+   * In addition to exact location matching, job is returned when
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in search
+   * query is in the same country as this job. For example, if a `NATION_WIDE`
+   * job is posted in "USA", it's returned if
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] has 'Mountain
+   * View'.
+   * 
+ * + * NATION = 2; + */ + public static final int NATION_VALUE = 2; + /** + * + * + *
+   * Job allows employees to work remotely (telecommute).
+   * If [locations][] are provided with this value, the job is
+   * considered as having a location, but telecommuting is allowed.
+   * 
+ * + * TELECOMMUTE = 3; + */ + public static final int TELECOMMUTE_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static PostingRegion valueOf(int value) { + return forNumber(value); + } + + public static PostingRegion forNumber(int value) { + switch (value) { + case 0: + return POSTING_REGION_UNSPECIFIED; + case 1: + return ADMINISTRATIVE_AREA; + case 2: + return NATION; + case 3: + return TELECOMMUTE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PostingRegion findValueByNumber(int number) { + return PostingRegion.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(6); + } + + private static final PostingRegion[] VALUES = values(); + + public static PostingRegion valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private PostingRegion(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.PostingRegion) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Profile.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Profile.java new file mode 100644 index 000000000000..96236e9874e4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Profile.java @@ -0,0 +1,11834 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * A resource that represents the profile for a job candidate (also referred to
+ * as a "single-source profile"). A profile belongs to a
+ * [Tenant][google.cloud.talent.v4beta1.Tenant], which is an isolated instance
+ * of the customer that owns the profile.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Profile} + */ +public final class Profile extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Profile) + ProfileOrBuilder { + private static final long serialVersionUID = 0L; + // Use Profile.newBuilder() to construct. + private Profile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Profile() { + name_ = ""; + externalId_ = ""; + source_ = ""; + uri_ = ""; + groupId_ = ""; + resumeHrxml_ = ""; + personNames_ = java.util.Collections.emptyList(); + addresses_ = java.util.Collections.emptyList(); + emailAddresses_ = java.util.Collections.emptyList(); + phoneNumbers_ = java.util.Collections.emptyList(); + personalUris_ = java.util.Collections.emptyList(); + additionalContactInfo_ = java.util.Collections.emptyList(); + employmentRecords_ = java.util.Collections.emptyList(); + educationRecords_ = java.util.Collections.emptyList(); + skills_ = java.util.Collections.emptyList(); + activities_ = java.util.Collections.emptyList(); + publications_ = java.util.Collections.emptyList(); + patents_ = java.util.Collections.emptyList(); + certifications_ = java.util.Collections.emptyList(); + jobApplications_ = java.util.Collections.emptyList(); + recruitingNotes_ = java.util.Collections.emptyList(); + processed_ = false; + keywordSnippet_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Profile( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + externalId_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + source_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + uri_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + groupId_ = s; + break; + } + case 50: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (isHirable_ != null) { + subBuilder = isHirable_.toBuilder(); + } + isHirable_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(isHirable_); + isHirable_ = subBuilder.buildPartial(); + } + + break; + } + case 58: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 66: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + + resumeHrxml_ = s; + break; + } + case 90: + { + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + personNames_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000200; + } + personNames_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.PersonName.parser(), extensionRegistry)); + break; + } + case 98: + { + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + addresses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000400; + } + addresses_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Address.parser(), extensionRegistry)); + break; + } + case 106: + { + if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { + emailAddresses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000800; + } + emailAddresses_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Email.parser(), extensionRegistry)); + break; + } + case 114: + { + if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + phoneNumbers_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00001000; + } + phoneNumbers_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Phone.parser(), extensionRegistry)); + break; + } + case 122: + { + if (!((mutable_bitField0_ & 0x00002000) == 0x00002000)) { + personalUris_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00002000; + } + personalUris_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.PersonalUri.parser(), extensionRegistry)); + break; + } + case 130: + { + if (!((mutable_bitField0_ & 0x00004000) == 0x00004000)) { + additionalContactInfo_ = + new java.util.ArrayList< + com.google.cloud.talent.v4beta1.AdditionalContactInfo>(); + mutable_bitField0_ |= 0x00004000; + } + additionalContactInfo_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.AdditionalContactInfo.parser(), + extensionRegistry)); + break; + } + case 138: + { + if (!((mutable_bitField0_ & 0x00008000) == 0x00008000)) { + employmentRecords_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00008000; + } + employmentRecords_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.EmploymentRecord.parser(), + extensionRegistry)); + break; + } + case 146: + { + if (!((mutable_bitField0_ & 0x00010000) == 0x00010000)) { + educationRecords_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00010000; + } + educationRecords_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.EducationRecord.parser(), extensionRegistry)); + break; + } + case 154: + { + if (!((mutable_bitField0_ & 0x00020000) == 0x00020000)) { + skills_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00020000; + } + skills_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Skill.parser(), extensionRegistry)); + break; + } + case 162: + { + if (!((mutable_bitField0_ & 0x00040000) == 0x00040000)) { + activities_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00040000; + } + activities_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Activity.parser(), extensionRegistry)); + break; + } + case 170: + { + if (!((mutable_bitField0_ & 0x00080000) == 0x00080000)) { + publications_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00080000; + } + publications_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Publication.parser(), extensionRegistry)); + break; + } + case 178: + { + if (!((mutable_bitField0_ & 0x00100000) == 0x00100000)) { + patents_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00100000; + } + patents_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Patent.parser(), extensionRegistry)); + break; + } + case 186: + { + if (!((mutable_bitField0_ & 0x00200000) == 0x00200000)) { + certifications_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00200000; + } + certifications_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Certification.parser(), extensionRegistry)); + break; + } + case 194: + { + if (!((mutable_bitField0_ & 0x00400000) == 0x00400000)) { + jobApplications_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00400000; + } + jobApplications_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.JobApplication.parser(), extensionRegistry)); + break; + } + case 202: + { + if (!((mutable_bitField0_ & 0x00800000) == 0x00800000)) { + recruitingNotes_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00800000; + } + recruitingNotes_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.RecruitingNote.parser(), extensionRegistry)); + break; + } + case 210: + { + if (!((mutable_bitField0_ & 0x01000000) == 0x01000000)) { + customAttributes_ = + com.google.protobuf.MapField.newMapField( + CustomAttributesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x01000000; + } + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + customAttributes__ = + input.readMessage( + CustomAttributesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + customAttributes_ + .getMutableMap() + .put(customAttributes__.getKey(), customAttributes__.getValue()); + break; + } + case 216: + { + processed_ = input.readBool(); + break; + } + case 226: + { + java.lang.String s = input.readStringRequireUtf8(); + + keywordSnippet_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + personNames_ = java.util.Collections.unmodifiableList(personNames_); + } + if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + addresses_ = java.util.Collections.unmodifiableList(addresses_); + } + if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) { + emailAddresses_ = java.util.Collections.unmodifiableList(emailAddresses_); + } + if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + phoneNumbers_ = java.util.Collections.unmodifiableList(phoneNumbers_); + } + if (((mutable_bitField0_ & 0x00002000) == 0x00002000)) { + personalUris_ = java.util.Collections.unmodifiableList(personalUris_); + } + if (((mutable_bitField0_ & 0x00004000) == 0x00004000)) { + additionalContactInfo_ = java.util.Collections.unmodifiableList(additionalContactInfo_); + } + if (((mutable_bitField0_ & 0x00008000) == 0x00008000)) { + employmentRecords_ = java.util.Collections.unmodifiableList(employmentRecords_); + } + if (((mutable_bitField0_ & 0x00010000) == 0x00010000)) { + educationRecords_ = java.util.Collections.unmodifiableList(educationRecords_); + } + if (((mutable_bitField0_ & 0x00020000) == 0x00020000)) { + skills_ = java.util.Collections.unmodifiableList(skills_); + } + if (((mutable_bitField0_ & 0x00040000) == 0x00040000)) { + activities_ = java.util.Collections.unmodifiableList(activities_); + } + if (((mutable_bitField0_ & 0x00080000) == 0x00080000)) { + publications_ = java.util.Collections.unmodifiableList(publications_); + } + if (((mutable_bitField0_ & 0x00100000) == 0x00100000)) { + patents_ = java.util.Collections.unmodifiableList(patents_); + } + if (((mutable_bitField0_ & 0x00200000) == 0x00200000)) { + certifications_ = java.util.Collections.unmodifiableList(certifications_); + } + if (((mutable_bitField0_ & 0x00400000) == 0x00400000)) { + jobApplications_ = java.util.Collections.unmodifiableList(jobApplications_); + } + if (((mutable_bitField0_ & 0x00800000) == 0x00800000)) { + recruitingNotes_ = java.util.Collections.unmodifiableList(recruitingNotes_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Profile_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 26: + return internalGetCustomAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Profile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Profile.class, + com.google.cloud.talent.v4beta1.Profile.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required during profile update.
+   * Resource name assigned to a profile by the API.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required during profile update.
+   * Resource name assigned to a profile by the API.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXTERNAL_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object externalId_; + /** + * + * + *
+   * Optional.
+   * Profile's id in client system if available.
+   * The maximum number of bytes allowed is 100.
+   * 
+ * + * string external_id = 2; + */ + public java.lang.String getExternalId() { + java.lang.Object ref = externalId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + externalId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Profile's id in client system if available.
+   * The maximum number of bytes allowed is 100.
+   * 
+ * + * string external_id = 2; + */ + public com.google.protobuf.ByteString getExternalIdBytes() { + java.lang.Object ref = externalId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_FIELD_NUMBER = 3; + private volatile java.lang.Object source_; + /** + * + * + *
+   * Optional.
+   * The source description indicating where the profile is acquired.
+   * For example, if a candidate profile is acquired from a resume, the user can
+   * input "resume" here to indicate the source.
+   * The maximum number of bytes allowed is 100.
+   * 
+ * + * string source = 3; + */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The source description indicating where the profile is acquired.
+   * For example, if a candidate profile is acquired from a resume, the user can
+   * input "resume" here to indicate the source.
+   * The maximum number of bytes allowed is 100.
+   * 
+ * + * string source = 3; + */ + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URI_FIELD_NUMBER = 4; + private volatile java.lang.Object uri_; + /** + * + * + *
+   * Optional.
+   * The URI set by clients that links to this profile's client-side copy.
+   * The maximum number of bytes allowed is 4000.
+   * 
+ * + * string uri = 4; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The URI set by clients that links to this profile's client-side copy.
+   * The maximum number of bytes allowed is 4000.
+   * 
+ * + * string uri = 4; + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GROUP_ID_FIELD_NUMBER = 5; + private volatile java.lang.Object groupId_; + /** + * + * + *
+   * Optional.
+   * The cluster id of the profile to associate with other profile(s) for the
+   * same candidate.
+   * A random UUID is assigned if
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't provided. To
+   * ensure global uniqueness, customized
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't supported.
+   * If [group_id][google.cloud.talent.v4beta1.Profile.group_id] is set, there
+   * must be at least one other profile with the same system generated
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id], otherwise an
+   * error is thrown.
+   * This is used to link multiple profiles to the same candidate. For example,
+   * a client has a candidate with two profiles, where one was created recently
+   * and the other one was created 5 years ago. These two profiles may be very
+   * different. The clients can create the first profile and get a generated
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it
+   * when the second profile is created, indicating these two profiles are
+   * referring to the same candidate.
+   * 
+ * + * string group_id = 5; + */ + public java.lang.String getGroupId() { + java.lang.Object ref = groupId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + groupId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The cluster id of the profile to associate with other profile(s) for the
+   * same candidate.
+   * A random UUID is assigned if
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't provided. To
+   * ensure global uniqueness, customized
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't supported.
+   * If [group_id][google.cloud.talent.v4beta1.Profile.group_id] is set, there
+   * must be at least one other profile with the same system generated
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id], otherwise an
+   * error is thrown.
+   * This is used to link multiple profiles to the same candidate. For example,
+   * a client has a candidate with two profiles, where one was created recently
+   * and the other one was created 5 years ago. These two profiles may be very
+   * different. The clients can create the first profile and get a generated
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it
+   * when the second profile is created, indicating these two profiles are
+   * referring to the same candidate.
+   * 
+ * + * string group_id = 5; + */ + public com.google.protobuf.ByteString getGroupIdBytes() { + java.lang.Object ref = groupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + groupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_HIRABLE_FIELD_NUMBER = 6; + private com.google.protobuf.BoolValue isHirable_; + /** + * + * + *
+   * Optional.
+   * Indicates the hirable status of the candidate.
+   * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + public boolean hasIsHirable() { + return isHirable_ != null; + } + /** + * + * + *
+   * Optional.
+   * Indicates the hirable status of the candidate.
+   * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + public com.google.protobuf.BoolValue getIsHirable() { + return isHirable_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isHirable_; + } + /** + * + * + *
+   * Optional.
+   * Indicates the hirable status of the candidate.
+   * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + public com.google.protobuf.BoolValueOrBuilder getIsHirableOrBuilder() { + return getIsHirable(); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was first created at this source.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was first created at this source.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was first created at this source.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was last updated at this source.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was last updated at this source.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was last updated at this source.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int RESUME_HRXML_FIELD_NUMBER = 10; + private volatile java.lang.Object resumeHrxml_; + /** + * + * + *
+   * Optional.
+   * The profile contents in HR-XML format.
+   * See http://schemas.liquid-technologies.com/hr-xml/2007-04-15/ for more
+   * information about Human Resources XML.
+   * Users can create a profile with only
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] field. For
+   * example, the API parses the
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] and
+   * creates a profile with all structured fields populated, for example.
+   * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord],
+   * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], etc. An
+   * error is thrown if the
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] can't be
+   * parsed.
+   * If the [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] is
+   * provided during profile creation or update, any other structured data
+   * provided in the profile is ignored. The API populates these fields by
+   * parsing the HR-XML.
+   * 
+ * + * string resume_hrxml = 10; + */ + public java.lang.String getResumeHrxml() { + java.lang.Object ref = resumeHrxml_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resumeHrxml_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The profile contents in HR-XML format.
+   * See http://schemas.liquid-technologies.com/hr-xml/2007-04-15/ for more
+   * information about Human Resources XML.
+   * Users can create a profile with only
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] field. For
+   * example, the API parses the
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] and
+   * creates a profile with all structured fields populated, for example.
+   * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord],
+   * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], etc. An
+   * error is thrown if the
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] can't be
+   * parsed.
+   * If the [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] is
+   * provided during profile creation or update, any other structured data
+   * provided in the profile is ignored. The API populates these fields by
+   * parsing the HR-XML.
+   * 
+ * + * string resume_hrxml = 10; + */ + public com.google.protobuf.ByteString getResumeHrxmlBytes() { + java.lang.Object ref = resumeHrxml_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resumeHrxml_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PERSON_NAMES_FIELD_NUMBER = 11; + private java.util.List personNames_; + /** + * + * + *
+   * Optional.
+   * The names of the candidate this profile references.
+   * Currently only one person name is supported.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public java.util.List getPersonNamesList() { + return personNames_; + } + /** + * + * + *
+   * Optional.
+   * The names of the candidate this profile references.
+   * Currently only one person name is supported.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public java.util.List + getPersonNamesOrBuilderList() { + return personNames_; + } + /** + * + * + *
+   * Optional.
+   * The names of the candidate this profile references.
+   * Currently only one person name is supported.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public int getPersonNamesCount() { + return personNames_.size(); + } + /** + * + * + *
+   * Optional.
+   * The names of the candidate this profile references.
+   * Currently only one person name is supported.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public com.google.cloud.talent.v4beta1.PersonName getPersonNames(int index) { + return personNames_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The names of the candidate this profile references.
+   * Currently only one person name is supported.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public com.google.cloud.talent.v4beta1.PersonNameOrBuilder getPersonNamesOrBuilder(int index) { + return personNames_.get(index); + } + + public static final int ADDRESSES_FIELD_NUMBER = 12; + private java.util.List addresses_; + /** + * + * + *
+   * Optional.
+   * The candidate's postal addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public java.util.List getAddressesList() { + return addresses_; + } + /** + * + * + *
+   * Optional.
+   * The candidate's postal addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public java.util.List + getAddressesOrBuilderList() { + return addresses_; + } + /** + * + * + *
+   * Optional.
+   * The candidate's postal addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public int getAddressesCount() { + return addresses_.size(); + } + /** + * + * + *
+   * Optional.
+   * The candidate's postal addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public com.google.cloud.talent.v4beta1.Address getAddresses(int index) { + return addresses_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The candidate's postal addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressesOrBuilder(int index) { + return addresses_.get(index); + } + + public static final int EMAIL_ADDRESSES_FIELD_NUMBER = 13; + private java.util.List emailAddresses_; + /** + * + * + *
+   * Optional.
+   * The candidate's email addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public java.util.List getEmailAddressesList() { + return emailAddresses_; + } + /** + * + * + *
+   * Optional.
+   * The candidate's email addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public java.util.List + getEmailAddressesOrBuilderList() { + return emailAddresses_; + } + /** + * + * + *
+   * Optional.
+   * The candidate's email addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public int getEmailAddressesCount() { + return emailAddresses_.size(); + } + /** + * + * + *
+   * Optional.
+   * The candidate's email addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public com.google.cloud.talent.v4beta1.Email getEmailAddresses(int index) { + return emailAddresses_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The candidate's email addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public com.google.cloud.talent.v4beta1.EmailOrBuilder getEmailAddressesOrBuilder(int index) { + return emailAddresses_.get(index); + } + + public static final int PHONE_NUMBERS_FIELD_NUMBER = 14; + private java.util.List phoneNumbers_; + /** + * + * + *
+   * Optional.
+   * The candidate's phone number(s).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public java.util.List getPhoneNumbersList() { + return phoneNumbers_; + } + /** + * + * + *
+   * Optional.
+   * The candidate's phone number(s).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public java.util.List + getPhoneNumbersOrBuilderList() { + return phoneNumbers_; + } + /** + * + * + *
+   * Optional.
+   * The candidate's phone number(s).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public int getPhoneNumbersCount() { + return phoneNumbers_.size(); + } + /** + * + * + *
+   * Optional.
+   * The candidate's phone number(s).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public com.google.cloud.talent.v4beta1.Phone getPhoneNumbers(int index) { + return phoneNumbers_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The candidate's phone number(s).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public com.google.cloud.talent.v4beta1.PhoneOrBuilder getPhoneNumbersOrBuilder(int index) { + return phoneNumbers_.get(index); + } + + public static final int PERSONAL_URIS_FIELD_NUMBER = 15; + private java.util.List personalUris_; + /** + * + * + *
+   * Optional.
+   * The candidate's personal URIs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public java.util.List getPersonalUrisList() { + return personalUris_; + } + /** + * + * + *
+   * Optional.
+   * The candidate's personal URIs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public java.util.List + getPersonalUrisOrBuilderList() { + return personalUris_; + } + /** + * + * + *
+   * Optional.
+   * The candidate's personal URIs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public int getPersonalUrisCount() { + return personalUris_.size(); + } + /** + * + * + *
+   * Optional.
+   * The candidate's personal URIs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public com.google.cloud.talent.v4beta1.PersonalUri getPersonalUris(int index) { + return personalUris_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The candidate's personal URIs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public com.google.cloud.talent.v4beta1.PersonalUriOrBuilder getPersonalUrisOrBuilder(int index) { + return personalUris_.get(index); + } + + public static final int ADDITIONAL_CONTACT_INFO_FIELD_NUMBER = 16; + private java.util.List + additionalContactInfo_; + /** + * + * + *
+   * Optional.
+   * Available contact information besides
+   * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+   * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+   * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+   * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+   * example, Hang-out, Skype.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public java.util.List + getAdditionalContactInfoList() { + return additionalContactInfo_; + } + /** + * + * + *
+   * Optional.
+   * Available contact information besides
+   * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+   * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+   * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+   * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+   * example, Hang-out, Skype.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public java.util.List + getAdditionalContactInfoOrBuilderList() { + return additionalContactInfo_; + } + /** + * + * + *
+   * Optional.
+   * Available contact information besides
+   * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+   * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+   * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+   * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+   * example, Hang-out, Skype.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public int getAdditionalContactInfoCount() { + return additionalContactInfo_.size(); + } + /** + * + * + *
+   * Optional.
+   * Available contact information besides
+   * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+   * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+   * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+   * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+   * example, Hang-out, Skype.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public com.google.cloud.talent.v4beta1.AdditionalContactInfo getAdditionalContactInfo(int index) { + return additionalContactInfo_.get(index); + } + /** + * + * + *
+   * Optional.
+   * Available contact information besides
+   * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+   * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+   * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+   * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+   * example, Hang-out, Skype.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public com.google.cloud.talent.v4beta1.AdditionalContactInfoOrBuilder + getAdditionalContactInfoOrBuilder(int index) { + return additionalContactInfo_.get(index); + } + + public static final int EMPLOYMENT_RECORDS_FIELD_NUMBER = 17; + private java.util.List employmentRecords_; + /** + * + * + *
+   * Optional.
+   * The employment history records of the candidate. It's highly recommended
+   * to input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the employment records.
+   * * List different employment types separately, no matter how minor the
+   * change is.
+   * For example, only job title is changed from "software engineer" to "senior
+   * software engineer".
+   * * Provide
+   * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+   * for the current employment if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public java.util.List + getEmploymentRecordsList() { + return employmentRecords_; + } + /** + * + * + *
+   * Optional.
+   * The employment history records of the candidate. It's highly recommended
+   * to input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the employment records.
+   * * List different employment types separately, no matter how minor the
+   * change is.
+   * For example, only job title is changed from "software engineer" to "senior
+   * software engineer".
+   * * Provide
+   * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+   * for the current employment if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public java.util.List + getEmploymentRecordsOrBuilderList() { + return employmentRecords_; + } + /** + * + * + *
+   * Optional.
+   * The employment history records of the candidate. It's highly recommended
+   * to input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the employment records.
+   * * List different employment types separately, no matter how minor the
+   * change is.
+   * For example, only job title is changed from "software engineer" to "senior
+   * software engineer".
+   * * Provide
+   * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+   * for the current employment if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public int getEmploymentRecordsCount() { + return employmentRecords_.size(); + } + /** + * + * + *
+   * Optional.
+   * The employment history records of the candidate. It's highly recommended
+   * to input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the employment records.
+   * * List different employment types separately, no matter how minor the
+   * change is.
+   * For example, only job title is changed from "software engineer" to "senior
+   * software engineer".
+   * * Provide
+   * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+   * for the current employment if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public com.google.cloud.talent.v4beta1.EmploymentRecord getEmploymentRecords(int index) { + return employmentRecords_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The employment history records of the candidate. It's highly recommended
+   * to input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the employment records.
+   * * List different employment types separately, no matter how minor the
+   * change is.
+   * For example, only job title is changed from "software engineer" to "senior
+   * software engineer".
+   * * Provide
+   * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+   * for the current employment if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public com.google.cloud.talent.v4beta1.EmploymentRecordOrBuilder getEmploymentRecordsOrBuilder( + int index) { + return employmentRecords_.get(index); + } + + public static final int EDUCATION_RECORDS_FIELD_NUMBER = 18; + private java.util.List educationRecords_; + /** + * + * + *
+   * Optional.
+   * The education history record of the candidate. It's highly recommended to
+   * input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the education records.
+   * * List each education type separately, no matter how minor the change is.
+   * For example, the profile contains the education experience from the same
+   * school but different degrees.
+   * * Provide
+   * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+   * for the current education if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public java.util.List getEducationRecordsList() { + return educationRecords_; + } + /** + * + * + *
+   * Optional.
+   * The education history record of the candidate. It's highly recommended to
+   * input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the education records.
+   * * List each education type separately, no matter how minor the change is.
+   * For example, the profile contains the education experience from the same
+   * school but different degrees.
+   * * Provide
+   * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+   * for the current education if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public java.util.List + getEducationRecordsOrBuilderList() { + return educationRecords_; + } + /** + * + * + *
+   * Optional.
+   * The education history record of the candidate. It's highly recommended to
+   * input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the education records.
+   * * List each education type separately, no matter how minor the change is.
+   * For example, the profile contains the education experience from the same
+   * school but different degrees.
+   * * Provide
+   * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+   * for the current education if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public int getEducationRecordsCount() { + return educationRecords_.size(); + } + /** + * + * + *
+   * Optional.
+   * The education history record of the candidate. It's highly recommended to
+   * input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the education records.
+   * * List each education type separately, no matter how minor the change is.
+   * For example, the profile contains the education experience from the same
+   * school but different degrees.
+   * * Provide
+   * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+   * for the current education if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public com.google.cloud.talent.v4beta1.EducationRecord getEducationRecords(int index) { + return educationRecords_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The education history record of the candidate. It's highly recommended to
+   * input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the education records.
+   * * List each education type separately, no matter how minor the change is.
+   * For example, the profile contains the education experience from the same
+   * school but different degrees.
+   * * Provide
+   * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+   * for the current education if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public com.google.cloud.talent.v4beta1.EducationRecordOrBuilder getEducationRecordsOrBuilder( + int index) { + return educationRecords_.get(index); + } + + public static final int SKILLS_FIELD_NUMBER = 19; + private java.util.List skills_; + /** + * + * + *
+   * Optional.
+   * The skill set of the candidate. It's highly recommended to provide as
+   * much information as possible to help improve the search quality.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public java.util.List getSkillsList() { + return skills_; + } + /** + * + * + *
+   * Optional.
+   * The skill set of the candidate. It's highly recommended to provide as
+   * much information as possible to help improve the search quality.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public java.util.List + getSkillsOrBuilderList() { + return skills_; + } + /** + * + * + *
+   * Optional.
+   * The skill set of the candidate. It's highly recommended to provide as
+   * much information as possible to help improve the search quality.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public int getSkillsCount() { + return skills_.size(); + } + /** + * + * + *
+   * Optional.
+   * The skill set of the candidate. It's highly recommended to provide as
+   * much information as possible to help improve the search quality.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public com.google.cloud.talent.v4beta1.Skill getSkills(int index) { + return skills_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The skill set of the candidate. It's highly recommended to provide as
+   * much information as possible to help improve the search quality.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsOrBuilder(int index) { + return skills_.get(index); + } + + public static final int ACTIVITIES_FIELD_NUMBER = 20; + private java.util.List activities_; + /** + * + * + *
+   * Optional.
+   * The individual or collaborative activities which the candidate has
+   * participated in, for example, open-source projects, class assignments that
+   * aren't listed in
+   * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public java.util.List getActivitiesList() { + return activities_; + } + /** + * + * + *
+   * Optional.
+   * The individual or collaborative activities which the candidate has
+   * participated in, for example, open-source projects, class assignments that
+   * aren't listed in
+   * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public java.util.List + getActivitiesOrBuilderList() { + return activities_; + } + /** + * + * + *
+   * Optional.
+   * The individual or collaborative activities which the candidate has
+   * participated in, for example, open-source projects, class assignments that
+   * aren't listed in
+   * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public int getActivitiesCount() { + return activities_.size(); + } + /** + * + * + *
+   * Optional.
+   * The individual or collaborative activities which the candidate has
+   * participated in, for example, open-source projects, class assignments that
+   * aren't listed in
+   * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public com.google.cloud.talent.v4beta1.Activity getActivities(int index) { + return activities_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The individual or collaborative activities which the candidate has
+   * participated in, for example, open-source projects, class assignments that
+   * aren't listed in
+   * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public com.google.cloud.talent.v4beta1.ActivityOrBuilder getActivitiesOrBuilder(int index) { + return activities_.get(index); + } + + public static final int PUBLICATIONS_FIELD_NUMBER = 21; + private java.util.List publications_; + /** + * + * + *
+   * Optional.
+   * The publications published by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public java.util.List getPublicationsList() { + return publications_; + } + /** + * + * + *
+   * Optional.
+   * The publications published by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public java.util.List + getPublicationsOrBuilderList() { + return publications_; + } + /** + * + * + *
+   * Optional.
+   * The publications published by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public int getPublicationsCount() { + return publications_.size(); + } + /** + * + * + *
+   * Optional.
+   * The publications published by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public com.google.cloud.talent.v4beta1.Publication getPublications(int index) { + return publications_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The publications published by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public com.google.cloud.talent.v4beta1.PublicationOrBuilder getPublicationsOrBuilder(int index) { + return publications_.get(index); + } + + public static final int PATENTS_FIELD_NUMBER = 22; + private java.util.List patents_; + /** + * + * + *
+   * Optional.
+   * The patents acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public java.util.List getPatentsList() { + return patents_; + } + /** + * + * + *
+   * Optional.
+   * The patents acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public java.util.List + getPatentsOrBuilderList() { + return patents_; + } + /** + * + * + *
+   * Optional.
+   * The patents acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public int getPatentsCount() { + return patents_.size(); + } + /** + * + * + *
+   * Optional.
+   * The patents acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public com.google.cloud.talent.v4beta1.Patent getPatents(int index) { + return patents_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The patents acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public com.google.cloud.talent.v4beta1.PatentOrBuilder getPatentsOrBuilder(int index) { + return patents_.get(index); + } + + public static final int CERTIFICATIONS_FIELD_NUMBER = 23; + private java.util.List certifications_; + /** + * + * + *
+   * Optional.
+   * The certifications acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public java.util.List getCertificationsList() { + return certifications_; + } + /** + * + * + *
+   * Optional.
+   * The certifications acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public java.util.List + getCertificationsOrBuilderList() { + return certifications_; + } + /** + * + * + *
+   * Optional.
+   * The certifications acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public int getCertificationsCount() { + return certifications_.size(); + } + /** + * + * + *
+   * Optional.
+   * The certifications acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public com.google.cloud.talent.v4beta1.Certification getCertifications(int index) { + return certifications_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The certifications acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public com.google.cloud.talent.v4beta1.CertificationOrBuilder getCertificationsOrBuilder( + int index) { + return certifications_.get(index); + } + + public static final int JOB_APPLICATIONS_FIELD_NUMBER = 24; + private java.util.List jobApplications_; + /** + * + * + *
+   * Optional.
+   * The job applications of the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public java.util.List getJobApplicationsList() { + return jobApplications_; + } + /** + * + * + *
+   * Optional.
+   * The job applications of the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public java.util.List + getJobApplicationsOrBuilderList() { + return jobApplications_; + } + /** + * + * + *
+   * Optional.
+   * The job applications of the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public int getJobApplicationsCount() { + return jobApplications_.size(); + } + /** + * + * + *
+   * Optional.
+   * The job applications of the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public com.google.cloud.talent.v4beta1.JobApplication getJobApplications(int index) { + return jobApplications_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The job applications of the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public com.google.cloud.talent.v4beta1.JobApplicationOrBuilder getJobApplicationsOrBuilder( + int index) { + return jobApplications_.get(index); + } + + public static final int RECRUITING_NOTES_FIELD_NUMBER = 25; + private java.util.List recruitingNotes_; + /** + * + * + *
+   * Optional.
+   * The recruiting notes added for the candidate.
+   * For example, the recruiter can add some unstructured comments for this
+   * candidate like "this candidate also has experiences in volunteer work".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public java.util.List getRecruitingNotesList() { + return recruitingNotes_; + } + /** + * + * + *
+   * Optional.
+   * The recruiting notes added for the candidate.
+   * For example, the recruiter can add some unstructured comments for this
+   * candidate like "this candidate also has experiences in volunteer work".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public java.util.List + getRecruitingNotesOrBuilderList() { + return recruitingNotes_; + } + /** + * + * + *
+   * Optional.
+   * The recruiting notes added for the candidate.
+   * For example, the recruiter can add some unstructured comments for this
+   * candidate like "this candidate also has experiences in volunteer work".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public int getRecruitingNotesCount() { + return recruitingNotes_.size(); + } + /** + * + * + *
+   * Optional.
+   * The recruiting notes added for the candidate.
+   * For example, the recruiter can add some unstructured comments for this
+   * candidate like "this candidate also has experiences in volunteer work".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public com.google.cloud.talent.v4beta1.RecruitingNote getRecruitingNotes(int index) { + return recruitingNotes_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The recruiting notes added for the candidate.
+   * For example, the recruiter can add some unstructured comments for this
+   * candidate like "this candidate also has experiences in volunteer work".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public com.google.cloud.talent.v4beta1.RecruitingNoteOrBuilder getRecruitingNotesOrBuilder( + int index) { + return recruitingNotes_.get(index); + } + + public static final int CUSTOM_ATTRIBUTES_FIELD_NUMBER = 26; + + private static final class CustomAttributesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Profile_CustomAttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.talent.v4beta1.CustomAttribute.getDefaultInstance()); + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + customAttributes_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + internalGetCustomAttributes() { + if (customAttributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomAttributesDefaultEntryHolder.defaultEntry); + } + return customAttributes_; + } + + public int getCustomAttributesCount() { + return internalGetCustomAttributes().getMap().size(); + } + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom profile
+   * attributes that aren't covered by the provided structured fields. See
+   * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+   * details.
+   * At most 100 filterable and at most 100 unfilterable keys are supported. If
+   * limit is exceeded, an error is thrown.
+   * Numeric custom attributes: each key can only map to one numeric value,
+   * otherwise an error is thrown.
+   * String custom attributes: each key can map up to 50 string values. For
+   * filterable string value, each value has a byte size of no more than 256B.
+   * For unfilterable string values, the maximum byte size of a single key is
+   * 64B. An error is thrown for any request exceeding the limit.
+   * The maximum total byte size is 10KB.
+   * Currently filterable numeric custom attributes are not supported, and
+   * they automatically set to unfilterable.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + public boolean containsCustomAttributes(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetCustomAttributes().getMap().containsKey(key); + } + /** Use {@link #getCustomAttributesMap()} instead. */ + @java.lang.Deprecated + public java.util.Map + getCustomAttributes() { + return getCustomAttributesMap(); + } + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom profile
+   * attributes that aren't covered by the provided structured fields. See
+   * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+   * details.
+   * At most 100 filterable and at most 100 unfilterable keys are supported. If
+   * limit is exceeded, an error is thrown.
+   * Numeric custom attributes: each key can only map to one numeric value,
+   * otherwise an error is thrown.
+   * String custom attributes: each key can map up to 50 string values. For
+   * filterable string value, each value has a byte size of no more than 256B.
+   * For unfilterable string values, the maximum byte size of a single key is
+   * 64B. An error is thrown for any request exceeding the limit.
+   * The maximum total byte size is 10KB.
+   * Currently filterable numeric custom attributes are not supported, and
+   * they automatically set to unfilterable.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + public java.util.Map + getCustomAttributesMap() { + return internalGetCustomAttributes().getMap(); + } + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom profile
+   * attributes that aren't covered by the provided structured fields. See
+   * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+   * details.
+   * At most 100 filterable and at most 100 unfilterable keys are supported. If
+   * limit is exceeded, an error is thrown.
+   * Numeric custom attributes: each key can only map to one numeric value,
+   * otherwise an error is thrown.
+   * String custom attributes: each key can map up to 50 string values. For
+   * filterable string value, each value has a byte size of no more than 256B.
+   * For unfilterable string values, the maximum byte size of a single key is
+   * 64B. An error is thrown for any request exceeding the limit.
+   * The maximum total byte size is 10KB.
+   * Currently filterable numeric custom attributes are not supported, and
+   * they automatically set to unfilterable.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + public com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrDefault( + java.lang.String key, com.google.cloud.talent.v4beta1.CustomAttribute defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetCustomAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom profile
+   * attributes that aren't covered by the provided structured fields. See
+   * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+   * details.
+   * At most 100 filterable and at most 100 unfilterable keys are supported. If
+   * limit is exceeded, an error is thrown.
+   * Numeric custom attributes: each key can only map to one numeric value,
+   * otherwise an error is thrown.
+   * String custom attributes: each key can map up to 50 string values. For
+   * filterable string value, each value has a byte size of no more than 256B.
+   * For unfilterable string values, the maximum byte size of a single key is
+   * 64B. An error is thrown for any request exceeding the limit.
+   * The maximum total byte size is 10KB.
+   * Currently filterable numeric custom attributes are not supported, and
+   * they automatically set to unfilterable.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + public com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrThrow( + java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetCustomAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int PROCESSED_FIELD_NUMBER = 27; + private boolean processed_; + /** + * + * + *
+   * Output only. Indicates if the profile is fully processed and searchable.
+   * 
+ * + * bool processed = 27; + */ + public boolean getProcessed() { + return processed_; + } + + public static final int KEYWORD_SNIPPET_FIELD_NUMBER = 28; + private volatile java.lang.Object keywordSnippet_; + /** + * + * + *
+   * Output only. Keyword snippet shows how the search result is related to a
+   * search query.
+   * 
+ * + * string keyword_snippet = 28; + */ + public java.lang.String getKeywordSnippet() { + java.lang.Object ref = keywordSnippet_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + keywordSnippet_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Keyword snippet shows how the search result is related to a
+   * search query.
+   * 
+ * + * string keyword_snippet = 28; + */ + public com.google.protobuf.ByteString getKeywordSnippetBytes() { + java.lang.Object ref = keywordSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + keywordSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getExternalIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, externalId_); + } + if (!getSourceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, source_); + } + if (!getUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, uri_); + } + if (!getGroupIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, groupId_); + } + if (isHirable_ != null) { + output.writeMessage(6, getIsHirable()); + } + if (createTime_ != null) { + output.writeMessage(7, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(8, getUpdateTime()); + } + if (!getResumeHrxmlBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, resumeHrxml_); + } + for (int i = 0; i < personNames_.size(); i++) { + output.writeMessage(11, personNames_.get(i)); + } + for (int i = 0; i < addresses_.size(); i++) { + output.writeMessage(12, addresses_.get(i)); + } + for (int i = 0; i < emailAddresses_.size(); i++) { + output.writeMessage(13, emailAddresses_.get(i)); + } + for (int i = 0; i < phoneNumbers_.size(); i++) { + output.writeMessage(14, phoneNumbers_.get(i)); + } + for (int i = 0; i < personalUris_.size(); i++) { + output.writeMessage(15, personalUris_.get(i)); + } + for (int i = 0; i < additionalContactInfo_.size(); i++) { + output.writeMessage(16, additionalContactInfo_.get(i)); + } + for (int i = 0; i < employmentRecords_.size(); i++) { + output.writeMessage(17, employmentRecords_.get(i)); + } + for (int i = 0; i < educationRecords_.size(); i++) { + output.writeMessage(18, educationRecords_.get(i)); + } + for (int i = 0; i < skills_.size(); i++) { + output.writeMessage(19, skills_.get(i)); + } + for (int i = 0; i < activities_.size(); i++) { + output.writeMessage(20, activities_.get(i)); + } + for (int i = 0; i < publications_.size(); i++) { + output.writeMessage(21, publications_.get(i)); + } + for (int i = 0; i < patents_.size(); i++) { + output.writeMessage(22, patents_.get(i)); + } + for (int i = 0; i < certifications_.size(); i++) { + output.writeMessage(23, certifications_.get(i)); + } + for (int i = 0; i < jobApplications_.size(); i++) { + output.writeMessage(24, jobApplications_.get(i)); + } + for (int i = 0; i < recruitingNotes_.size(); i++) { + output.writeMessage(25, recruitingNotes_.get(i)); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetCustomAttributes(), CustomAttributesDefaultEntryHolder.defaultEntry, 26); + if (processed_ != false) { + output.writeBool(27, processed_); + } + if (!getKeywordSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 28, keywordSnippet_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getExternalIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, externalId_); + } + if (!getSourceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, source_); + } + if (!getUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, uri_); + } + if (!getGroupIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, groupId_); + } + if (isHirable_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getIsHirable()); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); + } + if (!getResumeHrxmlBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, resumeHrxml_); + } + for (int i = 0; i < personNames_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, personNames_.get(i)); + } + for (int i = 0; i < addresses_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, addresses_.get(i)); + } + for (int i = 0; i < emailAddresses_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, emailAddresses_.get(i)); + } + for (int i = 0; i < phoneNumbers_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, phoneNumbers_.get(i)); + } + for (int i = 0; i < personalUris_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, personalUris_.get(i)); + } + for (int i = 0; i < additionalContactInfo_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 16, additionalContactInfo_.get(i)); + } + for (int i = 0; i < employmentRecords_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(17, employmentRecords_.get(i)); + } + for (int i = 0; i < educationRecords_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(18, educationRecords_.get(i)); + } + for (int i = 0; i < skills_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, skills_.get(i)); + } + for (int i = 0; i < activities_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, activities_.get(i)); + } + for (int i = 0; i < publications_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, publications_.get(i)); + } + for (int i = 0; i < patents_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, patents_.get(i)); + } + for (int i = 0; i < certifications_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, certifications_.get(i)); + } + for (int i = 0; i < jobApplications_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, jobApplications_.get(i)); + } + for (int i = 0; i < recruitingNotes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, recruitingNotes_.get(i)); + } + for (java.util.Map.Entry + entry : internalGetCustomAttributes().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + customAttributes__ = + CustomAttributesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, customAttributes__); + } + if (processed_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(27, processed_); + } + if (!getKeywordSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, keywordSnippet_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Profile)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Profile other = (com.google.cloud.talent.v4beta1.Profile) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && getExternalId().equals(other.getExternalId()); + result = result && getSource().equals(other.getSource()); + result = result && getUri().equals(other.getUri()); + result = result && getGroupId().equals(other.getGroupId()); + result = result && (hasIsHirable() == other.hasIsHirable()); + if (hasIsHirable()) { + result = result && getIsHirable().equals(other.getIsHirable()); + } + result = result && (hasCreateTime() == other.hasCreateTime()); + if (hasCreateTime()) { + result = result && getCreateTime().equals(other.getCreateTime()); + } + result = result && (hasUpdateTime() == other.hasUpdateTime()); + if (hasUpdateTime()) { + result = result && getUpdateTime().equals(other.getUpdateTime()); + } + result = result && getResumeHrxml().equals(other.getResumeHrxml()); + result = result && getPersonNamesList().equals(other.getPersonNamesList()); + result = result && getAddressesList().equals(other.getAddressesList()); + result = result && getEmailAddressesList().equals(other.getEmailAddressesList()); + result = result && getPhoneNumbersList().equals(other.getPhoneNumbersList()); + result = result && getPersonalUrisList().equals(other.getPersonalUrisList()); + result = result && getAdditionalContactInfoList().equals(other.getAdditionalContactInfoList()); + result = result && getEmploymentRecordsList().equals(other.getEmploymentRecordsList()); + result = result && getEducationRecordsList().equals(other.getEducationRecordsList()); + result = result && getSkillsList().equals(other.getSkillsList()); + result = result && getActivitiesList().equals(other.getActivitiesList()); + result = result && getPublicationsList().equals(other.getPublicationsList()); + result = result && getPatentsList().equals(other.getPatentsList()); + result = result && getCertificationsList().equals(other.getCertificationsList()); + result = result && getJobApplicationsList().equals(other.getJobApplicationsList()); + result = result && getRecruitingNotesList().equals(other.getRecruitingNotesList()); + result = result && internalGetCustomAttributes().equals(other.internalGetCustomAttributes()); + result = result && (getProcessed() == other.getProcessed()); + result = result && getKeywordSnippet().equals(other.getKeywordSnippet()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + EXTERNAL_ID_FIELD_NUMBER; + hash = (53 * hash) + getExternalId().hashCode(); + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getGroupId().hashCode(); + if (hasIsHirable()) { + hash = (37 * hash) + IS_HIRABLE_FIELD_NUMBER; + hash = (53 * hash) + getIsHirable().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + RESUME_HRXML_FIELD_NUMBER; + hash = (53 * hash) + getResumeHrxml().hashCode(); + if (getPersonNamesCount() > 0) { + hash = (37 * hash) + PERSON_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getPersonNamesList().hashCode(); + } + if (getAddressesCount() > 0) { + hash = (37 * hash) + ADDRESSES_FIELD_NUMBER; + hash = (53 * hash) + getAddressesList().hashCode(); + } + if (getEmailAddressesCount() > 0) { + hash = (37 * hash) + EMAIL_ADDRESSES_FIELD_NUMBER; + hash = (53 * hash) + getEmailAddressesList().hashCode(); + } + if (getPhoneNumbersCount() > 0) { + hash = (37 * hash) + PHONE_NUMBERS_FIELD_NUMBER; + hash = (53 * hash) + getPhoneNumbersList().hashCode(); + } + if (getPersonalUrisCount() > 0) { + hash = (37 * hash) + PERSONAL_URIS_FIELD_NUMBER; + hash = (53 * hash) + getPersonalUrisList().hashCode(); + } + if (getAdditionalContactInfoCount() > 0) { + hash = (37 * hash) + ADDITIONAL_CONTACT_INFO_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalContactInfoList().hashCode(); + } + if (getEmploymentRecordsCount() > 0) { + hash = (37 * hash) + EMPLOYMENT_RECORDS_FIELD_NUMBER; + hash = (53 * hash) + getEmploymentRecordsList().hashCode(); + } + if (getEducationRecordsCount() > 0) { + hash = (37 * hash) + EDUCATION_RECORDS_FIELD_NUMBER; + hash = (53 * hash) + getEducationRecordsList().hashCode(); + } + if (getSkillsCount() > 0) { + hash = (37 * hash) + SKILLS_FIELD_NUMBER; + hash = (53 * hash) + getSkillsList().hashCode(); + } + if (getActivitiesCount() > 0) { + hash = (37 * hash) + ACTIVITIES_FIELD_NUMBER; + hash = (53 * hash) + getActivitiesList().hashCode(); + } + if (getPublicationsCount() > 0) { + hash = (37 * hash) + PUBLICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getPublicationsList().hashCode(); + } + if (getPatentsCount() > 0) { + hash = (37 * hash) + PATENTS_FIELD_NUMBER; + hash = (53 * hash) + getPatentsList().hashCode(); + } + if (getCertificationsCount() > 0) { + hash = (37 * hash) + CERTIFICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getCertificationsList().hashCode(); + } + if (getJobApplicationsCount() > 0) { + hash = (37 * hash) + JOB_APPLICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getJobApplicationsList().hashCode(); + } + if (getRecruitingNotesCount() > 0) { + hash = (37 * hash) + RECRUITING_NOTES_FIELD_NUMBER; + hash = (53 * hash) + getRecruitingNotesList().hashCode(); + } + if (!internalGetCustomAttributes().getMap().isEmpty()) { + hash = (37 * hash) + CUSTOM_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + internalGetCustomAttributes().hashCode(); + } + hash = (37 * hash) + PROCESSED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getProcessed()); + hash = (37 * hash) + KEYWORD_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getKeywordSnippet().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Profile parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Profile parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Profile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Profile parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Profile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Profile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Profile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Profile parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Profile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Profile parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Profile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Profile parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.Profile prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A resource that represents the profile for a job candidate (also referred to
+   * as a "single-source profile"). A profile belongs to a
+   * [Tenant][google.cloud.talent.v4beta1.Tenant], which is an isolated instance
+   * of the customer that owns the profile.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Profile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Profile) + com.google.cloud.talent.v4beta1.ProfileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Profile_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 26: + return internalGetCustomAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 26: + return internalGetMutableCustomAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Profile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Profile.class, + com.google.cloud.talent.v4beta1.Profile.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Profile.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPersonNamesFieldBuilder(); + getAddressesFieldBuilder(); + getEmailAddressesFieldBuilder(); + getPhoneNumbersFieldBuilder(); + getPersonalUrisFieldBuilder(); + getAdditionalContactInfoFieldBuilder(); + getEmploymentRecordsFieldBuilder(); + getEducationRecordsFieldBuilder(); + getSkillsFieldBuilder(); + getActivitiesFieldBuilder(); + getPublicationsFieldBuilder(); + getPatentsFieldBuilder(); + getCertificationsFieldBuilder(); + getJobApplicationsFieldBuilder(); + getRecruitingNotesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + externalId_ = ""; + + source_ = ""; + + uri_ = ""; + + groupId_ = ""; + + if (isHirableBuilder_ == null) { + isHirable_ = null; + } else { + isHirable_ = null; + isHirableBuilder_ = null; + } + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + resumeHrxml_ = ""; + + if (personNamesBuilder_ == null) { + personNames_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + } else { + personNamesBuilder_.clear(); + } + if (addressesBuilder_ == null) { + addresses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + } else { + addressesBuilder_.clear(); + } + if (emailAddressesBuilder_ == null) { + emailAddresses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + } else { + emailAddressesBuilder_.clear(); + } + if (phoneNumbersBuilder_ == null) { + phoneNumbers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + } else { + phoneNumbersBuilder_.clear(); + } + if (personalUrisBuilder_ == null) { + personalUris_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + } else { + personalUrisBuilder_.clear(); + } + if (additionalContactInfoBuilder_ == null) { + additionalContactInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); + } else { + additionalContactInfoBuilder_.clear(); + } + if (employmentRecordsBuilder_ == null) { + employmentRecords_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00008000); + } else { + employmentRecordsBuilder_.clear(); + } + if (educationRecordsBuilder_ == null) { + educationRecords_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00010000); + } else { + educationRecordsBuilder_.clear(); + } + if (skillsBuilder_ == null) { + skills_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000); + } else { + skillsBuilder_.clear(); + } + if (activitiesBuilder_ == null) { + activities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00040000); + } else { + activitiesBuilder_.clear(); + } + if (publicationsBuilder_ == null) { + publications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00080000); + } else { + publicationsBuilder_.clear(); + } + if (patentsBuilder_ == null) { + patents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00100000); + } else { + patentsBuilder_.clear(); + } + if (certificationsBuilder_ == null) { + certifications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00200000); + } else { + certificationsBuilder_.clear(); + } + if (jobApplicationsBuilder_ == null) { + jobApplications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00400000); + } else { + jobApplicationsBuilder_.clear(); + } + if (recruitingNotesBuilder_ == null) { + recruitingNotes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00800000); + } else { + recruitingNotesBuilder_.clear(); + } + internalGetMutableCustomAttributes().clear(); + processed_ = false; + + keywordSnippet_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Profile_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Profile getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Profile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Profile build() { + com.google.cloud.talent.v4beta1.Profile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Profile buildPartial() { + com.google.cloud.talent.v4beta1.Profile result = + new com.google.cloud.talent.v4beta1.Profile(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + result.externalId_ = externalId_; + result.source_ = source_; + result.uri_ = uri_; + result.groupId_ = groupId_; + if (isHirableBuilder_ == null) { + result.isHirable_ = isHirable_; + } else { + result.isHirable_ = isHirableBuilder_.build(); + } + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.resumeHrxml_ = resumeHrxml_; + if (personNamesBuilder_ == null) { + if (((bitField0_ & 0x00000200) == 0x00000200)) { + personNames_ = java.util.Collections.unmodifiableList(personNames_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.personNames_ = personNames_; + } else { + result.personNames_ = personNamesBuilder_.build(); + } + if (addressesBuilder_ == null) { + if (((bitField0_ & 0x00000400) == 0x00000400)) { + addresses_ = java.util.Collections.unmodifiableList(addresses_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.addresses_ = addresses_; + } else { + result.addresses_ = addressesBuilder_.build(); + } + if (emailAddressesBuilder_ == null) { + if (((bitField0_ & 0x00000800) == 0x00000800)) { + emailAddresses_ = java.util.Collections.unmodifiableList(emailAddresses_); + bitField0_ = (bitField0_ & ~0x00000800); + } + result.emailAddresses_ = emailAddresses_; + } else { + result.emailAddresses_ = emailAddressesBuilder_.build(); + } + if (phoneNumbersBuilder_ == null) { + if (((bitField0_ & 0x00001000) == 0x00001000)) { + phoneNumbers_ = java.util.Collections.unmodifiableList(phoneNumbers_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.phoneNumbers_ = phoneNumbers_; + } else { + result.phoneNumbers_ = phoneNumbersBuilder_.build(); + } + if (personalUrisBuilder_ == null) { + if (((bitField0_ & 0x00002000) == 0x00002000)) { + personalUris_ = java.util.Collections.unmodifiableList(personalUris_); + bitField0_ = (bitField0_ & ~0x00002000); + } + result.personalUris_ = personalUris_; + } else { + result.personalUris_ = personalUrisBuilder_.build(); + } + if (additionalContactInfoBuilder_ == null) { + if (((bitField0_ & 0x00004000) == 0x00004000)) { + additionalContactInfo_ = java.util.Collections.unmodifiableList(additionalContactInfo_); + bitField0_ = (bitField0_ & ~0x00004000); + } + result.additionalContactInfo_ = additionalContactInfo_; + } else { + result.additionalContactInfo_ = additionalContactInfoBuilder_.build(); + } + if (employmentRecordsBuilder_ == null) { + if (((bitField0_ & 0x00008000) == 0x00008000)) { + employmentRecords_ = java.util.Collections.unmodifiableList(employmentRecords_); + bitField0_ = (bitField0_ & ~0x00008000); + } + result.employmentRecords_ = employmentRecords_; + } else { + result.employmentRecords_ = employmentRecordsBuilder_.build(); + } + if (educationRecordsBuilder_ == null) { + if (((bitField0_ & 0x00010000) == 0x00010000)) { + educationRecords_ = java.util.Collections.unmodifiableList(educationRecords_); + bitField0_ = (bitField0_ & ~0x00010000); + } + result.educationRecords_ = educationRecords_; + } else { + result.educationRecords_ = educationRecordsBuilder_.build(); + } + if (skillsBuilder_ == null) { + if (((bitField0_ & 0x00020000) == 0x00020000)) { + skills_ = java.util.Collections.unmodifiableList(skills_); + bitField0_ = (bitField0_ & ~0x00020000); + } + result.skills_ = skills_; + } else { + result.skills_ = skillsBuilder_.build(); + } + if (activitiesBuilder_ == null) { + if (((bitField0_ & 0x00040000) == 0x00040000)) { + activities_ = java.util.Collections.unmodifiableList(activities_); + bitField0_ = (bitField0_ & ~0x00040000); + } + result.activities_ = activities_; + } else { + result.activities_ = activitiesBuilder_.build(); + } + if (publicationsBuilder_ == null) { + if (((bitField0_ & 0x00080000) == 0x00080000)) { + publications_ = java.util.Collections.unmodifiableList(publications_); + bitField0_ = (bitField0_ & ~0x00080000); + } + result.publications_ = publications_; + } else { + result.publications_ = publicationsBuilder_.build(); + } + if (patentsBuilder_ == null) { + if (((bitField0_ & 0x00100000) == 0x00100000)) { + patents_ = java.util.Collections.unmodifiableList(patents_); + bitField0_ = (bitField0_ & ~0x00100000); + } + result.patents_ = patents_; + } else { + result.patents_ = patentsBuilder_.build(); + } + if (certificationsBuilder_ == null) { + if (((bitField0_ & 0x00200000) == 0x00200000)) { + certifications_ = java.util.Collections.unmodifiableList(certifications_); + bitField0_ = (bitField0_ & ~0x00200000); + } + result.certifications_ = certifications_; + } else { + result.certifications_ = certificationsBuilder_.build(); + } + if (jobApplicationsBuilder_ == null) { + if (((bitField0_ & 0x00400000) == 0x00400000)) { + jobApplications_ = java.util.Collections.unmodifiableList(jobApplications_); + bitField0_ = (bitField0_ & ~0x00400000); + } + result.jobApplications_ = jobApplications_; + } else { + result.jobApplications_ = jobApplicationsBuilder_.build(); + } + if (recruitingNotesBuilder_ == null) { + if (((bitField0_ & 0x00800000) == 0x00800000)) { + recruitingNotes_ = java.util.Collections.unmodifiableList(recruitingNotes_); + bitField0_ = (bitField0_ & ~0x00800000); + } + result.recruitingNotes_ = recruitingNotes_; + } else { + result.recruitingNotes_ = recruitingNotesBuilder_.build(); + } + result.customAttributes_ = internalGetCustomAttributes(); + result.customAttributes_.makeImmutable(); + result.processed_ = processed_; + result.keywordSnippet_ = keywordSnippet_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Profile) { + return mergeFrom((com.google.cloud.talent.v4beta1.Profile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Profile other) { + if (other == com.google.cloud.talent.v4beta1.Profile.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getExternalId().isEmpty()) { + externalId_ = other.externalId_; + onChanged(); + } + if (!other.getSource().isEmpty()) { + source_ = other.source_; + onChanged(); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + onChanged(); + } + if (!other.getGroupId().isEmpty()) { + groupId_ = other.groupId_; + onChanged(); + } + if (other.hasIsHirable()) { + mergeIsHirable(other.getIsHirable()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getResumeHrxml().isEmpty()) { + resumeHrxml_ = other.resumeHrxml_; + onChanged(); + } + if (personNamesBuilder_ == null) { + if (!other.personNames_.isEmpty()) { + if (personNames_.isEmpty()) { + personNames_ = other.personNames_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensurePersonNamesIsMutable(); + personNames_.addAll(other.personNames_); + } + onChanged(); + } + } else { + if (!other.personNames_.isEmpty()) { + if (personNamesBuilder_.isEmpty()) { + personNamesBuilder_.dispose(); + personNamesBuilder_ = null; + personNames_ = other.personNames_; + bitField0_ = (bitField0_ & ~0x00000200); + personNamesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPersonNamesFieldBuilder() + : null; + } else { + personNamesBuilder_.addAllMessages(other.personNames_); + } + } + } + if (addressesBuilder_ == null) { + if (!other.addresses_.isEmpty()) { + if (addresses_.isEmpty()) { + addresses_ = other.addresses_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureAddressesIsMutable(); + addresses_.addAll(other.addresses_); + } + onChanged(); + } + } else { + if (!other.addresses_.isEmpty()) { + if (addressesBuilder_.isEmpty()) { + addressesBuilder_.dispose(); + addressesBuilder_ = null; + addresses_ = other.addresses_; + bitField0_ = (bitField0_ & ~0x00000400); + addressesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAddressesFieldBuilder() + : null; + } else { + addressesBuilder_.addAllMessages(other.addresses_); + } + } + } + if (emailAddressesBuilder_ == null) { + if (!other.emailAddresses_.isEmpty()) { + if (emailAddresses_.isEmpty()) { + emailAddresses_ = other.emailAddresses_; + bitField0_ = (bitField0_ & ~0x00000800); + } else { + ensureEmailAddressesIsMutable(); + emailAddresses_.addAll(other.emailAddresses_); + } + onChanged(); + } + } else { + if (!other.emailAddresses_.isEmpty()) { + if (emailAddressesBuilder_.isEmpty()) { + emailAddressesBuilder_.dispose(); + emailAddressesBuilder_ = null; + emailAddresses_ = other.emailAddresses_; + bitField0_ = (bitField0_ & ~0x00000800); + emailAddressesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEmailAddressesFieldBuilder() + : null; + } else { + emailAddressesBuilder_.addAllMessages(other.emailAddresses_); + } + } + } + if (phoneNumbersBuilder_ == null) { + if (!other.phoneNumbers_.isEmpty()) { + if (phoneNumbers_.isEmpty()) { + phoneNumbers_ = other.phoneNumbers_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensurePhoneNumbersIsMutable(); + phoneNumbers_.addAll(other.phoneNumbers_); + } + onChanged(); + } + } else { + if (!other.phoneNumbers_.isEmpty()) { + if (phoneNumbersBuilder_.isEmpty()) { + phoneNumbersBuilder_.dispose(); + phoneNumbersBuilder_ = null; + phoneNumbers_ = other.phoneNumbers_; + bitField0_ = (bitField0_ & ~0x00001000); + phoneNumbersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPhoneNumbersFieldBuilder() + : null; + } else { + phoneNumbersBuilder_.addAllMessages(other.phoneNumbers_); + } + } + } + if (personalUrisBuilder_ == null) { + if (!other.personalUris_.isEmpty()) { + if (personalUris_.isEmpty()) { + personalUris_ = other.personalUris_; + bitField0_ = (bitField0_ & ~0x00002000); + } else { + ensurePersonalUrisIsMutable(); + personalUris_.addAll(other.personalUris_); + } + onChanged(); + } + } else { + if (!other.personalUris_.isEmpty()) { + if (personalUrisBuilder_.isEmpty()) { + personalUrisBuilder_.dispose(); + personalUrisBuilder_ = null; + personalUris_ = other.personalUris_; + bitField0_ = (bitField0_ & ~0x00002000); + personalUrisBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPersonalUrisFieldBuilder() + : null; + } else { + personalUrisBuilder_.addAllMessages(other.personalUris_); + } + } + } + if (additionalContactInfoBuilder_ == null) { + if (!other.additionalContactInfo_.isEmpty()) { + if (additionalContactInfo_.isEmpty()) { + additionalContactInfo_ = other.additionalContactInfo_; + bitField0_ = (bitField0_ & ~0x00004000); + } else { + ensureAdditionalContactInfoIsMutable(); + additionalContactInfo_.addAll(other.additionalContactInfo_); + } + onChanged(); + } + } else { + if (!other.additionalContactInfo_.isEmpty()) { + if (additionalContactInfoBuilder_.isEmpty()) { + additionalContactInfoBuilder_.dispose(); + additionalContactInfoBuilder_ = null; + additionalContactInfo_ = other.additionalContactInfo_; + bitField0_ = (bitField0_ & ~0x00004000); + additionalContactInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAdditionalContactInfoFieldBuilder() + : null; + } else { + additionalContactInfoBuilder_.addAllMessages(other.additionalContactInfo_); + } + } + } + if (employmentRecordsBuilder_ == null) { + if (!other.employmentRecords_.isEmpty()) { + if (employmentRecords_.isEmpty()) { + employmentRecords_ = other.employmentRecords_; + bitField0_ = (bitField0_ & ~0x00008000); + } else { + ensureEmploymentRecordsIsMutable(); + employmentRecords_.addAll(other.employmentRecords_); + } + onChanged(); + } + } else { + if (!other.employmentRecords_.isEmpty()) { + if (employmentRecordsBuilder_.isEmpty()) { + employmentRecordsBuilder_.dispose(); + employmentRecordsBuilder_ = null; + employmentRecords_ = other.employmentRecords_; + bitField0_ = (bitField0_ & ~0x00008000); + employmentRecordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEmploymentRecordsFieldBuilder() + : null; + } else { + employmentRecordsBuilder_.addAllMessages(other.employmentRecords_); + } + } + } + if (educationRecordsBuilder_ == null) { + if (!other.educationRecords_.isEmpty()) { + if (educationRecords_.isEmpty()) { + educationRecords_ = other.educationRecords_; + bitField0_ = (bitField0_ & ~0x00010000); + } else { + ensureEducationRecordsIsMutable(); + educationRecords_.addAll(other.educationRecords_); + } + onChanged(); + } + } else { + if (!other.educationRecords_.isEmpty()) { + if (educationRecordsBuilder_.isEmpty()) { + educationRecordsBuilder_.dispose(); + educationRecordsBuilder_ = null; + educationRecords_ = other.educationRecords_; + bitField0_ = (bitField0_ & ~0x00010000); + educationRecordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEducationRecordsFieldBuilder() + : null; + } else { + educationRecordsBuilder_.addAllMessages(other.educationRecords_); + } + } + } + if (skillsBuilder_ == null) { + if (!other.skills_.isEmpty()) { + if (skills_.isEmpty()) { + skills_ = other.skills_; + bitField0_ = (bitField0_ & ~0x00020000); + } else { + ensureSkillsIsMutable(); + skills_.addAll(other.skills_); + } + onChanged(); + } + } else { + if (!other.skills_.isEmpty()) { + if (skillsBuilder_.isEmpty()) { + skillsBuilder_.dispose(); + skillsBuilder_ = null; + skills_ = other.skills_; + bitField0_ = (bitField0_ & ~0x00020000); + skillsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSkillsFieldBuilder() + : null; + } else { + skillsBuilder_.addAllMessages(other.skills_); + } + } + } + if (activitiesBuilder_ == null) { + if (!other.activities_.isEmpty()) { + if (activities_.isEmpty()) { + activities_ = other.activities_; + bitField0_ = (bitField0_ & ~0x00040000); + } else { + ensureActivitiesIsMutable(); + activities_.addAll(other.activities_); + } + onChanged(); + } + } else { + if (!other.activities_.isEmpty()) { + if (activitiesBuilder_.isEmpty()) { + activitiesBuilder_.dispose(); + activitiesBuilder_ = null; + activities_ = other.activities_; + bitField0_ = (bitField0_ & ~0x00040000); + activitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getActivitiesFieldBuilder() + : null; + } else { + activitiesBuilder_.addAllMessages(other.activities_); + } + } + } + if (publicationsBuilder_ == null) { + if (!other.publications_.isEmpty()) { + if (publications_.isEmpty()) { + publications_ = other.publications_; + bitField0_ = (bitField0_ & ~0x00080000); + } else { + ensurePublicationsIsMutable(); + publications_.addAll(other.publications_); + } + onChanged(); + } + } else { + if (!other.publications_.isEmpty()) { + if (publicationsBuilder_.isEmpty()) { + publicationsBuilder_.dispose(); + publicationsBuilder_ = null; + publications_ = other.publications_; + bitField0_ = (bitField0_ & ~0x00080000); + publicationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPublicationsFieldBuilder() + : null; + } else { + publicationsBuilder_.addAllMessages(other.publications_); + } + } + } + if (patentsBuilder_ == null) { + if (!other.patents_.isEmpty()) { + if (patents_.isEmpty()) { + patents_ = other.patents_; + bitField0_ = (bitField0_ & ~0x00100000); + } else { + ensurePatentsIsMutable(); + patents_.addAll(other.patents_); + } + onChanged(); + } + } else { + if (!other.patents_.isEmpty()) { + if (patentsBuilder_.isEmpty()) { + patentsBuilder_.dispose(); + patentsBuilder_ = null; + patents_ = other.patents_; + bitField0_ = (bitField0_ & ~0x00100000); + patentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPatentsFieldBuilder() + : null; + } else { + patentsBuilder_.addAllMessages(other.patents_); + } + } + } + if (certificationsBuilder_ == null) { + if (!other.certifications_.isEmpty()) { + if (certifications_.isEmpty()) { + certifications_ = other.certifications_; + bitField0_ = (bitField0_ & ~0x00200000); + } else { + ensureCertificationsIsMutable(); + certifications_.addAll(other.certifications_); + } + onChanged(); + } + } else { + if (!other.certifications_.isEmpty()) { + if (certificationsBuilder_.isEmpty()) { + certificationsBuilder_.dispose(); + certificationsBuilder_ = null; + certifications_ = other.certifications_; + bitField0_ = (bitField0_ & ~0x00200000); + certificationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCertificationsFieldBuilder() + : null; + } else { + certificationsBuilder_.addAllMessages(other.certifications_); + } + } + } + if (jobApplicationsBuilder_ == null) { + if (!other.jobApplications_.isEmpty()) { + if (jobApplications_.isEmpty()) { + jobApplications_ = other.jobApplications_; + bitField0_ = (bitField0_ & ~0x00400000); + } else { + ensureJobApplicationsIsMutable(); + jobApplications_.addAll(other.jobApplications_); + } + onChanged(); + } + } else { + if (!other.jobApplications_.isEmpty()) { + if (jobApplicationsBuilder_.isEmpty()) { + jobApplicationsBuilder_.dispose(); + jobApplicationsBuilder_ = null; + jobApplications_ = other.jobApplications_; + bitField0_ = (bitField0_ & ~0x00400000); + jobApplicationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getJobApplicationsFieldBuilder() + : null; + } else { + jobApplicationsBuilder_.addAllMessages(other.jobApplications_); + } + } + } + if (recruitingNotesBuilder_ == null) { + if (!other.recruitingNotes_.isEmpty()) { + if (recruitingNotes_.isEmpty()) { + recruitingNotes_ = other.recruitingNotes_; + bitField0_ = (bitField0_ & ~0x00800000); + } else { + ensureRecruitingNotesIsMutable(); + recruitingNotes_.addAll(other.recruitingNotes_); + } + onChanged(); + } + } else { + if (!other.recruitingNotes_.isEmpty()) { + if (recruitingNotesBuilder_.isEmpty()) { + recruitingNotesBuilder_.dispose(); + recruitingNotesBuilder_ = null; + recruitingNotes_ = other.recruitingNotes_; + bitField0_ = (bitField0_ & ~0x00800000); + recruitingNotesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRecruitingNotesFieldBuilder() + : null; + } else { + recruitingNotesBuilder_.addAllMessages(other.recruitingNotes_); + } + } + } + internalGetMutableCustomAttributes().mergeFrom(other.internalGetCustomAttributes()); + if (other.getProcessed() != false) { + setProcessed(other.getProcessed()); + } + if (!other.getKeywordSnippet().isEmpty()) { + keywordSnippet_ = other.keywordSnippet_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Profile parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Profile) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required during profile update.
+     * Resource name assigned to a profile by the API.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required during profile update.
+     * Resource name assigned to a profile by the API.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required during profile update.
+     * Resource name assigned to a profile by the API.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required during profile update.
+     * Resource name assigned to a profile by the API.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required during profile update.
+     * Resource name assigned to a profile by the API.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object externalId_ = ""; + /** + * + * + *
+     * Optional.
+     * Profile's id in client system if available.
+     * The maximum number of bytes allowed is 100.
+     * 
+ * + * string external_id = 2; + */ + public java.lang.String getExternalId() { + java.lang.Object ref = externalId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + externalId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Profile's id in client system if available.
+     * The maximum number of bytes allowed is 100.
+     * 
+ * + * string external_id = 2; + */ + public com.google.protobuf.ByteString getExternalIdBytes() { + java.lang.Object ref = externalId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Profile's id in client system if available.
+     * The maximum number of bytes allowed is 100.
+     * 
+ * + * string external_id = 2; + */ + public Builder setExternalId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + externalId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Profile's id in client system if available.
+     * The maximum number of bytes allowed is 100.
+     * 
+ * + * string external_id = 2; + */ + public Builder clearExternalId() { + + externalId_ = getDefaultInstance().getExternalId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Profile's id in client system if available.
+     * The maximum number of bytes allowed is 100.
+     * 
+ * + * string external_id = 2; + */ + public Builder setExternalIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + externalId_ = value; + onChanged(); + return this; + } + + private java.lang.Object source_ = ""; + /** + * + * + *
+     * Optional.
+     * The source description indicating where the profile is acquired.
+     * For example, if a candidate profile is acquired from a resume, the user can
+     * input "resume" here to indicate the source.
+     * The maximum number of bytes allowed is 100.
+     * 
+ * + * string source = 3; + */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The source description indicating where the profile is acquired.
+     * For example, if a candidate profile is acquired from a resume, the user can
+     * input "resume" here to indicate the source.
+     * The maximum number of bytes allowed is 100.
+     * 
+ * + * string source = 3; + */ + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The source description indicating where the profile is acquired.
+     * For example, if a candidate profile is acquired from a resume, the user can
+     * input "resume" here to indicate the source.
+     * The maximum number of bytes allowed is 100.
+     * 
+ * + * string source = 3; + */ + public Builder setSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + source_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The source description indicating where the profile is acquired.
+     * For example, if a candidate profile is acquired from a resume, the user can
+     * input "resume" here to indicate the source.
+     * The maximum number of bytes allowed is 100.
+     * 
+ * + * string source = 3; + */ + public Builder clearSource() { + + source_ = getDefaultInstance().getSource(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The source description indicating where the profile is acquired.
+     * For example, if a candidate profile is acquired from a resume, the user can
+     * input "resume" here to indicate the source.
+     * The maximum number of bytes allowed is 100.
+     * 
+ * + * string source = 3; + */ + public Builder setSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + source_ = value; + onChanged(); + return this; + } + + private java.lang.Object uri_ = ""; + /** + * + * + *
+     * Optional.
+     * The URI set by clients that links to this profile's client-side copy.
+     * The maximum number of bytes allowed is 4000.
+     * 
+ * + * string uri = 4; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The URI set by clients that links to this profile's client-side copy.
+     * The maximum number of bytes allowed is 4000.
+     * 
+ * + * string uri = 4; + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The URI set by clients that links to this profile's client-side copy.
+     * The maximum number of bytes allowed is 4000.
+     * 
+ * + * string uri = 4; + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The URI set by clients that links to this profile's client-side copy.
+     * The maximum number of bytes allowed is 4000.
+     * 
+ * + * string uri = 4; + */ + public Builder clearUri() { + + uri_ = getDefaultInstance().getUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The URI set by clients that links to this profile's client-side copy.
+     * The maximum number of bytes allowed is 4000.
+     * 
+ * + * string uri = 4; + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uri_ = value; + onChanged(); + return this; + } + + private java.lang.Object groupId_ = ""; + /** + * + * + *
+     * Optional.
+     * The cluster id of the profile to associate with other profile(s) for the
+     * same candidate.
+     * A random UUID is assigned if
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't provided. To
+     * ensure global uniqueness, customized
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't supported.
+     * If [group_id][google.cloud.talent.v4beta1.Profile.group_id] is set, there
+     * must be at least one other profile with the same system generated
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id], otherwise an
+     * error is thrown.
+     * This is used to link multiple profiles to the same candidate. For example,
+     * a client has a candidate with two profiles, where one was created recently
+     * and the other one was created 5 years ago. These two profiles may be very
+     * different. The clients can create the first profile and get a generated
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it
+     * when the second profile is created, indicating these two profiles are
+     * referring to the same candidate.
+     * 
+ * + * string group_id = 5; + */ + public java.lang.String getGroupId() { + java.lang.Object ref = groupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + groupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The cluster id of the profile to associate with other profile(s) for the
+     * same candidate.
+     * A random UUID is assigned if
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't provided. To
+     * ensure global uniqueness, customized
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't supported.
+     * If [group_id][google.cloud.talent.v4beta1.Profile.group_id] is set, there
+     * must be at least one other profile with the same system generated
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id], otherwise an
+     * error is thrown.
+     * This is used to link multiple profiles to the same candidate. For example,
+     * a client has a candidate with two profiles, where one was created recently
+     * and the other one was created 5 years ago. These two profiles may be very
+     * different. The clients can create the first profile and get a generated
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it
+     * when the second profile is created, indicating these two profiles are
+     * referring to the same candidate.
+     * 
+ * + * string group_id = 5; + */ + public com.google.protobuf.ByteString getGroupIdBytes() { + java.lang.Object ref = groupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + groupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The cluster id of the profile to associate with other profile(s) for the
+     * same candidate.
+     * A random UUID is assigned if
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't provided. To
+     * ensure global uniqueness, customized
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't supported.
+     * If [group_id][google.cloud.talent.v4beta1.Profile.group_id] is set, there
+     * must be at least one other profile with the same system generated
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id], otherwise an
+     * error is thrown.
+     * This is used to link multiple profiles to the same candidate. For example,
+     * a client has a candidate with two profiles, where one was created recently
+     * and the other one was created 5 years ago. These two profiles may be very
+     * different. The clients can create the first profile and get a generated
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it
+     * when the second profile is created, indicating these two profiles are
+     * referring to the same candidate.
+     * 
+ * + * string group_id = 5; + */ + public Builder setGroupId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + groupId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The cluster id of the profile to associate with other profile(s) for the
+     * same candidate.
+     * A random UUID is assigned if
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't provided. To
+     * ensure global uniqueness, customized
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't supported.
+     * If [group_id][google.cloud.talent.v4beta1.Profile.group_id] is set, there
+     * must be at least one other profile with the same system generated
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id], otherwise an
+     * error is thrown.
+     * This is used to link multiple profiles to the same candidate. For example,
+     * a client has a candidate with two profiles, where one was created recently
+     * and the other one was created 5 years ago. These two profiles may be very
+     * different. The clients can create the first profile and get a generated
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it
+     * when the second profile is created, indicating these two profiles are
+     * referring to the same candidate.
+     * 
+ * + * string group_id = 5; + */ + public Builder clearGroupId() { + + groupId_ = getDefaultInstance().getGroupId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The cluster id of the profile to associate with other profile(s) for the
+     * same candidate.
+     * A random UUID is assigned if
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't provided. To
+     * ensure global uniqueness, customized
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't supported.
+     * If [group_id][google.cloud.talent.v4beta1.Profile.group_id] is set, there
+     * must be at least one other profile with the same system generated
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id], otherwise an
+     * error is thrown.
+     * This is used to link multiple profiles to the same candidate. For example,
+     * a client has a candidate with two profiles, where one was created recently
+     * and the other one was created 5 years ago. These two profiles may be very
+     * different. The clients can create the first profile and get a generated
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it
+     * when the second profile is created, indicating these two profiles are
+     * referring to the same candidate.
+     * 
+ * + * string group_id = 5; + */ + public Builder setGroupIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + groupId_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.BoolValue isHirable_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + isHirableBuilder_; + /** + * + * + *
+     * Optional.
+     * Indicates the hirable status of the candidate.
+     * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + public boolean hasIsHirable() { + return isHirableBuilder_ != null || isHirable_ != null; + } + /** + * + * + *
+     * Optional.
+     * Indicates the hirable status of the candidate.
+     * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + public com.google.protobuf.BoolValue getIsHirable() { + if (isHirableBuilder_ == null) { + return isHirable_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isHirable_; + } else { + return isHirableBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Indicates the hirable status of the candidate.
+     * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + public Builder setIsHirable(com.google.protobuf.BoolValue value) { + if (isHirableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + isHirable_ = value; + onChanged(); + } else { + isHirableBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Indicates the hirable status of the candidate.
+     * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + public Builder setIsHirable(com.google.protobuf.BoolValue.Builder builderForValue) { + if (isHirableBuilder_ == null) { + isHirable_ = builderForValue.build(); + onChanged(); + } else { + isHirableBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Indicates the hirable status of the candidate.
+     * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + public Builder mergeIsHirable(com.google.protobuf.BoolValue value) { + if (isHirableBuilder_ == null) { + if (isHirable_ != null) { + isHirable_ = + com.google.protobuf.BoolValue.newBuilder(isHirable_).mergeFrom(value).buildPartial(); + } else { + isHirable_ = value; + } + onChanged(); + } else { + isHirableBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Indicates the hirable status of the candidate.
+     * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + public Builder clearIsHirable() { + if (isHirableBuilder_ == null) { + isHirable_ = null; + onChanged(); + } else { + isHirable_ = null; + isHirableBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Indicates the hirable status of the candidate.
+     * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + public com.google.protobuf.BoolValue.Builder getIsHirableBuilder() { + + onChanged(); + return getIsHirableFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Indicates the hirable status of the candidate.
+     * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + public com.google.protobuf.BoolValueOrBuilder getIsHirableOrBuilder() { + if (isHirableBuilder_ != null) { + return isHirableBuilder_.getMessageOrBuilder(); + } else { + return isHirable_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isHirable_; + } + } + /** + * + * + *
+     * Optional.
+     * Indicates the hirable status of the candidate.
+     * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getIsHirableFieldBuilder() { + if (isHirableBuilder_ == null) { + isHirableBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getIsHirable(), getParentForChildren(), isClean()); + isHirable_ = null; + } + return isHirableBuilder_; + } + + private com.google.protobuf.Timestamp createTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was first created at this source.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was first created at this source.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was first created at this source.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was first created at this source.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was first created at this source.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was first created at this source.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was first created at this source.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was first created at this source.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was first created at this source.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was last updated at this source.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was last updated at this source.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was last updated at this source.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was last updated at this source.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was last updated at this source.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (updateTime_ != null) { + updateTime_ = + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was last updated at this source.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was last updated at this source.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was last updated at this source.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was last updated at this source.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object resumeHrxml_ = ""; + /** + * + * + *
+     * Optional.
+     * The profile contents in HR-XML format.
+     * See http://schemas.liquid-technologies.com/hr-xml/2007-04-15/ for more
+     * information about Human Resources XML.
+     * Users can create a profile with only
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] field. For
+     * example, the API parses the
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] and
+     * creates a profile with all structured fields populated, for example.
+     * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord],
+     * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], etc. An
+     * error is thrown if the
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] can't be
+     * parsed.
+     * If the [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] is
+     * provided during profile creation or update, any other structured data
+     * provided in the profile is ignored. The API populates these fields by
+     * parsing the HR-XML.
+     * 
+ * + * string resume_hrxml = 10; + */ + public java.lang.String getResumeHrxml() { + java.lang.Object ref = resumeHrxml_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resumeHrxml_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The profile contents in HR-XML format.
+     * See http://schemas.liquid-technologies.com/hr-xml/2007-04-15/ for more
+     * information about Human Resources XML.
+     * Users can create a profile with only
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] field. For
+     * example, the API parses the
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] and
+     * creates a profile with all structured fields populated, for example.
+     * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord],
+     * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], etc. An
+     * error is thrown if the
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] can't be
+     * parsed.
+     * If the [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] is
+     * provided during profile creation or update, any other structured data
+     * provided in the profile is ignored. The API populates these fields by
+     * parsing the HR-XML.
+     * 
+ * + * string resume_hrxml = 10; + */ + public com.google.protobuf.ByteString getResumeHrxmlBytes() { + java.lang.Object ref = resumeHrxml_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resumeHrxml_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The profile contents in HR-XML format.
+     * See http://schemas.liquid-technologies.com/hr-xml/2007-04-15/ for more
+     * information about Human Resources XML.
+     * Users can create a profile with only
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] field. For
+     * example, the API parses the
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] and
+     * creates a profile with all structured fields populated, for example.
+     * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord],
+     * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], etc. An
+     * error is thrown if the
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] can't be
+     * parsed.
+     * If the [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] is
+     * provided during profile creation or update, any other structured data
+     * provided in the profile is ignored. The API populates these fields by
+     * parsing the HR-XML.
+     * 
+ * + * string resume_hrxml = 10; + */ + public Builder setResumeHrxml(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resumeHrxml_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The profile contents in HR-XML format.
+     * See http://schemas.liquid-technologies.com/hr-xml/2007-04-15/ for more
+     * information about Human Resources XML.
+     * Users can create a profile with only
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] field. For
+     * example, the API parses the
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] and
+     * creates a profile with all structured fields populated, for example.
+     * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord],
+     * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], etc. An
+     * error is thrown if the
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] can't be
+     * parsed.
+     * If the [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] is
+     * provided during profile creation or update, any other structured data
+     * provided in the profile is ignored. The API populates these fields by
+     * parsing the HR-XML.
+     * 
+ * + * string resume_hrxml = 10; + */ + public Builder clearResumeHrxml() { + + resumeHrxml_ = getDefaultInstance().getResumeHrxml(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The profile contents in HR-XML format.
+     * See http://schemas.liquid-technologies.com/hr-xml/2007-04-15/ for more
+     * information about Human Resources XML.
+     * Users can create a profile with only
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] field. For
+     * example, the API parses the
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] and
+     * creates a profile with all structured fields populated, for example.
+     * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord],
+     * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], etc. An
+     * error is thrown if the
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] can't be
+     * parsed.
+     * If the [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] is
+     * provided during profile creation or update, any other structured data
+     * provided in the profile is ignored. The API populates these fields by
+     * parsing the HR-XML.
+     * 
+ * + * string resume_hrxml = 10; + */ + public Builder setResumeHrxmlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resumeHrxml_ = value; + onChanged(); + return this; + } + + private java.util.List personNames_ = + java.util.Collections.emptyList(); + + private void ensurePersonNamesIsMutable() { + if (!((bitField0_ & 0x00000200) == 0x00000200)) { + personNames_ = + new java.util.ArrayList(personNames_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.PersonName, + com.google.cloud.talent.v4beta1.PersonName.Builder, + com.google.cloud.talent.v4beta1.PersonNameOrBuilder> + personNamesBuilder_; + + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public java.util.List getPersonNamesList() { + if (personNamesBuilder_ == null) { + return java.util.Collections.unmodifiableList(personNames_); + } else { + return personNamesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public int getPersonNamesCount() { + if (personNamesBuilder_ == null) { + return personNames_.size(); + } else { + return personNamesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public com.google.cloud.talent.v4beta1.PersonName getPersonNames(int index) { + if (personNamesBuilder_ == null) { + return personNames_.get(index); + } else { + return personNamesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public Builder setPersonNames(int index, com.google.cloud.talent.v4beta1.PersonName value) { + if (personNamesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePersonNamesIsMutable(); + personNames_.set(index, value); + onChanged(); + } else { + personNamesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public Builder setPersonNames( + int index, com.google.cloud.talent.v4beta1.PersonName.Builder builderForValue) { + if (personNamesBuilder_ == null) { + ensurePersonNamesIsMutable(); + personNames_.set(index, builderForValue.build()); + onChanged(); + } else { + personNamesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public Builder addPersonNames(com.google.cloud.talent.v4beta1.PersonName value) { + if (personNamesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePersonNamesIsMutable(); + personNames_.add(value); + onChanged(); + } else { + personNamesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public Builder addPersonNames(int index, com.google.cloud.talent.v4beta1.PersonName value) { + if (personNamesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePersonNamesIsMutable(); + personNames_.add(index, value); + onChanged(); + } else { + personNamesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public Builder addPersonNames( + com.google.cloud.talent.v4beta1.PersonName.Builder builderForValue) { + if (personNamesBuilder_ == null) { + ensurePersonNamesIsMutable(); + personNames_.add(builderForValue.build()); + onChanged(); + } else { + personNamesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public Builder addPersonNames( + int index, com.google.cloud.talent.v4beta1.PersonName.Builder builderForValue) { + if (personNamesBuilder_ == null) { + ensurePersonNamesIsMutable(); + personNames_.add(index, builderForValue.build()); + onChanged(); + } else { + personNamesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public Builder addAllPersonNames( + java.lang.Iterable values) { + if (personNamesBuilder_ == null) { + ensurePersonNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, personNames_); + onChanged(); + } else { + personNamesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public Builder clearPersonNames() { + if (personNamesBuilder_ == null) { + personNames_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + personNamesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public Builder removePersonNames(int index) { + if (personNamesBuilder_ == null) { + ensurePersonNamesIsMutable(); + personNames_.remove(index); + onChanged(); + } else { + personNamesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public com.google.cloud.talent.v4beta1.PersonName.Builder getPersonNamesBuilder(int index) { + return getPersonNamesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public com.google.cloud.talent.v4beta1.PersonNameOrBuilder getPersonNamesOrBuilder(int index) { + if (personNamesBuilder_ == null) { + return personNames_.get(index); + } else { + return personNamesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public java.util.List + getPersonNamesOrBuilderList() { + if (personNamesBuilder_ != null) { + return personNamesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(personNames_); + } + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public com.google.cloud.talent.v4beta1.PersonName.Builder addPersonNamesBuilder() { + return getPersonNamesFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.PersonName.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public com.google.cloud.talent.v4beta1.PersonName.Builder addPersonNamesBuilder(int index) { + return getPersonNamesFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.PersonName.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public java.util.List + getPersonNamesBuilderList() { + return getPersonNamesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.PersonName, + com.google.cloud.talent.v4beta1.PersonName.Builder, + com.google.cloud.talent.v4beta1.PersonNameOrBuilder> + getPersonNamesFieldBuilder() { + if (personNamesBuilder_ == null) { + personNamesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.PersonName, + com.google.cloud.talent.v4beta1.PersonName.Builder, + com.google.cloud.talent.v4beta1.PersonNameOrBuilder>( + personNames_, + ((bitField0_ & 0x00000200) == 0x00000200), + getParentForChildren(), + isClean()); + personNames_ = null; + } + return personNamesBuilder_; + } + + private java.util.List addresses_ = + java.util.Collections.emptyList(); + + private void ensureAddressesIsMutable() { + if (!((bitField0_ & 0x00000400) == 0x00000400)) { + addresses_ = new java.util.ArrayList(addresses_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Address, + com.google.cloud.talent.v4beta1.Address.Builder, + com.google.cloud.talent.v4beta1.AddressOrBuilder> + addressesBuilder_; + + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public java.util.List getAddressesList() { + if (addressesBuilder_ == null) { + return java.util.Collections.unmodifiableList(addresses_); + } else { + return addressesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public int getAddressesCount() { + if (addressesBuilder_ == null) { + return addresses_.size(); + } else { + return addressesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public com.google.cloud.talent.v4beta1.Address getAddresses(int index) { + if (addressesBuilder_ == null) { + return addresses_.get(index); + } else { + return addressesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public Builder setAddresses(int index, com.google.cloud.talent.v4beta1.Address value) { + if (addressesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressesIsMutable(); + addresses_.set(index, value); + onChanged(); + } else { + addressesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public Builder setAddresses( + int index, com.google.cloud.talent.v4beta1.Address.Builder builderForValue) { + if (addressesBuilder_ == null) { + ensureAddressesIsMutable(); + addresses_.set(index, builderForValue.build()); + onChanged(); + } else { + addressesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public Builder addAddresses(com.google.cloud.talent.v4beta1.Address value) { + if (addressesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressesIsMutable(); + addresses_.add(value); + onChanged(); + } else { + addressesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public Builder addAddresses(int index, com.google.cloud.talent.v4beta1.Address value) { + if (addressesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressesIsMutable(); + addresses_.add(index, value); + onChanged(); + } else { + addressesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public Builder addAddresses(com.google.cloud.talent.v4beta1.Address.Builder builderForValue) { + if (addressesBuilder_ == null) { + ensureAddressesIsMutable(); + addresses_.add(builderForValue.build()); + onChanged(); + } else { + addressesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public Builder addAddresses( + int index, com.google.cloud.talent.v4beta1.Address.Builder builderForValue) { + if (addressesBuilder_ == null) { + ensureAddressesIsMutable(); + addresses_.add(index, builderForValue.build()); + onChanged(); + } else { + addressesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public Builder addAllAddresses( + java.lang.Iterable values) { + if (addressesBuilder_ == null) { + ensureAddressesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, addresses_); + onChanged(); + } else { + addressesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public Builder clearAddresses() { + if (addressesBuilder_ == null) { + addresses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + addressesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public Builder removeAddresses(int index) { + if (addressesBuilder_ == null) { + ensureAddressesIsMutable(); + addresses_.remove(index); + onChanged(); + } else { + addressesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public com.google.cloud.talent.v4beta1.Address.Builder getAddressesBuilder(int index) { + return getAddressesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressesOrBuilder(int index) { + if (addressesBuilder_ == null) { + return addresses_.get(index); + } else { + return addressesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public java.util.List + getAddressesOrBuilderList() { + if (addressesBuilder_ != null) { + return addressesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(addresses_); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public com.google.cloud.talent.v4beta1.Address.Builder addAddressesBuilder() { + return getAddressesFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Address.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public com.google.cloud.talent.v4beta1.Address.Builder addAddressesBuilder(int index) { + return getAddressesFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Address.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public java.util.List + getAddressesBuilderList() { + return getAddressesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Address, + com.google.cloud.talent.v4beta1.Address.Builder, + com.google.cloud.talent.v4beta1.AddressOrBuilder> + getAddressesFieldBuilder() { + if (addressesBuilder_ == null) { + addressesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Address, + com.google.cloud.talent.v4beta1.Address.Builder, + com.google.cloud.talent.v4beta1.AddressOrBuilder>( + addresses_, + ((bitField0_ & 0x00000400) == 0x00000400), + getParentForChildren(), + isClean()); + addresses_ = null; + } + return addressesBuilder_; + } + + private java.util.List emailAddresses_ = + java.util.Collections.emptyList(); + + private void ensureEmailAddressesIsMutable() { + if (!((bitField0_ & 0x00000800) == 0x00000800)) { + emailAddresses_ = + new java.util.ArrayList(emailAddresses_); + bitField0_ |= 0x00000800; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Email, + com.google.cloud.talent.v4beta1.Email.Builder, + com.google.cloud.talent.v4beta1.EmailOrBuilder> + emailAddressesBuilder_; + + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public java.util.List getEmailAddressesList() { + if (emailAddressesBuilder_ == null) { + return java.util.Collections.unmodifiableList(emailAddresses_); + } else { + return emailAddressesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public int getEmailAddressesCount() { + if (emailAddressesBuilder_ == null) { + return emailAddresses_.size(); + } else { + return emailAddressesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public com.google.cloud.talent.v4beta1.Email getEmailAddresses(int index) { + if (emailAddressesBuilder_ == null) { + return emailAddresses_.get(index); + } else { + return emailAddressesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public Builder setEmailAddresses(int index, com.google.cloud.talent.v4beta1.Email value) { + if (emailAddressesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmailAddressesIsMutable(); + emailAddresses_.set(index, value); + onChanged(); + } else { + emailAddressesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public Builder setEmailAddresses( + int index, com.google.cloud.talent.v4beta1.Email.Builder builderForValue) { + if (emailAddressesBuilder_ == null) { + ensureEmailAddressesIsMutable(); + emailAddresses_.set(index, builderForValue.build()); + onChanged(); + } else { + emailAddressesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public Builder addEmailAddresses(com.google.cloud.talent.v4beta1.Email value) { + if (emailAddressesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmailAddressesIsMutable(); + emailAddresses_.add(value); + onChanged(); + } else { + emailAddressesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public Builder addEmailAddresses(int index, com.google.cloud.talent.v4beta1.Email value) { + if (emailAddressesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmailAddressesIsMutable(); + emailAddresses_.add(index, value); + onChanged(); + } else { + emailAddressesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public Builder addEmailAddresses( + com.google.cloud.talent.v4beta1.Email.Builder builderForValue) { + if (emailAddressesBuilder_ == null) { + ensureEmailAddressesIsMutable(); + emailAddresses_.add(builderForValue.build()); + onChanged(); + } else { + emailAddressesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public Builder addEmailAddresses( + int index, com.google.cloud.talent.v4beta1.Email.Builder builderForValue) { + if (emailAddressesBuilder_ == null) { + ensureEmailAddressesIsMutable(); + emailAddresses_.add(index, builderForValue.build()); + onChanged(); + } else { + emailAddressesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public Builder addAllEmailAddresses( + java.lang.Iterable values) { + if (emailAddressesBuilder_ == null) { + ensureEmailAddressesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, emailAddresses_); + onChanged(); + } else { + emailAddressesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public Builder clearEmailAddresses() { + if (emailAddressesBuilder_ == null) { + emailAddresses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + } else { + emailAddressesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public Builder removeEmailAddresses(int index) { + if (emailAddressesBuilder_ == null) { + ensureEmailAddressesIsMutable(); + emailAddresses_.remove(index); + onChanged(); + } else { + emailAddressesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public com.google.cloud.talent.v4beta1.Email.Builder getEmailAddressesBuilder(int index) { + return getEmailAddressesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public com.google.cloud.talent.v4beta1.EmailOrBuilder getEmailAddressesOrBuilder(int index) { + if (emailAddressesBuilder_ == null) { + return emailAddresses_.get(index); + } else { + return emailAddressesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public java.util.List + getEmailAddressesOrBuilderList() { + if (emailAddressesBuilder_ != null) { + return emailAddressesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(emailAddresses_); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public com.google.cloud.talent.v4beta1.Email.Builder addEmailAddressesBuilder() { + return getEmailAddressesFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Email.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public com.google.cloud.talent.v4beta1.Email.Builder addEmailAddressesBuilder(int index) { + return getEmailAddressesFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Email.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public java.util.List + getEmailAddressesBuilderList() { + return getEmailAddressesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Email, + com.google.cloud.talent.v4beta1.Email.Builder, + com.google.cloud.talent.v4beta1.EmailOrBuilder> + getEmailAddressesFieldBuilder() { + if (emailAddressesBuilder_ == null) { + emailAddressesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Email, + com.google.cloud.talent.v4beta1.Email.Builder, + com.google.cloud.talent.v4beta1.EmailOrBuilder>( + emailAddresses_, + ((bitField0_ & 0x00000800) == 0x00000800), + getParentForChildren(), + isClean()); + emailAddresses_ = null; + } + return emailAddressesBuilder_; + } + + private java.util.List phoneNumbers_ = + java.util.Collections.emptyList(); + + private void ensurePhoneNumbersIsMutable() { + if (!((bitField0_ & 0x00001000) == 0x00001000)) { + phoneNumbers_ = + new java.util.ArrayList(phoneNumbers_); + bitField0_ |= 0x00001000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Phone, + com.google.cloud.talent.v4beta1.Phone.Builder, + com.google.cloud.talent.v4beta1.PhoneOrBuilder> + phoneNumbersBuilder_; + + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public java.util.List getPhoneNumbersList() { + if (phoneNumbersBuilder_ == null) { + return java.util.Collections.unmodifiableList(phoneNumbers_); + } else { + return phoneNumbersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public int getPhoneNumbersCount() { + if (phoneNumbersBuilder_ == null) { + return phoneNumbers_.size(); + } else { + return phoneNumbersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public com.google.cloud.talent.v4beta1.Phone getPhoneNumbers(int index) { + if (phoneNumbersBuilder_ == null) { + return phoneNumbers_.get(index); + } else { + return phoneNumbersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public Builder setPhoneNumbers(int index, com.google.cloud.talent.v4beta1.Phone value) { + if (phoneNumbersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePhoneNumbersIsMutable(); + phoneNumbers_.set(index, value); + onChanged(); + } else { + phoneNumbersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public Builder setPhoneNumbers( + int index, com.google.cloud.talent.v4beta1.Phone.Builder builderForValue) { + if (phoneNumbersBuilder_ == null) { + ensurePhoneNumbersIsMutable(); + phoneNumbers_.set(index, builderForValue.build()); + onChanged(); + } else { + phoneNumbersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public Builder addPhoneNumbers(com.google.cloud.talent.v4beta1.Phone value) { + if (phoneNumbersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePhoneNumbersIsMutable(); + phoneNumbers_.add(value); + onChanged(); + } else { + phoneNumbersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public Builder addPhoneNumbers(int index, com.google.cloud.talent.v4beta1.Phone value) { + if (phoneNumbersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePhoneNumbersIsMutable(); + phoneNumbers_.add(index, value); + onChanged(); + } else { + phoneNumbersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public Builder addPhoneNumbers(com.google.cloud.talent.v4beta1.Phone.Builder builderForValue) { + if (phoneNumbersBuilder_ == null) { + ensurePhoneNumbersIsMutable(); + phoneNumbers_.add(builderForValue.build()); + onChanged(); + } else { + phoneNumbersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public Builder addPhoneNumbers( + int index, com.google.cloud.talent.v4beta1.Phone.Builder builderForValue) { + if (phoneNumbersBuilder_ == null) { + ensurePhoneNumbersIsMutable(); + phoneNumbers_.add(index, builderForValue.build()); + onChanged(); + } else { + phoneNumbersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public Builder addAllPhoneNumbers( + java.lang.Iterable values) { + if (phoneNumbersBuilder_ == null) { + ensurePhoneNumbersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phoneNumbers_); + onChanged(); + } else { + phoneNumbersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public Builder clearPhoneNumbers() { + if (phoneNumbersBuilder_ == null) { + phoneNumbers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + } else { + phoneNumbersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public Builder removePhoneNumbers(int index) { + if (phoneNumbersBuilder_ == null) { + ensurePhoneNumbersIsMutable(); + phoneNumbers_.remove(index); + onChanged(); + } else { + phoneNumbersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public com.google.cloud.talent.v4beta1.Phone.Builder getPhoneNumbersBuilder(int index) { + return getPhoneNumbersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public com.google.cloud.talent.v4beta1.PhoneOrBuilder getPhoneNumbersOrBuilder(int index) { + if (phoneNumbersBuilder_ == null) { + return phoneNumbers_.get(index); + } else { + return phoneNumbersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public java.util.List + getPhoneNumbersOrBuilderList() { + if (phoneNumbersBuilder_ != null) { + return phoneNumbersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(phoneNumbers_); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public com.google.cloud.talent.v4beta1.Phone.Builder addPhoneNumbersBuilder() { + return getPhoneNumbersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Phone.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public com.google.cloud.talent.v4beta1.Phone.Builder addPhoneNumbersBuilder(int index) { + return getPhoneNumbersFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Phone.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public java.util.List + getPhoneNumbersBuilderList() { + return getPhoneNumbersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Phone, + com.google.cloud.talent.v4beta1.Phone.Builder, + com.google.cloud.talent.v4beta1.PhoneOrBuilder> + getPhoneNumbersFieldBuilder() { + if (phoneNumbersBuilder_ == null) { + phoneNumbersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Phone, + com.google.cloud.talent.v4beta1.Phone.Builder, + com.google.cloud.talent.v4beta1.PhoneOrBuilder>( + phoneNumbers_, + ((bitField0_ & 0x00001000) == 0x00001000), + getParentForChildren(), + isClean()); + phoneNumbers_ = null; + } + return phoneNumbersBuilder_; + } + + private java.util.List personalUris_ = + java.util.Collections.emptyList(); + + private void ensurePersonalUrisIsMutable() { + if (!((bitField0_ & 0x00002000) == 0x00002000)) { + personalUris_ = + new java.util.ArrayList(personalUris_); + bitField0_ |= 0x00002000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.PersonalUri, + com.google.cloud.talent.v4beta1.PersonalUri.Builder, + com.google.cloud.talent.v4beta1.PersonalUriOrBuilder> + personalUrisBuilder_; + + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public java.util.List getPersonalUrisList() { + if (personalUrisBuilder_ == null) { + return java.util.Collections.unmodifiableList(personalUris_); + } else { + return personalUrisBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public int getPersonalUrisCount() { + if (personalUrisBuilder_ == null) { + return personalUris_.size(); + } else { + return personalUrisBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public com.google.cloud.talent.v4beta1.PersonalUri getPersonalUris(int index) { + if (personalUrisBuilder_ == null) { + return personalUris_.get(index); + } else { + return personalUrisBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public Builder setPersonalUris(int index, com.google.cloud.talent.v4beta1.PersonalUri value) { + if (personalUrisBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePersonalUrisIsMutable(); + personalUris_.set(index, value); + onChanged(); + } else { + personalUrisBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public Builder setPersonalUris( + int index, com.google.cloud.talent.v4beta1.PersonalUri.Builder builderForValue) { + if (personalUrisBuilder_ == null) { + ensurePersonalUrisIsMutable(); + personalUris_.set(index, builderForValue.build()); + onChanged(); + } else { + personalUrisBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public Builder addPersonalUris(com.google.cloud.talent.v4beta1.PersonalUri value) { + if (personalUrisBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePersonalUrisIsMutable(); + personalUris_.add(value); + onChanged(); + } else { + personalUrisBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public Builder addPersonalUris(int index, com.google.cloud.talent.v4beta1.PersonalUri value) { + if (personalUrisBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePersonalUrisIsMutable(); + personalUris_.add(index, value); + onChanged(); + } else { + personalUrisBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public Builder addPersonalUris( + com.google.cloud.talent.v4beta1.PersonalUri.Builder builderForValue) { + if (personalUrisBuilder_ == null) { + ensurePersonalUrisIsMutable(); + personalUris_.add(builderForValue.build()); + onChanged(); + } else { + personalUrisBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public Builder addPersonalUris( + int index, com.google.cloud.talent.v4beta1.PersonalUri.Builder builderForValue) { + if (personalUrisBuilder_ == null) { + ensurePersonalUrisIsMutable(); + personalUris_.add(index, builderForValue.build()); + onChanged(); + } else { + personalUrisBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public Builder addAllPersonalUris( + java.lang.Iterable values) { + if (personalUrisBuilder_ == null) { + ensurePersonalUrisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, personalUris_); + onChanged(); + } else { + personalUrisBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public Builder clearPersonalUris() { + if (personalUrisBuilder_ == null) { + personalUris_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + } else { + personalUrisBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public Builder removePersonalUris(int index) { + if (personalUrisBuilder_ == null) { + ensurePersonalUrisIsMutable(); + personalUris_.remove(index); + onChanged(); + } else { + personalUrisBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public com.google.cloud.talent.v4beta1.PersonalUri.Builder getPersonalUrisBuilder(int index) { + return getPersonalUrisFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public com.google.cloud.talent.v4beta1.PersonalUriOrBuilder getPersonalUrisOrBuilder( + int index) { + if (personalUrisBuilder_ == null) { + return personalUris_.get(index); + } else { + return personalUrisBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public java.util.List + getPersonalUrisOrBuilderList() { + if (personalUrisBuilder_ != null) { + return personalUrisBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(personalUris_); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public com.google.cloud.talent.v4beta1.PersonalUri.Builder addPersonalUrisBuilder() { + return getPersonalUrisFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.PersonalUri.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public com.google.cloud.talent.v4beta1.PersonalUri.Builder addPersonalUrisBuilder(int index) { + return getPersonalUrisFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.PersonalUri.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public java.util.List + getPersonalUrisBuilderList() { + return getPersonalUrisFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.PersonalUri, + com.google.cloud.talent.v4beta1.PersonalUri.Builder, + com.google.cloud.talent.v4beta1.PersonalUriOrBuilder> + getPersonalUrisFieldBuilder() { + if (personalUrisBuilder_ == null) { + personalUrisBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.PersonalUri, + com.google.cloud.talent.v4beta1.PersonalUri.Builder, + com.google.cloud.talent.v4beta1.PersonalUriOrBuilder>( + personalUris_, + ((bitField0_ & 0x00002000) == 0x00002000), + getParentForChildren(), + isClean()); + personalUris_ = null; + } + return personalUrisBuilder_; + } + + private java.util.List + additionalContactInfo_ = java.util.Collections.emptyList(); + + private void ensureAdditionalContactInfoIsMutable() { + if (!((bitField0_ & 0x00004000) == 0x00004000)) { + additionalContactInfo_ = + new java.util.ArrayList( + additionalContactInfo_); + bitField0_ |= 0x00004000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.AdditionalContactInfo, + com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder, + com.google.cloud.talent.v4beta1.AdditionalContactInfoOrBuilder> + additionalContactInfoBuilder_; + + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public java.util.List + getAdditionalContactInfoList() { + if (additionalContactInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(additionalContactInfo_); + } else { + return additionalContactInfoBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public int getAdditionalContactInfoCount() { + if (additionalContactInfoBuilder_ == null) { + return additionalContactInfo_.size(); + } else { + return additionalContactInfoBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public com.google.cloud.talent.v4beta1.AdditionalContactInfo getAdditionalContactInfo( + int index) { + if (additionalContactInfoBuilder_ == null) { + return additionalContactInfo_.get(index); + } else { + return additionalContactInfoBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public Builder setAdditionalContactInfo( + int index, com.google.cloud.talent.v4beta1.AdditionalContactInfo value) { + if (additionalContactInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalContactInfoIsMutable(); + additionalContactInfo_.set(index, value); + onChanged(); + } else { + additionalContactInfoBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public Builder setAdditionalContactInfo( + int index, com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder builderForValue) { + if (additionalContactInfoBuilder_ == null) { + ensureAdditionalContactInfoIsMutable(); + additionalContactInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + additionalContactInfoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public Builder addAdditionalContactInfo( + com.google.cloud.talent.v4beta1.AdditionalContactInfo value) { + if (additionalContactInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalContactInfoIsMutable(); + additionalContactInfo_.add(value); + onChanged(); + } else { + additionalContactInfoBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public Builder addAdditionalContactInfo( + int index, com.google.cloud.talent.v4beta1.AdditionalContactInfo value) { + if (additionalContactInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalContactInfoIsMutable(); + additionalContactInfo_.add(index, value); + onChanged(); + } else { + additionalContactInfoBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public Builder addAdditionalContactInfo( + com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder builderForValue) { + if (additionalContactInfoBuilder_ == null) { + ensureAdditionalContactInfoIsMutable(); + additionalContactInfo_.add(builderForValue.build()); + onChanged(); + } else { + additionalContactInfoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public Builder addAdditionalContactInfo( + int index, com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder builderForValue) { + if (additionalContactInfoBuilder_ == null) { + ensureAdditionalContactInfoIsMutable(); + additionalContactInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + additionalContactInfoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public Builder addAllAdditionalContactInfo( + java.lang.Iterable + values) { + if (additionalContactInfoBuilder_ == null) { + ensureAdditionalContactInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, additionalContactInfo_); + onChanged(); + } else { + additionalContactInfoBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public Builder clearAdditionalContactInfo() { + if (additionalContactInfoBuilder_ == null) { + additionalContactInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + } else { + additionalContactInfoBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public Builder removeAdditionalContactInfo(int index) { + if (additionalContactInfoBuilder_ == null) { + ensureAdditionalContactInfoIsMutable(); + additionalContactInfo_.remove(index); + onChanged(); + } else { + additionalContactInfoBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder + getAdditionalContactInfoBuilder(int index) { + return getAdditionalContactInfoFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public com.google.cloud.talent.v4beta1.AdditionalContactInfoOrBuilder + getAdditionalContactInfoOrBuilder(int index) { + if (additionalContactInfoBuilder_ == null) { + return additionalContactInfo_.get(index); + } else { + return additionalContactInfoBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public java.util.List + getAdditionalContactInfoOrBuilderList() { + if (additionalContactInfoBuilder_ != null) { + return additionalContactInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(additionalContactInfo_); + } + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder + addAdditionalContactInfoBuilder() { + return getAdditionalContactInfoFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.AdditionalContactInfo.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder + addAdditionalContactInfoBuilder(int index) { + return getAdditionalContactInfoFieldBuilder() + .addBuilder( + index, com.google.cloud.talent.v4beta1.AdditionalContactInfo.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public java.util.List + getAdditionalContactInfoBuilderList() { + return getAdditionalContactInfoFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.AdditionalContactInfo, + com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder, + com.google.cloud.talent.v4beta1.AdditionalContactInfoOrBuilder> + getAdditionalContactInfoFieldBuilder() { + if (additionalContactInfoBuilder_ == null) { + additionalContactInfoBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.AdditionalContactInfo, + com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder, + com.google.cloud.talent.v4beta1.AdditionalContactInfoOrBuilder>( + additionalContactInfo_, + ((bitField0_ & 0x00004000) == 0x00004000), + getParentForChildren(), + isClean()); + additionalContactInfo_ = null; + } + return additionalContactInfoBuilder_; + } + + private java.util.List employmentRecords_ = + java.util.Collections.emptyList(); + + private void ensureEmploymentRecordsIsMutable() { + if (!((bitField0_ & 0x00008000) == 0x00008000)) { + employmentRecords_ = + new java.util.ArrayList( + employmentRecords_); + bitField0_ |= 0x00008000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EmploymentRecord, + com.google.cloud.talent.v4beta1.EmploymentRecord.Builder, + com.google.cloud.talent.v4beta1.EmploymentRecordOrBuilder> + employmentRecordsBuilder_; + + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public java.util.List + getEmploymentRecordsList() { + if (employmentRecordsBuilder_ == null) { + return java.util.Collections.unmodifiableList(employmentRecords_); + } else { + return employmentRecordsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public int getEmploymentRecordsCount() { + if (employmentRecordsBuilder_ == null) { + return employmentRecords_.size(); + } else { + return employmentRecordsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public com.google.cloud.talent.v4beta1.EmploymentRecord getEmploymentRecords(int index) { + if (employmentRecordsBuilder_ == null) { + return employmentRecords_.get(index); + } else { + return employmentRecordsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public Builder setEmploymentRecords( + int index, com.google.cloud.talent.v4beta1.EmploymentRecord value) { + if (employmentRecordsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmploymentRecordsIsMutable(); + employmentRecords_.set(index, value); + onChanged(); + } else { + employmentRecordsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public Builder setEmploymentRecords( + int index, com.google.cloud.talent.v4beta1.EmploymentRecord.Builder builderForValue) { + if (employmentRecordsBuilder_ == null) { + ensureEmploymentRecordsIsMutable(); + employmentRecords_.set(index, builderForValue.build()); + onChanged(); + } else { + employmentRecordsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public Builder addEmploymentRecords(com.google.cloud.talent.v4beta1.EmploymentRecord value) { + if (employmentRecordsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmploymentRecordsIsMutable(); + employmentRecords_.add(value); + onChanged(); + } else { + employmentRecordsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public Builder addEmploymentRecords( + int index, com.google.cloud.talent.v4beta1.EmploymentRecord value) { + if (employmentRecordsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmploymentRecordsIsMutable(); + employmentRecords_.add(index, value); + onChanged(); + } else { + employmentRecordsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public Builder addEmploymentRecords( + com.google.cloud.talent.v4beta1.EmploymentRecord.Builder builderForValue) { + if (employmentRecordsBuilder_ == null) { + ensureEmploymentRecordsIsMutable(); + employmentRecords_.add(builderForValue.build()); + onChanged(); + } else { + employmentRecordsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public Builder addEmploymentRecords( + int index, com.google.cloud.talent.v4beta1.EmploymentRecord.Builder builderForValue) { + if (employmentRecordsBuilder_ == null) { + ensureEmploymentRecordsIsMutable(); + employmentRecords_.add(index, builderForValue.build()); + onChanged(); + } else { + employmentRecordsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public Builder addAllEmploymentRecords( + java.lang.Iterable values) { + if (employmentRecordsBuilder_ == null) { + ensureEmploymentRecordsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, employmentRecords_); + onChanged(); + } else { + employmentRecordsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public Builder clearEmploymentRecords() { + if (employmentRecordsBuilder_ == null) { + employmentRecords_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00008000); + onChanged(); + } else { + employmentRecordsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public Builder removeEmploymentRecords(int index) { + if (employmentRecordsBuilder_ == null) { + ensureEmploymentRecordsIsMutable(); + employmentRecords_.remove(index); + onChanged(); + } else { + employmentRecordsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public com.google.cloud.talent.v4beta1.EmploymentRecord.Builder getEmploymentRecordsBuilder( + int index) { + return getEmploymentRecordsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public com.google.cloud.talent.v4beta1.EmploymentRecordOrBuilder getEmploymentRecordsOrBuilder( + int index) { + if (employmentRecordsBuilder_ == null) { + return employmentRecords_.get(index); + } else { + return employmentRecordsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public java.util.List + getEmploymentRecordsOrBuilderList() { + if (employmentRecordsBuilder_ != null) { + return employmentRecordsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(employmentRecords_); + } + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public com.google.cloud.talent.v4beta1.EmploymentRecord.Builder addEmploymentRecordsBuilder() { + return getEmploymentRecordsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.EmploymentRecord.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public com.google.cloud.talent.v4beta1.EmploymentRecord.Builder addEmploymentRecordsBuilder( + int index) { + return getEmploymentRecordsFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.EmploymentRecord.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public java.util.List + getEmploymentRecordsBuilderList() { + return getEmploymentRecordsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EmploymentRecord, + com.google.cloud.talent.v4beta1.EmploymentRecord.Builder, + com.google.cloud.talent.v4beta1.EmploymentRecordOrBuilder> + getEmploymentRecordsFieldBuilder() { + if (employmentRecordsBuilder_ == null) { + employmentRecordsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EmploymentRecord, + com.google.cloud.talent.v4beta1.EmploymentRecord.Builder, + com.google.cloud.talent.v4beta1.EmploymentRecordOrBuilder>( + employmentRecords_, + ((bitField0_ & 0x00008000) == 0x00008000), + getParentForChildren(), + isClean()); + employmentRecords_ = null; + } + return employmentRecordsBuilder_; + } + + private java.util.List educationRecords_ = + java.util.Collections.emptyList(); + + private void ensureEducationRecordsIsMutable() { + if (!((bitField0_ & 0x00010000) == 0x00010000)) { + educationRecords_ = + new java.util.ArrayList( + educationRecords_); + bitField0_ |= 0x00010000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EducationRecord, + com.google.cloud.talent.v4beta1.EducationRecord.Builder, + com.google.cloud.talent.v4beta1.EducationRecordOrBuilder> + educationRecordsBuilder_; + + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public java.util.List + getEducationRecordsList() { + if (educationRecordsBuilder_ == null) { + return java.util.Collections.unmodifiableList(educationRecords_); + } else { + return educationRecordsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public int getEducationRecordsCount() { + if (educationRecordsBuilder_ == null) { + return educationRecords_.size(); + } else { + return educationRecordsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public com.google.cloud.talent.v4beta1.EducationRecord getEducationRecords(int index) { + if (educationRecordsBuilder_ == null) { + return educationRecords_.get(index); + } else { + return educationRecordsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public Builder setEducationRecords( + int index, com.google.cloud.talent.v4beta1.EducationRecord value) { + if (educationRecordsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEducationRecordsIsMutable(); + educationRecords_.set(index, value); + onChanged(); + } else { + educationRecordsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public Builder setEducationRecords( + int index, com.google.cloud.talent.v4beta1.EducationRecord.Builder builderForValue) { + if (educationRecordsBuilder_ == null) { + ensureEducationRecordsIsMutable(); + educationRecords_.set(index, builderForValue.build()); + onChanged(); + } else { + educationRecordsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public Builder addEducationRecords(com.google.cloud.talent.v4beta1.EducationRecord value) { + if (educationRecordsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEducationRecordsIsMutable(); + educationRecords_.add(value); + onChanged(); + } else { + educationRecordsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public Builder addEducationRecords( + int index, com.google.cloud.talent.v4beta1.EducationRecord value) { + if (educationRecordsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEducationRecordsIsMutable(); + educationRecords_.add(index, value); + onChanged(); + } else { + educationRecordsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public Builder addEducationRecords( + com.google.cloud.talent.v4beta1.EducationRecord.Builder builderForValue) { + if (educationRecordsBuilder_ == null) { + ensureEducationRecordsIsMutable(); + educationRecords_.add(builderForValue.build()); + onChanged(); + } else { + educationRecordsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public Builder addEducationRecords( + int index, com.google.cloud.talent.v4beta1.EducationRecord.Builder builderForValue) { + if (educationRecordsBuilder_ == null) { + ensureEducationRecordsIsMutable(); + educationRecords_.add(index, builderForValue.build()); + onChanged(); + } else { + educationRecordsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public Builder addAllEducationRecords( + java.lang.Iterable values) { + if (educationRecordsBuilder_ == null) { + ensureEducationRecordsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, educationRecords_); + onChanged(); + } else { + educationRecordsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public Builder clearEducationRecords() { + if (educationRecordsBuilder_ == null) { + educationRecords_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + } else { + educationRecordsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public Builder removeEducationRecords(int index) { + if (educationRecordsBuilder_ == null) { + ensureEducationRecordsIsMutable(); + educationRecords_.remove(index); + onChanged(); + } else { + educationRecordsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public com.google.cloud.talent.v4beta1.EducationRecord.Builder getEducationRecordsBuilder( + int index) { + return getEducationRecordsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public com.google.cloud.talent.v4beta1.EducationRecordOrBuilder getEducationRecordsOrBuilder( + int index) { + if (educationRecordsBuilder_ == null) { + return educationRecords_.get(index); + } else { + return educationRecordsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public java.util.List + getEducationRecordsOrBuilderList() { + if (educationRecordsBuilder_ != null) { + return educationRecordsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(educationRecords_); + } + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public com.google.cloud.talent.v4beta1.EducationRecord.Builder addEducationRecordsBuilder() { + return getEducationRecordsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.EducationRecord.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public com.google.cloud.talent.v4beta1.EducationRecord.Builder addEducationRecordsBuilder( + int index) { + return getEducationRecordsFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.EducationRecord.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public java.util.List + getEducationRecordsBuilderList() { + return getEducationRecordsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EducationRecord, + com.google.cloud.talent.v4beta1.EducationRecord.Builder, + com.google.cloud.talent.v4beta1.EducationRecordOrBuilder> + getEducationRecordsFieldBuilder() { + if (educationRecordsBuilder_ == null) { + educationRecordsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EducationRecord, + com.google.cloud.talent.v4beta1.EducationRecord.Builder, + com.google.cloud.talent.v4beta1.EducationRecordOrBuilder>( + educationRecords_, + ((bitField0_ & 0x00010000) == 0x00010000), + getParentForChildren(), + isClean()); + educationRecords_ = null; + } + return educationRecordsBuilder_; + } + + private java.util.List skills_ = + java.util.Collections.emptyList(); + + private void ensureSkillsIsMutable() { + if (!((bitField0_ & 0x00020000) == 0x00020000)) { + skills_ = new java.util.ArrayList(skills_); + bitField0_ |= 0x00020000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Skill, + com.google.cloud.talent.v4beta1.Skill.Builder, + com.google.cloud.talent.v4beta1.SkillOrBuilder> + skillsBuilder_; + + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public java.util.List getSkillsList() { + if (skillsBuilder_ == null) { + return java.util.Collections.unmodifiableList(skills_); + } else { + return skillsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public int getSkillsCount() { + if (skillsBuilder_ == null) { + return skills_.size(); + } else { + return skillsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public com.google.cloud.talent.v4beta1.Skill getSkills(int index) { + if (skillsBuilder_ == null) { + return skills_.get(index); + } else { + return skillsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public Builder setSkills(int index, com.google.cloud.talent.v4beta1.Skill value) { + if (skillsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsIsMutable(); + skills_.set(index, value); + onChanged(); + } else { + skillsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public Builder setSkills( + int index, com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + skills_.set(index, builderForValue.build()); + onChanged(); + } else { + skillsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public Builder addSkills(com.google.cloud.talent.v4beta1.Skill value) { + if (skillsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsIsMutable(); + skills_.add(value); + onChanged(); + } else { + skillsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public Builder addSkills(int index, com.google.cloud.talent.v4beta1.Skill value) { + if (skillsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsIsMutable(); + skills_.add(index, value); + onChanged(); + } else { + skillsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public Builder addSkills(com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + skills_.add(builderForValue.build()); + onChanged(); + } else { + skillsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public Builder addSkills( + int index, com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + skills_.add(index, builderForValue.build()); + onChanged(); + } else { + skillsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public Builder addAllSkills( + java.lang.Iterable values) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skills_); + onChanged(); + } else { + skillsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public Builder clearSkills() { + if (skillsBuilder_ == null) { + skills_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + } else { + skillsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public Builder removeSkills(int index) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + skills_.remove(index); + onChanged(); + } else { + skillsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public com.google.cloud.talent.v4beta1.Skill.Builder getSkillsBuilder(int index) { + return getSkillsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsOrBuilder(int index) { + if (skillsBuilder_ == null) { + return skills_.get(index); + } else { + return skillsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public java.util.List + getSkillsOrBuilderList() { + if (skillsBuilder_ != null) { + return skillsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(skills_); + } + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public com.google.cloud.talent.v4beta1.Skill.Builder addSkillsBuilder() { + return getSkillsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Skill.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public com.google.cloud.talent.v4beta1.Skill.Builder addSkillsBuilder(int index) { + return getSkillsFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Skill.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public java.util.List getSkillsBuilderList() { + return getSkillsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Skill, + com.google.cloud.talent.v4beta1.Skill.Builder, + com.google.cloud.talent.v4beta1.SkillOrBuilder> + getSkillsFieldBuilder() { + if (skillsBuilder_ == null) { + skillsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Skill, + com.google.cloud.talent.v4beta1.Skill.Builder, + com.google.cloud.talent.v4beta1.SkillOrBuilder>( + skills_, + ((bitField0_ & 0x00020000) == 0x00020000), + getParentForChildren(), + isClean()); + skills_ = null; + } + return skillsBuilder_; + } + + private java.util.List activities_ = + java.util.Collections.emptyList(); + + private void ensureActivitiesIsMutable() { + if (!((bitField0_ & 0x00040000) == 0x00040000)) { + activities_ = + new java.util.ArrayList(activities_); + bitField0_ |= 0x00040000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Activity, + com.google.cloud.talent.v4beta1.Activity.Builder, + com.google.cloud.talent.v4beta1.ActivityOrBuilder> + activitiesBuilder_; + + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public java.util.List getActivitiesList() { + if (activitiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(activities_); + } else { + return activitiesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public int getActivitiesCount() { + if (activitiesBuilder_ == null) { + return activities_.size(); + } else { + return activitiesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public com.google.cloud.talent.v4beta1.Activity getActivities(int index) { + if (activitiesBuilder_ == null) { + return activities_.get(index); + } else { + return activitiesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public Builder setActivities(int index, com.google.cloud.talent.v4beta1.Activity value) { + if (activitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActivitiesIsMutable(); + activities_.set(index, value); + onChanged(); + } else { + activitiesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public Builder setActivities( + int index, com.google.cloud.talent.v4beta1.Activity.Builder builderForValue) { + if (activitiesBuilder_ == null) { + ensureActivitiesIsMutable(); + activities_.set(index, builderForValue.build()); + onChanged(); + } else { + activitiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public Builder addActivities(com.google.cloud.talent.v4beta1.Activity value) { + if (activitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActivitiesIsMutable(); + activities_.add(value); + onChanged(); + } else { + activitiesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public Builder addActivities(int index, com.google.cloud.talent.v4beta1.Activity value) { + if (activitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActivitiesIsMutable(); + activities_.add(index, value); + onChanged(); + } else { + activitiesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public Builder addActivities(com.google.cloud.talent.v4beta1.Activity.Builder builderForValue) { + if (activitiesBuilder_ == null) { + ensureActivitiesIsMutable(); + activities_.add(builderForValue.build()); + onChanged(); + } else { + activitiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public Builder addActivities( + int index, com.google.cloud.talent.v4beta1.Activity.Builder builderForValue) { + if (activitiesBuilder_ == null) { + ensureActivitiesIsMutable(); + activities_.add(index, builderForValue.build()); + onChanged(); + } else { + activitiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public Builder addAllActivities( + java.lang.Iterable values) { + if (activitiesBuilder_ == null) { + ensureActivitiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, activities_); + onChanged(); + } else { + activitiesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public Builder clearActivities() { + if (activitiesBuilder_ == null) { + activities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); + } else { + activitiesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public Builder removeActivities(int index) { + if (activitiesBuilder_ == null) { + ensureActivitiesIsMutable(); + activities_.remove(index); + onChanged(); + } else { + activitiesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public com.google.cloud.talent.v4beta1.Activity.Builder getActivitiesBuilder(int index) { + return getActivitiesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public com.google.cloud.talent.v4beta1.ActivityOrBuilder getActivitiesOrBuilder(int index) { + if (activitiesBuilder_ == null) { + return activities_.get(index); + } else { + return activitiesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public java.util.List + getActivitiesOrBuilderList() { + if (activitiesBuilder_ != null) { + return activitiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(activities_); + } + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public com.google.cloud.talent.v4beta1.Activity.Builder addActivitiesBuilder() { + return getActivitiesFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Activity.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public com.google.cloud.talent.v4beta1.Activity.Builder addActivitiesBuilder(int index) { + return getActivitiesFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Activity.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public java.util.List + getActivitiesBuilderList() { + return getActivitiesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Activity, + com.google.cloud.talent.v4beta1.Activity.Builder, + com.google.cloud.talent.v4beta1.ActivityOrBuilder> + getActivitiesFieldBuilder() { + if (activitiesBuilder_ == null) { + activitiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Activity, + com.google.cloud.talent.v4beta1.Activity.Builder, + com.google.cloud.talent.v4beta1.ActivityOrBuilder>( + activities_, + ((bitField0_ & 0x00040000) == 0x00040000), + getParentForChildren(), + isClean()); + activities_ = null; + } + return activitiesBuilder_; + } + + private java.util.List publications_ = + java.util.Collections.emptyList(); + + private void ensurePublicationsIsMutable() { + if (!((bitField0_ & 0x00080000) == 0x00080000)) { + publications_ = + new java.util.ArrayList(publications_); + bitField0_ |= 0x00080000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Publication, + com.google.cloud.talent.v4beta1.Publication.Builder, + com.google.cloud.talent.v4beta1.PublicationOrBuilder> + publicationsBuilder_; + + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public java.util.List getPublicationsList() { + if (publicationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(publications_); + } else { + return publicationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public int getPublicationsCount() { + if (publicationsBuilder_ == null) { + return publications_.size(); + } else { + return publicationsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public com.google.cloud.talent.v4beta1.Publication getPublications(int index) { + if (publicationsBuilder_ == null) { + return publications_.get(index); + } else { + return publicationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public Builder setPublications(int index, com.google.cloud.talent.v4beta1.Publication value) { + if (publicationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePublicationsIsMutable(); + publications_.set(index, value); + onChanged(); + } else { + publicationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public Builder setPublications( + int index, com.google.cloud.talent.v4beta1.Publication.Builder builderForValue) { + if (publicationsBuilder_ == null) { + ensurePublicationsIsMutable(); + publications_.set(index, builderForValue.build()); + onChanged(); + } else { + publicationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public Builder addPublications(com.google.cloud.talent.v4beta1.Publication value) { + if (publicationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePublicationsIsMutable(); + publications_.add(value); + onChanged(); + } else { + publicationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public Builder addPublications(int index, com.google.cloud.talent.v4beta1.Publication value) { + if (publicationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePublicationsIsMutable(); + publications_.add(index, value); + onChanged(); + } else { + publicationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public Builder addPublications( + com.google.cloud.talent.v4beta1.Publication.Builder builderForValue) { + if (publicationsBuilder_ == null) { + ensurePublicationsIsMutable(); + publications_.add(builderForValue.build()); + onChanged(); + } else { + publicationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public Builder addPublications( + int index, com.google.cloud.talent.v4beta1.Publication.Builder builderForValue) { + if (publicationsBuilder_ == null) { + ensurePublicationsIsMutable(); + publications_.add(index, builderForValue.build()); + onChanged(); + } else { + publicationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public Builder addAllPublications( + java.lang.Iterable values) { + if (publicationsBuilder_ == null) { + ensurePublicationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, publications_); + onChanged(); + } else { + publicationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public Builder clearPublications() { + if (publicationsBuilder_ == null) { + publications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00080000); + onChanged(); + } else { + publicationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public Builder removePublications(int index) { + if (publicationsBuilder_ == null) { + ensurePublicationsIsMutable(); + publications_.remove(index); + onChanged(); + } else { + publicationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public com.google.cloud.talent.v4beta1.Publication.Builder getPublicationsBuilder(int index) { + return getPublicationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public com.google.cloud.talent.v4beta1.PublicationOrBuilder getPublicationsOrBuilder( + int index) { + if (publicationsBuilder_ == null) { + return publications_.get(index); + } else { + return publicationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public java.util.List + getPublicationsOrBuilderList() { + if (publicationsBuilder_ != null) { + return publicationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(publications_); + } + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public com.google.cloud.talent.v4beta1.Publication.Builder addPublicationsBuilder() { + return getPublicationsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Publication.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public com.google.cloud.talent.v4beta1.Publication.Builder addPublicationsBuilder(int index) { + return getPublicationsFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Publication.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public java.util.List + getPublicationsBuilderList() { + return getPublicationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Publication, + com.google.cloud.talent.v4beta1.Publication.Builder, + com.google.cloud.talent.v4beta1.PublicationOrBuilder> + getPublicationsFieldBuilder() { + if (publicationsBuilder_ == null) { + publicationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Publication, + com.google.cloud.talent.v4beta1.Publication.Builder, + com.google.cloud.talent.v4beta1.PublicationOrBuilder>( + publications_, + ((bitField0_ & 0x00080000) == 0x00080000), + getParentForChildren(), + isClean()); + publications_ = null; + } + return publicationsBuilder_; + } + + private java.util.List patents_ = + java.util.Collections.emptyList(); + + private void ensurePatentsIsMutable() { + if (!((bitField0_ & 0x00100000) == 0x00100000)) { + patents_ = new java.util.ArrayList(patents_); + bitField0_ |= 0x00100000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Patent, + com.google.cloud.talent.v4beta1.Patent.Builder, + com.google.cloud.talent.v4beta1.PatentOrBuilder> + patentsBuilder_; + + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public java.util.List getPatentsList() { + if (patentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(patents_); + } else { + return patentsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public int getPatentsCount() { + if (patentsBuilder_ == null) { + return patents_.size(); + } else { + return patentsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public com.google.cloud.talent.v4beta1.Patent getPatents(int index) { + if (patentsBuilder_ == null) { + return patents_.get(index); + } else { + return patentsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public Builder setPatents(int index, com.google.cloud.talent.v4beta1.Patent value) { + if (patentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePatentsIsMutable(); + patents_.set(index, value); + onChanged(); + } else { + patentsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public Builder setPatents( + int index, com.google.cloud.talent.v4beta1.Patent.Builder builderForValue) { + if (patentsBuilder_ == null) { + ensurePatentsIsMutable(); + patents_.set(index, builderForValue.build()); + onChanged(); + } else { + patentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public Builder addPatents(com.google.cloud.talent.v4beta1.Patent value) { + if (patentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePatentsIsMutable(); + patents_.add(value); + onChanged(); + } else { + patentsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public Builder addPatents(int index, com.google.cloud.talent.v4beta1.Patent value) { + if (patentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePatentsIsMutable(); + patents_.add(index, value); + onChanged(); + } else { + patentsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public Builder addPatents(com.google.cloud.talent.v4beta1.Patent.Builder builderForValue) { + if (patentsBuilder_ == null) { + ensurePatentsIsMutable(); + patents_.add(builderForValue.build()); + onChanged(); + } else { + patentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public Builder addPatents( + int index, com.google.cloud.talent.v4beta1.Patent.Builder builderForValue) { + if (patentsBuilder_ == null) { + ensurePatentsIsMutable(); + patents_.add(index, builderForValue.build()); + onChanged(); + } else { + patentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public Builder addAllPatents( + java.lang.Iterable values) { + if (patentsBuilder_ == null) { + ensurePatentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, patents_); + onChanged(); + } else { + patentsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public Builder clearPatents() { + if (patentsBuilder_ == null) { + patents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00100000); + onChanged(); + } else { + patentsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public Builder removePatents(int index) { + if (patentsBuilder_ == null) { + ensurePatentsIsMutable(); + patents_.remove(index); + onChanged(); + } else { + patentsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public com.google.cloud.talent.v4beta1.Patent.Builder getPatentsBuilder(int index) { + return getPatentsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public com.google.cloud.talent.v4beta1.PatentOrBuilder getPatentsOrBuilder(int index) { + if (patentsBuilder_ == null) { + return patents_.get(index); + } else { + return patentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public java.util.List + getPatentsOrBuilderList() { + if (patentsBuilder_ != null) { + return patentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(patents_); + } + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public com.google.cloud.talent.v4beta1.Patent.Builder addPatentsBuilder() { + return getPatentsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Patent.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public com.google.cloud.talent.v4beta1.Patent.Builder addPatentsBuilder(int index) { + return getPatentsFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Patent.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public java.util.List getPatentsBuilderList() { + return getPatentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Patent, + com.google.cloud.talent.v4beta1.Patent.Builder, + com.google.cloud.talent.v4beta1.PatentOrBuilder> + getPatentsFieldBuilder() { + if (patentsBuilder_ == null) { + patentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Patent, + com.google.cloud.talent.v4beta1.Patent.Builder, + com.google.cloud.talent.v4beta1.PatentOrBuilder>( + patents_, + ((bitField0_ & 0x00100000) == 0x00100000), + getParentForChildren(), + isClean()); + patents_ = null; + } + return patentsBuilder_; + } + + private java.util.List certifications_ = + java.util.Collections.emptyList(); + + private void ensureCertificationsIsMutable() { + if (!((bitField0_ & 0x00200000) == 0x00200000)) { + certifications_ = + new java.util.ArrayList(certifications_); + bitField0_ |= 0x00200000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Certification, + com.google.cloud.talent.v4beta1.Certification.Builder, + com.google.cloud.talent.v4beta1.CertificationOrBuilder> + certificationsBuilder_; + + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public java.util.List getCertificationsList() { + if (certificationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(certifications_); + } else { + return certificationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public int getCertificationsCount() { + if (certificationsBuilder_ == null) { + return certifications_.size(); + } else { + return certificationsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public com.google.cloud.talent.v4beta1.Certification getCertifications(int index) { + if (certificationsBuilder_ == null) { + return certifications_.get(index); + } else { + return certificationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public Builder setCertifications( + int index, com.google.cloud.talent.v4beta1.Certification value) { + if (certificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCertificationsIsMutable(); + certifications_.set(index, value); + onChanged(); + } else { + certificationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public Builder setCertifications( + int index, com.google.cloud.talent.v4beta1.Certification.Builder builderForValue) { + if (certificationsBuilder_ == null) { + ensureCertificationsIsMutable(); + certifications_.set(index, builderForValue.build()); + onChanged(); + } else { + certificationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public Builder addCertifications(com.google.cloud.talent.v4beta1.Certification value) { + if (certificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCertificationsIsMutable(); + certifications_.add(value); + onChanged(); + } else { + certificationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public Builder addCertifications( + int index, com.google.cloud.talent.v4beta1.Certification value) { + if (certificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCertificationsIsMutable(); + certifications_.add(index, value); + onChanged(); + } else { + certificationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public Builder addCertifications( + com.google.cloud.talent.v4beta1.Certification.Builder builderForValue) { + if (certificationsBuilder_ == null) { + ensureCertificationsIsMutable(); + certifications_.add(builderForValue.build()); + onChanged(); + } else { + certificationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public Builder addCertifications( + int index, com.google.cloud.talent.v4beta1.Certification.Builder builderForValue) { + if (certificationsBuilder_ == null) { + ensureCertificationsIsMutable(); + certifications_.add(index, builderForValue.build()); + onChanged(); + } else { + certificationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public Builder addAllCertifications( + java.lang.Iterable values) { + if (certificationsBuilder_ == null) { + ensureCertificationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, certifications_); + onChanged(); + } else { + certificationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public Builder clearCertifications() { + if (certificationsBuilder_ == null) { + certifications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00200000); + onChanged(); + } else { + certificationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public Builder removeCertifications(int index) { + if (certificationsBuilder_ == null) { + ensureCertificationsIsMutable(); + certifications_.remove(index); + onChanged(); + } else { + certificationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public com.google.cloud.talent.v4beta1.Certification.Builder getCertificationsBuilder( + int index) { + return getCertificationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public com.google.cloud.talent.v4beta1.CertificationOrBuilder getCertificationsOrBuilder( + int index) { + if (certificationsBuilder_ == null) { + return certifications_.get(index); + } else { + return certificationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public java.util.List + getCertificationsOrBuilderList() { + if (certificationsBuilder_ != null) { + return certificationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(certifications_); + } + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public com.google.cloud.talent.v4beta1.Certification.Builder addCertificationsBuilder() { + return getCertificationsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Certification.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public com.google.cloud.talent.v4beta1.Certification.Builder addCertificationsBuilder( + int index) { + return getCertificationsFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Certification.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public java.util.List + getCertificationsBuilderList() { + return getCertificationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Certification, + com.google.cloud.talent.v4beta1.Certification.Builder, + com.google.cloud.talent.v4beta1.CertificationOrBuilder> + getCertificationsFieldBuilder() { + if (certificationsBuilder_ == null) { + certificationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Certification, + com.google.cloud.talent.v4beta1.Certification.Builder, + com.google.cloud.talent.v4beta1.CertificationOrBuilder>( + certifications_, + ((bitField0_ & 0x00200000) == 0x00200000), + getParentForChildren(), + isClean()); + certifications_ = null; + } + return certificationsBuilder_; + } + + private java.util.List jobApplications_ = + java.util.Collections.emptyList(); + + private void ensureJobApplicationsIsMutable() { + if (!((bitField0_ & 0x00400000) == 0x00400000)) { + jobApplications_ = + new java.util.ArrayList( + jobApplications_); + bitField0_ |= 0x00400000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobApplication, + com.google.cloud.talent.v4beta1.JobApplication.Builder, + com.google.cloud.talent.v4beta1.JobApplicationOrBuilder> + jobApplicationsBuilder_; + + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public java.util.List getJobApplicationsList() { + if (jobApplicationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(jobApplications_); + } else { + return jobApplicationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public int getJobApplicationsCount() { + if (jobApplicationsBuilder_ == null) { + return jobApplications_.size(); + } else { + return jobApplicationsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public com.google.cloud.talent.v4beta1.JobApplication getJobApplications(int index) { + if (jobApplicationsBuilder_ == null) { + return jobApplications_.get(index); + } else { + return jobApplicationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public Builder setJobApplications( + int index, com.google.cloud.talent.v4beta1.JobApplication value) { + if (jobApplicationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobApplicationsIsMutable(); + jobApplications_.set(index, value); + onChanged(); + } else { + jobApplicationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public Builder setJobApplications( + int index, com.google.cloud.talent.v4beta1.JobApplication.Builder builderForValue) { + if (jobApplicationsBuilder_ == null) { + ensureJobApplicationsIsMutable(); + jobApplications_.set(index, builderForValue.build()); + onChanged(); + } else { + jobApplicationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public Builder addJobApplications(com.google.cloud.talent.v4beta1.JobApplication value) { + if (jobApplicationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobApplicationsIsMutable(); + jobApplications_.add(value); + onChanged(); + } else { + jobApplicationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public Builder addJobApplications( + int index, com.google.cloud.talent.v4beta1.JobApplication value) { + if (jobApplicationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobApplicationsIsMutable(); + jobApplications_.add(index, value); + onChanged(); + } else { + jobApplicationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public Builder addJobApplications( + com.google.cloud.talent.v4beta1.JobApplication.Builder builderForValue) { + if (jobApplicationsBuilder_ == null) { + ensureJobApplicationsIsMutable(); + jobApplications_.add(builderForValue.build()); + onChanged(); + } else { + jobApplicationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public Builder addJobApplications( + int index, com.google.cloud.talent.v4beta1.JobApplication.Builder builderForValue) { + if (jobApplicationsBuilder_ == null) { + ensureJobApplicationsIsMutable(); + jobApplications_.add(index, builderForValue.build()); + onChanged(); + } else { + jobApplicationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public Builder addAllJobApplications( + java.lang.Iterable values) { + if (jobApplicationsBuilder_ == null) { + ensureJobApplicationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jobApplications_); + onChanged(); + } else { + jobApplicationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public Builder clearJobApplications() { + if (jobApplicationsBuilder_ == null) { + jobApplications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00400000); + onChanged(); + } else { + jobApplicationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public Builder removeJobApplications(int index) { + if (jobApplicationsBuilder_ == null) { + ensureJobApplicationsIsMutable(); + jobApplications_.remove(index); + onChanged(); + } else { + jobApplicationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public com.google.cloud.talent.v4beta1.JobApplication.Builder getJobApplicationsBuilder( + int index) { + return getJobApplicationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public com.google.cloud.talent.v4beta1.JobApplicationOrBuilder getJobApplicationsOrBuilder( + int index) { + if (jobApplicationsBuilder_ == null) { + return jobApplications_.get(index); + } else { + return jobApplicationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public java.util.List + getJobApplicationsOrBuilderList() { + if (jobApplicationsBuilder_ != null) { + return jobApplicationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(jobApplications_); + } + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public com.google.cloud.talent.v4beta1.JobApplication.Builder addJobApplicationsBuilder() { + return getJobApplicationsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.JobApplication.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public com.google.cloud.talent.v4beta1.JobApplication.Builder addJobApplicationsBuilder( + int index) { + return getJobApplicationsFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.JobApplication.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public java.util.List + getJobApplicationsBuilderList() { + return getJobApplicationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobApplication, + com.google.cloud.talent.v4beta1.JobApplication.Builder, + com.google.cloud.talent.v4beta1.JobApplicationOrBuilder> + getJobApplicationsFieldBuilder() { + if (jobApplicationsBuilder_ == null) { + jobApplicationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobApplication, + com.google.cloud.talent.v4beta1.JobApplication.Builder, + com.google.cloud.talent.v4beta1.JobApplicationOrBuilder>( + jobApplications_, + ((bitField0_ & 0x00400000) == 0x00400000), + getParentForChildren(), + isClean()); + jobApplications_ = null; + } + return jobApplicationsBuilder_; + } + + private java.util.List recruitingNotes_ = + java.util.Collections.emptyList(); + + private void ensureRecruitingNotesIsMutable() { + if (!((bitField0_ & 0x00800000) == 0x00800000)) { + recruitingNotes_ = + new java.util.ArrayList( + recruitingNotes_); + bitField0_ |= 0x00800000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.RecruitingNote, + com.google.cloud.talent.v4beta1.RecruitingNote.Builder, + com.google.cloud.talent.v4beta1.RecruitingNoteOrBuilder> + recruitingNotesBuilder_; + + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public java.util.List getRecruitingNotesList() { + if (recruitingNotesBuilder_ == null) { + return java.util.Collections.unmodifiableList(recruitingNotes_); + } else { + return recruitingNotesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public int getRecruitingNotesCount() { + if (recruitingNotesBuilder_ == null) { + return recruitingNotes_.size(); + } else { + return recruitingNotesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public com.google.cloud.talent.v4beta1.RecruitingNote getRecruitingNotes(int index) { + if (recruitingNotesBuilder_ == null) { + return recruitingNotes_.get(index); + } else { + return recruitingNotesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public Builder setRecruitingNotes( + int index, com.google.cloud.talent.v4beta1.RecruitingNote value) { + if (recruitingNotesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecruitingNotesIsMutable(); + recruitingNotes_.set(index, value); + onChanged(); + } else { + recruitingNotesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public Builder setRecruitingNotes( + int index, com.google.cloud.talent.v4beta1.RecruitingNote.Builder builderForValue) { + if (recruitingNotesBuilder_ == null) { + ensureRecruitingNotesIsMutable(); + recruitingNotes_.set(index, builderForValue.build()); + onChanged(); + } else { + recruitingNotesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public Builder addRecruitingNotes(com.google.cloud.talent.v4beta1.RecruitingNote value) { + if (recruitingNotesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecruitingNotesIsMutable(); + recruitingNotes_.add(value); + onChanged(); + } else { + recruitingNotesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public Builder addRecruitingNotes( + int index, com.google.cloud.talent.v4beta1.RecruitingNote value) { + if (recruitingNotesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecruitingNotesIsMutable(); + recruitingNotes_.add(index, value); + onChanged(); + } else { + recruitingNotesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public Builder addRecruitingNotes( + com.google.cloud.talent.v4beta1.RecruitingNote.Builder builderForValue) { + if (recruitingNotesBuilder_ == null) { + ensureRecruitingNotesIsMutable(); + recruitingNotes_.add(builderForValue.build()); + onChanged(); + } else { + recruitingNotesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public Builder addRecruitingNotes( + int index, com.google.cloud.talent.v4beta1.RecruitingNote.Builder builderForValue) { + if (recruitingNotesBuilder_ == null) { + ensureRecruitingNotesIsMutable(); + recruitingNotes_.add(index, builderForValue.build()); + onChanged(); + } else { + recruitingNotesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public Builder addAllRecruitingNotes( + java.lang.Iterable values) { + if (recruitingNotesBuilder_ == null) { + ensureRecruitingNotesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, recruitingNotes_); + onChanged(); + } else { + recruitingNotesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public Builder clearRecruitingNotes() { + if (recruitingNotesBuilder_ == null) { + recruitingNotes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00800000); + onChanged(); + } else { + recruitingNotesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public Builder removeRecruitingNotes(int index) { + if (recruitingNotesBuilder_ == null) { + ensureRecruitingNotesIsMutable(); + recruitingNotes_.remove(index); + onChanged(); + } else { + recruitingNotesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public com.google.cloud.talent.v4beta1.RecruitingNote.Builder getRecruitingNotesBuilder( + int index) { + return getRecruitingNotesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public com.google.cloud.talent.v4beta1.RecruitingNoteOrBuilder getRecruitingNotesOrBuilder( + int index) { + if (recruitingNotesBuilder_ == null) { + return recruitingNotes_.get(index); + } else { + return recruitingNotesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public java.util.List + getRecruitingNotesOrBuilderList() { + if (recruitingNotesBuilder_ != null) { + return recruitingNotesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(recruitingNotes_); + } + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public com.google.cloud.talent.v4beta1.RecruitingNote.Builder addRecruitingNotesBuilder() { + return getRecruitingNotesFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.RecruitingNote.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public com.google.cloud.talent.v4beta1.RecruitingNote.Builder addRecruitingNotesBuilder( + int index) { + return getRecruitingNotesFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.RecruitingNote.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public java.util.List + getRecruitingNotesBuilderList() { + return getRecruitingNotesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.RecruitingNote, + com.google.cloud.talent.v4beta1.RecruitingNote.Builder, + com.google.cloud.talent.v4beta1.RecruitingNoteOrBuilder> + getRecruitingNotesFieldBuilder() { + if (recruitingNotesBuilder_ == null) { + recruitingNotesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.RecruitingNote, + com.google.cloud.talent.v4beta1.RecruitingNote.Builder, + com.google.cloud.talent.v4beta1.RecruitingNoteOrBuilder>( + recruitingNotes_, + ((bitField0_ & 0x00800000) == 0x00800000), + getParentForChildren(), + isClean()); + recruitingNotes_ = null; + } + return recruitingNotesBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + customAttributes_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + internalGetCustomAttributes() { + if (customAttributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomAttributesDefaultEntryHolder.defaultEntry); + } + return customAttributes_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + internalGetMutableCustomAttributes() { + onChanged(); + ; + if (customAttributes_ == null) { + customAttributes_ = + com.google.protobuf.MapField.newMapField( + CustomAttributesDefaultEntryHolder.defaultEntry); + } + if (!customAttributes_.isMutable()) { + customAttributes_ = customAttributes_.copy(); + } + return customAttributes_; + } + + public int getCustomAttributesCount() { + return internalGetCustomAttributes().getMap().size(); + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom profile
+     * attributes that aren't covered by the provided structured fields. See
+     * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+     * details.
+     * At most 100 filterable and at most 100 unfilterable keys are supported. If
+     * limit is exceeded, an error is thrown.
+     * Numeric custom attributes: each key can only map to one numeric value,
+     * otherwise an error is thrown.
+     * String custom attributes: each key can map up to 50 string values. For
+     * filterable string value, each value has a byte size of no more than 256B.
+     * For unfilterable string values, the maximum byte size of a single key is
+     * 64B. An error is thrown for any request exceeding the limit.
+     * The maximum total byte size is 10KB.
+     * Currently filterable numeric custom attributes are not supported, and
+     * they automatically set to unfilterable.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + public boolean containsCustomAttributes(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetCustomAttributes().getMap().containsKey(key); + } + /** Use {@link #getCustomAttributesMap()} instead. */ + @java.lang.Deprecated + public java.util.Map + getCustomAttributes() { + return getCustomAttributesMap(); + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom profile
+     * attributes that aren't covered by the provided structured fields. See
+     * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+     * details.
+     * At most 100 filterable and at most 100 unfilterable keys are supported. If
+     * limit is exceeded, an error is thrown.
+     * Numeric custom attributes: each key can only map to one numeric value,
+     * otherwise an error is thrown.
+     * String custom attributes: each key can map up to 50 string values. For
+     * filterable string value, each value has a byte size of no more than 256B.
+     * For unfilterable string values, the maximum byte size of a single key is
+     * 64B. An error is thrown for any request exceeding the limit.
+     * The maximum total byte size is 10KB.
+     * Currently filterable numeric custom attributes are not supported, and
+     * they automatically set to unfilterable.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + public java.util.Map + getCustomAttributesMap() { + return internalGetCustomAttributes().getMap(); + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom profile
+     * attributes that aren't covered by the provided structured fields. See
+     * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+     * details.
+     * At most 100 filterable and at most 100 unfilterable keys are supported. If
+     * limit is exceeded, an error is thrown.
+     * Numeric custom attributes: each key can only map to one numeric value,
+     * otherwise an error is thrown.
+     * String custom attributes: each key can map up to 50 string values. For
+     * filterable string value, each value has a byte size of no more than 256B.
+     * For unfilterable string values, the maximum byte size of a single key is
+     * 64B. An error is thrown for any request exceeding the limit.
+     * The maximum total byte size is 10KB.
+     * Currently filterable numeric custom attributes are not supported, and
+     * they automatically set to unfilterable.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + public com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrDefault( + java.lang.String key, com.google.cloud.talent.v4beta1.CustomAttribute defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetCustomAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom profile
+     * attributes that aren't covered by the provided structured fields. See
+     * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+     * details.
+     * At most 100 filterable and at most 100 unfilterable keys are supported. If
+     * limit is exceeded, an error is thrown.
+     * Numeric custom attributes: each key can only map to one numeric value,
+     * otherwise an error is thrown.
+     * String custom attributes: each key can map up to 50 string values. For
+     * filterable string value, each value has a byte size of no more than 256B.
+     * For unfilterable string values, the maximum byte size of a single key is
+     * 64B. An error is thrown for any request exceeding the limit.
+     * The maximum total byte size is 10KB.
+     * Currently filterable numeric custom attributes are not supported, and
+     * they automatically set to unfilterable.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + public com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrThrow( + java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetCustomAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearCustomAttributes() { + internalGetMutableCustomAttributes().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom profile
+     * attributes that aren't covered by the provided structured fields. See
+     * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+     * details.
+     * At most 100 filterable and at most 100 unfilterable keys are supported. If
+     * limit is exceeded, an error is thrown.
+     * Numeric custom attributes: each key can only map to one numeric value,
+     * otherwise an error is thrown.
+     * String custom attributes: each key can map up to 50 string values. For
+     * filterable string value, each value has a byte size of no more than 256B.
+     * For unfilterable string values, the maximum byte size of a single key is
+     * 64B. An error is thrown for any request exceeding the limit.
+     * The maximum total byte size is 10KB.
+     * Currently filterable numeric custom attributes are not supported, and
+     * they automatically set to unfilterable.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + public Builder removeCustomAttributes(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableCustomAttributes().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableCustomAttributes() { + return internalGetMutableCustomAttributes().getMutableMap(); + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom profile
+     * attributes that aren't covered by the provided structured fields. See
+     * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+     * details.
+     * At most 100 filterable and at most 100 unfilterable keys are supported. If
+     * limit is exceeded, an error is thrown.
+     * Numeric custom attributes: each key can only map to one numeric value,
+     * otherwise an error is thrown.
+     * String custom attributes: each key can map up to 50 string values. For
+     * filterable string value, each value has a byte size of no more than 256B.
+     * For unfilterable string values, the maximum byte size of a single key is
+     * 64B. An error is thrown for any request exceeding the limit.
+     * The maximum total byte size is 10KB.
+     * Currently filterable numeric custom attributes are not supported, and
+     * they automatically set to unfilterable.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + public Builder putCustomAttributes( + java.lang.String key, com.google.cloud.talent.v4beta1.CustomAttribute value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableCustomAttributes().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom profile
+     * attributes that aren't covered by the provided structured fields. See
+     * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+     * details.
+     * At most 100 filterable and at most 100 unfilterable keys are supported. If
+     * limit is exceeded, an error is thrown.
+     * Numeric custom attributes: each key can only map to one numeric value,
+     * otherwise an error is thrown.
+     * String custom attributes: each key can map up to 50 string values. For
+     * filterable string value, each value has a byte size of no more than 256B.
+     * For unfilterable string values, the maximum byte size of a single key is
+     * 64B. An error is thrown for any request exceeding the limit.
+     * The maximum total byte size is 10KB.
+     * Currently filterable numeric custom attributes are not supported, and
+     * they automatically set to unfilterable.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + public Builder putAllCustomAttributes( + java.util.Map values) { + internalGetMutableCustomAttributes().getMutableMap().putAll(values); + return this; + } + + private boolean processed_; + /** + * + * + *
+     * Output only. Indicates if the profile is fully processed and searchable.
+     * 
+ * + * bool processed = 27; + */ + public boolean getProcessed() { + return processed_; + } + /** + * + * + *
+     * Output only. Indicates if the profile is fully processed and searchable.
+     * 
+ * + * bool processed = 27; + */ + public Builder setProcessed(boolean value) { + + processed_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Indicates if the profile is fully processed and searchable.
+     * 
+ * + * bool processed = 27; + */ + public Builder clearProcessed() { + + processed_ = false; + onChanged(); + return this; + } + + private java.lang.Object keywordSnippet_ = ""; + /** + * + * + *
+     * Output only. Keyword snippet shows how the search result is related to a
+     * search query.
+     * 
+ * + * string keyword_snippet = 28; + */ + public java.lang.String getKeywordSnippet() { + java.lang.Object ref = keywordSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + keywordSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Keyword snippet shows how the search result is related to a
+     * search query.
+     * 
+ * + * string keyword_snippet = 28; + */ + public com.google.protobuf.ByteString getKeywordSnippetBytes() { + java.lang.Object ref = keywordSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + keywordSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Keyword snippet shows how the search result is related to a
+     * search query.
+     * 
+ * + * string keyword_snippet = 28; + */ + public Builder setKeywordSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + keywordSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Keyword snippet shows how the search result is related to a
+     * search query.
+     * 
+ * + * string keyword_snippet = 28; + */ + public Builder clearKeywordSnippet() { + + keywordSnippet_ = getDefaultInstance().getKeywordSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Keyword snippet shows how the search result is related to a
+     * search query.
+     * 
+ * + * string keyword_snippet = 28; + */ + public Builder setKeywordSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + keywordSnippet_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Profile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Profile) + private static final com.google.cloud.talent.v4beta1.Profile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Profile(); + } + + public static com.google.cloud.talent.v4beta1.Profile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Profile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Profile(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Profile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEvent.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEvent.java new file mode 100644 index 000000000000..4f5135abeb0c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEvent.java @@ -0,0 +1,1377 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/event.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * An event issued when a profile searcher interacts with the application
+ * that implements Cloud Talent Solution.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ProfileEvent} + */ +public final class ProfileEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ProfileEvent) + ProfileEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProfileEvent.newBuilder() to construct. + private ProfileEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ProfileEvent() { + type_ = 0; + profiles_ = com.google.protobuf.LazyStringArrayList.EMPTY; + jobId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ProfileEvent( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + profiles_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + profiles_.add(s); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobId_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + profiles_ = profiles_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_ProfileEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_ProfileEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ProfileEvent.class, + com.google.cloud.talent.v4beta1.ProfileEvent.Builder.class); + } + + /** + * + * + *
+   * The enum represents types of client events for a candidate profile.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType} + */ + public enum ProfileEventType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * PROFILE_EVENT_TYPE_UNSPECIFIED = 0; + */ + PROFILE_EVENT_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * The profile is displayed.
+     * 
+ * + * IMPRESSION = 1; + */ + IMPRESSION(1), + /** + * + * + *
+     * The profile is viewed.
+     * 
+ * + * VIEW = 2; + */ + VIEW(2), + /** + * + * + *
+     * The profile is bookmarked.
+     * 
+ * + * BOOKMARK = 3; + */ + BOOKMARK(3), + /** + * + * + *
+     * Comment added to the profile.
+     * 
+ * + * COMMENT_ADDED = 4; + */ + COMMENT_ADDED(4), + /** + * + * + *
+     * Email sent regarding the profile.
+     * 
+ * + * EMAIL_SENT = 5; + */ + EMAIL_SENT(5), + /** + * + * + *
+     * The resume of the profile is viewed.
+     * 
+ * + * RESUME_VIEWED = 6; + */ + RESUME_VIEWED(6), + /** + * + * + *
+     * The profile is added to a job.
+     * 
+ * + * ADD_TO_JOB = 7; + */ + ADD_TO_JOB(7), + /** + * + * + *
+     * The recruiter explicitly highlights that a given profile is interesting
+     * enough for later review or is a good result for the search.
+     * 
+ * + * POSITIVE_REACTION_TO_PROFILE = 8; + */ + POSITIVE_REACTION_TO_PROFILE(8), + /** + * + * + *
+     * The recruiter explicitly highlights that a given profile is not
+     * interesting enough for later review or is not a good result for the
+     * search.
+     * 
+ * + * NEGATIVE_REACTION_TO_PROFILE = 9; + */ + NEGATIVE_REACTION_TO_PROFILE(9), + /** + * + * + *
+     * The candidate is interesting enough to set up an initial screen with the
+     * recruiter. This step may be skipped based on the interview process.
+     * 
+ * + * SCREEN = 10; + */ + SCREEN(10), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * PROFILE_EVENT_TYPE_UNSPECIFIED = 0; + */ + public static final int PROFILE_EVENT_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The profile is displayed.
+     * 
+ * + * IMPRESSION = 1; + */ + public static final int IMPRESSION_VALUE = 1; + /** + * + * + *
+     * The profile is viewed.
+     * 
+ * + * VIEW = 2; + */ + public static final int VIEW_VALUE = 2; + /** + * + * + *
+     * The profile is bookmarked.
+     * 
+ * + * BOOKMARK = 3; + */ + public static final int BOOKMARK_VALUE = 3; + /** + * + * + *
+     * Comment added to the profile.
+     * 
+ * + * COMMENT_ADDED = 4; + */ + public static final int COMMENT_ADDED_VALUE = 4; + /** + * + * + *
+     * Email sent regarding the profile.
+     * 
+ * + * EMAIL_SENT = 5; + */ + public static final int EMAIL_SENT_VALUE = 5; + /** + * + * + *
+     * The resume of the profile is viewed.
+     * 
+ * + * RESUME_VIEWED = 6; + */ + public static final int RESUME_VIEWED_VALUE = 6; + /** + * + * + *
+     * The profile is added to a job.
+     * 
+ * + * ADD_TO_JOB = 7; + */ + public static final int ADD_TO_JOB_VALUE = 7; + /** + * + * + *
+     * The recruiter explicitly highlights that a given profile is interesting
+     * enough for later review or is a good result for the search.
+     * 
+ * + * POSITIVE_REACTION_TO_PROFILE = 8; + */ + public static final int POSITIVE_REACTION_TO_PROFILE_VALUE = 8; + /** + * + * + *
+     * The recruiter explicitly highlights that a given profile is not
+     * interesting enough for later review or is not a good result for the
+     * search.
+     * 
+ * + * NEGATIVE_REACTION_TO_PROFILE = 9; + */ + public static final int NEGATIVE_REACTION_TO_PROFILE_VALUE = 9; + /** + * + * + *
+     * The candidate is interesting enough to set up an initial screen with the
+     * recruiter. This step may be skipped based on the interview process.
+     * 
+ * + * SCREEN = 10; + */ + public static final int SCREEN_VALUE = 10; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static ProfileEventType valueOf(int value) { + return forNumber(value); + } + + public static ProfileEventType forNumber(int value) { + switch (value) { + case 0: + return PROFILE_EVENT_TYPE_UNSPECIFIED; + case 1: + return IMPRESSION; + case 2: + return VIEW; + case 3: + return BOOKMARK; + case 4: + return COMMENT_ADDED; + case 5: + return EMAIL_SENT; + case 6: + return RESUME_VIEWED; + case 7: + return ADD_TO_JOB; + case 8: + return POSITIVE_REACTION_TO_PROFILE; + case 9: + return NEGATIVE_REACTION_TO_PROFILE; + case 10: + return SCREEN; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ProfileEventType findValueByNumber(int number) { + return ProfileEventType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileEvent.getDescriptor().getEnumTypes().get(0); + } + + private static final ProfileEventType[] VALUES = values(); + + public static ProfileEventType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ProfileEventType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType) + } + + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + * + * + *
+   * Required.
+   * Type of event.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Required.
+   * Type of event.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1; + */ + public com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType result = + com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType.UNRECOGNIZED + : result; + } + + public static final int PROFILES_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList profiles_; + /** + * + * + *
+   * Required.
+   * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+   * with this client event.
+   * 
+ * + * repeated string profiles = 2; + */ + public com.google.protobuf.ProtocolStringList getProfilesList() { + return profiles_; + } + /** + * + * + *
+   * Required.
+   * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+   * with this client event.
+   * 
+ * + * repeated string profiles = 2; + */ + public int getProfilesCount() { + return profiles_.size(); + } + /** + * + * + *
+   * Required.
+   * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+   * with this client event.
+   * 
+ * + * repeated string profiles = 2; + */ + public java.lang.String getProfiles(int index) { + return profiles_.get(index); + } + /** + * + * + *
+   * Required.
+   * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+   * with this client event.
+   * 
+ * + * repeated string profiles = 2; + */ + public com.google.protobuf.ByteString getProfilesBytes(int index) { + return profiles_.getByteString(index); + } + + public static final int JOB_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object jobId_; + /** + * + * + *
+   * Optional.
+   * The job ID associated with this client event if there is one. Leave it
+   * empty if the event isn't associated with a job.
+   * The job ID should be consistent with the
+   * [JobApplication.job.requisition_id][] in the profile.
+   * 
+ * + * string job_id = 3; + */ + public java.lang.String getJobId() { + java.lang.Object ref = jobId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The job ID associated with this client event if there is one. Leave it
+   * empty if the event isn't associated with a job.
+   * The job ID should be consistent with the
+   * [JobApplication.job.requisition_id][] in the profile.
+   * 
+ * + * string job_id = 3; + */ + public com.google.protobuf.ByteString getJobIdBytes() { + java.lang.Object ref = jobId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (type_ + != com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType + .PROFILE_EVENT_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, type_); + } + for (int i = 0; i < profiles_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, profiles_.getRaw(i)); + } + if (!getJobIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, jobId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ + != com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType + .PROFILE_EVENT_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + { + int dataSize = 0; + for (int i = 0; i < profiles_.size(); i++) { + dataSize += computeStringSizeNoTag(profiles_.getRaw(i)); + } + size += dataSize; + size += 1 * getProfilesList().size(); + } + if (!getJobIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, jobId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ProfileEvent)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ProfileEvent other = + (com.google.cloud.talent.v4beta1.ProfileEvent) obj; + + boolean result = true; + result = result && type_ == other.type_; + result = result && getProfilesList().equals(other.getProfilesList()); + result = result && getJobId().equals(other.getJobId()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (getProfilesCount() > 0) { + hash = (37 * hash) + PROFILES_FIELD_NUMBER; + hash = (53 * hash) + getProfilesList().hashCode(); + } + hash = (37 * hash) + JOB_ID_FIELD_NUMBER; + hash = (53 * hash) + getJobId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.ProfileEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * An event issued when a profile searcher interacts with the application
+   * that implements Cloud Talent Solution.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ProfileEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ProfileEvent) + com.google.cloud.talent.v4beta1.ProfileEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_ProfileEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_ProfileEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ProfileEvent.class, + com.google.cloud.talent.v4beta1.ProfileEvent.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ProfileEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = 0; + + profiles_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + jobId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_ProfileEvent_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ProfileEvent getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ProfileEvent build() { + com.google.cloud.talent.v4beta1.ProfileEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ProfileEvent buildPartial() { + com.google.cloud.talent.v4beta1.ProfileEvent result = + new com.google.cloud.talent.v4beta1.ProfileEvent(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.type_ = type_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + profiles_ = profiles_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.profiles_ = profiles_; + result.jobId_ = jobId_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ProfileEvent) { + return mergeFrom((com.google.cloud.talent.v4beta1.ProfileEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ProfileEvent other) { + if (other == com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.profiles_.isEmpty()) { + if (profiles_.isEmpty()) { + profiles_ = other.profiles_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureProfilesIsMutable(); + profiles_.addAll(other.profiles_); + } + onChanged(); + } + if (!other.getJobId().isEmpty()) { + jobId_ = other.jobId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ProfileEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.ProfileEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int type_ = 0; + /** + * + * + *
+     * Required.
+     * Type of event.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Required.
+     * Type of event.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Type of event.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1; + */ + public com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType result = + com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required.
+     * Type of event.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1; + */ + public Builder setType(com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Type of event.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList profiles_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureProfilesIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + profiles_ = new com.google.protobuf.LazyStringArrayList(profiles_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Required.
+     * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+     * with this client event.
+     * 
+ * + * repeated string profiles = 2; + */ + public com.google.protobuf.ProtocolStringList getProfilesList() { + return profiles_.getUnmodifiableView(); + } + /** + * + * + *
+     * Required.
+     * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+     * with this client event.
+     * 
+ * + * repeated string profiles = 2; + */ + public int getProfilesCount() { + return profiles_.size(); + } + /** + * + * + *
+     * Required.
+     * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+     * with this client event.
+     * 
+ * + * repeated string profiles = 2; + */ + public java.lang.String getProfiles(int index) { + return profiles_.get(index); + } + /** + * + * + *
+     * Required.
+     * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+     * with this client event.
+     * 
+ * + * repeated string profiles = 2; + */ + public com.google.protobuf.ByteString getProfilesBytes(int index) { + return profiles_.getByteString(index); + } + /** + * + * + *
+     * Required.
+     * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+     * with this client event.
+     * 
+ * + * repeated string profiles = 2; + */ + public Builder setProfiles(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProfilesIsMutable(); + profiles_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+     * with this client event.
+     * 
+ * + * repeated string profiles = 2; + */ + public Builder addProfiles(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProfilesIsMutable(); + profiles_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+     * with this client event.
+     * 
+ * + * repeated string profiles = 2; + */ + public Builder addAllProfiles(java.lang.Iterable values) { + ensureProfilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, profiles_); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+     * with this client event.
+     * 
+ * + * repeated string profiles = 2; + */ + public Builder clearProfiles() { + profiles_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+     * with this client event.
+     * 
+ * + * repeated string profiles = 2; + */ + public Builder addProfilesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureProfilesIsMutable(); + profiles_.add(value); + onChanged(); + return this; + } + + private java.lang.Object jobId_ = ""; + /** + * + * + *
+     * Optional.
+     * The job ID associated with this client event if there is one. Leave it
+     * empty if the event isn't associated with a job.
+     * The job ID should be consistent with the
+     * [JobApplication.job.requisition_id][] in the profile.
+     * 
+ * + * string job_id = 3; + */ + public java.lang.String getJobId() { + java.lang.Object ref = jobId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job ID associated with this client event if there is one. Leave it
+     * empty if the event isn't associated with a job.
+     * The job ID should be consistent with the
+     * [JobApplication.job.requisition_id][] in the profile.
+     * 
+ * + * string job_id = 3; + */ + public com.google.protobuf.ByteString getJobIdBytes() { + java.lang.Object ref = jobId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job ID associated with this client event if there is one. Leave it
+     * empty if the event isn't associated with a job.
+     * The job ID should be consistent with the
+     * [JobApplication.job.requisition_id][] in the profile.
+     * 
+ * + * string job_id = 3; + */ + public Builder setJobId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job ID associated with this client event if there is one. Leave it
+     * empty if the event isn't associated with a job.
+     * The job ID should be consistent with the
+     * [JobApplication.job.requisition_id][] in the profile.
+     * 
+ * + * string job_id = 3; + */ + public Builder clearJobId() { + + jobId_ = getDefaultInstance().getJobId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job ID associated with this client event if there is one. Leave it
+     * empty if the event isn't associated with a job.
+     * The job ID should be consistent with the
+     * [JobApplication.job.requisition_id][] in the profile.
+     * 
+ * + * string job_id = 3; + */ + public Builder setJobIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobId_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ProfileEvent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ProfileEvent) + private static final com.google.cloud.talent.v4beta1.ProfileEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ProfileEvent(); + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProfileEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProfileEvent(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ProfileEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEventOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEventOrBuilder.java new file mode 100644 index 000000000000..54ca5e7cf1b3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEventOrBuilder.java @@ -0,0 +1,111 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/event.proto + +package com.google.cloud.talent.v4beta1; + +public interface ProfileEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ProfileEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * Type of event.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1; + */ + int getTypeValue(); + /** + * + * + *
+   * Required.
+   * Type of event.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1; + */ + com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType getType(); + + /** + * + * + *
+   * Required.
+   * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+   * with this client event.
+   * 
+ * + * repeated string profiles = 2; + */ + java.util.List getProfilesList(); + /** + * + * + *
+   * Required.
+   * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+   * with this client event.
+   * 
+ * + * repeated string profiles = 2; + */ + int getProfilesCount(); + /** + * + * + *
+   * Required.
+   * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+   * with this client event.
+   * 
+ * + * repeated string profiles = 2; + */ + java.lang.String getProfiles(int index); + /** + * + * + *
+   * Required.
+   * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+   * with this client event.
+   * 
+ * + * repeated string profiles = 2; + */ + com.google.protobuf.ByteString getProfilesBytes(int index); + + /** + * + * + *
+   * Optional.
+   * The job ID associated with this client event if there is one. Leave it
+   * empty if the event isn't associated with a job.
+   * The job ID should be consistent with the
+   * [JobApplication.job.requisition_id][] in the profile.
+   * 
+ * + * string job_id = 3; + */ + java.lang.String getJobId(); + /** + * + * + *
+   * Optional.
+   * The job ID associated with this client event if there is one. Leave it
+   * empty if the event isn't associated with a job.
+   * The job ID should be consistent with the
+   * [JobApplication.job.requisition_id][] in the profile.
+   * 
+ * + * string job_id = 3; + */ + com.google.protobuf.ByteString getJobIdBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileName.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileName.java new file mode 100644 index 000000000000..f69991fb37bc --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileName.java @@ -0,0 +1,208 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.cloud.talent.v4beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class ProfileName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/tenants/{tenant}/profiles/{profile}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String tenant; + private final String profile; + + public String getProject() { + return project; + } + + public String getTenant() { + return tenant; + } + + public String getProfile() { + return profile; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private ProfileName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + tenant = Preconditions.checkNotNull(builder.getTenant()); + profile = Preconditions.checkNotNull(builder.getProfile()); + } + + public static ProfileName of(String project, String tenant, String profile) { + return newBuilder().setProject(project).setTenant(tenant).setProfile(profile).build(); + } + + public static String format(String project, String tenant, String profile) { + return newBuilder() + .setProject(project) + .setTenant(tenant) + .setProfile(profile) + .build() + .toString(); + } + + public static ProfileName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "ProfileName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("tenant"), matchMap.get("profile")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (ProfileName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("tenant", tenant); + fieldMapBuilder.put("profile", profile); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "tenant", tenant, "profile", profile); + } + + /** Builder for ProfileName. */ + public static class Builder { + + private String project; + private String tenant; + private String profile; + + public String getProject() { + return project; + } + + public String getTenant() { + return tenant; + } + + public String getProfile() { + return profile; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setTenant(String tenant) { + this.tenant = tenant; + return this; + } + + public Builder setProfile(String profile) { + this.profile = profile; + return this; + } + + private Builder() {} + + private Builder(ProfileName profileName) { + project = profileName.project; + tenant = profileName.tenant; + profile = profileName.profile; + } + + public ProfileName build() { + return new ProfileName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof ProfileName) { + ProfileName that = (ProfileName) o; + return (this.project.equals(that.project)) + && (this.tenant.equals(that.tenant)) + && (this.profile.equals(that.profile)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= tenant.hashCode(); + h *= 1000003; + h ^= profile.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileOrBuilder.java new file mode 100644 index 000000000000..a0e89e668a3c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileOrBuilder.java @@ -0,0 +1,1528 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface ProfileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Profile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required during profile update.
+   * Resource name assigned to a profile by the API.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required during profile update.
+   * Resource name assigned to a profile by the API.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional.
+   * Profile's id in client system if available.
+   * The maximum number of bytes allowed is 100.
+   * 
+ * + * string external_id = 2; + */ + java.lang.String getExternalId(); + /** + * + * + *
+   * Optional.
+   * Profile's id in client system if available.
+   * The maximum number of bytes allowed is 100.
+   * 
+ * + * string external_id = 2; + */ + com.google.protobuf.ByteString getExternalIdBytes(); + + /** + * + * + *
+   * Optional.
+   * The source description indicating where the profile is acquired.
+   * For example, if a candidate profile is acquired from a resume, the user can
+   * input "resume" here to indicate the source.
+   * The maximum number of bytes allowed is 100.
+   * 
+ * + * string source = 3; + */ + java.lang.String getSource(); + /** + * + * + *
+   * Optional.
+   * The source description indicating where the profile is acquired.
+   * For example, if a candidate profile is acquired from a resume, the user can
+   * input "resume" here to indicate the source.
+   * The maximum number of bytes allowed is 100.
+   * 
+ * + * string source = 3; + */ + com.google.protobuf.ByteString getSourceBytes(); + + /** + * + * + *
+   * Optional.
+   * The URI set by clients that links to this profile's client-side copy.
+   * The maximum number of bytes allowed is 4000.
+   * 
+ * + * string uri = 4; + */ + java.lang.String getUri(); + /** + * + * + *
+   * Optional.
+   * The URI set by clients that links to this profile's client-side copy.
+   * The maximum number of bytes allowed is 4000.
+   * 
+ * + * string uri = 4; + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+   * Optional.
+   * The cluster id of the profile to associate with other profile(s) for the
+   * same candidate.
+   * A random UUID is assigned if
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't provided. To
+   * ensure global uniqueness, customized
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't supported.
+   * If [group_id][google.cloud.talent.v4beta1.Profile.group_id] is set, there
+   * must be at least one other profile with the same system generated
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id], otherwise an
+   * error is thrown.
+   * This is used to link multiple profiles to the same candidate. For example,
+   * a client has a candidate with two profiles, where one was created recently
+   * and the other one was created 5 years ago. These two profiles may be very
+   * different. The clients can create the first profile and get a generated
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it
+   * when the second profile is created, indicating these two profiles are
+   * referring to the same candidate.
+   * 
+ * + * string group_id = 5; + */ + java.lang.String getGroupId(); + /** + * + * + *
+   * Optional.
+   * The cluster id of the profile to associate with other profile(s) for the
+   * same candidate.
+   * A random UUID is assigned if
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't provided. To
+   * ensure global uniqueness, customized
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't supported.
+   * If [group_id][google.cloud.talent.v4beta1.Profile.group_id] is set, there
+   * must be at least one other profile with the same system generated
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id], otherwise an
+   * error is thrown.
+   * This is used to link multiple profiles to the same candidate. For example,
+   * a client has a candidate with two profiles, where one was created recently
+   * and the other one was created 5 years ago. These two profiles may be very
+   * different. The clients can create the first profile and get a generated
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it
+   * when the second profile is created, indicating these two profiles are
+   * referring to the same candidate.
+   * 
+ * + * string group_id = 5; + */ + com.google.protobuf.ByteString getGroupIdBytes(); + + /** + * + * + *
+   * Optional.
+   * Indicates the hirable status of the candidate.
+   * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + boolean hasIsHirable(); + /** + * + * + *
+   * Optional.
+   * Indicates the hirable status of the candidate.
+   * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + com.google.protobuf.BoolValue getIsHirable(); + /** + * + * + *
+   * Optional.
+   * Indicates the hirable status of the candidate.
+   * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + com.google.protobuf.BoolValueOrBuilder getIsHirableOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was first created at this source.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was first created at this source.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was first created at this source.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was last updated at this source.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was last updated at this source.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was last updated at this source.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The profile contents in HR-XML format.
+   * See http://schemas.liquid-technologies.com/hr-xml/2007-04-15/ for more
+   * information about Human Resources XML.
+   * Users can create a profile with only
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] field. For
+   * example, the API parses the
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] and
+   * creates a profile with all structured fields populated, for example.
+   * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord],
+   * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], etc. An
+   * error is thrown if the
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] can't be
+   * parsed.
+   * If the [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] is
+   * provided during profile creation or update, any other structured data
+   * provided in the profile is ignored. The API populates these fields by
+   * parsing the HR-XML.
+   * 
+ * + * string resume_hrxml = 10; + */ + java.lang.String getResumeHrxml(); + /** + * + * + *
+   * Optional.
+   * The profile contents in HR-XML format.
+   * See http://schemas.liquid-technologies.com/hr-xml/2007-04-15/ for more
+   * information about Human Resources XML.
+   * Users can create a profile with only
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] field. For
+   * example, the API parses the
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] and
+   * creates a profile with all structured fields populated, for example.
+   * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord],
+   * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], etc. An
+   * error is thrown if the
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] can't be
+   * parsed.
+   * If the [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] is
+   * provided during profile creation or update, any other structured data
+   * provided in the profile is ignored. The API populates these fields by
+   * parsing the HR-XML.
+   * 
+ * + * string resume_hrxml = 10; + */ + com.google.protobuf.ByteString getResumeHrxmlBytes(); + + /** + * + * + *
+   * Optional.
+   * The names of the candidate this profile references.
+   * Currently only one person name is supported.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + java.util.List getPersonNamesList(); + /** + * + * + *
+   * Optional.
+   * The names of the candidate this profile references.
+   * Currently only one person name is supported.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + com.google.cloud.talent.v4beta1.PersonName getPersonNames(int index); + /** + * + * + *
+   * Optional.
+   * The names of the candidate this profile references.
+   * Currently only one person name is supported.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + int getPersonNamesCount(); + /** + * + * + *
+   * Optional.
+   * The names of the candidate this profile references.
+   * Currently only one person name is supported.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + java.util.List + getPersonNamesOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The names of the candidate this profile references.
+   * Currently only one person name is supported.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + com.google.cloud.talent.v4beta1.PersonNameOrBuilder getPersonNamesOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The candidate's postal addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + java.util.List getAddressesList(); + /** + * + * + *
+   * Optional.
+   * The candidate's postal addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + com.google.cloud.talent.v4beta1.Address getAddresses(int index); + /** + * + * + *
+   * Optional.
+   * The candidate's postal addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + int getAddressesCount(); + /** + * + * + *
+   * Optional.
+   * The candidate's postal addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + java.util.List + getAddressesOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The candidate's postal addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressesOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The candidate's email addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + java.util.List getEmailAddressesList(); + /** + * + * + *
+   * Optional.
+   * The candidate's email addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + com.google.cloud.talent.v4beta1.Email getEmailAddresses(int index); + /** + * + * + *
+   * Optional.
+   * The candidate's email addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + int getEmailAddressesCount(); + /** + * + * + *
+   * Optional.
+   * The candidate's email addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + java.util.List + getEmailAddressesOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The candidate's email addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + com.google.cloud.talent.v4beta1.EmailOrBuilder getEmailAddressesOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The candidate's phone number(s).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + java.util.List getPhoneNumbersList(); + /** + * + * + *
+   * Optional.
+   * The candidate's phone number(s).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + com.google.cloud.talent.v4beta1.Phone getPhoneNumbers(int index); + /** + * + * + *
+   * Optional.
+   * The candidate's phone number(s).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + int getPhoneNumbersCount(); + /** + * + * + *
+   * Optional.
+   * The candidate's phone number(s).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + java.util.List + getPhoneNumbersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The candidate's phone number(s).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + com.google.cloud.talent.v4beta1.PhoneOrBuilder getPhoneNumbersOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The candidate's personal URIs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + java.util.List getPersonalUrisList(); + /** + * + * + *
+   * Optional.
+   * The candidate's personal URIs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + com.google.cloud.talent.v4beta1.PersonalUri getPersonalUris(int index); + /** + * + * + *
+   * Optional.
+   * The candidate's personal URIs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + int getPersonalUrisCount(); + /** + * + * + *
+   * Optional.
+   * The candidate's personal URIs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + java.util.List + getPersonalUrisOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The candidate's personal URIs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + com.google.cloud.talent.v4beta1.PersonalUriOrBuilder getPersonalUrisOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * Available contact information besides
+   * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+   * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+   * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+   * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+   * example, Hang-out, Skype.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + java.util.List + getAdditionalContactInfoList(); + /** + * + * + *
+   * Optional.
+   * Available contact information besides
+   * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+   * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+   * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+   * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+   * example, Hang-out, Skype.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + com.google.cloud.talent.v4beta1.AdditionalContactInfo getAdditionalContactInfo(int index); + /** + * + * + *
+   * Optional.
+   * Available contact information besides
+   * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+   * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+   * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+   * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+   * example, Hang-out, Skype.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + int getAdditionalContactInfoCount(); + /** + * + * + *
+   * Optional.
+   * Available contact information besides
+   * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+   * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+   * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+   * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+   * example, Hang-out, Skype.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + java.util.List + getAdditionalContactInfoOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * Available contact information besides
+   * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+   * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+   * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+   * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+   * example, Hang-out, Skype.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + com.google.cloud.talent.v4beta1.AdditionalContactInfoOrBuilder getAdditionalContactInfoOrBuilder( + int index); + + /** + * + * + *
+   * Optional.
+   * The employment history records of the candidate. It's highly recommended
+   * to input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the employment records.
+   * * List different employment types separately, no matter how minor the
+   * change is.
+   * For example, only job title is changed from "software engineer" to "senior
+   * software engineer".
+   * * Provide
+   * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+   * for the current employment if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + java.util.List getEmploymentRecordsList(); + /** + * + * + *
+   * Optional.
+   * The employment history records of the candidate. It's highly recommended
+   * to input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the employment records.
+   * * List different employment types separately, no matter how minor the
+   * change is.
+   * For example, only job title is changed from "software engineer" to "senior
+   * software engineer".
+   * * Provide
+   * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+   * for the current employment if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + com.google.cloud.talent.v4beta1.EmploymentRecord getEmploymentRecords(int index); + /** + * + * + *
+   * Optional.
+   * The employment history records of the candidate. It's highly recommended
+   * to input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the employment records.
+   * * List different employment types separately, no matter how minor the
+   * change is.
+   * For example, only job title is changed from "software engineer" to "senior
+   * software engineer".
+   * * Provide
+   * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+   * for the current employment if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + int getEmploymentRecordsCount(); + /** + * + * + *
+   * Optional.
+   * The employment history records of the candidate. It's highly recommended
+   * to input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the employment records.
+   * * List different employment types separately, no matter how minor the
+   * change is.
+   * For example, only job title is changed from "software engineer" to "senior
+   * software engineer".
+   * * Provide
+   * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+   * for the current employment if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + java.util.List + getEmploymentRecordsOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The employment history records of the candidate. It's highly recommended
+   * to input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the employment records.
+   * * List different employment types separately, no matter how minor the
+   * change is.
+   * For example, only job title is changed from "software engineer" to "senior
+   * software engineer".
+   * * Provide
+   * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+   * for the current employment if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + com.google.cloud.talent.v4beta1.EmploymentRecordOrBuilder getEmploymentRecordsOrBuilder( + int index); + + /** + * + * + *
+   * Optional.
+   * The education history record of the candidate. It's highly recommended to
+   * input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the education records.
+   * * List each education type separately, no matter how minor the change is.
+   * For example, the profile contains the education experience from the same
+   * school but different degrees.
+   * * Provide
+   * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+   * for the current education if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + java.util.List getEducationRecordsList(); + /** + * + * + *
+   * Optional.
+   * The education history record of the candidate. It's highly recommended to
+   * input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the education records.
+   * * List each education type separately, no matter how minor the change is.
+   * For example, the profile contains the education experience from the same
+   * school but different degrees.
+   * * Provide
+   * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+   * for the current education if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + com.google.cloud.talent.v4beta1.EducationRecord getEducationRecords(int index); + /** + * + * + *
+   * Optional.
+   * The education history record of the candidate. It's highly recommended to
+   * input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the education records.
+   * * List each education type separately, no matter how minor the change is.
+   * For example, the profile contains the education experience from the same
+   * school but different degrees.
+   * * Provide
+   * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+   * for the current education if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + int getEducationRecordsCount(); + /** + * + * + *
+   * Optional.
+   * The education history record of the candidate. It's highly recommended to
+   * input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the education records.
+   * * List each education type separately, no matter how minor the change is.
+   * For example, the profile contains the education experience from the same
+   * school but different degrees.
+   * * Provide
+   * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+   * for the current education if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + java.util.List + getEducationRecordsOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The education history record of the candidate. It's highly recommended to
+   * input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the education records.
+   * * List each education type separately, no matter how minor the change is.
+   * For example, the profile contains the education experience from the same
+   * school but different degrees.
+   * * Provide
+   * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+   * for the current education if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + com.google.cloud.talent.v4beta1.EducationRecordOrBuilder getEducationRecordsOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The skill set of the candidate. It's highly recommended to provide as
+   * much information as possible to help improve the search quality.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + java.util.List getSkillsList(); + /** + * + * + *
+   * Optional.
+   * The skill set of the candidate. It's highly recommended to provide as
+   * much information as possible to help improve the search quality.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + com.google.cloud.talent.v4beta1.Skill getSkills(int index); + /** + * + * + *
+   * Optional.
+   * The skill set of the candidate. It's highly recommended to provide as
+   * much information as possible to help improve the search quality.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + int getSkillsCount(); + /** + * + * + *
+   * Optional.
+   * The skill set of the candidate. It's highly recommended to provide as
+   * much information as possible to help improve the search quality.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + java.util.List getSkillsOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The skill set of the candidate. It's highly recommended to provide as
+   * much information as possible to help improve the search quality.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The individual or collaborative activities which the candidate has
+   * participated in, for example, open-source projects, class assignments that
+   * aren't listed in
+   * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + java.util.List getActivitiesList(); + /** + * + * + *
+   * Optional.
+   * The individual or collaborative activities which the candidate has
+   * participated in, for example, open-source projects, class assignments that
+   * aren't listed in
+   * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + com.google.cloud.talent.v4beta1.Activity getActivities(int index); + /** + * + * + *
+   * Optional.
+   * The individual or collaborative activities which the candidate has
+   * participated in, for example, open-source projects, class assignments that
+   * aren't listed in
+   * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + int getActivitiesCount(); + /** + * + * + *
+   * Optional.
+   * The individual or collaborative activities which the candidate has
+   * participated in, for example, open-source projects, class assignments that
+   * aren't listed in
+   * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + java.util.List + getActivitiesOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The individual or collaborative activities which the candidate has
+   * participated in, for example, open-source projects, class assignments that
+   * aren't listed in
+   * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + com.google.cloud.talent.v4beta1.ActivityOrBuilder getActivitiesOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The publications published by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + java.util.List getPublicationsList(); + /** + * + * + *
+   * Optional.
+   * The publications published by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + com.google.cloud.talent.v4beta1.Publication getPublications(int index); + /** + * + * + *
+   * Optional.
+   * The publications published by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + int getPublicationsCount(); + /** + * + * + *
+   * Optional.
+   * The publications published by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + java.util.List + getPublicationsOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The publications published by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + com.google.cloud.talent.v4beta1.PublicationOrBuilder getPublicationsOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The patents acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + java.util.List getPatentsList(); + /** + * + * + *
+   * Optional.
+   * The patents acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + com.google.cloud.talent.v4beta1.Patent getPatents(int index); + /** + * + * + *
+   * Optional.
+   * The patents acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + int getPatentsCount(); + /** + * + * + *
+   * Optional.
+   * The patents acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + java.util.List + getPatentsOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The patents acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + com.google.cloud.talent.v4beta1.PatentOrBuilder getPatentsOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The certifications acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + java.util.List getCertificationsList(); + /** + * + * + *
+   * Optional.
+   * The certifications acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + com.google.cloud.talent.v4beta1.Certification getCertifications(int index); + /** + * + * + *
+   * Optional.
+   * The certifications acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + int getCertificationsCount(); + /** + * + * + *
+   * Optional.
+   * The certifications acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + java.util.List + getCertificationsOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The certifications acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + com.google.cloud.talent.v4beta1.CertificationOrBuilder getCertificationsOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The job applications of the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + java.util.List getJobApplicationsList(); + /** + * + * + *
+   * Optional.
+   * The job applications of the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + com.google.cloud.talent.v4beta1.JobApplication getJobApplications(int index); + /** + * + * + *
+   * Optional.
+   * The job applications of the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + int getJobApplicationsCount(); + /** + * + * + *
+   * Optional.
+   * The job applications of the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + java.util.List + getJobApplicationsOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The job applications of the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + com.google.cloud.talent.v4beta1.JobApplicationOrBuilder getJobApplicationsOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The recruiting notes added for the candidate.
+   * For example, the recruiter can add some unstructured comments for this
+   * candidate like "this candidate also has experiences in volunteer work".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + java.util.List getRecruitingNotesList(); + /** + * + * + *
+   * Optional.
+   * The recruiting notes added for the candidate.
+   * For example, the recruiter can add some unstructured comments for this
+   * candidate like "this candidate also has experiences in volunteer work".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + com.google.cloud.talent.v4beta1.RecruitingNote getRecruitingNotes(int index); + /** + * + * + *
+   * Optional.
+   * The recruiting notes added for the candidate.
+   * For example, the recruiter can add some unstructured comments for this
+   * candidate like "this candidate also has experiences in volunteer work".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + int getRecruitingNotesCount(); + /** + * + * + *
+   * Optional.
+   * The recruiting notes added for the candidate.
+   * For example, the recruiter can add some unstructured comments for this
+   * candidate like "this candidate also has experiences in volunteer work".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + java.util.List + getRecruitingNotesOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The recruiting notes added for the candidate.
+   * For example, the recruiter can add some unstructured comments for this
+   * candidate like "this candidate also has experiences in volunteer work".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + com.google.cloud.talent.v4beta1.RecruitingNoteOrBuilder getRecruitingNotesOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom profile
+   * attributes that aren't covered by the provided structured fields. See
+   * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+   * details.
+   * At most 100 filterable and at most 100 unfilterable keys are supported. If
+   * limit is exceeded, an error is thrown.
+   * Numeric custom attributes: each key can only map to one numeric value,
+   * otherwise an error is thrown.
+   * String custom attributes: each key can map up to 50 string values. For
+   * filterable string value, each value has a byte size of no more than 256B.
+   * For unfilterable string values, the maximum byte size of a single key is
+   * 64B. An error is thrown for any request exceeding the limit.
+   * The maximum total byte size is 10KB.
+   * Currently filterable numeric custom attributes are not supported, and
+   * they automatically set to unfilterable.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + int getCustomAttributesCount(); + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom profile
+   * attributes that aren't covered by the provided structured fields. See
+   * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+   * details.
+   * At most 100 filterable and at most 100 unfilterable keys are supported. If
+   * limit is exceeded, an error is thrown.
+   * Numeric custom attributes: each key can only map to one numeric value,
+   * otherwise an error is thrown.
+   * String custom attributes: each key can map up to 50 string values. For
+   * filterable string value, each value has a byte size of no more than 256B.
+   * For unfilterable string values, the maximum byte size of a single key is
+   * 64B. An error is thrown for any request exceeding the limit.
+   * The maximum total byte size is 10KB.
+   * Currently filterable numeric custom attributes are not supported, and
+   * they automatically set to unfilterable.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + boolean containsCustomAttributes(java.lang.String key); + /** Use {@link #getCustomAttributesMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getCustomAttributes(); + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom profile
+   * attributes that aren't covered by the provided structured fields. See
+   * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+   * details.
+   * At most 100 filterable and at most 100 unfilterable keys are supported. If
+   * limit is exceeded, an error is thrown.
+   * Numeric custom attributes: each key can only map to one numeric value,
+   * otherwise an error is thrown.
+   * String custom attributes: each key can map up to 50 string values. For
+   * filterable string value, each value has a byte size of no more than 256B.
+   * For unfilterable string values, the maximum byte size of a single key is
+   * 64B. An error is thrown for any request exceeding the limit.
+   * The maximum total byte size is 10KB.
+   * Currently filterable numeric custom attributes are not supported, and
+   * they automatically set to unfilterable.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + java.util.Map + getCustomAttributesMap(); + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom profile
+   * attributes that aren't covered by the provided structured fields. See
+   * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+   * details.
+   * At most 100 filterable and at most 100 unfilterable keys are supported. If
+   * limit is exceeded, an error is thrown.
+   * Numeric custom attributes: each key can only map to one numeric value,
+   * otherwise an error is thrown.
+   * String custom attributes: each key can map up to 50 string values. For
+   * filterable string value, each value has a byte size of no more than 256B.
+   * For unfilterable string values, the maximum byte size of a single key is
+   * 64B. An error is thrown for any request exceeding the limit.
+   * The maximum total byte size is 10KB.
+   * Currently filterable numeric custom attributes are not supported, and
+   * they automatically set to unfilterable.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrDefault( + java.lang.String key, com.google.cloud.talent.v4beta1.CustomAttribute defaultValue); + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom profile
+   * attributes that aren't covered by the provided structured fields. See
+   * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+   * details.
+   * At most 100 filterable and at most 100 unfilterable keys are supported. If
+   * limit is exceeded, an error is thrown.
+   * Numeric custom attributes: each key can only map to one numeric value,
+   * otherwise an error is thrown.
+   * String custom attributes: each key can map up to 50 string values. For
+   * filterable string value, each value has a byte size of no more than 256B.
+   * For unfilterable string values, the maximum byte size of a single key is
+   * 64B. An error is thrown for any request exceeding the limit.
+   * The maximum total byte size is 10KB.
+   * Currently filterable numeric custom attributes are not supported, and
+   * they automatically set to unfilterable.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. Indicates if the profile is fully processed and searchable.
+   * 
+ * + * bool processed = 27; + */ + boolean getProcessed(); + + /** + * + * + *
+   * Output only. Keyword snippet shows how the search result is related to a
+   * search query.
+   * 
+ * + * string keyword_snippet = 28; + */ + java.lang.String getKeywordSnippet(); + /** + * + * + *
+   * Output only. Keyword snippet shows how the search result is related to a
+   * search query.
+   * 
+ * + * string keyword_snippet = 28; + */ + com.google.protobuf.ByteString getKeywordSnippetBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQuery.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQuery.java new file mode 100644 index 000000000000..41055b884d2f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQuery.java @@ -0,0 +1,8826 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Filters to apply when performing the search query.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ProfileQuery} + */ +public final class ProfileQuery extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ProfileQuery) + ProfileQueryOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProfileQuery.newBuilder() to construct. + private ProfileQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ProfileQuery() { + query_ = ""; + locationFilters_ = java.util.Collections.emptyList(); + jobTitleFilters_ = java.util.Collections.emptyList(); + employerFilters_ = java.util.Collections.emptyList(); + educationFilters_ = java.util.Collections.emptyList(); + skillFilters_ = java.util.Collections.emptyList(); + workExperienceFilter_ = java.util.Collections.emptyList(); + timeFilters_ = java.util.Collections.emptyList(); + applicationDateFilters_ = java.util.Collections.emptyList(); + applicationOutcomeReasonFilters_ = java.util.Collections.emptyList(); + applicationLastStageFilters_ = java.util.Collections.emptyList(); + applicationJobFilters_ = java.util.Collections.emptyList(); + applicationStatusFilters_ = java.util.Collections.emptyList(); + customFieldFilter_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ProfileQuery( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + query_ = s; + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + locationFilters_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + locationFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.LocationFilter.parser(), extensionRegistry)); + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + jobTitleFilters_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + jobTitleFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.JobTitleFilter.parser(), extensionRegistry)); + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + employerFilters_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + employerFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.EmployerFilter.parser(), extensionRegistry)); + break; + } + case 42: + { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + educationFilters_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + educationFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.EducationFilter.parser(), extensionRegistry)); + break; + } + case 50: + { + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + skillFilters_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + skillFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.SkillFilter.parser(), extensionRegistry)); + break; + } + case 58: + { + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + workExperienceFilter_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000040; + } + workExperienceFilter_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.WorkExperienceFilter.parser(), + extensionRegistry)); + break; + } + case 66: + { + if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + timeFilters_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000080; + } + timeFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.TimeFilter.parser(), extensionRegistry)); + break; + } + case 74: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (hirableFilter_ != null) { + subBuilder = hirableFilter_.toBuilder(); + } + hirableFilter_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hirableFilter_); + hirableFilter_ = subBuilder.buildPartial(); + } + + break; + } + case 82: + { + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + applicationDateFilters_ = + new java.util.ArrayList< + com.google.cloud.talent.v4beta1.ApplicationDateFilter>(); + mutable_bitField0_ |= 0x00000200; + } + applicationDateFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.ApplicationDateFilter.parser(), + extensionRegistry)); + break; + } + case 90: + { + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + applicationOutcomeReasonFilters_ = + new java.util.ArrayList< + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter>(); + mutable_bitField0_ |= 0x00000400; + } + applicationOutcomeReasonFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.parser(), + extensionRegistry)); + break; + } + case 98: + { + if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { + applicationLastStageFilters_ = + new java.util.ArrayList< + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter>(); + mutable_bitField0_ |= 0x00000800; + } + applicationLastStageFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.parser(), + extensionRegistry)); + break; + } + case 106: + { + if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + applicationJobFilters_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00001000; + } + applicationJobFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.ApplicationJobFilter.parser(), + extensionRegistry)); + break; + } + case 114: + { + if (!((mutable_bitField0_ & 0x00002000) == 0x00002000)) { + applicationStatusFilters_ = + new java.util.ArrayList< + com.google.cloud.talent.v4beta1.ApplicationStatusFilter>(); + mutable_bitField0_ |= 0x00002000; + } + applicationStatusFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.ApplicationStatusFilter.parser(), + extensionRegistry)); + break; + } + case 122: + { + java.lang.String s = input.readStringRequireUtf8(); + + customFieldFilter_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + locationFilters_ = java.util.Collections.unmodifiableList(locationFilters_); + } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + jobTitleFilters_ = java.util.Collections.unmodifiableList(jobTitleFilters_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + employerFilters_ = java.util.Collections.unmodifiableList(employerFilters_); + } + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + educationFilters_ = java.util.Collections.unmodifiableList(educationFilters_); + } + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + skillFilters_ = java.util.Collections.unmodifiableList(skillFilters_); + } + if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + workExperienceFilter_ = java.util.Collections.unmodifiableList(workExperienceFilter_); + } + if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + timeFilters_ = java.util.Collections.unmodifiableList(timeFilters_); + } + if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + applicationDateFilters_ = java.util.Collections.unmodifiableList(applicationDateFilters_); + } + if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + applicationOutcomeReasonFilters_ = + java.util.Collections.unmodifiableList(applicationOutcomeReasonFilters_); + } + if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) { + applicationLastStageFilters_ = + java.util.Collections.unmodifiableList(applicationLastStageFilters_); + } + if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + applicationJobFilters_ = java.util.Collections.unmodifiableList(applicationJobFilters_); + } + if (((mutable_bitField0_ & 0x00002000) == 0x00002000)) { + applicationStatusFilters_ = + java.util.Collections.unmodifiableList(applicationStatusFilters_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ProfileQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ProfileQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ProfileQuery.class, + com.google.cloud.talent.v4beta1.ProfileQuery.Builder.class); + } + + private int bitField0_; + public static final int QUERY_FIELD_NUMBER = 1; + private volatile java.lang.Object query_; + /** + * + * + *
+   * Optional.
+   * Keywords to match any text fields of profiles.
+   * For example, "software engineer in Palo Alto".
+   * 
+ * + * string query = 1; + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Keywords to match any text fields of profiles.
+   * For example, "software engineer in Palo Alto".
+   * 
+ * + * string query = 1; + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATION_FILTERS_FIELD_NUMBER = 2; + private java.util.List locationFilters_; + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the profiles to
+   * search against.
+   * If a location filter isn't specified, profiles fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If
+   * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+   * is specified, the result doesn't contain profiles from that location.
+   * For example, search for profiles with addresses in "New York City".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public java.util.List getLocationFiltersList() { + return locationFilters_; + } + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the profiles to
+   * search against.
+   * If a location filter isn't specified, profiles fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If
+   * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+   * is specified, the result doesn't contain profiles from that location.
+   * For example, search for profiles with addresses in "New York City".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public java.util.List + getLocationFiltersOrBuilderList() { + return locationFilters_; + } + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the profiles to
+   * search against.
+   * If a location filter isn't specified, profiles fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If
+   * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+   * is specified, the result doesn't contain profiles from that location.
+   * For example, search for profiles with addresses in "New York City".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public int getLocationFiltersCount() { + return locationFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the profiles to
+   * search against.
+   * If a location filter isn't specified, profiles fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If
+   * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+   * is specified, the result doesn't contain profiles from that location.
+   * For example, search for profiles with addresses in "New York City".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public com.google.cloud.talent.v4beta1.LocationFilter getLocationFilters(int index) { + return locationFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the profiles to
+   * search against.
+   * If a location filter isn't specified, profiles fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If
+   * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+   * is specified, the result doesn't contain profiles from that location.
+   * For example, search for profiles with addresses in "New York City".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public com.google.cloud.talent.v4beta1.LocationFilterOrBuilder getLocationFiltersOrBuilder( + int index) { + return locationFilters_.get(index); + } + + public static final int JOB_TITLE_FILTERS_FIELD_NUMBER = 3; + private java.util.List jobTitleFilters_; + /** + * + * + *
+   * Optional.
+   * Job title filter specifies job titles of profiles to match on.
+   * If a job title isn't specified, profiles with any titles are retrieved.
+   * If multiple values are specified, profiles are retrieved with any of the
+   * specified job titles.
+   * If
+   * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+   * is specified, the result won't contain profiles with the job titles.
+   * For example, search for profiles with a job title "Product Manager".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public java.util.List getJobTitleFiltersList() { + return jobTitleFilters_; + } + /** + * + * + *
+   * Optional.
+   * Job title filter specifies job titles of profiles to match on.
+   * If a job title isn't specified, profiles with any titles are retrieved.
+   * If multiple values are specified, profiles are retrieved with any of the
+   * specified job titles.
+   * If
+   * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+   * is specified, the result won't contain profiles with the job titles.
+   * For example, search for profiles with a job title "Product Manager".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public java.util.List + getJobTitleFiltersOrBuilderList() { + return jobTitleFilters_; + } + /** + * + * + *
+   * Optional.
+   * Job title filter specifies job titles of profiles to match on.
+   * If a job title isn't specified, profiles with any titles are retrieved.
+   * If multiple values are specified, profiles are retrieved with any of the
+   * specified job titles.
+   * If
+   * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+   * is specified, the result won't contain profiles with the job titles.
+   * For example, search for profiles with a job title "Product Manager".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public int getJobTitleFiltersCount() { + return jobTitleFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * Job title filter specifies job titles of profiles to match on.
+   * If a job title isn't specified, profiles with any titles are retrieved.
+   * If multiple values are specified, profiles are retrieved with any of the
+   * specified job titles.
+   * If
+   * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+   * is specified, the result won't contain profiles with the job titles.
+   * For example, search for profiles with a job title "Product Manager".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public com.google.cloud.talent.v4beta1.JobTitleFilter getJobTitleFilters(int index) { + return jobTitleFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * Job title filter specifies job titles of profiles to match on.
+   * If a job title isn't specified, profiles with any titles are retrieved.
+   * If multiple values are specified, profiles are retrieved with any of the
+   * specified job titles.
+   * If
+   * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+   * is specified, the result won't contain profiles with the job titles.
+   * For example, search for profiles with a job title "Product Manager".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public com.google.cloud.talent.v4beta1.JobTitleFilterOrBuilder getJobTitleFiltersOrBuilder( + int index) { + return jobTitleFilters_.get(index); + } + + public static final int EMPLOYER_FILTERS_FIELD_NUMBER = 4; + private java.util.List employerFilters_; + /** + * + * + *
+   * Optional.
+   * Employer filter specifies employers of profiles to match on.
+   * If an employer filter isn't specified, profiles with any employers are
+   * retrieved.
+   * If multiple employer filters are specified, profiles with any matching
+   * employers are retrieved.
+   * If
+   * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+   * is specified, the result won't contain profiles that match the employers.
+   * For example, search for profiles that have working experience at "Google
+   * LLC".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public java.util.List getEmployerFiltersList() { + return employerFilters_; + } + /** + * + * + *
+   * Optional.
+   * Employer filter specifies employers of profiles to match on.
+   * If an employer filter isn't specified, profiles with any employers are
+   * retrieved.
+   * If multiple employer filters are specified, profiles with any matching
+   * employers are retrieved.
+   * If
+   * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+   * is specified, the result won't contain profiles that match the employers.
+   * For example, search for profiles that have working experience at "Google
+   * LLC".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public java.util.List + getEmployerFiltersOrBuilderList() { + return employerFilters_; + } + /** + * + * + *
+   * Optional.
+   * Employer filter specifies employers of profiles to match on.
+   * If an employer filter isn't specified, profiles with any employers are
+   * retrieved.
+   * If multiple employer filters are specified, profiles with any matching
+   * employers are retrieved.
+   * If
+   * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+   * is specified, the result won't contain profiles that match the employers.
+   * For example, search for profiles that have working experience at "Google
+   * LLC".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public int getEmployerFiltersCount() { + return employerFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * Employer filter specifies employers of profiles to match on.
+   * If an employer filter isn't specified, profiles with any employers are
+   * retrieved.
+   * If multiple employer filters are specified, profiles with any matching
+   * employers are retrieved.
+   * If
+   * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+   * is specified, the result won't contain profiles that match the employers.
+   * For example, search for profiles that have working experience at "Google
+   * LLC".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public com.google.cloud.talent.v4beta1.EmployerFilter getEmployerFilters(int index) { + return employerFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * Employer filter specifies employers of profiles to match on.
+   * If an employer filter isn't specified, profiles with any employers are
+   * retrieved.
+   * If multiple employer filters are specified, profiles with any matching
+   * employers are retrieved.
+   * If
+   * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+   * is specified, the result won't contain profiles that match the employers.
+   * For example, search for profiles that have working experience at "Google
+   * LLC".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public com.google.cloud.talent.v4beta1.EmployerFilterOrBuilder getEmployerFiltersOrBuilder( + int index) { + return employerFilters_.get(index); + } + + public static final int EDUCATION_FILTERS_FIELD_NUMBER = 5; + private java.util.List educationFilters_; + /** + * + * + *
+   * Optional.
+   * Education filter specifies education of profiles to match on.
+   * If an education filter isn't specified, profiles with any education are
+   * retrieved.
+   * If multiple education filters are specified, profiles that match any
+   * education filters are retrieved.
+   * If
+   * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+   * is specified, the result won't contain profiles that match the educations.
+   * For example, search for profiles with a master degree.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public java.util.List getEducationFiltersList() { + return educationFilters_; + } + /** + * + * + *
+   * Optional.
+   * Education filter specifies education of profiles to match on.
+   * If an education filter isn't specified, profiles with any education are
+   * retrieved.
+   * If multiple education filters are specified, profiles that match any
+   * education filters are retrieved.
+   * If
+   * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+   * is specified, the result won't contain profiles that match the educations.
+   * For example, search for profiles with a master degree.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public java.util.List + getEducationFiltersOrBuilderList() { + return educationFilters_; + } + /** + * + * + *
+   * Optional.
+   * Education filter specifies education of profiles to match on.
+   * If an education filter isn't specified, profiles with any education are
+   * retrieved.
+   * If multiple education filters are specified, profiles that match any
+   * education filters are retrieved.
+   * If
+   * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+   * is specified, the result won't contain profiles that match the educations.
+   * For example, search for profiles with a master degree.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public int getEducationFiltersCount() { + return educationFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * Education filter specifies education of profiles to match on.
+   * If an education filter isn't specified, profiles with any education are
+   * retrieved.
+   * If multiple education filters are specified, profiles that match any
+   * education filters are retrieved.
+   * If
+   * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+   * is specified, the result won't contain profiles that match the educations.
+   * For example, search for profiles with a master degree.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public com.google.cloud.talent.v4beta1.EducationFilter getEducationFilters(int index) { + return educationFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * Education filter specifies education of profiles to match on.
+   * If an education filter isn't specified, profiles with any education are
+   * retrieved.
+   * If multiple education filters are specified, profiles that match any
+   * education filters are retrieved.
+   * If
+   * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+   * is specified, the result won't contain profiles that match the educations.
+   * For example, search for profiles with a master degree.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public com.google.cloud.talent.v4beta1.EducationFilterOrBuilder getEducationFiltersOrBuilder( + int index) { + return educationFilters_.get(index); + } + + public static final int SKILL_FILTERS_FIELD_NUMBER = 6; + private java.util.List skillFilters_; + /** + * + * + *
+   * Optional.
+   * Skill filter specifies skill of profiles to match on.
+   * If a skill filter isn't specified, profiles with any skills are retrieved.
+   * If multiple skill filters are specified, profiles that match any skill
+   * filters are retrieved.
+   * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+   * is specified, the result won't contain profiles that match the skills.
+   * For example, search for profiles that have "Java" and "Python" in skill
+   * list.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public java.util.List getSkillFiltersList() { + return skillFilters_; + } + /** + * + * + *
+   * Optional.
+   * Skill filter specifies skill of profiles to match on.
+   * If a skill filter isn't specified, profiles with any skills are retrieved.
+   * If multiple skill filters are specified, profiles that match any skill
+   * filters are retrieved.
+   * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+   * is specified, the result won't contain profiles that match the skills.
+   * For example, search for profiles that have "Java" and "Python" in skill
+   * list.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public java.util.List + getSkillFiltersOrBuilderList() { + return skillFilters_; + } + /** + * + * + *
+   * Optional.
+   * Skill filter specifies skill of profiles to match on.
+   * If a skill filter isn't specified, profiles with any skills are retrieved.
+   * If multiple skill filters are specified, profiles that match any skill
+   * filters are retrieved.
+   * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+   * is specified, the result won't contain profiles that match the skills.
+   * For example, search for profiles that have "Java" and "Python" in skill
+   * list.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public int getSkillFiltersCount() { + return skillFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * Skill filter specifies skill of profiles to match on.
+   * If a skill filter isn't specified, profiles with any skills are retrieved.
+   * If multiple skill filters are specified, profiles that match any skill
+   * filters are retrieved.
+   * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+   * is specified, the result won't contain profiles that match the skills.
+   * For example, search for profiles that have "Java" and "Python" in skill
+   * list.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public com.google.cloud.talent.v4beta1.SkillFilter getSkillFilters(int index) { + return skillFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * Skill filter specifies skill of profiles to match on.
+   * If a skill filter isn't specified, profiles with any skills are retrieved.
+   * If multiple skill filters are specified, profiles that match any skill
+   * filters are retrieved.
+   * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+   * is specified, the result won't contain profiles that match the skills.
+   * For example, search for profiles that have "Java" and "Python" in skill
+   * list.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public com.google.cloud.talent.v4beta1.SkillFilterOrBuilder getSkillFiltersOrBuilder(int index) { + return skillFilters_.get(index); + } + + public static final int WORK_EXPERIENCE_FILTER_FIELD_NUMBER = 7; + private java.util.List + workExperienceFilter_; + /** + * + * + *
+   * Optional.
+   * Work experience filter specifies the total working experience of profiles
+   * to match on.
+   * If a work experience filter isn't specified, profiles with any
+   * professional experience are retrieved.
+   * If multiple work experience filters are specified, profiles that match any
+   * work experience filters are retrieved.
+   * For example, search for profiles with 10 years of work experience.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public java.util.List + getWorkExperienceFilterList() { + return workExperienceFilter_; + } + /** + * + * + *
+   * Optional.
+   * Work experience filter specifies the total working experience of profiles
+   * to match on.
+   * If a work experience filter isn't specified, profiles with any
+   * professional experience are retrieved.
+   * If multiple work experience filters are specified, profiles that match any
+   * work experience filters are retrieved.
+   * For example, search for profiles with 10 years of work experience.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public java.util.List + getWorkExperienceFilterOrBuilderList() { + return workExperienceFilter_; + } + /** + * + * + *
+   * Optional.
+   * Work experience filter specifies the total working experience of profiles
+   * to match on.
+   * If a work experience filter isn't specified, profiles with any
+   * professional experience are retrieved.
+   * If multiple work experience filters are specified, profiles that match any
+   * work experience filters are retrieved.
+   * For example, search for profiles with 10 years of work experience.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public int getWorkExperienceFilterCount() { + return workExperienceFilter_.size(); + } + /** + * + * + *
+   * Optional.
+   * Work experience filter specifies the total working experience of profiles
+   * to match on.
+   * If a work experience filter isn't specified, profiles with any
+   * professional experience are retrieved.
+   * If multiple work experience filters are specified, profiles that match any
+   * work experience filters are retrieved.
+   * For example, search for profiles with 10 years of work experience.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public com.google.cloud.talent.v4beta1.WorkExperienceFilter getWorkExperienceFilter(int index) { + return workExperienceFilter_.get(index); + } + /** + * + * + *
+   * Optional.
+   * Work experience filter specifies the total working experience of profiles
+   * to match on.
+   * If a work experience filter isn't specified, profiles with any
+   * professional experience are retrieved.
+   * If multiple work experience filters are specified, profiles that match any
+   * work experience filters are retrieved.
+   * For example, search for profiles with 10 years of work experience.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public com.google.cloud.talent.v4beta1.WorkExperienceFilterOrBuilder + getWorkExperienceFilterOrBuilder(int index) { + return workExperienceFilter_.get(index); + } + + public static final int TIME_FILTERS_FIELD_NUMBER = 8; + private java.util.List timeFilters_; + /** + * + * + *
+   * Optional.
+   * Time filter specifies the create/update timestamp of the profiles to match
+   * on.
+   * For example, search for profiles created since "2018-1-1".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public java.util.List getTimeFiltersList() { + return timeFilters_; + } + /** + * + * + *
+   * Optional.
+   * Time filter specifies the create/update timestamp of the profiles to match
+   * on.
+   * For example, search for profiles created since "2018-1-1".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public java.util.List + getTimeFiltersOrBuilderList() { + return timeFilters_; + } + /** + * + * + *
+   * Optional.
+   * Time filter specifies the create/update timestamp of the profiles to match
+   * on.
+   * For example, search for profiles created since "2018-1-1".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public int getTimeFiltersCount() { + return timeFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * Time filter specifies the create/update timestamp of the profiles to match
+   * on.
+   * For example, search for profiles created since "2018-1-1".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public com.google.cloud.talent.v4beta1.TimeFilter getTimeFilters(int index) { + return timeFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * Time filter specifies the create/update timestamp of the profiles to match
+   * on.
+   * For example, search for profiles created since "2018-1-1".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public com.google.cloud.talent.v4beta1.TimeFilterOrBuilder getTimeFiltersOrBuilder(int index) { + return timeFilters_.get(index); + } + + public static final int HIRABLE_FILTER_FIELD_NUMBER = 9; + private com.google.protobuf.BoolValue hirableFilter_; + /** + * + * + *
+   * Optional.
+   * The hirable filter specifies the profile's hirable status to match on.
+   * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + public boolean hasHirableFilter() { + return hirableFilter_ != null; + } + /** + * + * + *
+   * Optional.
+   * The hirable filter specifies the profile's hirable status to match on.
+   * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + public com.google.protobuf.BoolValue getHirableFilter() { + return hirableFilter_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : hirableFilter_; + } + /** + * + * + *
+   * Optional.
+   * The hirable filter specifies the profile's hirable status to match on.
+   * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + public com.google.protobuf.BoolValueOrBuilder getHirableFilterOrBuilder() { + return getHirableFilter(); + } + + public static final int APPLICATION_DATE_FILTERS_FIELD_NUMBER = 10; + private java.util.List + applicationDateFilters_; + /** + * + * + *
+   * Optional.
+   * The application date filters specify application date ranges to match on.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public java.util.List + getApplicationDateFiltersList() { + return applicationDateFilters_; + } + /** + * + * + *
+   * Optional.
+   * The application date filters specify application date ranges to match on.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public java.util.List + getApplicationDateFiltersOrBuilderList() { + return applicationDateFilters_; + } + /** + * + * + *
+   * Optional.
+   * The application date filters specify application date ranges to match on.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public int getApplicationDateFiltersCount() { + return applicationDateFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * The application date filters specify application date ranges to match on.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationDateFilter getApplicationDateFilters( + int index) { + return applicationDateFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The application date filters specify application date ranges to match on.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationDateFilterOrBuilder + getApplicationDateFiltersOrBuilder(int index) { + return applicationDateFilters_.get(index); + } + + public static final int APPLICATION_OUTCOME_REASON_FILTERS_FIELD_NUMBER = 11; + private java.util.List + applicationOutcomeReasonFilters_; + /** + * + * + *
+   * Optional.
+   * The application outcome reason filters specify the reasons for outcome of
+   * the job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public java.util.List + getApplicationOutcomeReasonFiltersList() { + return applicationOutcomeReasonFilters_; + } + /** + * + * + *
+   * Optional.
+   * The application outcome reason filters specify the reasons for outcome of
+   * the job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public java.util.List< + ? extends com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder> + getApplicationOutcomeReasonFiltersOrBuilderList() { + return applicationOutcomeReasonFilters_; + } + /** + * + * + *
+   * Optional.
+   * The application outcome reason filters specify the reasons for outcome of
+   * the job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public int getApplicationOutcomeReasonFiltersCount() { + return applicationOutcomeReasonFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * The application outcome reason filters specify the reasons for outcome of
+   * the job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter + getApplicationOutcomeReasonFilters(int index) { + return applicationOutcomeReasonFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The application outcome reason filters specify the reasons for outcome of
+   * the job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder + getApplicationOutcomeReasonFiltersOrBuilder(int index) { + return applicationOutcomeReasonFilters_.get(index); + } + + public static final int APPLICATION_LAST_STAGE_FILTERS_FIELD_NUMBER = 12; + private java.util.List + applicationLastStageFilters_; + /** + * + * + *
+   * Optional.
+   * The application last stage filters specify the last stage of job
+   * application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public java.util.List + getApplicationLastStageFiltersList() { + return applicationLastStageFilters_; + } + /** + * + * + *
+   * Optional.
+   * The application last stage filters specify the last stage of job
+   * application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public java.util.List< + ? extends com.google.cloud.talent.v4beta1.ApplicationLastStageFilterOrBuilder> + getApplicationLastStageFiltersOrBuilderList() { + return applicationLastStageFilters_; + } + /** + * + * + *
+   * Optional.
+   * The application last stage filters specify the last stage of job
+   * application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public int getApplicationLastStageFiltersCount() { + return applicationLastStageFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * The application last stage filters specify the last stage of job
+   * application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationLastStageFilter getApplicationLastStageFilters( + int index) { + return applicationLastStageFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The application last stage filters specify the last stage of job
+   * application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationLastStageFilterOrBuilder + getApplicationLastStageFiltersOrBuilder(int index) { + return applicationLastStageFilters_.get(index); + } + + public static final int APPLICATION_JOB_FILTERS_FIELD_NUMBER = 13; + private java.util.List + applicationJobFilters_; + /** + * + * + *
+   * Optional.
+   * The application job filters specify the job applied for in the application.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public java.util.List + getApplicationJobFiltersList() { + return applicationJobFilters_; + } + /** + * + * + *
+   * Optional.
+   * The application job filters specify the job applied for in the application.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public java.util.List + getApplicationJobFiltersOrBuilderList() { + return applicationJobFilters_; + } + /** + * + * + *
+   * Optional.
+   * The application job filters specify the job applied for in the application.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public int getApplicationJobFiltersCount() { + return applicationJobFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * The application job filters specify the job applied for in the application.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationJobFilter getApplicationJobFilters(int index) { + return applicationJobFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The application job filters specify the job applied for in the application.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationJobFilterOrBuilder + getApplicationJobFiltersOrBuilder(int index) { + return applicationJobFilters_.get(index); + } + + public static final int APPLICATION_STATUS_FILTERS_FIELD_NUMBER = 14; + private java.util.List + applicationStatusFilters_; + /** + * + * + *
+   * Optional.
+   * The application status filters specify the status of job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public java.util.List + getApplicationStatusFiltersList() { + return applicationStatusFilters_; + } + /** + * + * + *
+   * Optional.
+   * The application status filters specify the status of job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public java.util.List + getApplicationStatusFiltersOrBuilderList() { + return applicationStatusFilters_; + } + /** + * + * + *
+   * Optional.
+   * The application status filters specify the status of job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public int getApplicationStatusFiltersCount() { + return applicationStatusFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * The application status filters specify the status of job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationStatusFilter getApplicationStatusFilters( + int index) { + return applicationStatusFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The application status filters specify the status of job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationStatusFilterOrBuilder + getApplicationStatusFiltersOrBuilder(int index) { + return applicationStatusFilters_.get(index); + } + + public static final int CUSTOM_FIELD_FILTER_FIELD_NUMBER = 15; + private volatile java.lang.Object customFieldFilter_; + /** + * + * + *
+   * Optional.
+   * This filter specifies a structured syntax to match against the
+   * [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes]
+   * that are marked as `filterable`.
+   * The syntax for this expression is a subset of Google SQL syntax.
+   * Supported operators are: =, != where the left of the operator is a custom
+   * field key and the right of the operator is a string (surrounded by quotes)
+   * value.
+   * Supported functions are LOWER(<field_name>) to
+   * perform case insensitive match and EMPTY(<field_name>) to filter on the
+   * existence of a key.
+   * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+   * nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be
+   * a maximum of 50 comparisons/functions in the expression. The expression
+   * must be < 2000 characters in length.
+   * Sample Query:
+   * (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1))
+   * 
+ * + * string custom_field_filter = 15; + */ + public java.lang.String getCustomFieldFilter() { + java.lang.Object ref = customFieldFilter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customFieldFilter_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * This filter specifies a structured syntax to match against the
+   * [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes]
+   * that are marked as `filterable`.
+   * The syntax for this expression is a subset of Google SQL syntax.
+   * Supported operators are: =, != where the left of the operator is a custom
+   * field key and the right of the operator is a string (surrounded by quotes)
+   * value.
+   * Supported functions are LOWER(<field_name>) to
+   * perform case insensitive match and EMPTY(<field_name>) to filter on the
+   * existence of a key.
+   * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+   * nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be
+   * a maximum of 50 comparisons/functions in the expression. The expression
+   * must be < 2000 characters in length.
+   * Sample Query:
+   * (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1))
+   * 
+ * + * string custom_field_filter = 15; + */ + public com.google.protobuf.ByteString getCustomFieldFilterBytes() { + java.lang.Object ref = customFieldFilter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customFieldFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getQueryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); + } + for (int i = 0; i < locationFilters_.size(); i++) { + output.writeMessage(2, locationFilters_.get(i)); + } + for (int i = 0; i < jobTitleFilters_.size(); i++) { + output.writeMessage(3, jobTitleFilters_.get(i)); + } + for (int i = 0; i < employerFilters_.size(); i++) { + output.writeMessage(4, employerFilters_.get(i)); + } + for (int i = 0; i < educationFilters_.size(); i++) { + output.writeMessage(5, educationFilters_.get(i)); + } + for (int i = 0; i < skillFilters_.size(); i++) { + output.writeMessage(6, skillFilters_.get(i)); + } + for (int i = 0; i < workExperienceFilter_.size(); i++) { + output.writeMessage(7, workExperienceFilter_.get(i)); + } + for (int i = 0; i < timeFilters_.size(); i++) { + output.writeMessage(8, timeFilters_.get(i)); + } + if (hirableFilter_ != null) { + output.writeMessage(9, getHirableFilter()); + } + for (int i = 0; i < applicationDateFilters_.size(); i++) { + output.writeMessage(10, applicationDateFilters_.get(i)); + } + for (int i = 0; i < applicationOutcomeReasonFilters_.size(); i++) { + output.writeMessage(11, applicationOutcomeReasonFilters_.get(i)); + } + for (int i = 0; i < applicationLastStageFilters_.size(); i++) { + output.writeMessage(12, applicationLastStageFilters_.get(i)); + } + for (int i = 0; i < applicationJobFilters_.size(); i++) { + output.writeMessage(13, applicationJobFilters_.get(i)); + } + for (int i = 0; i < applicationStatusFilters_.size(); i++) { + output.writeMessage(14, applicationStatusFilters_.get(i)); + } + if (!getCustomFieldFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, customFieldFilter_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getQueryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); + } + for (int i = 0; i < locationFilters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, locationFilters_.get(i)); + } + for (int i = 0; i < jobTitleFilters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, jobTitleFilters_.get(i)); + } + for (int i = 0; i < employerFilters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, employerFilters_.get(i)); + } + for (int i = 0; i < educationFilters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, educationFilters_.get(i)); + } + for (int i = 0; i < skillFilters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, skillFilters_.get(i)); + } + for (int i = 0; i < workExperienceFilter_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, workExperienceFilter_.get(i)); + } + for (int i = 0; i < timeFilters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, timeFilters_.get(i)); + } + if (hirableFilter_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getHirableFilter()); + } + for (int i = 0; i < applicationDateFilters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, applicationDateFilters_.get(i)); + } + for (int i = 0; i < applicationOutcomeReasonFilters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, applicationOutcomeReasonFilters_.get(i)); + } + for (int i = 0; i < applicationLastStageFilters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, applicationLastStageFilters_.get(i)); + } + for (int i = 0; i < applicationJobFilters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, applicationJobFilters_.get(i)); + } + for (int i = 0; i < applicationStatusFilters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, applicationStatusFilters_.get(i)); + } + if (!getCustomFieldFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, customFieldFilter_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ProfileQuery)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ProfileQuery other = + (com.google.cloud.talent.v4beta1.ProfileQuery) obj; + + boolean result = true; + result = result && getQuery().equals(other.getQuery()); + result = result && getLocationFiltersList().equals(other.getLocationFiltersList()); + result = result && getJobTitleFiltersList().equals(other.getJobTitleFiltersList()); + result = result && getEmployerFiltersList().equals(other.getEmployerFiltersList()); + result = result && getEducationFiltersList().equals(other.getEducationFiltersList()); + result = result && getSkillFiltersList().equals(other.getSkillFiltersList()); + result = result && getWorkExperienceFilterList().equals(other.getWorkExperienceFilterList()); + result = result && getTimeFiltersList().equals(other.getTimeFiltersList()); + result = result && (hasHirableFilter() == other.hasHirableFilter()); + if (hasHirableFilter()) { + result = result && getHirableFilter().equals(other.getHirableFilter()); + } + result = + result && getApplicationDateFiltersList().equals(other.getApplicationDateFiltersList()); + result = + result + && getApplicationOutcomeReasonFiltersList() + .equals(other.getApplicationOutcomeReasonFiltersList()); + result = + result + && getApplicationLastStageFiltersList() + .equals(other.getApplicationLastStageFiltersList()); + result = result && getApplicationJobFiltersList().equals(other.getApplicationJobFiltersList()); + result = + result && getApplicationStatusFiltersList().equals(other.getApplicationStatusFiltersList()); + result = result && getCustomFieldFilter().equals(other.getCustomFieldFilter()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + if (getLocationFiltersCount() > 0) { + hash = (37 * hash) + LOCATION_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getLocationFiltersList().hashCode(); + } + if (getJobTitleFiltersCount() > 0) { + hash = (37 * hash) + JOB_TITLE_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getJobTitleFiltersList().hashCode(); + } + if (getEmployerFiltersCount() > 0) { + hash = (37 * hash) + EMPLOYER_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getEmployerFiltersList().hashCode(); + } + if (getEducationFiltersCount() > 0) { + hash = (37 * hash) + EDUCATION_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getEducationFiltersList().hashCode(); + } + if (getSkillFiltersCount() > 0) { + hash = (37 * hash) + SKILL_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getSkillFiltersList().hashCode(); + } + if (getWorkExperienceFilterCount() > 0) { + hash = (37 * hash) + WORK_EXPERIENCE_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getWorkExperienceFilterList().hashCode(); + } + if (getTimeFiltersCount() > 0) { + hash = (37 * hash) + TIME_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getTimeFiltersList().hashCode(); + } + if (hasHirableFilter()) { + hash = (37 * hash) + HIRABLE_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getHirableFilter().hashCode(); + } + if (getApplicationDateFiltersCount() > 0) { + hash = (37 * hash) + APPLICATION_DATE_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getApplicationDateFiltersList().hashCode(); + } + if (getApplicationOutcomeReasonFiltersCount() > 0) { + hash = (37 * hash) + APPLICATION_OUTCOME_REASON_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getApplicationOutcomeReasonFiltersList().hashCode(); + } + if (getApplicationLastStageFiltersCount() > 0) { + hash = (37 * hash) + APPLICATION_LAST_STAGE_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getApplicationLastStageFiltersList().hashCode(); + } + if (getApplicationJobFiltersCount() > 0) { + hash = (37 * hash) + APPLICATION_JOB_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getApplicationJobFiltersList().hashCode(); + } + if (getApplicationStatusFiltersCount() > 0) { + hash = (37 * hash) + APPLICATION_STATUS_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getApplicationStatusFiltersList().hashCode(); + } + hash = (37 * hash) + CUSTOM_FIELD_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getCustomFieldFilter().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.ProfileQuery prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Filters to apply when performing the search query.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ProfileQuery} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ProfileQuery) + com.google.cloud.talent.v4beta1.ProfileQueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ProfileQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ProfileQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ProfileQuery.class, + com.google.cloud.talent.v4beta1.ProfileQuery.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ProfileQuery.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLocationFiltersFieldBuilder(); + getJobTitleFiltersFieldBuilder(); + getEmployerFiltersFieldBuilder(); + getEducationFiltersFieldBuilder(); + getSkillFiltersFieldBuilder(); + getWorkExperienceFilterFieldBuilder(); + getTimeFiltersFieldBuilder(); + getApplicationDateFiltersFieldBuilder(); + getApplicationOutcomeReasonFiltersFieldBuilder(); + getApplicationLastStageFiltersFieldBuilder(); + getApplicationJobFiltersFieldBuilder(); + getApplicationStatusFiltersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + query_ = ""; + + if (locationFiltersBuilder_ == null) { + locationFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + locationFiltersBuilder_.clear(); + } + if (jobTitleFiltersBuilder_ == null) { + jobTitleFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + jobTitleFiltersBuilder_.clear(); + } + if (employerFiltersBuilder_ == null) { + employerFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + employerFiltersBuilder_.clear(); + } + if (educationFiltersBuilder_ == null) { + educationFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + educationFiltersBuilder_.clear(); + } + if (skillFiltersBuilder_ == null) { + skillFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + skillFiltersBuilder_.clear(); + } + if (workExperienceFilterBuilder_ == null) { + workExperienceFilter_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + } else { + workExperienceFilterBuilder_.clear(); + } + if (timeFiltersBuilder_ == null) { + timeFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + } else { + timeFiltersBuilder_.clear(); + } + if (hirableFilterBuilder_ == null) { + hirableFilter_ = null; + } else { + hirableFilter_ = null; + hirableFilterBuilder_ = null; + } + if (applicationDateFiltersBuilder_ == null) { + applicationDateFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + } else { + applicationDateFiltersBuilder_.clear(); + } + if (applicationOutcomeReasonFiltersBuilder_ == null) { + applicationOutcomeReasonFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + } else { + applicationOutcomeReasonFiltersBuilder_.clear(); + } + if (applicationLastStageFiltersBuilder_ == null) { + applicationLastStageFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + } else { + applicationLastStageFiltersBuilder_.clear(); + } + if (applicationJobFiltersBuilder_ == null) { + applicationJobFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + } else { + applicationJobFiltersBuilder_.clear(); + } + if (applicationStatusFiltersBuilder_ == null) { + applicationStatusFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + } else { + applicationStatusFiltersBuilder_.clear(); + } + customFieldFilter_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ProfileQuery_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ProfileQuery getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ProfileQuery.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ProfileQuery build() { + com.google.cloud.talent.v4beta1.ProfileQuery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ProfileQuery buildPartial() { + com.google.cloud.talent.v4beta1.ProfileQuery result = + new com.google.cloud.talent.v4beta1.ProfileQuery(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.query_ = query_; + if (locationFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + locationFilters_ = java.util.Collections.unmodifiableList(locationFilters_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.locationFilters_ = locationFilters_; + } else { + result.locationFilters_ = locationFiltersBuilder_.build(); + } + if (jobTitleFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + jobTitleFilters_ = java.util.Collections.unmodifiableList(jobTitleFilters_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.jobTitleFilters_ = jobTitleFilters_; + } else { + result.jobTitleFilters_ = jobTitleFiltersBuilder_.build(); + } + if (employerFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + employerFilters_ = java.util.Collections.unmodifiableList(employerFilters_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.employerFilters_ = employerFilters_; + } else { + result.employerFilters_ = employerFiltersBuilder_.build(); + } + if (educationFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { + educationFilters_ = java.util.Collections.unmodifiableList(educationFilters_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.educationFilters_ = educationFilters_; + } else { + result.educationFilters_ = educationFiltersBuilder_.build(); + } + if (skillFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { + skillFilters_ = java.util.Collections.unmodifiableList(skillFilters_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.skillFilters_ = skillFilters_; + } else { + result.skillFilters_ = skillFiltersBuilder_.build(); + } + if (workExperienceFilterBuilder_ == null) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { + workExperienceFilter_ = java.util.Collections.unmodifiableList(workExperienceFilter_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.workExperienceFilter_ = workExperienceFilter_; + } else { + result.workExperienceFilter_ = workExperienceFilterBuilder_.build(); + } + if (timeFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000080) == 0x00000080)) { + timeFilters_ = java.util.Collections.unmodifiableList(timeFilters_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.timeFilters_ = timeFilters_; + } else { + result.timeFilters_ = timeFiltersBuilder_.build(); + } + if (hirableFilterBuilder_ == null) { + result.hirableFilter_ = hirableFilter_; + } else { + result.hirableFilter_ = hirableFilterBuilder_.build(); + } + if (applicationDateFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000200) == 0x00000200)) { + applicationDateFilters_ = java.util.Collections.unmodifiableList(applicationDateFilters_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.applicationDateFilters_ = applicationDateFilters_; + } else { + result.applicationDateFilters_ = applicationDateFiltersBuilder_.build(); + } + if (applicationOutcomeReasonFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000400) == 0x00000400)) { + applicationOutcomeReasonFilters_ = + java.util.Collections.unmodifiableList(applicationOutcomeReasonFilters_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.applicationOutcomeReasonFilters_ = applicationOutcomeReasonFilters_; + } else { + result.applicationOutcomeReasonFilters_ = applicationOutcomeReasonFiltersBuilder_.build(); + } + if (applicationLastStageFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000800) == 0x00000800)) { + applicationLastStageFilters_ = + java.util.Collections.unmodifiableList(applicationLastStageFilters_); + bitField0_ = (bitField0_ & ~0x00000800); + } + result.applicationLastStageFilters_ = applicationLastStageFilters_; + } else { + result.applicationLastStageFilters_ = applicationLastStageFiltersBuilder_.build(); + } + if (applicationJobFiltersBuilder_ == null) { + if (((bitField0_ & 0x00001000) == 0x00001000)) { + applicationJobFilters_ = java.util.Collections.unmodifiableList(applicationJobFilters_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.applicationJobFilters_ = applicationJobFilters_; + } else { + result.applicationJobFilters_ = applicationJobFiltersBuilder_.build(); + } + if (applicationStatusFiltersBuilder_ == null) { + if (((bitField0_ & 0x00002000) == 0x00002000)) { + applicationStatusFilters_ = + java.util.Collections.unmodifiableList(applicationStatusFilters_); + bitField0_ = (bitField0_ & ~0x00002000); + } + result.applicationStatusFilters_ = applicationStatusFilters_; + } else { + result.applicationStatusFilters_ = applicationStatusFiltersBuilder_.build(); + } + result.customFieldFilter_ = customFieldFilter_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ProfileQuery) { + return mergeFrom((com.google.cloud.talent.v4beta1.ProfileQuery) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ProfileQuery other) { + if (other == com.google.cloud.talent.v4beta1.ProfileQuery.getDefaultInstance()) return this; + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + onChanged(); + } + if (locationFiltersBuilder_ == null) { + if (!other.locationFilters_.isEmpty()) { + if (locationFilters_.isEmpty()) { + locationFilters_ = other.locationFilters_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureLocationFiltersIsMutable(); + locationFilters_.addAll(other.locationFilters_); + } + onChanged(); + } + } else { + if (!other.locationFilters_.isEmpty()) { + if (locationFiltersBuilder_.isEmpty()) { + locationFiltersBuilder_.dispose(); + locationFiltersBuilder_ = null; + locationFilters_ = other.locationFilters_; + bitField0_ = (bitField0_ & ~0x00000002); + locationFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLocationFiltersFieldBuilder() + : null; + } else { + locationFiltersBuilder_.addAllMessages(other.locationFilters_); + } + } + } + if (jobTitleFiltersBuilder_ == null) { + if (!other.jobTitleFilters_.isEmpty()) { + if (jobTitleFilters_.isEmpty()) { + jobTitleFilters_ = other.jobTitleFilters_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureJobTitleFiltersIsMutable(); + jobTitleFilters_.addAll(other.jobTitleFilters_); + } + onChanged(); + } + } else { + if (!other.jobTitleFilters_.isEmpty()) { + if (jobTitleFiltersBuilder_.isEmpty()) { + jobTitleFiltersBuilder_.dispose(); + jobTitleFiltersBuilder_ = null; + jobTitleFilters_ = other.jobTitleFilters_; + bitField0_ = (bitField0_ & ~0x00000004); + jobTitleFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getJobTitleFiltersFieldBuilder() + : null; + } else { + jobTitleFiltersBuilder_.addAllMessages(other.jobTitleFilters_); + } + } + } + if (employerFiltersBuilder_ == null) { + if (!other.employerFilters_.isEmpty()) { + if (employerFilters_.isEmpty()) { + employerFilters_ = other.employerFilters_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureEmployerFiltersIsMutable(); + employerFilters_.addAll(other.employerFilters_); + } + onChanged(); + } + } else { + if (!other.employerFilters_.isEmpty()) { + if (employerFiltersBuilder_.isEmpty()) { + employerFiltersBuilder_.dispose(); + employerFiltersBuilder_ = null; + employerFilters_ = other.employerFilters_; + bitField0_ = (bitField0_ & ~0x00000008); + employerFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEmployerFiltersFieldBuilder() + : null; + } else { + employerFiltersBuilder_.addAllMessages(other.employerFilters_); + } + } + } + if (educationFiltersBuilder_ == null) { + if (!other.educationFilters_.isEmpty()) { + if (educationFilters_.isEmpty()) { + educationFilters_ = other.educationFilters_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureEducationFiltersIsMutable(); + educationFilters_.addAll(other.educationFilters_); + } + onChanged(); + } + } else { + if (!other.educationFilters_.isEmpty()) { + if (educationFiltersBuilder_.isEmpty()) { + educationFiltersBuilder_.dispose(); + educationFiltersBuilder_ = null; + educationFilters_ = other.educationFilters_; + bitField0_ = (bitField0_ & ~0x00000010); + educationFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEducationFiltersFieldBuilder() + : null; + } else { + educationFiltersBuilder_.addAllMessages(other.educationFilters_); + } + } + } + if (skillFiltersBuilder_ == null) { + if (!other.skillFilters_.isEmpty()) { + if (skillFilters_.isEmpty()) { + skillFilters_ = other.skillFilters_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureSkillFiltersIsMutable(); + skillFilters_.addAll(other.skillFilters_); + } + onChanged(); + } + } else { + if (!other.skillFilters_.isEmpty()) { + if (skillFiltersBuilder_.isEmpty()) { + skillFiltersBuilder_.dispose(); + skillFiltersBuilder_ = null; + skillFilters_ = other.skillFilters_; + bitField0_ = (bitField0_ & ~0x00000020); + skillFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSkillFiltersFieldBuilder() + : null; + } else { + skillFiltersBuilder_.addAllMessages(other.skillFilters_); + } + } + } + if (workExperienceFilterBuilder_ == null) { + if (!other.workExperienceFilter_.isEmpty()) { + if (workExperienceFilter_.isEmpty()) { + workExperienceFilter_ = other.workExperienceFilter_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureWorkExperienceFilterIsMutable(); + workExperienceFilter_.addAll(other.workExperienceFilter_); + } + onChanged(); + } + } else { + if (!other.workExperienceFilter_.isEmpty()) { + if (workExperienceFilterBuilder_.isEmpty()) { + workExperienceFilterBuilder_.dispose(); + workExperienceFilterBuilder_ = null; + workExperienceFilter_ = other.workExperienceFilter_; + bitField0_ = (bitField0_ & ~0x00000040); + workExperienceFilterBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWorkExperienceFilterFieldBuilder() + : null; + } else { + workExperienceFilterBuilder_.addAllMessages(other.workExperienceFilter_); + } + } + } + if (timeFiltersBuilder_ == null) { + if (!other.timeFilters_.isEmpty()) { + if (timeFilters_.isEmpty()) { + timeFilters_ = other.timeFilters_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureTimeFiltersIsMutable(); + timeFilters_.addAll(other.timeFilters_); + } + onChanged(); + } + } else { + if (!other.timeFilters_.isEmpty()) { + if (timeFiltersBuilder_.isEmpty()) { + timeFiltersBuilder_.dispose(); + timeFiltersBuilder_ = null; + timeFilters_ = other.timeFilters_; + bitField0_ = (bitField0_ & ~0x00000080); + timeFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTimeFiltersFieldBuilder() + : null; + } else { + timeFiltersBuilder_.addAllMessages(other.timeFilters_); + } + } + } + if (other.hasHirableFilter()) { + mergeHirableFilter(other.getHirableFilter()); + } + if (applicationDateFiltersBuilder_ == null) { + if (!other.applicationDateFilters_.isEmpty()) { + if (applicationDateFilters_.isEmpty()) { + applicationDateFilters_ = other.applicationDateFilters_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureApplicationDateFiltersIsMutable(); + applicationDateFilters_.addAll(other.applicationDateFilters_); + } + onChanged(); + } + } else { + if (!other.applicationDateFilters_.isEmpty()) { + if (applicationDateFiltersBuilder_.isEmpty()) { + applicationDateFiltersBuilder_.dispose(); + applicationDateFiltersBuilder_ = null; + applicationDateFilters_ = other.applicationDateFilters_; + bitField0_ = (bitField0_ & ~0x00000200); + applicationDateFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getApplicationDateFiltersFieldBuilder() + : null; + } else { + applicationDateFiltersBuilder_.addAllMessages(other.applicationDateFilters_); + } + } + } + if (applicationOutcomeReasonFiltersBuilder_ == null) { + if (!other.applicationOutcomeReasonFilters_.isEmpty()) { + if (applicationOutcomeReasonFilters_.isEmpty()) { + applicationOutcomeReasonFilters_ = other.applicationOutcomeReasonFilters_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureApplicationOutcomeReasonFiltersIsMutable(); + applicationOutcomeReasonFilters_.addAll(other.applicationOutcomeReasonFilters_); + } + onChanged(); + } + } else { + if (!other.applicationOutcomeReasonFilters_.isEmpty()) { + if (applicationOutcomeReasonFiltersBuilder_.isEmpty()) { + applicationOutcomeReasonFiltersBuilder_.dispose(); + applicationOutcomeReasonFiltersBuilder_ = null; + applicationOutcomeReasonFilters_ = other.applicationOutcomeReasonFilters_; + bitField0_ = (bitField0_ & ~0x00000400); + applicationOutcomeReasonFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getApplicationOutcomeReasonFiltersFieldBuilder() + : null; + } else { + applicationOutcomeReasonFiltersBuilder_.addAllMessages( + other.applicationOutcomeReasonFilters_); + } + } + } + if (applicationLastStageFiltersBuilder_ == null) { + if (!other.applicationLastStageFilters_.isEmpty()) { + if (applicationLastStageFilters_.isEmpty()) { + applicationLastStageFilters_ = other.applicationLastStageFilters_; + bitField0_ = (bitField0_ & ~0x00000800); + } else { + ensureApplicationLastStageFiltersIsMutable(); + applicationLastStageFilters_.addAll(other.applicationLastStageFilters_); + } + onChanged(); + } + } else { + if (!other.applicationLastStageFilters_.isEmpty()) { + if (applicationLastStageFiltersBuilder_.isEmpty()) { + applicationLastStageFiltersBuilder_.dispose(); + applicationLastStageFiltersBuilder_ = null; + applicationLastStageFilters_ = other.applicationLastStageFilters_; + bitField0_ = (bitField0_ & ~0x00000800); + applicationLastStageFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getApplicationLastStageFiltersFieldBuilder() + : null; + } else { + applicationLastStageFiltersBuilder_.addAllMessages(other.applicationLastStageFilters_); + } + } + } + if (applicationJobFiltersBuilder_ == null) { + if (!other.applicationJobFilters_.isEmpty()) { + if (applicationJobFilters_.isEmpty()) { + applicationJobFilters_ = other.applicationJobFilters_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureApplicationJobFiltersIsMutable(); + applicationJobFilters_.addAll(other.applicationJobFilters_); + } + onChanged(); + } + } else { + if (!other.applicationJobFilters_.isEmpty()) { + if (applicationJobFiltersBuilder_.isEmpty()) { + applicationJobFiltersBuilder_.dispose(); + applicationJobFiltersBuilder_ = null; + applicationJobFilters_ = other.applicationJobFilters_; + bitField0_ = (bitField0_ & ~0x00001000); + applicationJobFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getApplicationJobFiltersFieldBuilder() + : null; + } else { + applicationJobFiltersBuilder_.addAllMessages(other.applicationJobFilters_); + } + } + } + if (applicationStatusFiltersBuilder_ == null) { + if (!other.applicationStatusFilters_.isEmpty()) { + if (applicationStatusFilters_.isEmpty()) { + applicationStatusFilters_ = other.applicationStatusFilters_; + bitField0_ = (bitField0_ & ~0x00002000); + } else { + ensureApplicationStatusFiltersIsMutable(); + applicationStatusFilters_.addAll(other.applicationStatusFilters_); + } + onChanged(); + } + } else { + if (!other.applicationStatusFilters_.isEmpty()) { + if (applicationStatusFiltersBuilder_.isEmpty()) { + applicationStatusFiltersBuilder_.dispose(); + applicationStatusFiltersBuilder_ = null; + applicationStatusFilters_ = other.applicationStatusFilters_; + bitField0_ = (bitField0_ & ~0x00002000); + applicationStatusFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getApplicationStatusFiltersFieldBuilder() + : null; + } else { + applicationStatusFiltersBuilder_.addAllMessages(other.applicationStatusFilters_); + } + } + } + if (!other.getCustomFieldFilter().isEmpty()) { + customFieldFilter_ = other.customFieldFilter_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ProfileQuery parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.ProfileQuery) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object query_ = ""; + /** + * + * + *
+     * Optional.
+     * Keywords to match any text fields of profiles.
+     * For example, "software engineer in Palo Alto".
+     * 
+ * + * string query = 1; + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Keywords to match any text fields of profiles.
+     * For example, "software engineer in Palo Alto".
+     * 
+ * + * string query = 1; + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Keywords to match any text fields of profiles.
+     * For example, "software engineer in Palo Alto".
+     * 
+ * + * string query = 1; + */ + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + query_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Keywords to match any text fields of profiles.
+     * For example, "software engineer in Palo Alto".
+     * 
+ * + * string query = 1; + */ + public Builder clearQuery() { + + query_ = getDefaultInstance().getQuery(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Keywords to match any text fields of profiles.
+     * For example, "software engineer in Palo Alto".
+     * 
+ * + * string query = 1; + */ + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + query_ = value; + onChanged(); + return this; + } + + private java.util.List locationFilters_ = + java.util.Collections.emptyList(); + + private void ensureLocationFiltersIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + locationFilters_ = + new java.util.ArrayList( + locationFilters_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.LocationFilter, + com.google.cloud.talent.v4beta1.LocationFilter.Builder, + com.google.cloud.talent.v4beta1.LocationFilterOrBuilder> + locationFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public java.util.List getLocationFiltersList() { + if (locationFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(locationFilters_); + } else { + return locationFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public int getLocationFiltersCount() { + if (locationFiltersBuilder_ == null) { + return locationFilters_.size(); + } else { + return locationFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public com.google.cloud.talent.v4beta1.LocationFilter getLocationFilters(int index) { + if (locationFiltersBuilder_ == null) { + return locationFilters_.get(index); + } else { + return locationFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public Builder setLocationFilters( + int index, com.google.cloud.talent.v4beta1.LocationFilter value) { + if (locationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationFiltersIsMutable(); + locationFilters_.set(index, value); + onChanged(); + } else { + locationFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public Builder setLocationFilters( + int index, com.google.cloud.talent.v4beta1.LocationFilter.Builder builderForValue) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + locationFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public Builder addLocationFilters(com.google.cloud.talent.v4beta1.LocationFilter value) { + if (locationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationFiltersIsMutable(); + locationFilters_.add(value); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public Builder addLocationFilters( + int index, com.google.cloud.talent.v4beta1.LocationFilter value) { + if (locationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationFiltersIsMutable(); + locationFilters_.add(index, value); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public Builder addLocationFilters( + com.google.cloud.talent.v4beta1.LocationFilter.Builder builderForValue) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.add(builderForValue.build()); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public Builder addLocationFilters( + int index, com.google.cloud.talent.v4beta1.LocationFilter.Builder builderForValue) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public Builder addAllLocationFilters( + java.lang.Iterable values) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locationFilters_); + onChanged(); + } else { + locationFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public Builder clearLocationFilters() { + if (locationFiltersBuilder_ == null) { + locationFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + locationFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public Builder removeLocationFilters(int index) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.remove(index); + onChanged(); + } else { + locationFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public com.google.cloud.talent.v4beta1.LocationFilter.Builder getLocationFiltersBuilder( + int index) { + return getLocationFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public com.google.cloud.talent.v4beta1.LocationFilterOrBuilder getLocationFiltersOrBuilder( + int index) { + if (locationFiltersBuilder_ == null) { + return locationFilters_.get(index); + } else { + return locationFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public java.util.List + getLocationFiltersOrBuilderList() { + if (locationFiltersBuilder_ != null) { + return locationFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(locationFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public com.google.cloud.talent.v4beta1.LocationFilter.Builder addLocationFiltersBuilder() { + return getLocationFiltersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.LocationFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public com.google.cloud.talent.v4beta1.LocationFilter.Builder addLocationFiltersBuilder( + int index) { + return getLocationFiltersFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.LocationFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public java.util.List + getLocationFiltersBuilderList() { + return getLocationFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.LocationFilter, + com.google.cloud.talent.v4beta1.LocationFilter.Builder, + com.google.cloud.talent.v4beta1.LocationFilterOrBuilder> + getLocationFiltersFieldBuilder() { + if (locationFiltersBuilder_ == null) { + locationFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.LocationFilter, + com.google.cloud.talent.v4beta1.LocationFilter.Builder, + com.google.cloud.talent.v4beta1.LocationFilterOrBuilder>( + locationFilters_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + locationFilters_ = null; + } + return locationFiltersBuilder_; + } + + private java.util.List jobTitleFilters_ = + java.util.Collections.emptyList(); + + private void ensureJobTitleFiltersIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + jobTitleFilters_ = + new java.util.ArrayList( + jobTitleFilters_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobTitleFilter, + com.google.cloud.talent.v4beta1.JobTitleFilter.Builder, + com.google.cloud.talent.v4beta1.JobTitleFilterOrBuilder> + jobTitleFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public java.util.List getJobTitleFiltersList() { + if (jobTitleFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(jobTitleFilters_); + } else { + return jobTitleFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public int getJobTitleFiltersCount() { + if (jobTitleFiltersBuilder_ == null) { + return jobTitleFilters_.size(); + } else { + return jobTitleFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public com.google.cloud.talent.v4beta1.JobTitleFilter getJobTitleFilters(int index) { + if (jobTitleFiltersBuilder_ == null) { + return jobTitleFilters_.get(index); + } else { + return jobTitleFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public Builder setJobTitleFilters( + int index, com.google.cloud.talent.v4beta1.JobTitleFilter value) { + if (jobTitleFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobTitleFiltersIsMutable(); + jobTitleFilters_.set(index, value); + onChanged(); + } else { + jobTitleFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public Builder setJobTitleFilters( + int index, com.google.cloud.talent.v4beta1.JobTitleFilter.Builder builderForValue) { + if (jobTitleFiltersBuilder_ == null) { + ensureJobTitleFiltersIsMutable(); + jobTitleFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + jobTitleFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public Builder addJobTitleFilters(com.google.cloud.talent.v4beta1.JobTitleFilter value) { + if (jobTitleFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobTitleFiltersIsMutable(); + jobTitleFilters_.add(value); + onChanged(); + } else { + jobTitleFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public Builder addJobTitleFilters( + int index, com.google.cloud.talent.v4beta1.JobTitleFilter value) { + if (jobTitleFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobTitleFiltersIsMutable(); + jobTitleFilters_.add(index, value); + onChanged(); + } else { + jobTitleFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public Builder addJobTitleFilters( + com.google.cloud.talent.v4beta1.JobTitleFilter.Builder builderForValue) { + if (jobTitleFiltersBuilder_ == null) { + ensureJobTitleFiltersIsMutable(); + jobTitleFilters_.add(builderForValue.build()); + onChanged(); + } else { + jobTitleFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public Builder addJobTitleFilters( + int index, com.google.cloud.talent.v4beta1.JobTitleFilter.Builder builderForValue) { + if (jobTitleFiltersBuilder_ == null) { + ensureJobTitleFiltersIsMutable(); + jobTitleFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + jobTitleFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public Builder addAllJobTitleFilters( + java.lang.Iterable values) { + if (jobTitleFiltersBuilder_ == null) { + ensureJobTitleFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jobTitleFilters_); + onChanged(); + } else { + jobTitleFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public Builder clearJobTitleFilters() { + if (jobTitleFiltersBuilder_ == null) { + jobTitleFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + jobTitleFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public Builder removeJobTitleFilters(int index) { + if (jobTitleFiltersBuilder_ == null) { + ensureJobTitleFiltersIsMutable(); + jobTitleFilters_.remove(index); + onChanged(); + } else { + jobTitleFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public com.google.cloud.talent.v4beta1.JobTitleFilter.Builder getJobTitleFiltersBuilder( + int index) { + return getJobTitleFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public com.google.cloud.talent.v4beta1.JobTitleFilterOrBuilder getJobTitleFiltersOrBuilder( + int index) { + if (jobTitleFiltersBuilder_ == null) { + return jobTitleFilters_.get(index); + } else { + return jobTitleFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public java.util.List + getJobTitleFiltersOrBuilderList() { + if (jobTitleFiltersBuilder_ != null) { + return jobTitleFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(jobTitleFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public com.google.cloud.talent.v4beta1.JobTitleFilter.Builder addJobTitleFiltersBuilder() { + return getJobTitleFiltersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.JobTitleFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public com.google.cloud.talent.v4beta1.JobTitleFilter.Builder addJobTitleFiltersBuilder( + int index) { + return getJobTitleFiltersFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.JobTitleFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public java.util.List + getJobTitleFiltersBuilderList() { + return getJobTitleFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobTitleFilter, + com.google.cloud.talent.v4beta1.JobTitleFilter.Builder, + com.google.cloud.talent.v4beta1.JobTitleFilterOrBuilder> + getJobTitleFiltersFieldBuilder() { + if (jobTitleFiltersBuilder_ == null) { + jobTitleFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobTitleFilter, + com.google.cloud.talent.v4beta1.JobTitleFilter.Builder, + com.google.cloud.talent.v4beta1.JobTitleFilterOrBuilder>( + jobTitleFilters_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + jobTitleFilters_ = null; + } + return jobTitleFiltersBuilder_; + } + + private java.util.List employerFilters_ = + java.util.Collections.emptyList(); + + private void ensureEmployerFiltersIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + employerFilters_ = + new java.util.ArrayList( + employerFilters_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EmployerFilter, + com.google.cloud.talent.v4beta1.EmployerFilter.Builder, + com.google.cloud.talent.v4beta1.EmployerFilterOrBuilder> + employerFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public java.util.List getEmployerFiltersList() { + if (employerFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(employerFilters_); + } else { + return employerFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public int getEmployerFiltersCount() { + if (employerFiltersBuilder_ == null) { + return employerFilters_.size(); + } else { + return employerFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public com.google.cloud.talent.v4beta1.EmployerFilter getEmployerFilters(int index) { + if (employerFiltersBuilder_ == null) { + return employerFilters_.get(index); + } else { + return employerFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public Builder setEmployerFilters( + int index, com.google.cloud.talent.v4beta1.EmployerFilter value) { + if (employerFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmployerFiltersIsMutable(); + employerFilters_.set(index, value); + onChanged(); + } else { + employerFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public Builder setEmployerFilters( + int index, com.google.cloud.talent.v4beta1.EmployerFilter.Builder builderForValue) { + if (employerFiltersBuilder_ == null) { + ensureEmployerFiltersIsMutable(); + employerFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + employerFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public Builder addEmployerFilters(com.google.cloud.talent.v4beta1.EmployerFilter value) { + if (employerFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmployerFiltersIsMutable(); + employerFilters_.add(value); + onChanged(); + } else { + employerFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public Builder addEmployerFilters( + int index, com.google.cloud.talent.v4beta1.EmployerFilter value) { + if (employerFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmployerFiltersIsMutable(); + employerFilters_.add(index, value); + onChanged(); + } else { + employerFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public Builder addEmployerFilters( + com.google.cloud.talent.v4beta1.EmployerFilter.Builder builderForValue) { + if (employerFiltersBuilder_ == null) { + ensureEmployerFiltersIsMutable(); + employerFilters_.add(builderForValue.build()); + onChanged(); + } else { + employerFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public Builder addEmployerFilters( + int index, com.google.cloud.talent.v4beta1.EmployerFilter.Builder builderForValue) { + if (employerFiltersBuilder_ == null) { + ensureEmployerFiltersIsMutable(); + employerFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + employerFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public Builder addAllEmployerFilters( + java.lang.Iterable values) { + if (employerFiltersBuilder_ == null) { + ensureEmployerFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, employerFilters_); + onChanged(); + } else { + employerFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public Builder clearEmployerFilters() { + if (employerFiltersBuilder_ == null) { + employerFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + employerFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public Builder removeEmployerFilters(int index) { + if (employerFiltersBuilder_ == null) { + ensureEmployerFiltersIsMutable(); + employerFilters_.remove(index); + onChanged(); + } else { + employerFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public com.google.cloud.talent.v4beta1.EmployerFilter.Builder getEmployerFiltersBuilder( + int index) { + return getEmployerFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public com.google.cloud.talent.v4beta1.EmployerFilterOrBuilder getEmployerFiltersOrBuilder( + int index) { + if (employerFiltersBuilder_ == null) { + return employerFilters_.get(index); + } else { + return employerFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public java.util.List + getEmployerFiltersOrBuilderList() { + if (employerFiltersBuilder_ != null) { + return employerFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(employerFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public com.google.cloud.talent.v4beta1.EmployerFilter.Builder addEmployerFiltersBuilder() { + return getEmployerFiltersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.EmployerFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public com.google.cloud.talent.v4beta1.EmployerFilter.Builder addEmployerFiltersBuilder( + int index) { + return getEmployerFiltersFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.EmployerFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public java.util.List + getEmployerFiltersBuilderList() { + return getEmployerFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EmployerFilter, + com.google.cloud.talent.v4beta1.EmployerFilter.Builder, + com.google.cloud.talent.v4beta1.EmployerFilterOrBuilder> + getEmployerFiltersFieldBuilder() { + if (employerFiltersBuilder_ == null) { + employerFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EmployerFilter, + com.google.cloud.talent.v4beta1.EmployerFilter.Builder, + com.google.cloud.talent.v4beta1.EmployerFilterOrBuilder>( + employerFilters_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + employerFilters_ = null; + } + return employerFiltersBuilder_; + } + + private java.util.List educationFilters_ = + java.util.Collections.emptyList(); + + private void ensureEducationFiltersIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + educationFilters_ = + new java.util.ArrayList( + educationFilters_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EducationFilter, + com.google.cloud.talent.v4beta1.EducationFilter.Builder, + com.google.cloud.talent.v4beta1.EducationFilterOrBuilder> + educationFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public java.util.List + getEducationFiltersList() { + if (educationFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(educationFilters_); + } else { + return educationFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public int getEducationFiltersCount() { + if (educationFiltersBuilder_ == null) { + return educationFilters_.size(); + } else { + return educationFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public com.google.cloud.talent.v4beta1.EducationFilter getEducationFilters(int index) { + if (educationFiltersBuilder_ == null) { + return educationFilters_.get(index); + } else { + return educationFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public Builder setEducationFilters( + int index, com.google.cloud.talent.v4beta1.EducationFilter value) { + if (educationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEducationFiltersIsMutable(); + educationFilters_.set(index, value); + onChanged(); + } else { + educationFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public Builder setEducationFilters( + int index, com.google.cloud.talent.v4beta1.EducationFilter.Builder builderForValue) { + if (educationFiltersBuilder_ == null) { + ensureEducationFiltersIsMutable(); + educationFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + educationFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public Builder addEducationFilters(com.google.cloud.talent.v4beta1.EducationFilter value) { + if (educationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEducationFiltersIsMutable(); + educationFilters_.add(value); + onChanged(); + } else { + educationFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public Builder addEducationFilters( + int index, com.google.cloud.talent.v4beta1.EducationFilter value) { + if (educationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEducationFiltersIsMutable(); + educationFilters_.add(index, value); + onChanged(); + } else { + educationFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public Builder addEducationFilters( + com.google.cloud.talent.v4beta1.EducationFilter.Builder builderForValue) { + if (educationFiltersBuilder_ == null) { + ensureEducationFiltersIsMutable(); + educationFilters_.add(builderForValue.build()); + onChanged(); + } else { + educationFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public Builder addEducationFilters( + int index, com.google.cloud.talent.v4beta1.EducationFilter.Builder builderForValue) { + if (educationFiltersBuilder_ == null) { + ensureEducationFiltersIsMutable(); + educationFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + educationFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public Builder addAllEducationFilters( + java.lang.Iterable values) { + if (educationFiltersBuilder_ == null) { + ensureEducationFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, educationFilters_); + onChanged(); + } else { + educationFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public Builder clearEducationFilters() { + if (educationFiltersBuilder_ == null) { + educationFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + educationFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public Builder removeEducationFilters(int index) { + if (educationFiltersBuilder_ == null) { + ensureEducationFiltersIsMutable(); + educationFilters_.remove(index); + onChanged(); + } else { + educationFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public com.google.cloud.talent.v4beta1.EducationFilter.Builder getEducationFiltersBuilder( + int index) { + return getEducationFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public com.google.cloud.talent.v4beta1.EducationFilterOrBuilder getEducationFiltersOrBuilder( + int index) { + if (educationFiltersBuilder_ == null) { + return educationFilters_.get(index); + } else { + return educationFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public java.util.List + getEducationFiltersOrBuilderList() { + if (educationFiltersBuilder_ != null) { + return educationFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(educationFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public com.google.cloud.talent.v4beta1.EducationFilter.Builder addEducationFiltersBuilder() { + return getEducationFiltersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.EducationFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public com.google.cloud.talent.v4beta1.EducationFilter.Builder addEducationFiltersBuilder( + int index) { + return getEducationFiltersFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.EducationFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public java.util.List + getEducationFiltersBuilderList() { + return getEducationFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EducationFilter, + com.google.cloud.talent.v4beta1.EducationFilter.Builder, + com.google.cloud.talent.v4beta1.EducationFilterOrBuilder> + getEducationFiltersFieldBuilder() { + if (educationFiltersBuilder_ == null) { + educationFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EducationFilter, + com.google.cloud.talent.v4beta1.EducationFilter.Builder, + com.google.cloud.talent.v4beta1.EducationFilterOrBuilder>( + educationFilters_, + ((bitField0_ & 0x00000010) == 0x00000010), + getParentForChildren(), + isClean()); + educationFilters_ = null; + } + return educationFiltersBuilder_; + } + + private java.util.List skillFilters_ = + java.util.Collections.emptyList(); + + private void ensureSkillFiltersIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + skillFilters_ = + new java.util.ArrayList(skillFilters_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.SkillFilter, + com.google.cloud.talent.v4beta1.SkillFilter.Builder, + com.google.cloud.talent.v4beta1.SkillFilterOrBuilder> + skillFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public java.util.List getSkillFiltersList() { + if (skillFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(skillFilters_); + } else { + return skillFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public int getSkillFiltersCount() { + if (skillFiltersBuilder_ == null) { + return skillFilters_.size(); + } else { + return skillFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public com.google.cloud.talent.v4beta1.SkillFilter getSkillFilters(int index) { + if (skillFiltersBuilder_ == null) { + return skillFilters_.get(index); + } else { + return skillFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public Builder setSkillFilters(int index, com.google.cloud.talent.v4beta1.SkillFilter value) { + if (skillFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillFiltersIsMutable(); + skillFilters_.set(index, value); + onChanged(); + } else { + skillFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public Builder setSkillFilters( + int index, com.google.cloud.talent.v4beta1.SkillFilter.Builder builderForValue) { + if (skillFiltersBuilder_ == null) { + ensureSkillFiltersIsMutable(); + skillFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + skillFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public Builder addSkillFilters(com.google.cloud.talent.v4beta1.SkillFilter value) { + if (skillFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillFiltersIsMutable(); + skillFilters_.add(value); + onChanged(); + } else { + skillFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public Builder addSkillFilters(int index, com.google.cloud.talent.v4beta1.SkillFilter value) { + if (skillFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillFiltersIsMutable(); + skillFilters_.add(index, value); + onChanged(); + } else { + skillFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public Builder addSkillFilters( + com.google.cloud.talent.v4beta1.SkillFilter.Builder builderForValue) { + if (skillFiltersBuilder_ == null) { + ensureSkillFiltersIsMutable(); + skillFilters_.add(builderForValue.build()); + onChanged(); + } else { + skillFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public Builder addSkillFilters( + int index, com.google.cloud.talent.v4beta1.SkillFilter.Builder builderForValue) { + if (skillFiltersBuilder_ == null) { + ensureSkillFiltersIsMutable(); + skillFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + skillFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public Builder addAllSkillFilters( + java.lang.Iterable values) { + if (skillFiltersBuilder_ == null) { + ensureSkillFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skillFilters_); + onChanged(); + } else { + skillFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public Builder clearSkillFilters() { + if (skillFiltersBuilder_ == null) { + skillFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + skillFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public Builder removeSkillFilters(int index) { + if (skillFiltersBuilder_ == null) { + ensureSkillFiltersIsMutable(); + skillFilters_.remove(index); + onChanged(); + } else { + skillFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public com.google.cloud.talent.v4beta1.SkillFilter.Builder getSkillFiltersBuilder(int index) { + return getSkillFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public com.google.cloud.talent.v4beta1.SkillFilterOrBuilder getSkillFiltersOrBuilder( + int index) { + if (skillFiltersBuilder_ == null) { + return skillFilters_.get(index); + } else { + return skillFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public java.util.List + getSkillFiltersOrBuilderList() { + if (skillFiltersBuilder_ != null) { + return skillFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(skillFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public com.google.cloud.talent.v4beta1.SkillFilter.Builder addSkillFiltersBuilder() { + return getSkillFiltersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.SkillFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public com.google.cloud.talent.v4beta1.SkillFilter.Builder addSkillFiltersBuilder(int index) { + return getSkillFiltersFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.SkillFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public java.util.List + getSkillFiltersBuilderList() { + return getSkillFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.SkillFilter, + com.google.cloud.talent.v4beta1.SkillFilter.Builder, + com.google.cloud.talent.v4beta1.SkillFilterOrBuilder> + getSkillFiltersFieldBuilder() { + if (skillFiltersBuilder_ == null) { + skillFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.SkillFilter, + com.google.cloud.talent.v4beta1.SkillFilter.Builder, + com.google.cloud.talent.v4beta1.SkillFilterOrBuilder>( + skillFilters_, + ((bitField0_ & 0x00000020) == 0x00000020), + getParentForChildren(), + isClean()); + skillFilters_ = null; + } + return skillFiltersBuilder_; + } + + private java.util.List + workExperienceFilter_ = java.util.Collections.emptyList(); + + private void ensureWorkExperienceFilterIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + workExperienceFilter_ = + new java.util.ArrayList( + workExperienceFilter_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.WorkExperienceFilter, + com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder, + com.google.cloud.talent.v4beta1.WorkExperienceFilterOrBuilder> + workExperienceFilterBuilder_; + + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public java.util.List + getWorkExperienceFilterList() { + if (workExperienceFilterBuilder_ == null) { + return java.util.Collections.unmodifiableList(workExperienceFilter_); + } else { + return workExperienceFilterBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public int getWorkExperienceFilterCount() { + if (workExperienceFilterBuilder_ == null) { + return workExperienceFilter_.size(); + } else { + return workExperienceFilterBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public com.google.cloud.talent.v4beta1.WorkExperienceFilter getWorkExperienceFilter(int index) { + if (workExperienceFilterBuilder_ == null) { + return workExperienceFilter_.get(index); + } else { + return workExperienceFilterBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public Builder setWorkExperienceFilter( + int index, com.google.cloud.talent.v4beta1.WorkExperienceFilter value) { + if (workExperienceFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkExperienceFilterIsMutable(); + workExperienceFilter_.set(index, value); + onChanged(); + } else { + workExperienceFilterBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public Builder setWorkExperienceFilter( + int index, com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder builderForValue) { + if (workExperienceFilterBuilder_ == null) { + ensureWorkExperienceFilterIsMutable(); + workExperienceFilter_.set(index, builderForValue.build()); + onChanged(); + } else { + workExperienceFilterBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public Builder addWorkExperienceFilter( + com.google.cloud.talent.v4beta1.WorkExperienceFilter value) { + if (workExperienceFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkExperienceFilterIsMutable(); + workExperienceFilter_.add(value); + onChanged(); + } else { + workExperienceFilterBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public Builder addWorkExperienceFilter( + int index, com.google.cloud.talent.v4beta1.WorkExperienceFilter value) { + if (workExperienceFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkExperienceFilterIsMutable(); + workExperienceFilter_.add(index, value); + onChanged(); + } else { + workExperienceFilterBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public Builder addWorkExperienceFilter( + com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder builderForValue) { + if (workExperienceFilterBuilder_ == null) { + ensureWorkExperienceFilterIsMutable(); + workExperienceFilter_.add(builderForValue.build()); + onChanged(); + } else { + workExperienceFilterBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public Builder addWorkExperienceFilter( + int index, com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder builderForValue) { + if (workExperienceFilterBuilder_ == null) { + ensureWorkExperienceFilterIsMutable(); + workExperienceFilter_.add(index, builderForValue.build()); + onChanged(); + } else { + workExperienceFilterBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public Builder addAllWorkExperienceFilter( + java.lang.Iterable values) { + if (workExperienceFilterBuilder_ == null) { + ensureWorkExperienceFilterIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workExperienceFilter_); + onChanged(); + } else { + workExperienceFilterBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public Builder clearWorkExperienceFilter() { + if (workExperienceFilterBuilder_ == null) { + workExperienceFilter_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + workExperienceFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public Builder removeWorkExperienceFilter(int index) { + if (workExperienceFilterBuilder_ == null) { + ensureWorkExperienceFilterIsMutable(); + workExperienceFilter_.remove(index); + onChanged(); + } else { + workExperienceFilterBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder + getWorkExperienceFilterBuilder(int index) { + return getWorkExperienceFilterFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public com.google.cloud.talent.v4beta1.WorkExperienceFilterOrBuilder + getWorkExperienceFilterOrBuilder(int index) { + if (workExperienceFilterBuilder_ == null) { + return workExperienceFilter_.get(index); + } else { + return workExperienceFilterBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public java.util.List + getWorkExperienceFilterOrBuilderList() { + if (workExperienceFilterBuilder_ != null) { + return workExperienceFilterBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(workExperienceFilter_); + } + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder + addWorkExperienceFilterBuilder() { + return getWorkExperienceFilterFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.WorkExperienceFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder + addWorkExperienceFilterBuilder(int index) { + return getWorkExperienceFilterFieldBuilder() + .addBuilder( + index, com.google.cloud.talent.v4beta1.WorkExperienceFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public java.util.List + getWorkExperienceFilterBuilderList() { + return getWorkExperienceFilterFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.WorkExperienceFilter, + com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder, + com.google.cloud.talent.v4beta1.WorkExperienceFilterOrBuilder> + getWorkExperienceFilterFieldBuilder() { + if (workExperienceFilterBuilder_ == null) { + workExperienceFilterBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.WorkExperienceFilter, + com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder, + com.google.cloud.talent.v4beta1.WorkExperienceFilterOrBuilder>( + workExperienceFilter_, + ((bitField0_ & 0x00000040) == 0x00000040), + getParentForChildren(), + isClean()); + workExperienceFilter_ = null; + } + return workExperienceFilterBuilder_; + } + + private java.util.List timeFilters_ = + java.util.Collections.emptyList(); + + private void ensureTimeFiltersIsMutable() { + if (!((bitField0_ & 0x00000080) == 0x00000080)) { + timeFilters_ = + new java.util.ArrayList(timeFilters_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.TimeFilter, + com.google.cloud.talent.v4beta1.TimeFilter.Builder, + com.google.cloud.talent.v4beta1.TimeFilterOrBuilder> + timeFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public java.util.List getTimeFiltersList() { + if (timeFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(timeFilters_); + } else { + return timeFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public int getTimeFiltersCount() { + if (timeFiltersBuilder_ == null) { + return timeFilters_.size(); + } else { + return timeFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public com.google.cloud.talent.v4beta1.TimeFilter getTimeFilters(int index) { + if (timeFiltersBuilder_ == null) { + return timeFilters_.get(index); + } else { + return timeFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public Builder setTimeFilters(int index, com.google.cloud.talent.v4beta1.TimeFilter value) { + if (timeFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTimeFiltersIsMutable(); + timeFilters_.set(index, value); + onChanged(); + } else { + timeFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public Builder setTimeFilters( + int index, com.google.cloud.talent.v4beta1.TimeFilter.Builder builderForValue) { + if (timeFiltersBuilder_ == null) { + ensureTimeFiltersIsMutable(); + timeFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + timeFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public Builder addTimeFilters(com.google.cloud.talent.v4beta1.TimeFilter value) { + if (timeFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTimeFiltersIsMutable(); + timeFilters_.add(value); + onChanged(); + } else { + timeFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public Builder addTimeFilters(int index, com.google.cloud.talent.v4beta1.TimeFilter value) { + if (timeFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTimeFiltersIsMutable(); + timeFilters_.add(index, value); + onChanged(); + } else { + timeFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public Builder addTimeFilters( + com.google.cloud.talent.v4beta1.TimeFilter.Builder builderForValue) { + if (timeFiltersBuilder_ == null) { + ensureTimeFiltersIsMutable(); + timeFilters_.add(builderForValue.build()); + onChanged(); + } else { + timeFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public Builder addTimeFilters( + int index, com.google.cloud.talent.v4beta1.TimeFilter.Builder builderForValue) { + if (timeFiltersBuilder_ == null) { + ensureTimeFiltersIsMutable(); + timeFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + timeFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public Builder addAllTimeFilters( + java.lang.Iterable values) { + if (timeFiltersBuilder_ == null) { + ensureTimeFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, timeFilters_); + onChanged(); + } else { + timeFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public Builder clearTimeFilters() { + if (timeFiltersBuilder_ == null) { + timeFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + timeFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public Builder removeTimeFilters(int index) { + if (timeFiltersBuilder_ == null) { + ensureTimeFiltersIsMutable(); + timeFilters_.remove(index); + onChanged(); + } else { + timeFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public com.google.cloud.talent.v4beta1.TimeFilter.Builder getTimeFiltersBuilder(int index) { + return getTimeFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public com.google.cloud.talent.v4beta1.TimeFilterOrBuilder getTimeFiltersOrBuilder(int index) { + if (timeFiltersBuilder_ == null) { + return timeFilters_.get(index); + } else { + return timeFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public java.util.List + getTimeFiltersOrBuilderList() { + if (timeFiltersBuilder_ != null) { + return timeFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(timeFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public com.google.cloud.talent.v4beta1.TimeFilter.Builder addTimeFiltersBuilder() { + return getTimeFiltersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.TimeFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public com.google.cloud.talent.v4beta1.TimeFilter.Builder addTimeFiltersBuilder(int index) { + return getTimeFiltersFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.TimeFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public java.util.List + getTimeFiltersBuilderList() { + return getTimeFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.TimeFilter, + com.google.cloud.talent.v4beta1.TimeFilter.Builder, + com.google.cloud.talent.v4beta1.TimeFilterOrBuilder> + getTimeFiltersFieldBuilder() { + if (timeFiltersBuilder_ == null) { + timeFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.TimeFilter, + com.google.cloud.talent.v4beta1.TimeFilter.Builder, + com.google.cloud.talent.v4beta1.TimeFilterOrBuilder>( + timeFilters_, + ((bitField0_ & 0x00000080) == 0x00000080), + getParentForChildren(), + isClean()); + timeFilters_ = null; + } + return timeFiltersBuilder_; + } + + private com.google.protobuf.BoolValue hirableFilter_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + hirableFilterBuilder_; + /** + * + * + *
+     * Optional.
+     * The hirable filter specifies the profile's hirable status to match on.
+     * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + public boolean hasHirableFilter() { + return hirableFilterBuilder_ != null || hirableFilter_ != null; + } + /** + * + * + *
+     * Optional.
+     * The hirable filter specifies the profile's hirable status to match on.
+     * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + public com.google.protobuf.BoolValue getHirableFilter() { + if (hirableFilterBuilder_ == null) { + return hirableFilter_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : hirableFilter_; + } else { + return hirableFilterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The hirable filter specifies the profile's hirable status to match on.
+     * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + public Builder setHirableFilter(com.google.protobuf.BoolValue value) { + if (hirableFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hirableFilter_ = value; + onChanged(); + } else { + hirableFilterBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The hirable filter specifies the profile's hirable status to match on.
+     * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + public Builder setHirableFilter(com.google.protobuf.BoolValue.Builder builderForValue) { + if (hirableFilterBuilder_ == null) { + hirableFilter_ = builderForValue.build(); + onChanged(); + } else { + hirableFilterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The hirable filter specifies the profile's hirable status to match on.
+     * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + public Builder mergeHirableFilter(com.google.protobuf.BoolValue value) { + if (hirableFilterBuilder_ == null) { + if (hirableFilter_ != null) { + hirableFilter_ = + com.google.protobuf.BoolValue.newBuilder(hirableFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + hirableFilter_ = value; + } + onChanged(); + } else { + hirableFilterBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The hirable filter specifies the profile's hirable status to match on.
+     * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + public Builder clearHirableFilter() { + if (hirableFilterBuilder_ == null) { + hirableFilter_ = null; + onChanged(); + } else { + hirableFilter_ = null; + hirableFilterBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The hirable filter specifies the profile's hirable status to match on.
+     * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + public com.google.protobuf.BoolValue.Builder getHirableFilterBuilder() { + + onChanged(); + return getHirableFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The hirable filter specifies the profile's hirable status to match on.
+     * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + public com.google.protobuf.BoolValueOrBuilder getHirableFilterOrBuilder() { + if (hirableFilterBuilder_ != null) { + return hirableFilterBuilder_.getMessageOrBuilder(); + } else { + return hirableFilter_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : hirableFilter_; + } + } + /** + * + * + *
+     * Optional.
+     * The hirable filter specifies the profile's hirable status to match on.
+     * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getHirableFilterFieldBuilder() { + if (hirableFilterBuilder_ == null) { + hirableFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getHirableFilter(), getParentForChildren(), isClean()); + hirableFilter_ = null; + } + return hirableFilterBuilder_; + } + + private java.util.List + applicationDateFilters_ = java.util.Collections.emptyList(); + + private void ensureApplicationDateFiltersIsMutable() { + if (!((bitField0_ & 0x00000200) == 0x00000200)) { + applicationDateFilters_ = + new java.util.ArrayList( + applicationDateFilters_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationDateFilter, + com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationDateFilterOrBuilder> + applicationDateFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public java.util.List + getApplicationDateFiltersList() { + if (applicationDateFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(applicationDateFilters_); + } else { + return applicationDateFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public int getApplicationDateFiltersCount() { + if (applicationDateFiltersBuilder_ == null) { + return applicationDateFilters_.size(); + } else { + return applicationDateFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationDateFilter getApplicationDateFilters( + int index) { + if (applicationDateFiltersBuilder_ == null) { + return applicationDateFilters_.get(index); + } else { + return applicationDateFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public Builder setApplicationDateFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationDateFilter value) { + if (applicationDateFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationDateFiltersIsMutable(); + applicationDateFilters_.set(index, value); + onChanged(); + } else { + applicationDateFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public Builder setApplicationDateFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder builderForValue) { + if (applicationDateFiltersBuilder_ == null) { + ensureApplicationDateFiltersIsMutable(); + applicationDateFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + applicationDateFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public Builder addApplicationDateFilters( + com.google.cloud.talent.v4beta1.ApplicationDateFilter value) { + if (applicationDateFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationDateFiltersIsMutable(); + applicationDateFilters_.add(value); + onChanged(); + } else { + applicationDateFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public Builder addApplicationDateFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationDateFilter value) { + if (applicationDateFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationDateFiltersIsMutable(); + applicationDateFilters_.add(index, value); + onChanged(); + } else { + applicationDateFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public Builder addApplicationDateFilters( + com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder builderForValue) { + if (applicationDateFiltersBuilder_ == null) { + ensureApplicationDateFiltersIsMutable(); + applicationDateFilters_.add(builderForValue.build()); + onChanged(); + } else { + applicationDateFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public Builder addApplicationDateFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder builderForValue) { + if (applicationDateFiltersBuilder_ == null) { + ensureApplicationDateFiltersIsMutable(); + applicationDateFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + applicationDateFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public Builder addAllApplicationDateFilters( + java.lang.Iterable + values) { + if (applicationDateFiltersBuilder_ == null) { + ensureApplicationDateFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, applicationDateFilters_); + onChanged(); + } else { + applicationDateFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public Builder clearApplicationDateFilters() { + if (applicationDateFiltersBuilder_ == null) { + applicationDateFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + applicationDateFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public Builder removeApplicationDateFilters(int index) { + if (applicationDateFiltersBuilder_ == null) { + ensureApplicationDateFiltersIsMutable(); + applicationDateFilters_.remove(index); + onChanged(); + } else { + applicationDateFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder + getApplicationDateFiltersBuilder(int index) { + return getApplicationDateFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationDateFilterOrBuilder + getApplicationDateFiltersOrBuilder(int index) { + if (applicationDateFiltersBuilder_ == null) { + return applicationDateFilters_.get(index); + } else { + return applicationDateFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public java.util.List + getApplicationDateFiltersOrBuilderList() { + if (applicationDateFiltersBuilder_ != null) { + return applicationDateFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(applicationDateFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder + addApplicationDateFiltersBuilder() { + return getApplicationDateFiltersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.ApplicationDateFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder + addApplicationDateFiltersBuilder(int index) { + return getApplicationDateFiltersFieldBuilder() + .addBuilder( + index, com.google.cloud.talent.v4beta1.ApplicationDateFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public java.util.List + getApplicationDateFiltersBuilderList() { + return getApplicationDateFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationDateFilter, + com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationDateFilterOrBuilder> + getApplicationDateFiltersFieldBuilder() { + if (applicationDateFiltersBuilder_ == null) { + applicationDateFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationDateFilter, + com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationDateFilterOrBuilder>( + applicationDateFilters_, + ((bitField0_ & 0x00000200) == 0x00000200), + getParentForChildren(), + isClean()); + applicationDateFilters_ = null; + } + return applicationDateFiltersBuilder_; + } + + private java.util.List + applicationOutcomeReasonFilters_ = java.util.Collections.emptyList(); + + private void ensureApplicationOutcomeReasonFiltersIsMutable() { + if (!((bitField0_ & 0x00000400) == 0x00000400)) { + applicationOutcomeReasonFilters_ = + new java.util.ArrayList( + applicationOutcomeReasonFilters_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter, + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder> + applicationOutcomeReasonFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public java.util.List + getApplicationOutcomeReasonFiltersList() { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(applicationOutcomeReasonFilters_); + } else { + return applicationOutcomeReasonFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public int getApplicationOutcomeReasonFiltersCount() { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + return applicationOutcomeReasonFilters_.size(); + } else { + return applicationOutcomeReasonFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter + getApplicationOutcomeReasonFilters(int index) { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + return applicationOutcomeReasonFilters_.get(index); + } else { + return applicationOutcomeReasonFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public Builder setApplicationOutcomeReasonFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter value) { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationOutcomeReasonFiltersIsMutable(); + applicationOutcomeReasonFilters_.set(index, value); + onChanged(); + } else { + applicationOutcomeReasonFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public Builder setApplicationOutcomeReasonFilters( + int index, + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder builderForValue) { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + ensureApplicationOutcomeReasonFiltersIsMutable(); + applicationOutcomeReasonFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + applicationOutcomeReasonFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public Builder addApplicationOutcomeReasonFilters( + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter value) { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationOutcomeReasonFiltersIsMutable(); + applicationOutcomeReasonFilters_.add(value); + onChanged(); + } else { + applicationOutcomeReasonFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public Builder addApplicationOutcomeReasonFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter value) { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationOutcomeReasonFiltersIsMutable(); + applicationOutcomeReasonFilters_.add(index, value); + onChanged(); + } else { + applicationOutcomeReasonFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public Builder addApplicationOutcomeReasonFilters( + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder builderForValue) { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + ensureApplicationOutcomeReasonFiltersIsMutable(); + applicationOutcomeReasonFilters_.add(builderForValue.build()); + onChanged(); + } else { + applicationOutcomeReasonFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public Builder addApplicationOutcomeReasonFilters( + int index, + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder builderForValue) { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + ensureApplicationOutcomeReasonFiltersIsMutable(); + applicationOutcomeReasonFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + applicationOutcomeReasonFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public Builder addAllApplicationOutcomeReasonFilters( + java.lang.Iterable + values) { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + ensureApplicationOutcomeReasonFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, applicationOutcomeReasonFilters_); + onChanged(); + } else { + applicationOutcomeReasonFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public Builder clearApplicationOutcomeReasonFilters() { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + applicationOutcomeReasonFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + applicationOutcomeReasonFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public Builder removeApplicationOutcomeReasonFilters(int index) { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + ensureApplicationOutcomeReasonFiltersIsMutable(); + applicationOutcomeReasonFilters_.remove(index); + onChanged(); + } else { + applicationOutcomeReasonFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder + getApplicationOutcomeReasonFiltersBuilder(int index) { + return getApplicationOutcomeReasonFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder + getApplicationOutcomeReasonFiltersOrBuilder(int index) { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + return applicationOutcomeReasonFilters_.get(index); + } else { + return applicationOutcomeReasonFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public java.util.List< + ? extends com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder> + getApplicationOutcomeReasonFiltersOrBuilderList() { + if (applicationOutcomeReasonFiltersBuilder_ != null) { + return applicationOutcomeReasonFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(applicationOutcomeReasonFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder + addApplicationOutcomeReasonFiltersBuilder() { + return getApplicationOutcomeReasonFiltersFieldBuilder() + .addBuilder( + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder + addApplicationOutcomeReasonFiltersBuilder(int index) { + return getApplicationOutcomeReasonFiltersFieldBuilder() + .addBuilder( + index, + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public java.util.List + getApplicationOutcomeReasonFiltersBuilderList() { + return getApplicationOutcomeReasonFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter, + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder> + getApplicationOutcomeReasonFiltersFieldBuilder() { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + applicationOutcomeReasonFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter, + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder>( + applicationOutcomeReasonFilters_, + ((bitField0_ & 0x00000400) == 0x00000400), + getParentForChildren(), + isClean()); + applicationOutcomeReasonFilters_ = null; + } + return applicationOutcomeReasonFiltersBuilder_; + } + + private java.util.List + applicationLastStageFilters_ = java.util.Collections.emptyList(); + + private void ensureApplicationLastStageFiltersIsMutable() { + if (!((bitField0_ & 0x00000800) == 0x00000800)) { + applicationLastStageFilters_ = + new java.util.ArrayList( + applicationLastStageFilters_); + bitField0_ |= 0x00000800; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter, + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationLastStageFilterOrBuilder> + applicationLastStageFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public java.util.List + getApplicationLastStageFiltersList() { + if (applicationLastStageFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(applicationLastStageFilters_); + } else { + return applicationLastStageFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public int getApplicationLastStageFiltersCount() { + if (applicationLastStageFiltersBuilder_ == null) { + return applicationLastStageFilters_.size(); + } else { + return applicationLastStageFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationLastStageFilter + getApplicationLastStageFilters(int index) { + if (applicationLastStageFiltersBuilder_ == null) { + return applicationLastStageFilters_.get(index); + } else { + return applicationLastStageFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public Builder setApplicationLastStageFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationLastStageFilter value) { + if (applicationLastStageFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationLastStageFiltersIsMutable(); + applicationLastStageFilters_.set(index, value); + onChanged(); + } else { + applicationLastStageFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public Builder setApplicationLastStageFilters( + int index, + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.Builder builderForValue) { + if (applicationLastStageFiltersBuilder_ == null) { + ensureApplicationLastStageFiltersIsMutable(); + applicationLastStageFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + applicationLastStageFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public Builder addApplicationLastStageFilters( + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter value) { + if (applicationLastStageFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationLastStageFiltersIsMutable(); + applicationLastStageFilters_.add(value); + onChanged(); + } else { + applicationLastStageFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public Builder addApplicationLastStageFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationLastStageFilter value) { + if (applicationLastStageFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationLastStageFiltersIsMutable(); + applicationLastStageFilters_.add(index, value); + onChanged(); + } else { + applicationLastStageFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public Builder addApplicationLastStageFilters( + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.Builder builderForValue) { + if (applicationLastStageFiltersBuilder_ == null) { + ensureApplicationLastStageFiltersIsMutable(); + applicationLastStageFilters_.add(builderForValue.build()); + onChanged(); + } else { + applicationLastStageFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public Builder addApplicationLastStageFilters( + int index, + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.Builder builderForValue) { + if (applicationLastStageFiltersBuilder_ == null) { + ensureApplicationLastStageFiltersIsMutable(); + applicationLastStageFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + applicationLastStageFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public Builder addAllApplicationLastStageFilters( + java.lang.Iterable + values) { + if (applicationLastStageFiltersBuilder_ == null) { + ensureApplicationLastStageFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, applicationLastStageFilters_); + onChanged(); + } else { + applicationLastStageFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public Builder clearApplicationLastStageFilters() { + if (applicationLastStageFiltersBuilder_ == null) { + applicationLastStageFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + } else { + applicationLastStageFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public Builder removeApplicationLastStageFilters(int index) { + if (applicationLastStageFiltersBuilder_ == null) { + ensureApplicationLastStageFiltersIsMutable(); + applicationLastStageFilters_.remove(index); + onChanged(); + } else { + applicationLastStageFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.Builder + getApplicationLastStageFiltersBuilder(int index) { + return getApplicationLastStageFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationLastStageFilterOrBuilder + getApplicationLastStageFiltersOrBuilder(int index) { + if (applicationLastStageFiltersBuilder_ == null) { + return applicationLastStageFilters_.get(index); + } else { + return applicationLastStageFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public java.util.List< + ? extends com.google.cloud.talent.v4beta1.ApplicationLastStageFilterOrBuilder> + getApplicationLastStageFiltersOrBuilderList() { + if (applicationLastStageFiltersBuilder_ != null) { + return applicationLastStageFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(applicationLastStageFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.Builder + addApplicationLastStageFiltersBuilder() { + return getApplicationLastStageFiltersFieldBuilder() + .addBuilder( + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.Builder + addApplicationLastStageFiltersBuilder(int index) { + return getApplicationLastStageFiltersFieldBuilder() + .addBuilder( + index, + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public java.util.List + getApplicationLastStageFiltersBuilderList() { + return getApplicationLastStageFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter, + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationLastStageFilterOrBuilder> + getApplicationLastStageFiltersFieldBuilder() { + if (applicationLastStageFiltersBuilder_ == null) { + applicationLastStageFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter, + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationLastStageFilterOrBuilder>( + applicationLastStageFilters_, + ((bitField0_ & 0x00000800) == 0x00000800), + getParentForChildren(), + isClean()); + applicationLastStageFilters_ = null; + } + return applicationLastStageFiltersBuilder_; + } + + private java.util.List + applicationJobFilters_ = java.util.Collections.emptyList(); + + private void ensureApplicationJobFiltersIsMutable() { + if (!((bitField0_ & 0x00001000) == 0x00001000)) { + applicationJobFilters_ = + new java.util.ArrayList( + applicationJobFilters_); + bitField0_ |= 0x00001000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationJobFilter, + com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationJobFilterOrBuilder> + applicationJobFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public java.util.List + getApplicationJobFiltersList() { + if (applicationJobFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(applicationJobFilters_); + } else { + return applicationJobFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public int getApplicationJobFiltersCount() { + if (applicationJobFiltersBuilder_ == null) { + return applicationJobFilters_.size(); + } else { + return applicationJobFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationJobFilter getApplicationJobFilters( + int index) { + if (applicationJobFiltersBuilder_ == null) { + return applicationJobFilters_.get(index); + } else { + return applicationJobFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public Builder setApplicationJobFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationJobFilter value) { + if (applicationJobFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationJobFiltersIsMutable(); + applicationJobFilters_.set(index, value); + onChanged(); + } else { + applicationJobFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public Builder setApplicationJobFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder builderForValue) { + if (applicationJobFiltersBuilder_ == null) { + ensureApplicationJobFiltersIsMutable(); + applicationJobFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + applicationJobFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public Builder addApplicationJobFilters( + com.google.cloud.talent.v4beta1.ApplicationJobFilter value) { + if (applicationJobFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationJobFiltersIsMutable(); + applicationJobFilters_.add(value); + onChanged(); + } else { + applicationJobFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public Builder addApplicationJobFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationJobFilter value) { + if (applicationJobFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationJobFiltersIsMutable(); + applicationJobFilters_.add(index, value); + onChanged(); + } else { + applicationJobFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public Builder addApplicationJobFilters( + com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder builderForValue) { + if (applicationJobFiltersBuilder_ == null) { + ensureApplicationJobFiltersIsMutable(); + applicationJobFilters_.add(builderForValue.build()); + onChanged(); + } else { + applicationJobFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public Builder addApplicationJobFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder builderForValue) { + if (applicationJobFiltersBuilder_ == null) { + ensureApplicationJobFiltersIsMutable(); + applicationJobFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + applicationJobFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public Builder addAllApplicationJobFilters( + java.lang.Iterable values) { + if (applicationJobFiltersBuilder_ == null) { + ensureApplicationJobFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, applicationJobFilters_); + onChanged(); + } else { + applicationJobFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public Builder clearApplicationJobFilters() { + if (applicationJobFiltersBuilder_ == null) { + applicationJobFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + } else { + applicationJobFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public Builder removeApplicationJobFilters(int index) { + if (applicationJobFiltersBuilder_ == null) { + ensureApplicationJobFiltersIsMutable(); + applicationJobFilters_.remove(index); + onChanged(); + } else { + applicationJobFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder + getApplicationJobFiltersBuilder(int index) { + return getApplicationJobFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationJobFilterOrBuilder + getApplicationJobFiltersOrBuilder(int index) { + if (applicationJobFiltersBuilder_ == null) { + return applicationJobFilters_.get(index); + } else { + return applicationJobFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public java.util.List + getApplicationJobFiltersOrBuilderList() { + if (applicationJobFiltersBuilder_ != null) { + return applicationJobFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(applicationJobFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder + addApplicationJobFiltersBuilder() { + return getApplicationJobFiltersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.ApplicationJobFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder + addApplicationJobFiltersBuilder(int index) { + return getApplicationJobFiltersFieldBuilder() + .addBuilder( + index, com.google.cloud.talent.v4beta1.ApplicationJobFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public java.util.List + getApplicationJobFiltersBuilderList() { + return getApplicationJobFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationJobFilter, + com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationJobFilterOrBuilder> + getApplicationJobFiltersFieldBuilder() { + if (applicationJobFiltersBuilder_ == null) { + applicationJobFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationJobFilter, + com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationJobFilterOrBuilder>( + applicationJobFilters_, + ((bitField0_ & 0x00001000) == 0x00001000), + getParentForChildren(), + isClean()); + applicationJobFilters_ = null; + } + return applicationJobFiltersBuilder_; + } + + private java.util.List + applicationStatusFilters_ = java.util.Collections.emptyList(); + + private void ensureApplicationStatusFiltersIsMutable() { + if (!((bitField0_ & 0x00002000) == 0x00002000)) { + applicationStatusFilters_ = + new java.util.ArrayList( + applicationStatusFilters_); + bitField0_ |= 0x00002000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationStatusFilter, + com.google.cloud.talent.v4beta1.ApplicationStatusFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationStatusFilterOrBuilder> + applicationStatusFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public java.util.List + getApplicationStatusFiltersList() { + if (applicationStatusFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(applicationStatusFilters_); + } else { + return applicationStatusFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public int getApplicationStatusFiltersCount() { + if (applicationStatusFiltersBuilder_ == null) { + return applicationStatusFilters_.size(); + } else { + return applicationStatusFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationStatusFilter getApplicationStatusFilters( + int index) { + if (applicationStatusFiltersBuilder_ == null) { + return applicationStatusFilters_.get(index); + } else { + return applicationStatusFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public Builder setApplicationStatusFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationStatusFilter value) { + if (applicationStatusFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationStatusFiltersIsMutable(); + applicationStatusFilters_.set(index, value); + onChanged(); + } else { + applicationStatusFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public Builder setApplicationStatusFilters( + int index, + com.google.cloud.talent.v4beta1.ApplicationStatusFilter.Builder builderForValue) { + if (applicationStatusFiltersBuilder_ == null) { + ensureApplicationStatusFiltersIsMutable(); + applicationStatusFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + applicationStatusFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public Builder addApplicationStatusFilters( + com.google.cloud.talent.v4beta1.ApplicationStatusFilter value) { + if (applicationStatusFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationStatusFiltersIsMutable(); + applicationStatusFilters_.add(value); + onChanged(); + } else { + applicationStatusFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public Builder addApplicationStatusFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationStatusFilter value) { + if (applicationStatusFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationStatusFiltersIsMutable(); + applicationStatusFilters_.add(index, value); + onChanged(); + } else { + applicationStatusFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public Builder addApplicationStatusFilters( + com.google.cloud.talent.v4beta1.ApplicationStatusFilter.Builder builderForValue) { + if (applicationStatusFiltersBuilder_ == null) { + ensureApplicationStatusFiltersIsMutable(); + applicationStatusFilters_.add(builderForValue.build()); + onChanged(); + } else { + applicationStatusFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public Builder addApplicationStatusFilters( + int index, + com.google.cloud.talent.v4beta1.ApplicationStatusFilter.Builder builderForValue) { + if (applicationStatusFiltersBuilder_ == null) { + ensureApplicationStatusFiltersIsMutable(); + applicationStatusFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + applicationStatusFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public Builder addAllApplicationStatusFilters( + java.lang.Iterable + values) { + if (applicationStatusFiltersBuilder_ == null) { + ensureApplicationStatusFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, applicationStatusFilters_); + onChanged(); + } else { + applicationStatusFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public Builder clearApplicationStatusFilters() { + if (applicationStatusFiltersBuilder_ == null) { + applicationStatusFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + } else { + applicationStatusFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public Builder removeApplicationStatusFilters(int index) { + if (applicationStatusFiltersBuilder_ == null) { + ensureApplicationStatusFiltersIsMutable(); + applicationStatusFilters_.remove(index); + onChanged(); + } else { + applicationStatusFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationStatusFilter.Builder + getApplicationStatusFiltersBuilder(int index) { + return getApplicationStatusFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationStatusFilterOrBuilder + getApplicationStatusFiltersOrBuilder(int index) { + if (applicationStatusFiltersBuilder_ == null) { + return applicationStatusFilters_.get(index); + } else { + return applicationStatusFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public java.util.List< + ? extends com.google.cloud.talent.v4beta1.ApplicationStatusFilterOrBuilder> + getApplicationStatusFiltersOrBuilderList() { + if (applicationStatusFiltersBuilder_ != null) { + return applicationStatusFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(applicationStatusFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationStatusFilter.Builder + addApplicationStatusFiltersBuilder() { + return getApplicationStatusFiltersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.ApplicationStatusFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationStatusFilter.Builder + addApplicationStatusFiltersBuilder(int index) { + return getApplicationStatusFiltersFieldBuilder() + .addBuilder( + index, com.google.cloud.talent.v4beta1.ApplicationStatusFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public java.util.List + getApplicationStatusFiltersBuilderList() { + return getApplicationStatusFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationStatusFilter, + com.google.cloud.talent.v4beta1.ApplicationStatusFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationStatusFilterOrBuilder> + getApplicationStatusFiltersFieldBuilder() { + if (applicationStatusFiltersBuilder_ == null) { + applicationStatusFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationStatusFilter, + com.google.cloud.talent.v4beta1.ApplicationStatusFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationStatusFilterOrBuilder>( + applicationStatusFilters_, + ((bitField0_ & 0x00002000) == 0x00002000), + getParentForChildren(), + isClean()); + applicationStatusFilters_ = null; + } + return applicationStatusFiltersBuilder_; + } + + private java.lang.Object customFieldFilter_ = ""; + /** + * + * + *
+     * Optional.
+     * This filter specifies a structured syntax to match against the
+     * [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes]
+     * that are marked as `filterable`.
+     * The syntax for this expression is a subset of Google SQL syntax.
+     * Supported operators are: =, != where the left of the operator is a custom
+     * field key and the right of the operator is a string (surrounded by quotes)
+     * value.
+     * Supported functions are LOWER(<field_name>) to
+     * perform case insensitive match and EMPTY(<field_name>) to filter on the
+     * existence of a key.
+     * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+     * nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be
+     * a maximum of 50 comparisons/functions in the expression. The expression
+     * must be < 2000 characters in length.
+     * Sample Query:
+     * (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1))
+     * 
+ * + * string custom_field_filter = 15; + */ + public java.lang.String getCustomFieldFilter() { + java.lang.Object ref = customFieldFilter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customFieldFilter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a structured syntax to match against the
+     * [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes]
+     * that are marked as `filterable`.
+     * The syntax for this expression is a subset of Google SQL syntax.
+     * Supported operators are: =, != where the left of the operator is a custom
+     * field key and the right of the operator is a string (surrounded by quotes)
+     * value.
+     * Supported functions are LOWER(<field_name>) to
+     * perform case insensitive match and EMPTY(<field_name>) to filter on the
+     * existence of a key.
+     * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+     * nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be
+     * a maximum of 50 comparisons/functions in the expression. The expression
+     * must be < 2000 characters in length.
+     * Sample Query:
+     * (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1))
+     * 
+ * + * string custom_field_filter = 15; + */ + public com.google.protobuf.ByteString getCustomFieldFilterBytes() { + java.lang.Object ref = customFieldFilter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customFieldFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a structured syntax to match against the
+     * [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes]
+     * that are marked as `filterable`.
+     * The syntax for this expression is a subset of Google SQL syntax.
+     * Supported operators are: =, != where the left of the operator is a custom
+     * field key and the right of the operator is a string (surrounded by quotes)
+     * value.
+     * Supported functions are LOWER(<field_name>) to
+     * perform case insensitive match and EMPTY(<field_name>) to filter on the
+     * existence of a key.
+     * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+     * nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be
+     * a maximum of 50 comparisons/functions in the expression. The expression
+     * must be < 2000 characters in length.
+     * Sample Query:
+     * (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1))
+     * 
+ * + * string custom_field_filter = 15; + */ + public Builder setCustomFieldFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + customFieldFilter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a structured syntax to match against the
+     * [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes]
+     * that are marked as `filterable`.
+     * The syntax for this expression is a subset of Google SQL syntax.
+     * Supported operators are: =, != where the left of the operator is a custom
+     * field key and the right of the operator is a string (surrounded by quotes)
+     * value.
+     * Supported functions are LOWER(<field_name>) to
+     * perform case insensitive match and EMPTY(<field_name>) to filter on the
+     * existence of a key.
+     * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+     * nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be
+     * a maximum of 50 comparisons/functions in the expression. The expression
+     * must be < 2000 characters in length.
+     * Sample Query:
+     * (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1))
+     * 
+ * + * string custom_field_filter = 15; + */ + public Builder clearCustomFieldFilter() { + + customFieldFilter_ = getDefaultInstance().getCustomFieldFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a structured syntax to match against the
+     * [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes]
+     * that are marked as `filterable`.
+     * The syntax for this expression is a subset of Google SQL syntax.
+     * Supported operators are: =, != where the left of the operator is a custom
+     * field key and the right of the operator is a string (surrounded by quotes)
+     * value.
+     * Supported functions are LOWER(<field_name>) to
+     * perform case insensitive match and EMPTY(<field_name>) to filter on the
+     * existence of a key.
+     * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+     * nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be
+     * a maximum of 50 comparisons/functions in the expression. The expression
+     * must be < 2000 characters in length.
+     * Sample Query:
+     * (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1))
+     * 
+ * + * string custom_field_filter = 15; + */ + public Builder setCustomFieldFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + customFieldFilter_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ProfileQuery) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ProfileQuery) + private static final com.google.cloud.talent.v4beta1.ProfileQuery DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ProfileQuery(); + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProfileQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProfileQuery(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ProfileQuery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQueryOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQueryOrBuilder.java new file mode 100644 index 000000000000..caff2452efe9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQueryOrBuilder.java @@ -0,0 +1,1110 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface ProfileQueryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ProfileQuery) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * Keywords to match any text fields of profiles.
+   * For example, "software engineer in Palo Alto".
+   * 
+ * + * string query = 1; + */ + java.lang.String getQuery(); + /** + * + * + *
+   * Optional.
+   * Keywords to match any text fields of profiles.
+   * For example, "software engineer in Palo Alto".
+   * 
+ * + * string query = 1; + */ + com.google.protobuf.ByteString getQueryBytes(); + + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the profiles to
+   * search against.
+   * If a location filter isn't specified, profiles fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If
+   * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+   * is specified, the result doesn't contain profiles from that location.
+   * For example, search for profiles with addresses in "New York City".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + java.util.List getLocationFiltersList(); + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the profiles to
+   * search against.
+   * If a location filter isn't specified, profiles fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If
+   * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+   * is specified, the result doesn't contain profiles from that location.
+   * For example, search for profiles with addresses in "New York City".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + com.google.cloud.talent.v4beta1.LocationFilter getLocationFilters(int index); + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the profiles to
+   * search against.
+   * If a location filter isn't specified, profiles fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If
+   * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+   * is specified, the result doesn't contain profiles from that location.
+   * For example, search for profiles with addresses in "New York City".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + int getLocationFiltersCount(); + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the profiles to
+   * search against.
+   * If a location filter isn't specified, profiles fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If
+   * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+   * is specified, the result doesn't contain profiles from that location.
+   * For example, search for profiles with addresses in "New York City".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + java.util.List + getLocationFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the profiles to
+   * search against.
+   * If a location filter isn't specified, profiles fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If
+   * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+   * is specified, the result doesn't contain profiles from that location.
+   * For example, search for profiles with addresses in "New York City".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + com.google.cloud.talent.v4beta1.LocationFilterOrBuilder getLocationFiltersOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * Job title filter specifies job titles of profiles to match on.
+   * If a job title isn't specified, profiles with any titles are retrieved.
+   * If multiple values are specified, profiles are retrieved with any of the
+   * specified job titles.
+   * If
+   * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+   * is specified, the result won't contain profiles with the job titles.
+   * For example, search for profiles with a job title "Product Manager".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + java.util.List getJobTitleFiltersList(); + /** + * + * + *
+   * Optional.
+   * Job title filter specifies job titles of profiles to match on.
+   * If a job title isn't specified, profiles with any titles are retrieved.
+   * If multiple values are specified, profiles are retrieved with any of the
+   * specified job titles.
+   * If
+   * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+   * is specified, the result won't contain profiles with the job titles.
+   * For example, search for profiles with a job title "Product Manager".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + com.google.cloud.talent.v4beta1.JobTitleFilter getJobTitleFilters(int index); + /** + * + * + *
+   * Optional.
+   * Job title filter specifies job titles of profiles to match on.
+   * If a job title isn't specified, profiles with any titles are retrieved.
+   * If multiple values are specified, profiles are retrieved with any of the
+   * specified job titles.
+   * If
+   * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+   * is specified, the result won't contain profiles with the job titles.
+   * For example, search for profiles with a job title "Product Manager".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + int getJobTitleFiltersCount(); + /** + * + * + *
+   * Optional.
+   * Job title filter specifies job titles of profiles to match on.
+   * If a job title isn't specified, profiles with any titles are retrieved.
+   * If multiple values are specified, profiles are retrieved with any of the
+   * specified job titles.
+   * If
+   * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+   * is specified, the result won't contain profiles with the job titles.
+   * For example, search for profiles with a job title "Product Manager".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + java.util.List + getJobTitleFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * Job title filter specifies job titles of profiles to match on.
+   * If a job title isn't specified, profiles with any titles are retrieved.
+   * If multiple values are specified, profiles are retrieved with any of the
+   * specified job titles.
+   * If
+   * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+   * is specified, the result won't contain profiles with the job titles.
+   * For example, search for profiles with a job title "Product Manager".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + com.google.cloud.talent.v4beta1.JobTitleFilterOrBuilder getJobTitleFiltersOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * Employer filter specifies employers of profiles to match on.
+   * If an employer filter isn't specified, profiles with any employers are
+   * retrieved.
+   * If multiple employer filters are specified, profiles with any matching
+   * employers are retrieved.
+   * If
+   * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+   * is specified, the result won't contain profiles that match the employers.
+   * For example, search for profiles that have working experience at "Google
+   * LLC".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + java.util.List getEmployerFiltersList(); + /** + * + * + *
+   * Optional.
+   * Employer filter specifies employers of profiles to match on.
+   * If an employer filter isn't specified, profiles with any employers are
+   * retrieved.
+   * If multiple employer filters are specified, profiles with any matching
+   * employers are retrieved.
+   * If
+   * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+   * is specified, the result won't contain profiles that match the employers.
+   * For example, search for profiles that have working experience at "Google
+   * LLC".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + com.google.cloud.talent.v4beta1.EmployerFilter getEmployerFilters(int index); + /** + * + * + *
+   * Optional.
+   * Employer filter specifies employers of profiles to match on.
+   * If an employer filter isn't specified, profiles with any employers are
+   * retrieved.
+   * If multiple employer filters are specified, profiles with any matching
+   * employers are retrieved.
+   * If
+   * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+   * is specified, the result won't contain profiles that match the employers.
+   * For example, search for profiles that have working experience at "Google
+   * LLC".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + int getEmployerFiltersCount(); + /** + * + * + *
+   * Optional.
+   * Employer filter specifies employers of profiles to match on.
+   * If an employer filter isn't specified, profiles with any employers are
+   * retrieved.
+   * If multiple employer filters are specified, profiles with any matching
+   * employers are retrieved.
+   * If
+   * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+   * is specified, the result won't contain profiles that match the employers.
+   * For example, search for profiles that have working experience at "Google
+   * LLC".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + java.util.List + getEmployerFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * Employer filter specifies employers of profiles to match on.
+   * If an employer filter isn't specified, profiles with any employers are
+   * retrieved.
+   * If multiple employer filters are specified, profiles with any matching
+   * employers are retrieved.
+   * If
+   * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+   * is specified, the result won't contain profiles that match the employers.
+   * For example, search for profiles that have working experience at "Google
+   * LLC".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + com.google.cloud.talent.v4beta1.EmployerFilterOrBuilder getEmployerFiltersOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * Education filter specifies education of profiles to match on.
+   * If an education filter isn't specified, profiles with any education are
+   * retrieved.
+   * If multiple education filters are specified, profiles that match any
+   * education filters are retrieved.
+   * If
+   * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+   * is specified, the result won't contain profiles that match the educations.
+   * For example, search for profiles with a master degree.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + java.util.List getEducationFiltersList(); + /** + * + * + *
+   * Optional.
+   * Education filter specifies education of profiles to match on.
+   * If an education filter isn't specified, profiles with any education are
+   * retrieved.
+   * If multiple education filters are specified, profiles that match any
+   * education filters are retrieved.
+   * If
+   * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+   * is specified, the result won't contain profiles that match the educations.
+   * For example, search for profiles with a master degree.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + com.google.cloud.talent.v4beta1.EducationFilter getEducationFilters(int index); + /** + * + * + *
+   * Optional.
+   * Education filter specifies education of profiles to match on.
+   * If an education filter isn't specified, profiles with any education are
+   * retrieved.
+   * If multiple education filters are specified, profiles that match any
+   * education filters are retrieved.
+   * If
+   * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+   * is specified, the result won't contain profiles that match the educations.
+   * For example, search for profiles with a master degree.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + int getEducationFiltersCount(); + /** + * + * + *
+   * Optional.
+   * Education filter specifies education of profiles to match on.
+   * If an education filter isn't specified, profiles with any education are
+   * retrieved.
+   * If multiple education filters are specified, profiles that match any
+   * education filters are retrieved.
+   * If
+   * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+   * is specified, the result won't contain profiles that match the educations.
+   * For example, search for profiles with a master degree.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + java.util.List + getEducationFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * Education filter specifies education of profiles to match on.
+   * If an education filter isn't specified, profiles with any education are
+   * retrieved.
+   * If multiple education filters are specified, profiles that match any
+   * education filters are retrieved.
+   * If
+   * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+   * is specified, the result won't contain profiles that match the educations.
+   * For example, search for profiles with a master degree.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + com.google.cloud.talent.v4beta1.EducationFilterOrBuilder getEducationFiltersOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * Skill filter specifies skill of profiles to match on.
+   * If a skill filter isn't specified, profiles with any skills are retrieved.
+   * If multiple skill filters are specified, profiles that match any skill
+   * filters are retrieved.
+   * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+   * is specified, the result won't contain profiles that match the skills.
+   * For example, search for profiles that have "Java" and "Python" in skill
+   * list.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + java.util.List getSkillFiltersList(); + /** + * + * + *
+   * Optional.
+   * Skill filter specifies skill of profiles to match on.
+   * If a skill filter isn't specified, profiles with any skills are retrieved.
+   * If multiple skill filters are specified, profiles that match any skill
+   * filters are retrieved.
+   * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+   * is specified, the result won't contain profiles that match the skills.
+   * For example, search for profiles that have "Java" and "Python" in skill
+   * list.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + com.google.cloud.talent.v4beta1.SkillFilter getSkillFilters(int index); + /** + * + * + *
+   * Optional.
+   * Skill filter specifies skill of profiles to match on.
+   * If a skill filter isn't specified, profiles with any skills are retrieved.
+   * If multiple skill filters are specified, profiles that match any skill
+   * filters are retrieved.
+   * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+   * is specified, the result won't contain profiles that match the skills.
+   * For example, search for profiles that have "Java" and "Python" in skill
+   * list.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + int getSkillFiltersCount(); + /** + * + * + *
+   * Optional.
+   * Skill filter specifies skill of profiles to match on.
+   * If a skill filter isn't specified, profiles with any skills are retrieved.
+   * If multiple skill filters are specified, profiles that match any skill
+   * filters are retrieved.
+   * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+   * is specified, the result won't contain profiles that match the skills.
+   * For example, search for profiles that have "Java" and "Python" in skill
+   * list.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + java.util.List + getSkillFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * Skill filter specifies skill of profiles to match on.
+   * If a skill filter isn't specified, profiles with any skills are retrieved.
+   * If multiple skill filters are specified, profiles that match any skill
+   * filters are retrieved.
+   * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+   * is specified, the result won't contain profiles that match the skills.
+   * For example, search for profiles that have "Java" and "Python" in skill
+   * list.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + com.google.cloud.talent.v4beta1.SkillFilterOrBuilder getSkillFiltersOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * Work experience filter specifies the total working experience of profiles
+   * to match on.
+   * If a work experience filter isn't specified, profiles with any
+   * professional experience are retrieved.
+   * If multiple work experience filters are specified, profiles that match any
+   * work experience filters are retrieved.
+   * For example, search for profiles with 10 years of work experience.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + java.util.List + getWorkExperienceFilterList(); + /** + * + * + *
+   * Optional.
+   * Work experience filter specifies the total working experience of profiles
+   * to match on.
+   * If a work experience filter isn't specified, profiles with any
+   * professional experience are retrieved.
+   * If multiple work experience filters are specified, profiles that match any
+   * work experience filters are retrieved.
+   * For example, search for profiles with 10 years of work experience.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + com.google.cloud.talent.v4beta1.WorkExperienceFilter getWorkExperienceFilter(int index); + /** + * + * + *
+   * Optional.
+   * Work experience filter specifies the total working experience of profiles
+   * to match on.
+   * If a work experience filter isn't specified, profiles with any
+   * professional experience are retrieved.
+   * If multiple work experience filters are specified, profiles that match any
+   * work experience filters are retrieved.
+   * For example, search for profiles with 10 years of work experience.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + int getWorkExperienceFilterCount(); + /** + * + * + *
+   * Optional.
+   * Work experience filter specifies the total working experience of profiles
+   * to match on.
+   * If a work experience filter isn't specified, profiles with any
+   * professional experience are retrieved.
+   * If multiple work experience filters are specified, profiles that match any
+   * work experience filters are retrieved.
+   * For example, search for profiles with 10 years of work experience.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + java.util.List + getWorkExperienceFilterOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * Work experience filter specifies the total working experience of profiles
+   * to match on.
+   * If a work experience filter isn't specified, profiles with any
+   * professional experience are retrieved.
+   * If multiple work experience filters are specified, profiles that match any
+   * work experience filters are retrieved.
+   * For example, search for profiles with 10 years of work experience.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + com.google.cloud.talent.v4beta1.WorkExperienceFilterOrBuilder getWorkExperienceFilterOrBuilder( + int index); + + /** + * + * + *
+   * Optional.
+   * Time filter specifies the create/update timestamp of the profiles to match
+   * on.
+   * For example, search for profiles created since "2018-1-1".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + java.util.List getTimeFiltersList(); + /** + * + * + *
+   * Optional.
+   * Time filter specifies the create/update timestamp of the profiles to match
+   * on.
+   * For example, search for profiles created since "2018-1-1".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + com.google.cloud.talent.v4beta1.TimeFilter getTimeFilters(int index); + /** + * + * + *
+   * Optional.
+   * Time filter specifies the create/update timestamp of the profiles to match
+   * on.
+   * For example, search for profiles created since "2018-1-1".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + int getTimeFiltersCount(); + /** + * + * + *
+   * Optional.
+   * Time filter specifies the create/update timestamp of the profiles to match
+   * on.
+   * For example, search for profiles created since "2018-1-1".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + java.util.List + getTimeFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * Time filter specifies the create/update timestamp of the profiles to match
+   * on.
+   * For example, search for profiles created since "2018-1-1".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + com.google.cloud.talent.v4beta1.TimeFilterOrBuilder getTimeFiltersOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The hirable filter specifies the profile's hirable status to match on.
+   * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + boolean hasHirableFilter(); + /** + * + * + *
+   * Optional.
+   * The hirable filter specifies the profile's hirable status to match on.
+   * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + com.google.protobuf.BoolValue getHirableFilter(); + /** + * + * + *
+   * Optional.
+   * The hirable filter specifies the profile's hirable status to match on.
+   * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + com.google.protobuf.BoolValueOrBuilder getHirableFilterOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The application date filters specify application date ranges to match on.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + java.util.List + getApplicationDateFiltersList(); + /** + * + * + *
+   * Optional.
+   * The application date filters specify application date ranges to match on.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + com.google.cloud.talent.v4beta1.ApplicationDateFilter getApplicationDateFilters(int index); + /** + * + * + *
+   * Optional.
+   * The application date filters specify application date ranges to match on.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + int getApplicationDateFiltersCount(); + /** + * + * + *
+   * Optional.
+   * The application date filters specify application date ranges to match on.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + java.util.List + getApplicationDateFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The application date filters specify application date ranges to match on.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + com.google.cloud.talent.v4beta1.ApplicationDateFilterOrBuilder getApplicationDateFiltersOrBuilder( + int index); + + /** + * + * + *
+   * Optional.
+   * The application outcome reason filters specify the reasons for outcome of
+   * the job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + java.util.List + getApplicationOutcomeReasonFiltersList(); + /** + * + * + *
+   * Optional.
+   * The application outcome reason filters specify the reasons for outcome of
+   * the job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter getApplicationOutcomeReasonFilters( + int index); + /** + * + * + *
+   * Optional.
+   * The application outcome reason filters specify the reasons for outcome of
+   * the job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + int getApplicationOutcomeReasonFiltersCount(); + /** + * + * + *
+   * Optional.
+   * The application outcome reason filters specify the reasons for outcome of
+   * the job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + java.util.List + getApplicationOutcomeReasonFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The application outcome reason filters specify the reasons for outcome of
+   * the job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder + getApplicationOutcomeReasonFiltersOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The application last stage filters specify the last stage of job
+   * application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + java.util.List + getApplicationLastStageFiltersList(); + /** + * + * + *
+   * Optional.
+   * The application last stage filters specify the last stage of job
+   * application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter getApplicationLastStageFilters( + int index); + /** + * + * + *
+   * Optional.
+   * The application last stage filters specify the last stage of job
+   * application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + int getApplicationLastStageFiltersCount(); + /** + * + * + *
+   * Optional.
+   * The application last stage filters specify the last stage of job
+   * application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + java.util.List + getApplicationLastStageFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The application last stage filters specify the last stage of job
+   * application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + com.google.cloud.talent.v4beta1.ApplicationLastStageFilterOrBuilder + getApplicationLastStageFiltersOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The application job filters specify the job applied for in the application.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + java.util.List + getApplicationJobFiltersList(); + /** + * + * + *
+   * Optional.
+   * The application job filters specify the job applied for in the application.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + com.google.cloud.talent.v4beta1.ApplicationJobFilter getApplicationJobFilters(int index); + /** + * + * + *
+   * Optional.
+   * The application job filters specify the job applied for in the application.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + int getApplicationJobFiltersCount(); + /** + * + * + *
+   * Optional.
+   * The application job filters specify the job applied for in the application.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + java.util.List + getApplicationJobFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The application job filters specify the job applied for in the application.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + com.google.cloud.talent.v4beta1.ApplicationJobFilterOrBuilder getApplicationJobFiltersOrBuilder( + int index); + + /** + * + * + *
+   * Optional.
+   * The application status filters specify the status of job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + java.util.List + getApplicationStatusFiltersList(); + /** + * + * + *
+   * Optional.
+   * The application status filters specify the status of job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + com.google.cloud.talent.v4beta1.ApplicationStatusFilter getApplicationStatusFilters(int index); + /** + * + * + *
+   * Optional.
+   * The application status filters specify the status of job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + int getApplicationStatusFiltersCount(); + /** + * + * + *
+   * Optional.
+   * The application status filters specify the status of job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + java.util.List + getApplicationStatusFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The application status filters specify the status of job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + com.google.cloud.talent.v4beta1.ApplicationStatusFilterOrBuilder + getApplicationStatusFiltersOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * This filter specifies a structured syntax to match against the
+   * [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes]
+   * that are marked as `filterable`.
+   * The syntax for this expression is a subset of Google SQL syntax.
+   * Supported operators are: =, != where the left of the operator is a custom
+   * field key and the right of the operator is a string (surrounded by quotes)
+   * value.
+   * Supported functions are LOWER(<field_name>) to
+   * perform case insensitive match and EMPTY(<field_name>) to filter on the
+   * existence of a key.
+   * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+   * nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be
+   * a maximum of 50 comparisons/functions in the expression. The expression
+   * must be < 2000 characters in length.
+   * Sample Query:
+   * (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1))
+   * 
+ * + * string custom_field_filter = 15; + */ + java.lang.String getCustomFieldFilter(); + /** + * + * + *
+   * Optional.
+   * This filter specifies a structured syntax to match against the
+   * [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes]
+   * that are marked as `filterable`.
+   * The syntax for this expression is a subset of Google SQL syntax.
+   * Supported operators are: =, != where the left of the operator is a custom
+   * field key and the right of the operator is a string (surrounded by quotes)
+   * value.
+   * Supported functions are LOWER(<field_name>) to
+   * perform case insensitive match and EMPTY(<field_name>) to filter on the
+   * existence of a key.
+   * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+   * nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be
+   * a maximum of 50 comparisons/functions in the expression. The expression
+   * must be < 2000 characters in length.
+   * Sample Query:
+   * (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1))
+   * 
+ * + * string custom_field_filter = 15; + */ + com.google.protobuf.ByteString getCustomFieldFilterBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileResourceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileResourceProto.java new file mode 100644 index 000000000000..32ef535b4be8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileResourceProto.java @@ -0,0 +1,528 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public final class ProfileResourceProto { + private ProfileResourceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Profile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Profile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Profile_CustomAttributesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Profile_CustomAttributesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_PersonName_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_PersonName_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Address_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Address_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Email_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Email_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Phone_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Phone_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_PersonalUri_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_PersonalUri_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_EmploymentRecord_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_EmploymentRecord_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_EducationRecord_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_EducationRecord_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Degree_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Degree_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Skill_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Skill_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Activity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Activity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Publication_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Publication_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Patent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Patent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_JobApplication_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_JobApplication_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Certification_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Certification_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_RecruitingNote_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_RecruitingNote_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/talent/v4beta1/profile.pr" + + "oto\022\033google.cloud.talent.v4beta1\032\034google" + + "/api/annotations.proto\032(google/cloud/tal" + + "ent/v4beta1/common.proto\032%google/cloud/t" + + "alent/v4beta1/job.proto\032\037google/protobuf" + + "/timestamp.proto\032\036google/protobuf/wrappe" + + "rs.proto\032\026google/type/date.proto\032 google" + + "/type/postal_address.proto\"\276\013\n\007Profile\022\014" + + "\n\004name\030\001 \001(\t\022\023\n\013external_id\030\002 \001(\t\022\016\n\006sou" + + "rce\030\003 \001(\t\022\013\n\003uri\030\004 \001(\t\022\020\n\010group_id\030\005 \001(\t" + + "\022.\n\nis_hirable\030\006 \001(\0132\032.google.protobuf.B" + + "oolValue\022/\n\013create_time\030\007 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022/\n\013update_time\030\010 \001(\0132\032" + + ".google.protobuf.Timestamp\022\024\n\014resume_hrx" + + "ml\030\n \001(\t\022=\n\014person_names\030\013 \003(\0132\'.google." + + "cloud.talent.v4beta1.PersonName\0227\n\taddre" + + "sses\030\014 \003(\0132$.google.cloud.talent.v4beta1" + + ".Address\022;\n\017email_addresses\030\r \003(\0132\".goog" + + "le.cloud.talent.v4beta1.Email\0229\n\rphone_n" + + "umbers\030\016 \003(\0132\".google.cloud.talent.v4bet" + + "a1.Phone\022?\n\rpersonal_uris\030\017 \003(\0132(.google" + + ".cloud.talent.v4beta1.PersonalUri\022S\n\027add" + + "itional_contact_info\030\020 \003(\01322.google.clou" + + "d.talent.v4beta1.AdditionalContactInfo\022I" + + "\n\022employment_records\030\021 \003(\0132-.google.clou" + + "d.talent.v4beta1.EmploymentRecord\022G\n\021edu" + + "cation_records\030\022 \003(\0132,.google.cloud.tale" + + "nt.v4beta1.EducationRecord\0222\n\006skills\030\023 \003" + + "(\0132\".google.cloud.talent.v4beta1.Skill\0229" + + "\n\nactivities\030\024 \003(\0132%.google.cloud.talent" + + ".v4beta1.Activity\022>\n\014publications\030\025 \003(\0132" + + "(.google.cloud.talent.v4beta1.Publicatio" + + "n\0224\n\007patents\030\026 \003(\0132#.google.cloud.talent" + + ".v4beta1.Patent\022B\n\016certifications\030\027 \003(\0132" + + "*.google.cloud.talent.v4beta1.Certificat" + + "ion\022E\n\020job_applications\030\030 \003(\0132+.google.c" + + "loud.talent.v4beta1.JobApplication\022E\n\020re" + + "cruiting_notes\030\031 \003(\0132+.google.cloud.tale" + + "nt.v4beta1.RecruitingNote\022U\n\021custom_attr" + + "ibutes\030\032 \003(\0132:.google.cloud.talent.v4bet" + + "a1.Profile.CustomAttributesEntry\022\021\n\tproc" + + "essed\030\033 \001(\010\022\027\n\017keyword_snippet\030\034 \001(\t\032e\n\025" + + "CustomAttributesEntry\022\013\n\003key\030\001 \001(\t\022;\n\005va" + + "lue\030\002 \001(\0132,.google.cloud.talent.v4beta1." + + "CustomAttribute:\0028\001\"\243\002\n\nPersonName\022\030\n\016fo" + + "rmatted_name\030\001 \001(\tH\000\022W\n\017structured_name\030" + + "\002 \001(\0132<.google.cloud.talent.v4beta1.Pers" + + "onName.PersonStructuredNameH\000\022\026\n\016preferr" + + "ed_name\030\003 \001(\t\032{\n\024PersonStructuredName\022\022\n" + + "\ngiven_name\030\001 \001(\t\022\026\n\016middle_initial\030\002 \001(" + + "\t\022\023\n\013family_name\030\003 \001(\t\022\020\n\010suffixes\030\004 \003(\t" + + "\022\020\n\010prefixes\030\005 \003(\tB\r\n\013person_name\"\334\001\n\007Ad" + + "dress\022<\n\005usage\030\001 \001(\0162-.google.cloud.tale" + + "nt.v4beta1.ContactInfoUsage\022\036\n\024unstructu" + + "red_address\030\002 \001(\tH\000\0228\n\022structured_addres" + + "s\030\003 \001(\0132\032.google.type.PostalAddressH\000\022.\n" + + "\nis_current\030\004 \001(\0132\032.google.protobuf.Bool" + + "ValueB\t\n\007address\"\\\n\005Email\022<\n\005usage\030\001 \001(\016" + + "2-.google.cloud.talent.v4beta1.ContactIn" + + "foUsage\022\025\n\remail_address\030\002 \001(\t\"\317\002\n\005Phone" + + "\022<\n\005usage\030\001 \001(\0162-.google.cloud.talent.v4" + + "beta1.ContactInfoUsage\022:\n\004type\030\002 \001(\0162,.g" + + "oogle.cloud.talent.v4beta1.Phone.PhoneTy" + + "pe\022\016\n\006number\030\003 \001(\t\022\026\n\016when_available\030\004 \001" + + "(\t\"\243\001\n\tPhoneType\022\032\n\026PHONE_TYPE_UNSPECIFI" + + "ED\020\000\022\014\n\010LANDLINE\020\001\022\n\n\006MOBILE\020\002\022\007\n\003FAX\020\003\022" + + "\t\n\005PAGER\020\004\022\016\n\nTTY_OR_TDD\020\005\022\r\n\tVOICEMAIL\020" + + "\006\022\013\n\007VIRTUAL\020\007\022\010\n\004VOIP\020\010\022\026\n\022MOBILE_OR_LA" + + "NDLINE\020\t\"\032\n\013PersonalUri\022\013\n\003uri\030\001 \001(\t\"w\n\025" + + "AdditionalContactInfo\022<\n\005usage\030\001 \001(\0162-.g" + + "oogle.cloud.talent.v4beta1.ContactInfoUs" + + "age\022\014\n\004name\030\002 \001(\t\022\022\n\ncontact_id\030\003 \001(\t\"\354\003" + + "\n\020EmploymentRecord\022%\n\nstart_date\030\001 \001(\0132\021" + + ".google.type.Date\022#\n\010end_date\030\002 \001(\0132\021.go" + + "ogle.type.Date\022\025\n\remployer_name\030\003 \001(\t\022\025\n" + + "\rdivision_name\030\004 \001(\t\0225\n\007address\030\005 \001(\0132$." + + "google.cloud.talent.v4beta1.Address\022\021\n\tj" + + "ob_title\030\006 \001(\t\022\027\n\017job_description\030\007 \001(\t\022" + + ":\n\026is_supervised_position\030\010 \001(\0132\032.google" + + ".protobuf.BoolValue\0224\n\020is_self_employed\030" + + "\t \001(\0132\032.google.protobuf.BoolValue\022.\n\nis_" + + "current\030\n \001(\0132\032.google.protobuf.BoolValu" + + "e\022\031\n\021job_title_snippet\030\013 \001(\t\022\037\n\027job_desc" + + "ription_snippet\030\014 \001(\t\022\035\n\025employer_name_s" + + "nippet\030\r \001(\t\"\302\003\n\017EducationRecord\022%\n\nstar" + + "t_date\030\001 \001(\0132\021.google.type.Date\022#\n\010end_d" + + "ate\030\002 \001(\0132\021.google.type.Date\0223\n\030expected" + + "_graduation_date\030\003 \001(\0132\021.google.type.Dat" + + "e\022\023\n\013school_name\030\004 \001(\t\0225\n\007address\030\005 \001(\0132" + + "$.google.cloud.talent.v4beta1.Address\022\034\n" + + "\022degree_description\030\006 \001(\tH\000\022@\n\021structure" + + "d_degree\030\007 \001(\0132#.google.cloud.talent.v4b" + + "eta1.DegreeH\000\022\023\n\013description\030\010 \001(\t\022.\n\nis" + + "_current\030\t \001(\0132\032.google.protobuf.BoolVal" + + "ue\022\033\n\023school_name_snippet\030\n \001(\t\022\026\n\016degre" + + "e_snippet\030\013 \001(\tB\010\n\006degree\"t\n\006Degree\022<\n\013d" + + "egree_type\030\001 \001(\0162\'.google.cloud.talent.v" + + "4beta1.DegreeType\022\023\n\013degree_name\030\002 \001(\t\022\027" + + "\n\017fields_of_study\030\003 \003(\t\"\324\002\n\005Skill\022\024\n\014dis" + + "play_name\030\001 \001(\t\022)\n\016last_used_date\030\002 \001(\0132" + + "\021.google.type.Date\022G\n\005level\030\003 \001(\01628.goog" + + "le.cloud.talent.v4beta1.Skill.SkillProfi" + + "ciencyLevel\022\017\n\007context\030\004 \001(\t\022\032\n\022skill_na" + + "me_snippet\030\005 \001(\t\"\223\001\n\025SkillProficiencyLev" + + "el\022\'\n#SKILL_PROFICIENCY_LEVEL_UNSPECIFIE" + + "D\020\000\022\031\n\025FUNDAMENTAL_AWARENESS\020\001\022\n\n\006NOVICE" + + "\020\002\022\020\n\014INTERMEDIATE\020\003\022\014\n\010ADVANCED\020\004\022\n\n\006EX" + + "PERT\020\005\"\303\002\n\010Activity\022\024\n\014display_name\030\001 \001(" + + "\t\022\023\n\013description\030\002 \001(\t\022\013\n\003uri\030\003 \001(\t\022&\n\013c" + + "reate_date\030\004 \001(\0132\021.google.type.Date\022&\n\013u" + + "pdate_date\030\005 \001(\0132\021.google.type.Date\022\024\n\014t" + + "eam_members\030\006 \003(\t\0227\n\013skills_used\030\007 \003(\0132\"" + + ".google.cloud.talent.v4beta1.Skill\022\035\n\025ac" + + "tivity_name_snippet\030\010 \001(\t\022$\n\034activity_de" + + "scription_snippet\030\t \001(\t\022\033\n\023skills_used_s" + + "nippet\030\n \003(\t\"\313\001\n\013Publication\022\017\n\007authors\030" + + "\001 \003(\t\022\r\n\005title\030\002 \001(\t\022\023\n\013description\030\003 \001(" + + "\t\022\017\n\007journal\030\004 \001(\t\022\016\n\006volume\030\005 \001(\t\022\021\n\tpu" + + "blisher\030\006 \001(\t\022+\n\020publication_date\030\007 \001(\0132" + + "\021.google.type.Date\022\030\n\020publication_type\030\010" + + " \001(\t\022\014\n\004isbn\030\t \001(\t\"\251\002\n\006Patent\022\024\n\014display" + + "_name\030\001 \001(\t\022\021\n\tinventors\030\002 \003(\t\022\025\n\rpatent" + + "_status\030\003 \001(\t\022-\n\022patent_status_date\030\004 \001(" + + "\0132\021.google.type.Date\022-\n\022patent_filing_da" + + "te\030\005 \001(\0132\021.google.type.Date\022\025\n\rpatent_of" + + "fice\030\006 \001(\t\022\025\n\rpatent_number\030\007 \001(\t\022\032\n\022pat" + + "ent_description\030\010 \001(\t\0227\n\013skills_used\030\t \003" + + "(\0132\".google.cloud.talent.v4beta1.Skill\"\373" + + "\005\n\016JobApplication\022-\n\003job\030\001 \001(\0132 .google." + + "cloud.talent.v4beta1.Job\022\026\n\016application_" + + "id\030\002 \001(\t\022+\n\020application_date\030\003 \001(\0132\021.goo" + + "gle.type.Date\022\022\n\nlast_stage\030\004 \001(\t\022L\n\005sta" + + "te\030\005 \001(\0162=.google.cloud.talent.v4beta1.J" + + "obApplication.ApplicationStatus\022\037\n\027avera" + + "ge_interview_score\030\006 \001(\001\022 \n\030interview_sc" + + "ore_scale_id\030\007 \001(\t\022\034\n\024number_of_intervie" + + "ws\030\010 \001(\005\0228\n\024is_employee_referred\030\t \001(\0132\032" + + ".google.protobuf.BoolValue\022/\n\013update_tim" + + "e\030\n \001(\0132\032.google.protobuf.Timestamp\022\026\n\016o" + + "utcome_reason\030\013 \001(\t\022\034\n\024outcome_positiven" + + "ess\030\014 \001(\001\022,\n\010is_match\030\r \001(\0132\032.google.pro" + + "tobuf.BoolValue\022\031\n\021job_title_snippet\030\016 \001" + + "(\t\"\307\001\n\021ApplicationStatus\022\"\n\036APPLICATION_" + + "STATUS_UNSPECIFIED\020\000\022\022\n\016OFFER_EXTENDED\020\001" + + "\022\031\n\025REJECTED_BY_CANDIDATE\020\002\022\n\n\006ACTIVE\020\003\022" + + "\030\n\024REJECTED_BY_EMPLOYER\020\004\022\026\n\022HIRED_PENDI" + + "NG_DATE\020\005\022\021\n\rHIRED_STARTED\020\006\022\016\n\nPROSPECT" + + "ED\020\007\"\236\001\n\rCertification\022\024\n\014display_name\030\001" + + " \001(\t\022\'\n\014acquire_date\030\002 \001(\0132\021.google.type" + + ".Date\022&\n\013expire_date\030\003 \001(\0132\021.google.type" + + ".Date\022\021\n\tauthority\030\004 \001(\t\022\023\n\013description\030" + + "\005 \001(\t\"g\n\016RecruitingNote\022\014\n\004note\030\001 \001(\t\022\021\n" + + "\tcommenter\030\002 \001(\t\022&\n\013create_date\030\003 \001(\0132\021." + + "google.type.Date\022\014\n\004type\030\004 \001(\tB\202\001\n\037com.g" + + "oogle.cloud.talent.v4beta1B\024ProfileResou" + + "rceProtoP\001ZAgoogle.golang.org/genproto/g" + + "oogleapis/cloud/talent/v4beta1;talent\242\002\003" + + "CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), + com.google.cloud.talent.v4beta1.JobResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.type.DateProto.getDescriptor(), + com.google.type.PostalAddressProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_Profile_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_Profile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Profile_descriptor, + new java.lang.String[] { + "Name", + "ExternalId", + "Source", + "Uri", + "GroupId", + "IsHirable", + "CreateTime", + "UpdateTime", + "ResumeHrxml", + "PersonNames", + "Addresses", + "EmailAddresses", + "PhoneNumbers", + "PersonalUris", + "AdditionalContactInfo", + "EmploymentRecords", + "EducationRecords", + "Skills", + "Activities", + "Publications", + "Patents", + "Certifications", + "JobApplications", + "RecruitingNotes", + "CustomAttributes", + "Processed", + "KeywordSnippet", + }); + internal_static_google_cloud_talent_v4beta1_Profile_CustomAttributesEntry_descriptor = + internal_static_google_cloud_talent_v4beta1_Profile_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_talent_v4beta1_Profile_CustomAttributesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Profile_CustomAttributesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_talent_v4beta1_PersonName_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_talent_v4beta1_PersonName_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_PersonName_descriptor, + new java.lang.String[] { + "FormattedName", "StructuredName", "PreferredName", "PersonName", + }); + internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_descriptor = + internal_static_google_cloud_talent_v4beta1_PersonName_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_descriptor, + new java.lang.String[] { + "GivenName", "MiddleInitial", "FamilyName", "Suffixes", "Prefixes", + }); + internal_static_google_cloud_talent_v4beta1_Address_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_talent_v4beta1_Address_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Address_descriptor, + new java.lang.String[] { + "Usage", "UnstructuredAddress", "StructuredAddress", "IsCurrent", "Address", + }); + internal_static_google_cloud_talent_v4beta1_Email_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_talent_v4beta1_Email_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Email_descriptor, + new java.lang.String[] { + "Usage", "EmailAddress", + }); + internal_static_google_cloud_talent_v4beta1_Phone_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_talent_v4beta1_Phone_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Phone_descriptor, + new java.lang.String[] { + "Usage", "Type", "Number", "WhenAvailable", + }); + internal_static_google_cloud_talent_v4beta1_PersonalUri_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_talent_v4beta1_PersonalUri_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_PersonalUri_descriptor, + new java.lang.String[] { + "Uri", + }); + internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_descriptor, + new java.lang.String[] { + "Usage", "Name", "ContactId", + }); + internal_static_google_cloud_talent_v4beta1_EmploymentRecord_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_talent_v4beta1_EmploymentRecord_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_EmploymentRecord_descriptor, + new java.lang.String[] { + "StartDate", + "EndDate", + "EmployerName", + "DivisionName", + "Address", + "JobTitle", + "JobDescription", + "IsSupervisedPosition", + "IsSelfEmployed", + "IsCurrent", + "JobTitleSnippet", + "JobDescriptionSnippet", + "EmployerNameSnippet", + }); + internal_static_google_cloud_talent_v4beta1_EducationRecord_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_talent_v4beta1_EducationRecord_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_EducationRecord_descriptor, + new java.lang.String[] { + "StartDate", + "EndDate", + "ExpectedGraduationDate", + "SchoolName", + "Address", + "DegreeDescription", + "StructuredDegree", + "Description", + "IsCurrent", + "SchoolNameSnippet", + "DegreeSnippet", + "Degree", + }); + internal_static_google_cloud_talent_v4beta1_Degree_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_talent_v4beta1_Degree_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Degree_descriptor, + new java.lang.String[] { + "DegreeType", "DegreeName", "FieldsOfStudy", + }); + internal_static_google_cloud_talent_v4beta1_Skill_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_talent_v4beta1_Skill_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Skill_descriptor, + new java.lang.String[] { + "DisplayName", "LastUsedDate", "Level", "Context", "SkillNameSnippet", + }); + internal_static_google_cloud_talent_v4beta1_Activity_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_talent_v4beta1_Activity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Activity_descriptor, + new java.lang.String[] { + "DisplayName", + "Description", + "Uri", + "CreateDate", + "UpdateDate", + "TeamMembers", + "SkillsUsed", + "ActivityNameSnippet", + "ActivityDescriptionSnippet", + "SkillsUsedSnippet", + }); + internal_static_google_cloud_talent_v4beta1_Publication_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_talent_v4beta1_Publication_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Publication_descriptor, + new java.lang.String[] { + "Authors", + "Title", + "Description", + "Journal", + "Volume", + "Publisher", + "PublicationDate", + "PublicationType", + "Isbn", + }); + internal_static_google_cloud_talent_v4beta1_Patent_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_talent_v4beta1_Patent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Patent_descriptor, + new java.lang.String[] { + "DisplayName", + "Inventors", + "PatentStatus", + "PatentStatusDate", + "PatentFilingDate", + "PatentOffice", + "PatentNumber", + "PatentDescription", + "SkillsUsed", + }); + internal_static_google_cloud_talent_v4beta1_JobApplication_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_talent_v4beta1_JobApplication_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_JobApplication_descriptor, + new java.lang.String[] { + "Job", + "ApplicationId", + "ApplicationDate", + "LastStage", + "State", + "AverageInterviewScore", + "InterviewScoreScaleId", + "NumberOfInterviews", + "IsEmployeeReferred", + "UpdateTime", + "OutcomeReason", + "OutcomePositiveness", + "IsMatch", + "JobTitleSnippet", + }); + internal_static_google_cloud_talent_v4beta1_Certification_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_talent_v4beta1_Certification_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Certification_descriptor, + new java.lang.String[] { + "DisplayName", "AcquireDate", "ExpireDate", "Authority", "Description", + }); + internal_static_google_cloud_talent_v4beta1_RecruitingNote_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_talent_v4beta1_RecruitingNote_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_RecruitingNote_descriptor, + new java.lang.String[] { + "Note", "Commenter", "CreateDate", "Type", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); + com.google.cloud.talent.v4beta1.JobResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.type.DateProto.getDescriptor(); + com.google.type.PostalAddressProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceProto.java new file mode 100644 index 000000000000..81756400465c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceProto.java @@ -0,0 +1,256 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +public final class ProfileServiceProto { + private ProfileServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_GetProfileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_GetProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_SummarizedProfile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_SummarizedProfile_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/talent/v4beta1/profile_se" + + "rvice.proto\022\033google.cloud.talent.v4beta1" + + "\032\034google/api/annotations.proto\032(google/c" + + "loud/talent/v4beta1/common.proto\032)google" + + "/cloud/talent/v4beta1/filters.proto\032+goo" + + "gle/cloud/talent/v4beta1/histogram.proto" + + "\032)google/cloud/talent/v4beta1/profile.pr" + + "oto\032\033google/protobuf/empty.proto\032 google" + + "/protobuf/field_mask.proto\"|\n\023ListProfil" + + "esRequest\022\016\n\006parent\030\001 \001(\t\022\022\n\npage_token\030" + + "\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022.\n\nfield_mask\030\004" + + " \001(\0132\032.google.protobuf.FieldMask\"g\n\024List" + + "ProfilesResponse\0226\n\010profiles\030\001 \003(\0132$.goo" + + "gle.cloud.talent.v4beta1.Profile\022\027\n\017next" + + "_page_token\030\002 \001(\t\"]\n\024CreateProfileReques" + + "t\022\016\n\006parent\030\001 \001(\t\0225\n\007profile\030\002 \001(\0132$.goo" + + "gle.cloud.talent.v4beta1.Profile\"!\n\021GetP" + + "rofileRequest\022\014\n\004name\030\001 \001(\t\"~\n\024UpdatePro" + + "fileRequest\0225\n\007profile\030\001 \001(\0132$.google.cl" + + "oud.talent.v4beta1.Profile\022/\n\013update_mas" + + "k\030\002 \001(\0132\032.google.protobuf.FieldMask\"$\n\024D" + + "eleteProfileRequest\022\014\n\004name\030\001 \001(\t\"\374\002\n\025Se" + + "archProfilesRequest\022\016\n\006parent\030\001 \001(\t\022F\n\020r" + + "equest_metadata\030\002 \001(\0132,.google.cloud.tal" + + "ent.v4beta1.RequestMetadata\022@\n\rprofile_q" + + "uery\030\003 \001(\0132).google.cloud.talent.v4beta1" + + ".ProfileQuery\022\021\n\tpage_size\030\004 \001(\005\022\022\n\npage" + + "_token\030\005 \001(\t\022\016\n\006offset\030\006 \001(\005\022\033\n\023disable_" + + "spell_check\030\007 \001(\010\022\020\n\010order_by\030\010 \001(\t\022\033\n\023c" + + "ase_sensitive_sort\030\t \001(\010\022F\n\021histogram_qu" + + "eries\030\n \003(\0132+.google.cloud.talent.v4beta" + + "1.HistogramQuery\"\374\002\n\026SearchProfilesRespo" + + "nse\022\034\n\024estimated_total_size\030\001 \001(\003\022I\n\020spe" + + "ll_correction\030\002 \001(\0132/.google.cloud.talen" + + "t.v4beta1.SpellingCorrection\022?\n\010metadata" + + "\030\003 \001(\0132-.google.cloud.talent.v4beta1.Res" + + "ponseMetadata\022\027\n\017next_page_token\030\004 \001(\t\022R" + + "\n\027histogram_query_results\030\005 \003(\01321.google" + + ".cloud.talent.v4beta1.HistogramQueryResu" + + "lt\022K\n\023summarized_profiles\030\006 \003(\0132..google" + + ".cloud.talent.v4beta1.SummarizedProfile\"" + + "\202\001\n\021SummarizedProfile\0226\n\010profiles\030\001 \003(\0132" + + "$.google.cloud.talent.v4beta1.Profile\0225\n" + + "\007summary\030\002 \001(\0132$.google.cloud.talent.v4b" + + "eta1.Profile2\377\007\n\016ProfileService\022\254\001\n\014List" + + "Profiles\0220.google.cloud.talent.v4beta1.L" + + "istProfilesRequest\0321.google.cloud.talent" + + ".v4beta1.ListProfilesResponse\"7\202\323\344\223\0021\022//" + + "v4beta1/{parent=projects/*/tenants/*}/pr" + + "ofiles\022\244\001\n\rCreateProfile\0221.google.cloud." + + "talent.v4beta1.CreateProfileRequest\032$.go" + + "ogle.cloud.talent.v4beta1.Profile\":\202\323\344\223\002" + + "4\"//v4beta1/{parent=projects/*/tenants/*" + + "}/profiles:\001*\022\233\001\n\nGetProfile\022..google.cl" + + "oud.talent.v4beta1.GetProfileRequest\032$.g" + + "oogle.cloud.talent.v4beta1.Profile\"7\202\323\344\223" + + "\0021\022//v4beta1/{name=projects/*/tenants/*/" + + "profiles/*}\022\254\001\n\rUpdateProfile\0221.google.c" + + "loud.talent.v4beta1.UpdateProfileRequest" + + "\032$.google.cloud.talent.v4beta1.Profile\"B" + + "\202\323\344\223\002<27/v4beta1/{profile.name=projects/" + + "*/tenants/*/profiles/*}:\001*\022\223\001\n\rDeletePro" + + "file\0221.google.cloud.talent.v4beta1.Delet" + + "eProfileRequest\032\026.google.protobuf.Empty\"" + + "7\202\323\344\223\0021*//v4beta1/{name=projects/*/tenan" + + "ts/*/profiles/*}\022\263\001\n\016SearchProfiles\0222.go" + + "ogle.cloud.talent.v4beta1.SearchProfiles" + + "Request\0323.google.cloud.talent.v4beta1.Se" + + "archProfilesResponse\"8\202\323\344\223\0022\"-/v4beta1/{" + + "parent=projects/*/tenants/*}:search:\001*B\201" + + "\001\n\037com.google.cloud.talent.v4beta1B\023Prof" + + "ileServiceProtoP\001ZAgoogle.golang.org/gen" + + "proto/googleapis/cloud/talent/v4beta1;ta" + + "lent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), + com.google.cloud.talent.v4beta1.FiltersProto.getDescriptor(), + com.google.cloud.talent.v4beta1.HistogramProto.getDescriptor(), + com.google.cloud.talent.v4beta1.ProfileResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", "FieldMask", + }); + internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_descriptor, + new java.lang.String[] { + "Profiles", "NextPageToken", + }); + internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_descriptor, + new java.lang.String[] { + "Parent", "Profile", + }); + internal_static_google_cloud_talent_v4beta1_GetProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_talent_v4beta1_GetProfileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_GetProfileRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_descriptor, + new java.lang.String[] { + "Profile", "UpdateMask", + }); + internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_descriptor, + new java.lang.String[] { + "Parent", + "RequestMetadata", + "ProfileQuery", + "PageSize", + "PageToken", + "Offset", + "DisableSpellCheck", + "OrderBy", + "CaseSensitiveSort", + "HistogramQueries", + }); + internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_descriptor, + new java.lang.String[] { + "EstimatedTotalSize", + "SpellCorrection", + "Metadata", + "NextPageToken", + "HistogramQueryResults", + "SummarizedProfiles", + }); + internal_static_google_cloud_talent_v4beta1_SummarizedProfile_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_talent_v4beta1_SummarizedProfile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_SummarizedProfile_descriptor, + new java.lang.String[] { + "Profiles", "Summary", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); + com.google.cloud.talent.v4beta1.FiltersProto.getDescriptor(); + com.google.cloud.talent.v4beta1.HistogramProto.getDescriptor(); + com.google.cloud.talent.v4beta1.ProfileResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProjectName.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProjectName.java new file mode 100644 index 000000000000..92004bb624cf --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProjectName.java @@ -0,0 +1,160 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.cloud.talent.v4beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class ProjectName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}"); + + private volatile Map fieldValuesMap; + + private final String project; + + public String getProject() { + return project; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private ProjectName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + } + + public static ProjectName of(String project) { + return newBuilder().setProject(project).build(); + } + + public static String format(String project) { + return newBuilder().setProject(project).build().toString(); + } + + public static ProjectName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "ProjectName.parse: formattedString not in valid format"); + return of(matchMap.get("project")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (ProjectName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project); + } + + /** Builder for ProjectName. */ + public static class Builder { + + private String project; + + public String getProject() { + return project; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + private Builder() {} + + private Builder(ProjectName projectName) { + project = projectName.project; + } + + public ProjectName build() { + return new ProjectName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof ProjectName) { + ProjectName that = (ProjectName) o; + return (this.project.equals(that.project)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Publication.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Publication.java new file mode 100644 index 000000000000..b19d07d0a5ec --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Publication.java @@ -0,0 +1,2201 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents a publication resource of a candidate.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Publication} + */ +public final class Publication extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Publication) + PublicationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Publication.newBuilder() to construct. + private Publication(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Publication() { + authors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + title_ = ""; + description_ = ""; + journal_ = ""; + volume_ = ""; + publisher_ = ""; + publicationType_ = ""; + isbn_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Publication( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + authors_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + authors_.add(s); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + title_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + journal_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + volume_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + publisher_ = s; + break; + } + case 58: + { + com.google.type.Date.Builder subBuilder = null; + if (publicationDate_ != null) { + subBuilder = publicationDate_.toBuilder(); + } + publicationDate_ = + input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(publicationDate_); + publicationDate_ = subBuilder.buildPartial(); + } + + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + publicationType_ = s; + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + + isbn_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + authors_ = authors_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Publication_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Publication_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Publication.class, + com.google.cloud.talent.v4beta1.Publication.Builder.class); + } + + private int bitField0_; + public static final int AUTHORS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList authors_; + /** + * + * + *
+   * Optional.
+   * A list of author names.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string authors = 1; + */ + public com.google.protobuf.ProtocolStringList getAuthorsList() { + return authors_; + } + /** + * + * + *
+   * Optional.
+   * A list of author names.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string authors = 1; + */ + public int getAuthorsCount() { + return authors_.size(); + } + /** + * + * + *
+   * Optional.
+   * A list of author names.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string authors = 1; + */ + public java.lang.String getAuthors(int index) { + return authors_.get(index); + } + /** + * + * + *
+   * Optional.
+   * A list of author names.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string authors = 1; + */ + public com.google.protobuf.ByteString getAuthorsBytes(int index) { + return authors_.getByteString(index); + } + + public static final int TITLE_FIELD_NUMBER = 2; + private volatile java.lang.Object title_; + /** + * + * + *
+   * Optional.
+   * The title of the publication.
+   * Number of characters allowed is 100.
+   * 
+ * + * string title = 2; + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The title of the publication.
+   * Number of characters allowed is 100.
+   * 
+ * + * string title = 2; + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Optional.
+   * The description of the publication.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 3; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The description of the publication.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 3; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOURNAL_FIELD_NUMBER = 4; + private volatile java.lang.Object journal_; + /** + * + * + *
+   * Optional.
+   * The journal name of the publication.
+   * Number of characters allowed is 100.
+   * 
+ * + * string journal = 4; + */ + public java.lang.String getJournal() { + java.lang.Object ref = journal_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + journal_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The journal name of the publication.
+   * Number of characters allowed is 100.
+   * 
+ * + * string journal = 4; + */ + public com.google.protobuf.ByteString getJournalBytes() { + java.lang.Object ref = journal_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + journal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VOLUME_FIELD_NUMBER = 5; + private volatile java.lang.Object volume_; + /** + * + * + *
+   * Optional.
+   * Volume number.
+   * Number of characters allowed is 100.
+   * 
+ * + * string volume = 5; + */ + public java.lang.String getVolume() { + java.lang.Object ref = volume_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + volume_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Volume number.
+   * Number of characters allowed is 100.
+   * 
+ * + * string volume = 5; + */ + public com.google.protobuf.ByteString getVolumeBytes() { + java.lang.Object ref = volume_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + volume_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PUBLISHER_FIELD_NUMBER = 6; + private volatile java.lang.Object publisher_; + /** + * + * + *
+   * Optional.
+   * The publisher of the journal.
+   * Number of characters allowed is 100.
+   * 
+ * + * string publisher = 6; + */ + public java.lang.String getPublisher() { + java.lang.Object ref = publisher_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publisher_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The publisher of the journal.
+   * Number of characters allowed is 100.
+   * 
+ * + * string publisher = 6; + */ + public com.google.protobuf.ByteString getPublisherBytes() { + java.lang.Object ref = publisher_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publisher_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PUBLICATION_DATE_FIELD_NUMBER = 7; + private com.google.type.Date publicationDate_; + /** + * + * + *
+   * Optional.
+   * The publication date.
+   * 
+ * + * .google.type.Date publication_date = 7; + */ + public boolean hasPublicationDate() { + return publicationDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * The publication date.
+   * 
+ * + * .google.type.Date publication_date = 7; + */ + public com.google.type.Date getPublicationDate() { + return publicationDate_ == null ? com.google.type.Date.getDefaultInstance() : publicationDate_; + } + /** + * + * + *
+   * Optional.
+   * The publication date.
+   * 
+ * + * .google.type.Date publication_date = 7; + */ + public com.google.type.DateOrBuilder getPublicationDateOrBuilder() { + return getPublicationDate(); + } + + public static final int PUBLICATION_TYPE_FIELD_NUMBER = 8; + private volatile java.lang.Object publicationType_; + /** + * + * + *
+   * Optional.
+   * The publication type.
+   * Number of characters allowed is 100.
+   * 
+ * + * string publication_type = 8; + */ + public java.lang.String getPublicationType() { + java.lang.Object ref = publicationType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publicationType_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The publication type.
+   * Number of characters allowed is 100.
+   * 
+ * + * string publication_type = 8; + */ + public com.google.protobuf.ByteString getPublicationTypeBytes() { + java.lang.Object ref = publicationType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publicationType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ISBN_FIELD_NUMBER = 9; + private volatile java.lang.Object isbn_; + /** + * + * + *
+   * Optional.
+   * ISBN number.
+   * Number of characters allowed is 100.
+   * 
+ * + * string isbn = 9; + */ + public java.lang.String getIsbn() { + java.lang.Object ref = isbn_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + isbn_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * ISBN number.
+   * Number of characters allowed is 100.
+   * 
+ * + * string isbn = 9; + */ + public com.google.protobuf.ByteString getIsbnBytes() { + java.lang.Object ref = isbn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + isbn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < authors_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, authors_.getRaw(i)); + } + if (!getTitleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + if (!getJournalBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, journal_); + } + if (!getVolumeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, volume_); + } + if (!getPublisherBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, publisher_); + } + if (publicationDate_ != null) { + output.writeMessage(7, getPublicationDate()); + } + if (!getPublicationTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, publicationType_); + } + if (!getIsbnBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, isbn_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < authors_.size(); i++) { + dataSize += computeStringSizeNoTag(authors_.getRaw(i)); + } + size += dataSize; + size += 1 * getAuthorsList().size(); + } + if (!getTitleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + if (!getJournalBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, journal_); + } + if (!getVolumeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, volume_); + } + if (!getPublisherBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, publisher_); + } + if (publicationDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getPublicationDate()); + } + if (!getPublicationTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, publicationType_); + } + if (!getIsbnBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, isbn_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Publication)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Publication other = + (com.google.cloud.talent.v4beta1.Publication) obj; + + boolean result = true; + result = result && getAuthorsList().equals(other.getAuthorsList()); + result = result && getTitle().equals(other.getTitle()); + result = result && getDescription().equals(other.getDescription()); + result = result && getJournal().equals(other.getJournal()); + result = result && getVolume().equals(other.getVolume()); + result = result && getPublisher().equals(other.getPublisher()); + result = result && (hasPublicationDate() == other.hasPublicationDate()); + if (hasPublicationDate()) { + result = result && getPublicationDate().equals(other.getPublicationDate()); + } + result = result && getPublicationType().equals(other.getPublicationType()); + result = result && getIsbn().equals(other.getIsbn()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAuthorsCount() > 0) { + hash = (37 * hash) + AUTHORS_FIELD_NUMBER; + hash = (53 * hash) + getAuthorsList().hashCode(); + } + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + JOURNAL_FIELD_NUMBER; + hash = (53 * hash) + getJournal().hashCode(); + hash = (37 * hash) + VOLUME_FIELD_NUMBER; + hash = (53 * hash) + getVolume().hashCode(); + hash = (37 * hash) + PUBLISHER_FIELD_NUMBER; + hash = (53 * hash) + getPublisher().hashCode(); + if (hasPublicationDate()) { + hash = (37 * hash) + PUBLICATION_DATE_FIELD_NUMBER; + hash = (53 * hash) + getPublicationDate().hashCode(); + } + hash = (37 * hash) + PUBLICATION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getPublicationType().hashCode(); + hash = (37 * hash) + ISBN_FIELD_NUMBER; + hash = (53 * hash) + getIsbn().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Publication parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Publication parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Publication parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Publication parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Publication parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Publication parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Publication parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Publication parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Publication parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Publication parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Publication parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Publication parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.Publication prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Resource that represents a publication resource of a candidate.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Publication} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Publication) + com.google.cloud.talent.v4beta1.PublicationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Publication_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Publication_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Publication.class, + com.google.cloud.talent.v4beta1.Publication.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Publication.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + authors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + title_ = ""; + + description_ = ""; + + journal_ = ""; + + volume_ = ""; + + publisher_ = ""; + + if (publicationDateBuilder_ == null) { + publicationDate_ = null; + } else { + publicationDate_ = null; + publicationDateBuilder_ = null; + } + publicationType_ = ""; + + isbn_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Publication_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Publication getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Publication.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Publication build() { + com.google.cloud.talent.v4beta1.Publication result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Publication buildPartial() { + com.google.cloud.talent.v4beta1.Publication result = + new com.google.cloud.talent.v4beta1.Publication(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + authors_ = authors_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.authors_ = authors_; + result.title_ = title_; + result.description_ = description_; + result.journal_ = journal_; + result.volume_ = volume_; + result.publisher_ = publisher_; + if (publicationDateBuilder_ == null) { + result.publicationDate_ = publicationDate_; + } else { + result.publicationDate_ = publicationDateBuilder_.build(); + } + result.publicationType_ = publicationType_; + result.isbn_ = isbn_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Publication) { + return mergeFrom((com.google.cloud.talent.v4beta1.Publication) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Publication other) { + if (other == com.google.cloud.talent.v4beta1.Publication.getDefaultInstance()) return this; + if (!other.authors_.isEmpty()) { + if (authors_.isEmpty()) { + authors_ = other.authors_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAuthorsIsMutable(); + authors_.addAll(other.authors_); + } + onChanged(); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (!other.getJournal().isEmpty()) { + journal_ = other.journal_; + onChanged(); + } + if (!other.getVolume().isEmpty()) { + volume_ = other.volume_; + onChanged(); + } + if (!other.getPublisher().isEmpty()) { + publisher_ = other.publisher_; + onChanged(); + } + if (other.hasPublicationDate()) { + mergePublicationDate(other.getPublicationDate()); + } + if (!other.getPublicationType().isEmpty()) { + publicationType_ = other.publicationType_; + onChanged(); + } + if (!other.getIsbn().isEmpty()) { + isbn_ = other.isbn_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Publication parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Publication) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList authors_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAuthorsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + authors_ = new com.google.protobuf.LazyStringArrayList(authors_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Optional.
+     * A list of author names.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string authors = 1; + */ + public com.google.protobuf.ProtocolStringList getAuthorsList() { + return authors_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional.
+     * A list of author names.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string authors = 1; + */ + public int getAuthorsCount() { + return authors_.size(); + } + /** + * + * + *
+     * Optional.
+     * A list of author names.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string authors = 1; + */ + public java.lang.String getAuthors(int index) { + return authors_.get(index); + } + /** + * + * + *
+     * Optional.
+     * A list of author names.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string authors = 1; + */ + public com.google.protobuf.ByteString getAuthorsBytes(int index) { + return authors_.getByteString(index); + } + /** + * + * + *
+     * Optional.
+     * A list of author names.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string authors = 1; + */ + public Builder setAuthors(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthorsIsMutable(); + authors_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of author names.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string authors = 1; + */ + public Builder addAuthors(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthorsIsMutable(); + authors_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of author names.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string authors = 1; + */ + public Builder addAllAuthors(java.lang.Iterable values) { + ensureAuthorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, authors_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of author names.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string authors = 1; + */ + public Builder clearAuthors() { + authors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of author names.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string authors = 1; + */ + public Builder addAuthorsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAuthorsIsMutable(); + authors_.add(value); + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + /** + * + * + *
+     * Optional.
+     * The title of the publication.
+     * Number of characters allowed is 100.
+     * 
+ * + * string title = 2; + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The title of the publication.
+     * Number of characters allowed is 100.
+     * 
+ * + * string title = 2; + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The title of the publication.
+     * Number of characters allowed is 100.
+     * 
+ * + * string title = 2; + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + title_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The title of the publication.
+     * Number of characters allowed is 100.
+     * 
+ * + * string title = 2; + */ + public Builder clearTitle() { + + title_ = getDefaultInstance().getTitle(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The title of the publication.
+     * Number of characters allowed is 100.
+     * 
+ * + * string title = 2; + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + title_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Optional.
+     * The description of the publication.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 3; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The description of the publication.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 3; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The description of the publication.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 3; + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The description of the publication.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 3; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The description of the publication.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 3; + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private java.lang.Object journal_ = ""; + /** + * + * + *
+     * Optional.
+     * The journal name of the publication.
+     * Number of characters allowed is 100.
+     * 
+ * + * string journal = 4; + */ + public java.lang.String getJournal() { + java.lang.Object ref = journal_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + journal_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The journal name of the publication.
+     * Number of characters allowed is 100.
+     * 
+ * + * string journal = 4; + */ + public com.google.protobuf.ByteString getJournalBytes() { + java.lang.Object ref = journal_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + journal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The journal name of the publication.
+     * Number of characters allowed is 100.
+     * 
+ * + * string journal = 4; + */ + public Builder setJournal(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + journal_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The journal name of the publication.
+     * Number of characters allowed is 100.
+     * 
+ * + * string journal = 4; + */ + public Builder clearJournal() { + + journal_ = getDefaultInstance().getJournal(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The journal name of the publication.
+     * Number of characters allowed is 100.
+     * 
+ * + * string journal = 4; + */ + public Builder setJournalBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + journal_ = value; + onChanged(); + return this; + } + + private java.lang.Object volume_ = ""; + /** + * + * + *
+     * Optional.
+     * Volume number.
+     * Number of characters allowed is 100.
+     * 
+ * + * string volume = 5; + */ + public java.lang.String getVolume() { + java.lang.Object ref = volume_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + volume_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Volume number.
+     * Number of characters allowed is 100.
+     * 
+ * + * string volume = 5; + */ + public com.google.protobuf.ByteString getVolumeBytes() { + java.lang.Object ref = volume_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + volume_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Volume number.
+     * Number of characters allowed is 100.
+     * 
+ * + * string volume = 5; + */ + public Builder setVolume(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + volume_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Volume number.
+     * Number of characters allowed is 100.
+     * 
+ * + * string volume = 5; + */ + public Builder clearVolume() { + + volume_ = getDefaultInstance().getVolume(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Volume number.
+     * Number of characters allowed is 100.
+     * 
+ * + * string volume = 5; + */ + public Builder setVolumeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + volume_ = value; + onChanged(); + return this; + } + + private java.lang.Object publisher_ = ""; + /** + * + * + *
+     * Optional.
+     * The publisher of the journal.
+     * Number of characters allowed is 100.
+     * 
+ * + * string publisher = 6; + */ + public java.lang.String getPublisher() { + java.lang.Object ref = publisher_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publisher_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The publisher of the journal.
+     * Number of characters allowed is 100.
+     * 
+ * + * string publisher = 6; + */ + public com.google.protobuf.ByteString getPublisherBytes() { + java.lang.Object ref = publisher_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publisher_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The publisher of the journal.
+     * Number of characters allowed is 100.
+     * 
+ * + * string publisher = 6; + */ + public Builder setPublisher(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + publisher_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The publisher of the journal.
+     * Number of characters allowed is 100.
+     * 
+ * + * string publisher = 6; + */ + public Builder clearPublisher() { + + publisher_ = getDefaultInstance().getPublisher(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The publisher of the journal.
+     * Number of characters allowed is 100.
+     * 
+ * + * string publisher = 6; + */ + public Builder setPublisherBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + publisher_ = value; + onChanged(); + return this; + } + + private com.google.type.Date publicationDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + publicationDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The publication date.
+     * 
+ * + * .google.type.Date publication_date = 7; + */ + public boolean hasPublicationDate() { + return publicationDateBuilder_ != null || publicationDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The publication date.
+     * 
+ * + * .google.type.Date publication_date = 7; + */ + public com.google.type.Date getPublicationDate() { + if (publicationDateBuilder_ == null) { + return publicationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : publicationDate_; + } else { + return publicationDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The publication date.
+     * 
+ * + * .google.type.Date publication_date = 7; + */ + public Builder setPublicationDate(com.google.type.Date value) { + if (publicationDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + publicationDate_ = value; + onChanged(); + } else { + publicationDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The publication date.
+     * 
+ * + * .google.type.Date publication_date = 7; + */ + public Builder setPublicationDate(com.google.type.Date.Builder builderForValue) { + if (publicationDateBuilder_ == null) { + publicationDate_ = builderForValue.build(); + onChanged(); + } else { + publicationDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The publication date.
+     * 
+ * + * .google.type.Date publication_date = 7; + */ + public Builder mergePublicationDate(com.google.type.Date value) { + if (publicationDateBuilder_ == null) { + if (publicationDate_ != null) { + publicationDate_ = + com.google.type.Date.newBuilder(publicationDate_).mergeFrom(value).buildPartial(); + } else { + publicationDate_ = value; + } + onChanged(); + } else { + publicationDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The publication date.
+     * 
+ * + * .google.type.Date publication_date = 7; + */ + public Builder clearPublicationDate() { + if (publicationDateBuilder_ == null) { + publicationDate_ = null; + onChanged(); + } else { + publicationDate_ = null; + publicationDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The publication date.
+     * 
+ * + * .google.type.Date publication_date = 7; + */ + public com.google.type.Date.Builder getPublicationDateBuilder() { + + onChanged(); + return getPublicationDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The publication date.
+     * 
+ * + * .google.type.Date publication_date = 7; + */ + public com.google.type.DateOrBuilder getPublicationDateOrBuilder() { + if (publicationDateBuilder_ != null) { + return publicationDateBuilder_.getMessageOrBuilder(); + } else { + return publicationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : publicationDate_; + } + } + /** + * + * + *
+     * Optional.
+     * The publication date.
+     * 
+ * + * .google.type.Date publication_date = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getPublicationDateFieldBuilder() { + if (publicationDateBuilder_ == null) { + publicationDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getPublicationDate(), getParentForChildren(), isClean()); + publicationDate_ = null; + } + return publicationDateBuilder_; + } + + private java.lang.Object publicationType_ = ""; + /** + * + * + *
+     * Optional.
+     * The publication type.
+     * Number of characters allowed is 100.
+     * 
+ * + * string publication_type = 8; + */ + public java.lang.String getPublicationType() { + java.lang.Object ref = publicationType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publicationType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The publication type.
+     * Number of characters allowed is 100.
+     * 
+ * + * string publication_type = 8; + */ + public com.google.protobuf.ByteString getPublicationTypeBytes() { + java.lang.Object ref = publicationType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publicationType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The publication type.
+     * Number of characters allowed is 100.
+     * 
+ * + * string publication_type = 8; + */ + public Builder setPublicationType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + publicationType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The publication type.
+     * Number of characters allowed is 100.
+     * 
+ * + * string publication_type = 8; + */ + public Builder clearPublicationType() { + + publicationType_ = getDefaultInstance().getPublicationType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The publication type.
+     * Number of characters allowed is 100.
+     * 
+ * + * string publication_type = 8; + */ + public Builder setPublicationTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + publicationType_ = value; + onChanged(); + return this; + } + + private java.lang.Object isbn_ = ""; + /** + * + * + *
+     * Optional.
+     * ISBN number.
+     * Number of characters allowed is 100.
+     * 
+ * + * string isbn = 9; + */ + public java.lang.String getIsbn() { + java.lang.Object ref = isbn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + isbn_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * ISBN number.
+     * Number of characters allowed is 100.
+     * 
+ * + * string isbn = 9; + */ + public com.google.protobuf.ByteString getIsbnBytes() { + java.lang.Object ref = isbn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + isbn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * ISBN number.
+     * Number of characters allowed is 100.
+     * 
+ * + * string isbn = 9; + */ + public Builder setIsbn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + isbn_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * ISBN number.
+     * Number of characters allowed is 100.
+     * 
+ * + * string isbn = 9; + */ + public Builder clearIsbn() { + + isbn_ = getDefaultInstance().getIsbn(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * ISBN number.
+     * Number of characters allowed is 100.
+     * 
+ * + * string isbn = 9; + */ + public Builder setIsbnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + isbn_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Publication) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Publication) + private static final com.google.cloud.talent.v4beta1.Publication DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Publication(); + } + + public static com.google.cloud.talent.v4beta1.Publication getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Publication parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Publication(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Publication getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PublicationOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PublicationOrBuilder.java new file mode 100644 index 000000000000..3a697b2afe8f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PublicationOrBuilder.java @@ -0,0 +1,268 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface PublicationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Publication) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * A list of author names.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string authors = 1; + */ + java.util.List getAuthorsList(); + /** + * + * + *
+   * Optional.
+   * A list of author names.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string authors = 1; + */ + int getAuthorsCount(); + /** + * + * + *
+   * Optional.
+   * A list of author names.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string authors = 1; + */ + java.lang.String getAuthors(int index); + /** + * + * + *
+   * Optional.
+   * A list of author names.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string authors = 1; + */ + com.google.protobuf.ByteString getAuthorsBytes(int index); + + /** + * + * + *
+   * Optional.
+   * The title of the publication.
+   * Number of characters allowed is 100.
+   * 
+ * + * string title = 2; + */ + java.lang.String getTitle(); + /** + * + * + *
+   * Optional.
+   * The title of the publication.
+   * Number of characters allowed is 100.
+   * 
+ * + * string title = 2; + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
+   * Optional.
+   * The description of the publication.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 3; + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Optional.
+   * The description of the publication.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 3; + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional.
+   * The journal name of the publication.
+   * Number of characters allowed is 100.
+   * 
+ * + * string journal = 4; + */ + java.lang.String getJournal(); + /** + * + * + *
+   * Optional.
+   * The journal name of the publication.
+   * Number of characters allowed is 100.
+   * 
+ * + * string journal = 4; + */ + com.google.protobuf.ByteString getJournalBytes(); + + /** + * + * + *
+   * Optional.
+   * Volume number.
+   * Number of characters allowed is 100.
+   * 
+ * + * string volume = 5; + */ + java.lang.String getVolume(); + /** + * + * + *
+   * Optional.
+   * Volume number.
+   * Number of characters allowed is 100.
+   * 
+ * + * string volume = 5; + */ + com.google.protobuf.ByteString getVolumeBytes(); + + /** + * + * + *
+   * Optional.
+   * The publisher of the journal.
+   * Number of characters allowed is 100.
+   * 
+ * + * string publisher = 6; + */ + java.lang.String getPublisher(); + /** + * + * + *
+   * Optional.
+   * The publisher of the journal.
+   * Number of characters allowed is 100.
+   * 
+ * + * string publisher = 6; + */ + com.google.protobuf.ByteString getPublisherBytes(); + + /** + * + * + *
+   * Optional.
+   * The publication date.
+   * 
+ * + * .google.type.Date publication_date = 7; + */ + boolean hasPublicationDate(); + /** + * + * + *
+   * Optional.
+   * The publication date.
+   * 
+ * + * .google.type.Date publication_date = 7; + */ + com.google.type.Date getPublicationDate(); + /** + * + * + *
+   * Optional.
+   * The publication date.
+   * 
+ * + * .google.type.Date publication_date = 7; + */ + com.google.type.DateOrBuilder getPublicationDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The publication type.
+   * Number of characters allowed is 100.
+   * 
+ * + * string publication_type = 8; + */ + java.lang.String getPublicationType(); + /** + * + * + *
+   * Optional.
+   * The publication type.
+   * Number of characters allowed is 100.
+   * 
+ * + * string publication_type = 8; + */ + com.google.protobuf.ByteString getPublicationTypeBytes(); + + /** + * + * + *
+   * Optional.
+   * ISBN number.
+   * Number of characters allowed is 100.
+   * 
+ * + * string isbn = 9; + */ + java.lang.String getIsbn(); + /** + * + * + *
+   * Optional.
+   * ISBN number.
+   * Number of characters allowed is 100.
+   * 
+ * + * string isbn = 9; + */ + com.google.protobuf.ByteString getIsbnBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RecruitingNote.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RecruitingNote.java new file mode 100644 index 000000000000..45dacc09b82a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RecruitingNote.java @@ -0,0 +1,1227 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * RecruitingNote represents a note/comment regarding the recruiting for a
+ * candidate. For example, "This candidate is a potential match for a frontend
+ * engineer at SF".
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.RecruitingNote} + */ +public final class RecruitingNote extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.RecruitingNote) + RecruitingNoteOrBuilder { + private static final long serialVersionUID = 0L; + // Use RecruitingNote.newBuilder() to construct. + private RecruitingNote(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RecruitingNote() { + note_ = ""; + commenter_ = ""; + type_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RecruitingNote( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + note_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + commenter_ = s; + break; + } + case 26: + { + com.google.type.Date.Builder subBuilder = null; + if (createDate_ != null) { + subBuilder = createDate_.toBuilder(); + } + createDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createDate_); + createDate_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + type_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_RecruitingNote_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_RecruitingNote_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.RecruitingNote.class, + com.google.cloud.talent.v4beta1.RecruitingNote.Builder.class); + } + + public static final int NOTE_FIELD_NUMBER = 1; + private volatile java.lang.Object note_; + /** + * + * + *
+   * Optional.
+   * The content of note.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string note = 1; + */ + public java.lang.String getNote() { + java.lang.Object ref = note_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + note_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The content of note.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string note = 1; + */ + public com.google.protobuf.ByteString getNoteBytes() { + java.lang.Object ref = note_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + note_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMENTER_FIELD_NUMBER = 2; + private volatile java.lang.Object commenter_; + /** + * + * + *
+   * Optional.
+   * The person who wrote the notes.
+   * Number of characters allowed is 100.
+   * 
+ * + * string commenter = 2; + */ + public java.lang.String getCommenter() { + java.lang.Object ref = commenter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commenter_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The person who wrote the notes.
+   * Number of characters allowed is 100.
+   * 
+ * + * string commenter = 2; + */ + public com.google.protobuf.ByteString getCommenterBytes() { + java.lang.Object ref = commenter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commenter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_DATE_FIELD_NUMBER = 3; + private com.google.type.Date createDate_; + /** + * + * + *
+   * Optional.
+   * The create date of the note.
+   * 
+ * + * .google.type.Date create_date = 3; + */ + public boolean hasCreateDate() { + return createDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * The create date of the note.
+   * 
+ * + * .google.type.Date create_date = 3; + */ + public com.google.type.Date getCreateDate() { + return createDate_ == null ? com.google.type.Date.getDefaultInstance() : createDate_; + } + /** + * + * + *
+   * Optional.
+   * The create date of the note.
+   * 
+ * + * .google.type.Date create_date = 3; + */ + public com.google.type.DateOrBuilder getCreateDateOrBuilder() { + return getCreateDate(); + } + + public static final int TYPE_FIELD_NUMBER = 4; + private volatile java.lang.Object type_; + /** + * + * + *
+   * Optional.
+   * The note type.
+   * Number of characters allowed is 100.
+   * 
+ * + * string type = 4; + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The note type.
+   * Number of characters allowed is 100.
+   * 
+ * + * string type = 4; + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNoteBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, note_); + } + if (!getCommenterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, commenter_); + } + if (createDate_ != null) { + output.writeMessage(3, getCreateDate()); + } + if (!getTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, type_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNoteBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, note_); + } + if (!getCommenterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, commenter_); + } + if (createDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateDate()); + } + if (!getTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, type_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.RecruitingNote)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.RecruitingNote other = + (com.google.cloud.talent.v4beta1.RecruitingNote) obj; + + boolean result = true; + result = result && getNote().equals(other.getNote()); + result = result && getCommenter().equals(other.getCommenter()); + result = result && (hasCreateDate() == other.hasCreateDate()); + if (hasCreateDate()) { + result = result && getCreateDate().equals(other.getCreateDate()); + } + result = result && getType().equals(other.getType()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NOTE_FIELD_NUMBER; + hash = (53 * hash) + getNote().hashCode(); + hash = (37 * hash) + COMMENTER_FIELD_NUMBER; + hash = (53 * hash) + getCommenter().hashCode(); + if (hasCreateDate()) { + hash = (37 * hash) + CREATE_DATE_FIELD_NUMBER; + hash = (53 * hash) + getCreateDate().hashCode(); + } + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.RecruitingNote prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * RecruitingNote represents a note/comment regarding the recruiting for a
+   * candidate. For example, "This candidate is a potential match for a frontend
+   * engineer at SF".
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.RecruitingNote} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.RecruitingNote) + com.google.cloud.talent.v4beta1.RecruitingNoteOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_RecruitingNote_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_RecruitingNote_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.RecruitingNote.class, + com.google.cloud.talent.v4beta1.RecruitingNote.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.RecruitingNote.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + note_ = ""; + + commenter_ = ""; + + if (createDateBuilder_ == null) { + createDate_ = null; + } else { + createDate_ = null; + createDateBuilder_ = null; + } + type_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_RecruitingNote_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.RecruitingNote getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.RecruitingNote.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.RecruitingNote build() { + com.google.cloud.talent.v4beta1.RecruitingNote result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.RecruitingNote buildPartial() { + com.google.cloud.talent.v4beta1.RecruitingNote result = + new com.google.cloud.talent.v4beta1.RecruitingNote(this); + result.note_ = note_; + result.commenter_ = commenter_; + if (createDateBuilder_ == null) { + result.createDate_ = createDate_; + } else { + result.createDate_ = createDateBuilder_.build(); + } + result.type_ = type_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.RecruitingNote) { + return mergeFrom((com.google.cloud.talent.v4beta1.RecruitingNote) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.RecruitingNote other) { + if (other == com.google.cloud.talent.v4beta1.RecruitingNote.getDefaultInstance()) return this; + if (!other.getNote().isEmpty()) { + note_ = other.note_; + onChanged(); + } + if (!other.getCommenter().isEmpty()) { + commenter_ = other.commenter_; + onChanged(); + } + if (other.hasCreateDate()) { + mergeCreateDate(other.getCreateDate()); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.RecruitingNote parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.RecruitingNote) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object note_ = ""; + /** + * + * + *
+     * Optional.
+     * The content of note.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string note = 1; + */ + public java.lang.String getNote() { + java.lang.Object ref = note_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + note_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The content of note.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string note = 1; + */ + public com.google.protobuf.ByteString getNoteBytes() { + java.lang.Object ref = note_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + note_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The content of note.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string note = 1; + */ + public Builder setNote(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + note_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The content of note.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string note = 1; + */ + public Builder clearNote() { + + note_ = getDefaultInstance().getNote(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The content of note.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string note = 1; + */ + public Builder setNoteBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + note_ = value; + onChanged(); + return this; + } + + private java.lang.Object commenter_ = ""; + /** + * + * + *
+     * Optional.
+     * The person who wrote the notes.
+     * Number of characters allowed is 100.
+     * 
+ * + * string commenter = 2; + */ + public java.lang.String getCommenter() { + java.lang.Object ref = commenter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commenter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The person who wrote the notes.
+     * Number of characters allowed is 100.
+     * 
+ * + * string commenter = 2; + */ + public com.google.protobuf.ByteString getCommenterBytes() { + java.lang.Object ref = commenter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commenter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The person who wrote the notes.
+     * Number of characters allowed is 100.
+     * 
+ * + * string commenter = 2; + */ + public Builder setCommenter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + commenter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The person who wrote the notes.
+     * Number of characters allowed is 100.
+     * 
+ * + * string commenter = 2; + */ + public Builder clearCommenter() { + + commenter_ = getDefaultInstance().getCommenter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The person who wrote the notes.
+     * Number of characters allowed is 100.
+     * 
+ * + * string commenter = 2; + */ + public Builder setCommenterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + commenter_ = value; + onChanged(); + return this; + } + + private com.google.type.Date createDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + createDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The create date of the note.
+     * 
+ * + * .google.type.Date create_date = 3; + */ + public boolean hasCreateDate() { + return createDateBuilder_ != null || createDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The create date of the note.
+     * 
+ * + * .google.type.Date create_date = 3; + */ + public com.google.type.Date getCreateDate() { + if (createDateBuilder_ == null) { + return createDate_ == null ? com.google.type.Date.getDefaultInstance() : createDate_; + } else { + return createDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The create date of the note.
+     * 
+ * + * .google.type.Date create_date = 3; + */ + public Builder setCreateDate(com.google.type.Date value) { + if (createDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createDate_ = value; + onChanged(); + } else { + createDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The create date of the note.
+     * 
+ * + * .google.type.Date create_date = 3; + */ + public Builder setCreateDate(com.google.type.Date.Builder builderForValue) { + if (createDateBuilder_ == null) { + createDate_ = builderForValue.build(); + onChanged(); + } else { + createDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The create date of the note.
+     * 
+ * + * .google.type.Date create_date = 3; + */ + public Builder mergeCreateDate(com.google.type.Date value) { + if (createDateBuilder_ == null) { + if (createDate_ != null) { + createDate_ = + com.google.type.Date.newBuilder(createDate_).mergeFrom(value).buildPartial(); + } else { + createDate_ = value; + } + onChanged(); + } else { + createDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The create date of the note.
+     * 
+ * + * .google.type.Date create_date = 3; + */ + public Builder clearCreateDate() { + if (createDateBuilder_ == null) { + createDate_ = null; + onChanged(); + } else { + createDate_ = null; + createDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The create date of the note.
+     * 
+ * + * .google.type.Date create_date = 3; + */ + public com.google.type.Date.Builder getCreateDateBuilder() { + + onChanged(); + return getCreateDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The create date of the note.
+     * 
+ * + * .google.type.Date create_date = 3; + */ + public com.google.type.DateOrBuilder getCreateDateOrBuilder() { + if (createDateBuilder_ != null) { + return createDateBuilder_.getMessageOrBuilder(); + } else { + return createDate_ == null ? com.google.type.Date.getDefaultInstance() : createDate_; + } + } + /** + * + * + *
+     * Optional.
+     * The create date of the note.
+     * 
+ * + * .google.type.Date create_date = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getCreateDateFieldBuilder() { + if (createDateBuilder_ == null) { + createDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getCreateDate(), getParentForChildren(), isClean()); + createDate_ = null; + } + return createDateBuilder_; + } + + private java.lang.Object type_ = ""; + /** + * + * + *
+     * Optional.
+     * The note type.
+     * Number of characters allowed is 100.
+     * 
+ * + * string type = 4; + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The note type.
+     * Number of characters allowed is 100.
+     * 
+ * + * string type = 4; + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The note type.
+     * Number of characters allowed is 100.
+     * 
+ * + * string type = 4; + */ + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The note type.
+     * Number of characters allowed is 100.
+     * 
+ * + * string type = 4; + */ + public Builder clearType() { + + type_ = getDefaultInstance().getType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The note type.
+     * Number of characters allowed is 100.
+     * 
+ * + * string type = 4; + */ + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + type_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.RecruitingNote) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.RecruitingNote) + private static final com.google.cloud.talent.v4beta1.RecruitingNote DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.RecruitingNote(); + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecruitingNote parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecruitingNote(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.RecruitingNote getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RecruitingNoteOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RecruitingNoteOrBuilder.java new file mode 100644 index 000000000000..02ea20bb9824 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RecruitingNoteOrBuilder.java @@ -0,0 +1,119 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface RecruitingNoteOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.RecruitingNote) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The content of note.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string note = 1; + */ + java.lang.String getNote(); + /** + * + * + *
+   * Optional.
+   * The content of note.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string note = 1; + */ + com.google.protobuf.ByteString getNoteBytes(); + + /** + * + * + *
+   * Optional.
+   * The person who wrote the notes.
+   * Number of characters allowed is 100.
+   * 
+ * + * string commenter = 2; + */ + java.lang.String getCommenter(); + /** + * + * + *
+   * Optional.
+   * The person who wrote the notes.
+   * Number of characters allowed is 100.
+   * 
+ * + * string commenter = 2; + */ + com.google.protobuf.ByteString getCommenterBytes(); + + /** + * + * + *
+   * Optional.
+   * The create date of the note.
+   * 
+ * + * .google.type.Date create_date = 3; + */ + boolean hasCreateDate(); + /** + * + * + *
+   * Optional.
+   * The create date of the note.
+   * 
+ * + * .google.type.Date create_date = 3; + */ + com.google.type.Date getCreateDate(); + /** + * + * + *
+   * Optional.
+   * The create date of the note.
+   * 
+ * + * .google.type.Date create_date = 3; + */ + com.google.type.DateOrBuilder getCreateDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The note type.
+   * Number of characters allowed is 100.
+   * 
+ * + * string type = 4; + */ + java.lang.String getType(); + /** + * + * + *
+   * Optional.
+   * The note type.
+   * Number of characters allowed is 100.
+   * 
+ * + * string type = 4; + */ + com.google.protobuf.ByteString getTypeBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RequestMetadata.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RequestMetadata.java new file mode 100644 index 000000000000..1b4ca53cb817 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RequestMetadata.java @@ -0,0 +1,1561 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Meta information related to the job searcher or entity
+ * conducting the job search. This information is used to improve the
+ * performance of the service.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.RequestMetadata} + */ +public final class RequestMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.RequestMetadata) + RequestMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use RequestMetadata.newBuilder() to construct. + private RequestMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RequestMetadata() { + domain_ = ""; + sessionId_ = ""; + userId_ = ""; + allowMissingIds_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RequestMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + sessionId_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + userId_ = s; + break; + } + case 32: + { + allowMissingIds_ = input.readBool(); + break; + } + case 42: + { + com.google.cloud.talent.v4beta1.DeviceInfo.Builder subBuilder = null; + if (deviceInfo_ != null) { + subBuilder = deviceInfo_.toBuilder(); + } + deviceInfo_ = + input.readMessage( + com.google.cloud.talent.v4beta1.DeviceInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deviceInfo_); + deviceInfo_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_RequestMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_RequestMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.RequestMetadata.class, + com.google.cloud.talent.v4beta1.RequestMetadata.Builder.class); + } + + public static final int DOMAIN_FIELD_NUMBER = 1; + private volatile java.lang.Object domain_; + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * The client-defined scope or source of the service call, which typically
+   * is the domain on
+   * which the service has been implemented and is currently being run.
+   * For example, if the service is being run by client <em>Foo, Inc.</em>, on
+   * job board www.foo.com and career site www.bar.com, then this field is
+   * set to "foo.com" for use on the job board, and "bar.com" for use on the
+   * career site.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique domain.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string domain = 1; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } + } + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * The client-defined scope or source of the service call, which typically
+   * is the domain on
+   * which the service has been implemented and is currently being run.
+   * For example, if the service is being run by client <em>Foo, Inc.</em>, on
+   * job board www.foo.com and career site www.bar.com, then this field is
+   * set to "foo.com" for use on the job board, and "bar.com" for use on the
+   * career site.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique domain.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string domain = 1; + */ + public com.google.protobuf.ByteString getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SESSION_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object sessionId_; + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * A unique session identification string. A session is defined as the
+   * duration of an end user's interaction with the service over a certain
+   * period.
+   * Obfuscate this field for privacy concerns before
+   * providing it to the service.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique session ID.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string session_id = 2; + */ + public java.lang.String getSessionId() { + java.lang.Object ref = sessionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sessionId_ = s; + return s; + } + } + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * A unique session identification string. A session is defined as the
+   * duration of an end user's interaction with the service over a certain
+   * period.
+   * Obfuscate this field for privacy concerns before
+   * providing it to the service.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique session ID.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string session_id = 2; + */ + public com.google.protobuf.ByteString getSessionIdBytes() { + java.lang.Object ref = sessionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sessionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object userId_; + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * A unique user identification string, as determined by the client.
+   * To have the strongest positive impact on search quality
+   * make sure the client-level is unique.
+   * Obfuscate this field for privacy concerns before
+   * providing it to the service.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique user ID.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string user_id = 3; + */ + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } + } + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * A unique user identification string, as determined by the client.
+   * To have the strongest positive impact on search quality
+   * make sure the client-level is unique.
+   * Obfuscate this field for privacy concerns before
+   * providing it to the service.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique user ID.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string user_id = 3; + */ + public com.google.protobuf.ByteString getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOW_MISSING_IDS_FIELD_NUMBER = 4; + private boolean allowMissingIds_; + /** + * + * + *
+   * Optional.
+   * If set to `true`,
+   * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
+   * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
+   * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] are
+   * optional. Only set when any of these fields isn't available for some
+   * reason. It is highly recommended not to set this field and provide accurate
+   * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
+   * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
+   * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] for the best
+   * service experience.
+   * 
+ * + * bool allow_missing_ids = 4; + */ + public boolean getAllowMissingIds() { + return allowMissingIds_; + } + + public static final int DEVICE_INFO_FIELD_NUMBER = 5; + private com.google.cloud.talent.v4beta1.DeviceInfo deviceInfo_; + /** + * + * + *
+   * Optional.
+   * The type of device used by the job seeker at the time of the call to the
+   * service.
+   * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + public boolean hasDeviceInfo() { + return deviceInfo_ != null; + } + /** + * + * + *
+   * Optional.
+   * The type of device used by the job seeker at the time of the call to the
+   * service.
+   * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + public com.google.cloud.talent.v4beta1.DeviceInfo getDeviceInfo() { + return deviceInfo_ == null + ? com.google.cloud.talent.v4beta1.DeviceInfo.getDefaultInstance() + : deviceInfo_; + } + /** + * + * + *
+   * Optional.
+   * The type of device used by the job seeker at the time of the call to the
+   * service.
+   * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + public com.google.cloud.talent.v4beta1.DeviceInfoOrBuilder getDeviceInfoOrBuilder() { + return getDeviceInfo(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, domain_); + } + if (!getSessionIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sessionId_); + } + if (!getUserIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, userId_); + } + if (allowMissingIds_ != false) { + output.writeBool(4, allowMissingIds_); + } + if (deviceInfo_ != null) { + output.writeMessage(5, getDeviceInfo()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, domain_); + } + if (!getSessionIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sessionId_); + } + if (!getUserIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, userId_); + } + if (allowMissingIds_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissingIds_); + } + if (deviceInfo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDeviceInfo()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.RequestMetadata)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.RequestMetadata other = + (com.google.cloud.talent.v4beta1.RequestMetadata) obj; + + boolean result = true; + result = result && getDomain().equals(other.getDomain()); + result = result && getSessionId().equals(other.getSessionId()); + result = result && getUserId().equals(other.getUserId()); + result = result && (getAllowMissingIds() == other.getAllowMissingIds()); + result = result && (hasDeviceInfo() == other.hasDeviceInfo()); + if (hasDeviceInfo()) { + result = result && getDeviceInfo().equals(other.getDeviceInfo()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + SESSION_ID_FIELD_NUMBER; + hash = (53 * hash) + getSessionId().hashCode(); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserId().hashCode(); + hash = (37 * hash) + ALLOW_MISSING_IDS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissingIds()); + if (hasDeviceInfo()) { + hash = (37 * hash) + DEVICE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getDeviceInfo().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.RequestMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Meta information related to the job searcher or entity
+   * conducting the job search. This information is used to improve the
+   * performance of the service.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.RequestMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.RequestMetadata) + com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_RequestMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_RequestMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.RequestMetadata.class, + com.google.cloud.talent.v4beta1.RequestMetadata.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.RequestMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + domain_ = ""; + + sessionId_ = ""; + + userId_ = ""; + + allowMissingIds_ = false; + + if (deviceInfoBuilder_ == null) { + deviceInfo_ = null; + } else { + deviceInfo_ = null; + deviceInfoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_RequestMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.RequestMetadata getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.RequestMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.RequestMetadata build() { + com.google.cloud.talent.v4beta1.RequestMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.RequestMetadata buildPartial() { + com.google.cloud.talent.v4beta1.RequestMetadata result = + new com.google.cloud.talent.v4beta1.RequestMetadata(this); + result.domain_ = domain_; + result.sessionId_ = sessionId_; + result.userId_ = userId_; + result.allowMissingIds_ = allowMissingIds_; + if (deviceInfoBuilder_ == null) { + result.deviceInfo_ = deviceInfo_; + } else { + result.deviceInfo_ = deviceInfoBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.RequestMetadata) { + return mergeFrom((com.google.cloud.talent.v4beta1.RequestMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.RequestMetadata other) { + if (other == com.google.cloud.talent.v4beta1.RequestMetadata.getDefaultInstance()) + return this; + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getSessionId().isEmpty()) { + sessionId_ = other.sessionId_; + onChanged(); + } + if (!other.getUserId().isEmpty()) { + userId_ = other.userId_; + onChanged(); + } + if (other.getAllowMissingIds() != false) { + setAllowMissingIds(other.getAllowMissingIds()); + } + if (other.hasDeviceInfo()) { + mergeDeviceInfo(other.getDeviceInfo()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.RequestMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.RequestMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object domain_ = ""; + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * The client-defined scope or source of the service call, which typically
+     * is the domain on
+     * which the service has been implemented and is currently being run.
+     * For example, if the service is being run by client <em>Foo, Inc.</em>, on
+     * job board www.foo.com and career site www.bar.com, then this field is
+     * set to "foo.com" for use on the job board, and "bar.com" for use on the
+     * career site.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique domain.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string domain = 1; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * The client-defined scope or source of the service call, which typically
+     * is the domain on
+     * which the service has been implemented and is currently being run.
+     * For example, if the service is being run by client <em>Foo, Inc.</em>, on
+     * job board www.foo.com and career site www.bar.com, then this field is
+     * set to "foo.com" for use on the job board, and "bar.com" for use on the
+     * career site.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique domain.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string domain = 1; + */ + public com.google.protobuf.ByteString getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * The client-defined scope or source of the service call, which typically
+     * is the domain on
+     * which the service has been implemented and is currently being run.
+     * For example, if the service is being run by client <em>Foo, Inc.</em>, on
+     * job board www.foo.com and career site www.bar.com, then this field is
+     * set to "foo.com" for use on the job board, and "bar.com" for use on the
+     * career site.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique domain.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string domain = 1; + */ + public Builder setDomain(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * The client-defined scope or source of the service call, which typically
+     * is the domain on
+     * which the service has been implemented and is currently being run.
+     * For example, if the service is being run by client <em>Foo, Inc.</em>, on
+     * job board www.foo.com and career site www.bar.com, then this field is
+     * set to "foo.com" for use on the job board, and "bar.com" for use on the
+     * career site.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique domain.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string domain = 1; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * The client-defined scope or source of the service call, which typically
+     * is the domain on
+     * which the service has been implemented and is currently being run.
+     * For example, if the service is being run by client <em>Foo, Inc.</em>, on
+     * job board www.foo.com and career site www.bar.com, then this field is
+     * set to "foo.com" for use on the job board, and "bar.com" for use on the
+     * career site.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique domain.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string domain = 1; + */ + public Builder setDomainBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object sessionId_ = ""; + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * A unique session identification string. A session is defined as the
+     * duration of an end user's interaction with the service over a certain
+     * period.
+     * Obfuscate this field for privacy concerns before
+     * providing it to the service.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique session ID.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string session_id = 2; + */ + public java.lang.String getSessionId() { + java.lang.Object ref = sessionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sessionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * A unique session identification string. A session is defined as the
+     * duration of an end user's interaction with the service over a certain
+     * period.
+     * Obfuscate this field for privacy concerns before
+     * providing it to the service.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique session ID.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string session_id = 2; + */ + public com.google.protobuf.ByteString getSessionIdBytes() { + java.lang.Object ref = sessionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sessionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * A unique session identification string. A session is defined as the
+     * duration of an end user's interaction with the service over a certain
+     * period.
+     * Obfuscate this field for privacy concerns before
+     * providing it to the service.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique session ID.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string session_id = 2; + */ + public Builder setSessionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + sessionId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * A unique session identification string. A session is defined as the
+     * duration of an end user's interaction with the service over a certain
+     * period.
+     * Obfuscate this field for privacy concerns before
+     * providing it to the service.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique session ID.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string session_id = 2; + */ + public Builder clearSessionId() { + + sessionId_ = getDefaultInstance().getSessionId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * A unique session identification string. A session is defined as the
+     * duration of an end user's interaction with the service over a certain
+     * period.
+     * Obfuscate this field for privacy concerns before
+     * providing it to the service.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique session ID.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string session_id = 2; + */ + public Builder setSessionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + sessionId_ = value; + onChanged(); + return this; + } + + private java.lang.Object userId_ = ""; + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * A unique user identification string, as determined by the client.
+     * To have the strongest positive impact on search quality
+     * make sure the client-level is unique.
+     * Obfuscate this field for privacy concerns before
+     * providing it to the service.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique user ID.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string user_id = 3; + */ + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * A unique user identification string, as determined by the client.
+     * To have the strongest positive impact on search quality
+     * make sure the client-level is unique.
+     * Obfuscate this field for privacy concerns before
+     * providing it to the service.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique user ID.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string user_id = 3; + */ + public com.google.protobuf.ByteString getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * A unique user identification string, as determined by the client.
+     * To have the strongest positive impact on search quality
+     * make sure the client-level is unique.
+     * Obfuscate this field for privacy concerns before
+     * providing it to the service.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique user ID.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string user_id = 3; + */ + public Builder setUserId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + userId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * A unique user identification string, as determined by the client.
+     * To have the strongest positive impact on search quality
+     * make sure the client-level is unique.
+     * Obfuscate this field for privacy concerns before
+     * providing it to the service.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique user ID.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string user_id = 3; + */ + public Builder clearUserId() { + + userId_ = getDefaultInstance().getUserId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * A unique user identification string, as determined by the client.
+     * To have the strongest positive impact on search quality
+     * make sure the client-level is unique.
+     * Obfuscate this field for privacy concerns before
+     * providing it to the service.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique user ID.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string user_id = 3; + */ + public Builder setUserIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + userId_ = value; + onChanged(); + return this; + } + + private boolean allowMissingIds_; + /** + * + * + *
+     * Optional.
+     * If set to `true`,
+     * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
+     * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
+     * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] are
+     * optional. Only set when any of these fields isn't available for some
+     * reason. It is highly recommended not to set this field and provide accurate
+     * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
+     * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
+     * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] for the best
+     * service experience.
+     * 
+ * + * bool allow_missing_ids = 4; + */ + public boolean getAllowMissingIds() { + return allowMissingIds_; + } + /** + * + * + *
+     * Optional.
+     * If set to `true`,
+     * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
+     * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
+     * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] are
+     * optional. Only set when any of these fields isn't available for some
+     * reason. It is highly recommended not to set this field and provide accurate
+     * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
+     * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
+     * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] for the best
+     * service experience.
+     * 
+ * + * bool allow_missing_ids = 4; + */ + public Builder setAllowMissingIds(boolean value) { + + allowMissingIds_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * If set to `true`,
+     * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
+     * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
+     * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] are
+     * optional. Only set when any of these fields isn't available for some
+     * reason. It is highly recommended not to set this field and provide accurate
+     * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
+     * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
+     * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] for the best
+     * service experience.
+     * 
+ * + * bool allow_missing_ids = 4; + */ + public Builder clearAllowMissingIds() { + + allowMissingIds_ = false; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.DeviceInfo deviceInfo_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.DeviceInfo, + com.google.cloud.talent.v4beta1.DeviceInfo.Builder, + com.google.cloud.talent.v4beta1.DeviceInfoOrBuilder> + deviceInfoBuilder_; + /** + * + * + *
+     * Optional.
+     * The type of device used by the job seeker at the time of the call to the
+     * service.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + public boolean hasDeviceInfo() { + return deviceInfoBuilder_ != null || deviceInfo_ != null; + } + /** + * + * + *
+     * Optional.
+     * The type of device used by the job seeker at the time of the call to the
+     * service.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + public com.google.cloud.talent.v4beta1.DeviceInfo getDeviceInfo() { + if (deviceInfoBuilder_ == null) { + return deviceInfo_ == null + ? com.google.cloud.talent.v4beta1.DeviceInfo.getDefaultInstance() + : deviceInfo_; + } else { + return deviceInfoBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The type of device used by the job seeker at the time of the call to the
+     * service.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + public Builder setDeviceInfo(com.google.cloud.talent.v4beta1.DeviceInfo value) { + if (deviceInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deviceInfo_ = value; + onChanged(); + } else { + deviceInfoBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The type of device used by the job seeker at the time of the call to the
+     * service.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + public Builder setDeviceInfo( + com.google.cloud.talent.v4beta1.DeviceInfo.Builder builderForValue) { + if (deviceInfoBuilder_ == null) { + deviceInfo_ = builderForValue.build(); + onChanged(); + } else { + deviceInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The type of device used by the job seeker at the time of the call to the
+     * service.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + public Builder mergeDeviceInfo(com.google.cloud.talent.v4beta1.DeviceInfo value) { + if (deviceInfoBuilder_ == null) { + if (deviceInfo_ != null) { + deviceInfo_ = + com.google.cloud.talent.v4beta1.DeviceInfo.newBuilder(deviceInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + deviceInfo_ = value; + } + onChanged(); + } else { + deviceInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The type of device used by the job seeker at the time of the call to the
+     * service.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + public Builder clearDeviceInfo() { + if (deviceInfoBuilder_ == null) { + deviceInfo_ = null; + onChanged(); + } else { + deviceInfo_ = null; + deviceInfoBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The type of device used by the job seeker at the time of the call to the
+     * service.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + public com.google.cloud.talent.v4beta1.DeviceInfo.Builder getDeviceInfoBuilder() { + + onChanged(); + return getDeviceInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The type of device used by the job seeker at the time of the call to the
+     * service.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + public com.google.cloud.talent.v4beta1.DeviceInfoOrBuilder getDeviceInfoOrBuilder() { + if (deviceInfoBuilder_ != null) { + return deviceInfoBuilder_.getMessageOrBuilder(); + } else { + return deviceInfo_ == null + ? com.google.cloud.talent.v4beta1.DeviceInfo.getDefaultInstance() + : deviceInfo_; + } + } + /** + * + * + *
+     * Optional.
+     * The type of device used by the job seeker at the time of the call to the
+     * service.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.DeviceInfo, + com.google.cloud.talent.v4beta1.DeviceInfo.Builder, + com.google.cloud.talent.v4beta1.DeviceInfoOrBuilder> + getDeviceInfoFieldBuilder() { + if (deviceInfoBuilder_ == null) { + deviceInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.DeviceInfo, + com.google.cloud.talent.v4beta1.DeviceInfo.Builder, + com.google.cloud.talent.v4beta1.DeviceInfoOrBuilder>( + getDeviceInfo(), getParentForChildren(), isClean()); + deviceInfo_ = null; + } + return deviceInfoBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.RequestMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.RequestMetadata) + private static final com.google.cloud.talent.v4beta1.RequestMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.RequestMetadata(); + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RequestMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RequestMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.RequestMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RequestMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RequestMetadataOrBuilder.java new file mode 100644 index 000000000000..cf63ae281cc2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RequestMetadataOrBuilder.java @@ -0,0 +1,195 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +public interface RequestMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.RequestMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * The client-defined scope or source of the service call, which typically
+   * is the domain on
+   * which the service has been implemented and is currently being run.
+   * For example, if the service is being run by client <em>Foo, Inc.</em>, on
+   * job board www.foo.com and career site www.bar.com, then this field is
+   * set to "foo.com" for use on the job board, and "bar.com" for use on the
+   * career site.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique domain.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string domain = 1; + */ + java.lang.String getDomain(); + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * The client-defined scope or source of the service call, which typically
+   * is the domain on
+   * which the service has been implemented and is currently being run.
+   * For example, if the service is being run by client <em>Foo, Inc.</em>, on
+   * job board www.foo.com and career site www.bar.com, then this field is
+   * set to "foo.com" for use on the job board, and "bar.com" for use on the
+   * career site.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique domain.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string domain = 1; + */ + com.google.protobuf.ByteString getDomainBytes(); + + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * A unique session identification string. A session is defined as the
+   * duration of an end user's interaction with the service over a certain
+   * period.
+   * Obfuscate this field for privacy concerns before
+   * providing it to the service.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique session ID.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string session_id = 2; + */ + java.lang.String getSessionId(); + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * A unique session identification string. A session is defined as the
+   * duration of an end user's interaction with the service over a certain
+   * period.
+   * Obfuscate this field for privacy concerns before
+   * providing it to the service.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique session ID.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string session_id = 2; + */ + com.google.protobuf.ByteString getSessionIdBytes(); + + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * A unique user identification string, as determined by the client.
+   * To have the strongest positive impact on search quality
+   * make sure the client-level is unique.
+   * Obfuscate this field for privacy concerns before
+   * providing it to the service.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique user ID.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string user_id = 3; + */ + java.lang.String getUserId(); + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * A unique user identification string, as determined by the client.
+   * To have the strongest positive impact on search quality
+   * make sure the client-level is unique.
+   * Obfuscate this field for privacy concerns before
+   * providing it to the service.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique user ID.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string user_id = 3; + */ + com.google.protobuf.ByteString getUserIdBytes(); + + /** + * + * + *
+   * Optional.
+   * If set to `true`,
+   * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
+   * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
+   * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] are
+   * optional. Only set when any of these fields isn't available for some
+   * reason. It is highly recommended not to set this field and provide accurate
+   * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
+   * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
+   * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] for the best
+   * service experience.
+   * 
+ * + * bool allow_missing_ids = 4; + */ + boolean getAllowMissingIds(); + + /** + * + * + *
+   * Optional.
+   * The type of device used by the job seeker at the time of the call to the
+   * service.
+   * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + boolean hasDeviceInfo(); + /** + * + * + *
+   * Optional.
+   * The type of device used by the job seeker at the time of the call to the
+   * service.
+   * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + com.google.cloud.talent.v4beta1.DeviceInfo getDeviceInfo(); + /** + * + * + *
+   * Optional.
+   * The type of device used by the job seeker at the time of the call to the
+   * service.
+   * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + com.google.cloud.talent.v4beta1.DeviceInfoOrBuilder getDeviceInfoOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResponseMetadata.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResponseMetadata.java new file mode 100644 index 000000000000..34e358a38300 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResponseMetadata.java @@ -0,0 +1,607 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Output only.
+ * Additional information returned to client, such as debugging information.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ResponseMetadata} + */ +public final class ResponseMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ResponseMetadata) + ResponseMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResponseMetadata.newBuilder() to construct. + private ResponseMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ResponseMetadata() { + requestId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ResponseMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_ResponseMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_ResponseMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ResponseMetadata.class, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder.class); + } + + public static final int REQUEST_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object requestId_; + /** + * + * + *
+   * A unique id associated with this call.
+   * This id is logged for tracking purposes.
+   * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * A unique id associated with this call.
+   * This id is logged for tracking purposes.
+   * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getRequestIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRequestIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ResponseMetadata)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ResponseMetadata other = + (com.google.cloud.talent.v4beta1.ResponseMetadata) obj; + + boolean result = true; + result = result && getRequestId().equals(other.getRequestId()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.ResponseMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Output only.
+   * Additional information returned to client, such as debugging information.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ResponseMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ResponseMetadata) + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_ResponseMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_ResponseMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ResponseMetadata.class, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ResponseMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + requestId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_ResponseMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ResponseMetadata getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ResponseMetadata build() { + com.google.cloud.talent.v4beta1.ResponseMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ResponseMetadata buildPartial() { + com.google.cloud.talent.v4beta1.ResponseMetadata result = + new com.google.cloud.talent.v4beta1.ResponseMetadata(this); + result.requestId_ = requestId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ResponseMetadata) { + return mergeFrom((com.google.cloud.talent.v4beta1.ResponseMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ResponseMetadata other) { + if (other == com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance()) + return this; + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ResponseMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.ResponseMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * A unique id associated with this call.
+     * This id is logged for tracking purposes.
+     * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A unique id associated with this call.
+     * This id is logged for tracking purposes.
+     * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A unique id associated with this call.
+     * This id is logged for tracking purposes.
+     * 
+ * + * string request_id = 1; + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A unique id associated with this call.
+     * This id is logged for tracking purposes.
+     * 
+ * + * string request_id = 1; + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + * + * + *
+     * A unique id associated with this call.
+     * This id is logged for tracking purposes.
+     * 
+ * + * string request_id = 1; + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ResponseMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ResponseMetadata) + private static final com.google.cloud.talent.v4beta1.ResponseMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ResponseMetadata(); + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResponseMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResponseMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ResponseMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResponseMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResponseMetadataOrBuilder.java new file mode 100644 index 000000000000..57e7d0d0e06d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResponseMetadataOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +public interface ResponseMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ResponseMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A unique id associated with this call.
+   * This id is logged for tracking purposes.
+   * 
+ * + * string request_id = 1; + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * A unique id associated with this call.
+   * This id is logged for tracking purposes.
+   * 
+ * + * string request_id = 1; + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceProto.java new file mode 100644 index 000000000000..754986a7458e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceProto.java @@ -0,0 +1,107 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/resume_service.proto + +package com.google.cloud.talent.v4beta1; + +public final class ResumeServiceProto { + private ResumeServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/talent/v4beta1/resume_ser" + + "vice.proto\022\033google.cloud.talent.v4beta1\032" + + "\034google/api/annotations.proto\032)google/cl" + + "oud/talent/v4beta1/profile.proto\"\242\001\n\022Par" + + "seResumeRequest\022\016\n\006parent\030\001 \001(\t\022\016\n\006resum" + + "e\030\002 \001(\014\022\023\n\013region_code\030\003 \001(\t\022\025\n\rlanguage" + + "_code\030\004 \001(\t\022@\n\007options\030\005 \001(\0132/.google.cl" + + "oud.talent.v4beta1.ParseResumeOptions\"M\n" + + "\022ParseResumeOptions\022\022\n\nenable_ocr\030\001 \001(\010\022" + + "#\n\033enable_full_skill_detection\030\002 \001(\010\"^\n\023" + + "ParseResumeResponse\0225\n\007profile\030\001 \001(\0132$.g" + + "oogle.cloud.talent.v4beta1.Profile\022\020\n\010ra" + + "w_text\030\002 \001(\t2\271\001\n\rResumeService\022\247\001\n\013Parse" + + "Resume\022/.google.cloud.talent.v4beta1.Par" + + "seResumeRequest\0320.google.cloud.talent.v4" + + "beta1.ParseResumeResponse\"5\202\323\344\223\002/\"*/v4be" + + "ta1/{parent=projects/*}/resumes:parse:\001*" + + "B\200\001\n\037com.google.cloud.talent.v4beta1B\022Re" + + "sumeServiceProtoP\001ZAgoogle.golang.org/ge" + + "nproto/googleapis/cloud/talent/v4beta1;t" + + "alent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.ProfileResourceProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_descriptor, + new java.lang.String[] { + "Parent", "Resume", "RegionCode", "LanguageCode", "Options", + }); + internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_descriptor, + new java.lang.String[] { + "EnableOcr", "EnableFullSkillDetection", + }); + internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_descriptor, + new java.lang.String[] { + "Profile", "RawText", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.ProfileResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequest.java new file mode 100644 index 000000000000..ebca35da3298 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequest.java @@ -0,0 +1,7364 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * The Request body of the `SearchJobs` call.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchJobsRequest} + */ +public final class SearchJobsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SearchJobsRequest) + SearchJobsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchJobsRequest.newBuilder() to construct. + private SearchJobsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchJobsRequest() { + parent_ = ""; + searchMode_ = 0; + enableBroadening_ = false; + requirePreciseResultSize_ = false; + histogramQueries_ = java.util.Collections.emptyList(); + jobView_ = 0; + offset_ = 0; + pageSize_ = 0; + pageToken_ = ""; + orderBy_ = ""; + diversificationLevel_ = 0; + disableKeywordMatch_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SearchJobsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + searchMode_ = rawValue; + break; + } + case 26: + { + com.google.cloud.talent.v4beta1.RequestMetadata.Builder subBuilder = null; + if (requestMetadata_ != null) { + subBuilder = requestMetadata_.toBuilder(); + } + requestMetadata_ = + input.readMessage( + com.google.cloud.talent.v4beta1.RequestMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(requestMetadata_); + requestMetadata_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.cloud.talent.v4beta1.JobQuery.Builder subBuilder = null; + if (jobQuery_ != null) { + subBuilder = jobQuery_.toBuilder(); + } + jobQuery_ = + input.readMessage( + com.google.cloud.talent.v4beta1.JobQuery.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(jobQuery_); + jobQuery_ = subBuilder.buildPartial(); + } + + break; + } + case 40: + { + enableBroadening_ = input.readBool(); + break; + } + case 48: + { + requirePreciseResultSize_ = input.readBool(); + break; + } + case 58: + { + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + histogramQueries_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000040; + } + histogramQueries_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.HistogramQuery.parser(), extensionRegistry)); + break; + } + case 64: + { + int rawValue = input.readEnum(); + + jobView_ = rawValue; + break; + } + case 72: + { + offset_ = input.readInt32(); + break; + } + case 80: + { + pageSize_ = input.readInt32(); + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + case 104: + { + int rawValue = input.readEnum(); + + diversificationLevel_ = rawValue; + break; + } + case 114: + { + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.Builder + subBuilder = null; + if (customRankingInfo_ != null) { + subBuilder = customRankingInfo_.toBuilder(); + } + customRankingInfo_ = + input.readMessage( + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customRankingInfo_); + customRankingInfo_ = subBuilder.buildPartial(); + } + + break; + } + case 128: + { + disableKeywordMatch_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + histogramQueries_ = java.util.Collections.unmodifiableList(histogramQueries_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchJobsRequest.class, + com.google.cloud.talent.v4beta1.SearchJobsRequest.Builder.class); + } + + /** + * + * + *
+   * A string-represented enumeration of the job search mode. The service
+   * operate differently for different modes of service.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode} + */ + public enum SearchMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The mode of the search method isn't specified.
+     * 
+ * + * SEARCH_MODE_UNSPECIFIED = 0; + */ + SEARCH_MODE_UNSPECIFIED(0), + /** + * + * + *
+     * The job search matches against all jobs, and featured jobs
+     * (jobs with promotionValue > 0) are not specially handled.
+     * 
+ * + * JOB_SEARCH = 1; + */ + JOB_SEARCH(1), + /** + * + * + *
+     * The job search matches only against featured jobs (jobs with a
+     * promotionValue > 0). This method doesn't return any jobs having a
+     * promotionValue <= 0. The search results order is determined by the
+     * promotionValue (jobs with a higher promotionValue are returned higher up
+     * in the search results), with relevance being used as a tiebreaker.
+     * 
+ * + * FEATURED_JOB_SEARCH = 2; + */ + FEATURED_JOB_SEARCH(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The mode of the search method isn't specified.
+     * 
+ * + * SEARCH_MODE_UNSPECIFIED = 0; + */ + public static final int SEARCH_MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The job search matches against all jobs, and featured jobs
+     * (jobs with promotionValue > 0) are not specially handled.
+     * 
+ * + * JOB_SEARCH = 1; + */ + public static final int JOB_SEARCH_VALUE = 1; + /** + * + * + *
+     * The job search matches only against featured jobs (jobs with a
+     * promotionValue > 0). This method doesn't return any jobs having a
+     * promotionValue <= 0. The search results order is determined by the
+     * promotionValue (jobs with a higher promotionValue are returned higher up
+     * in the search results), with relevance being used as a tiebreaker.
+     * 
+ * + * FEATURED_JOB_SEARCH = 2; + */ + public static final int FEATURED_JOB_SEARCH_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static SearchMode valueOf(int value) { + return forNumber(value); + } + + public static SearchMode forNumber(int value) { + switch (value) { + case 0: + return SEARCH_MODE_UNSPECIFIED; + case 1: + return JOB_SEARCH; + case 2: + return FEATURED_JOB_SEARCH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SearchMode findValueByNumber(int number) { + return SearchMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.SearchJobsRequest.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final SearchMode[] VALUES = values(); + + public static SearchMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SearchMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode) + } + + /** + * + * + *
+   * Controls whether highly similar jobs are returned next to each other in
+   * the search results. Jobs are identified as highly similar based on
+   * their titles, job categories, and locations. Highly similar results are
+   * clustered so that only one representative job of the cluster is
+   * displayed to the job seeker higher up in the results, with the other jobs
+   * being displayed lower down in the results.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel} + */ + public enum DiversificationLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The diversification level isn't specified.
+     * 
+ * + * DIVERSIFICATION_LEVEL_UNSPECIFIED = 0; + */ + DIVERSIFICATION_LEVEL_UNSPECIFIED(0), + /** + * + * + *
+     * Disables diversification. Jobs that would normally be pushed to the last
+     * page would not have their positions altered. This may result in highly
+     * similar jobs appearing in sequence in the search results.
+     * 
+ * + * DISABLED = 1; + */ + DISABLED(1), + /** + * + * + *
+     * Default diversifying behavior. The result list is ordered so that
+     * highly similar results are pushed to the end of the last page of search
+     * results.
+     * 
+ * + * SIMPLE = 2; + */ + SIMPLE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The diversification level isn't specified.
+     * 
+ * + * DIVERSIFICATION_LEVEL_UNSPECIFIED = 0; + */ + public static final int DIVERSIFICATION_LEVEL_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Disables diversification. Jobs that would normally be pushed to the last
+     * page would not have their positions altered. This may result in highly
+     * similar jobs appearing in sequence in the search results.
+     * 
+ * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + /** + * + * + *
+     * Default diversifying behavior. The result list is ordered so that
+     * highly similar results are pushed to the end of the last page of search
+     * results.
+     * 
+ * + * SIMPLE = 2; + */ + public static final int SIMPLE_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static DiversificationLevel valueOf(int value) { + return forNumber(value); + } + + public static DiversificationLevel forNumber(int value) { + switch (value) { + case 0: + return DIVERSIFICATION_LEVEL_UNSPECIFIED; + case 1: + return DISABLED; + case 2: + return SIMPLE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DiversificationLevel findValueByNumber(int number) { + return DiversificationLevel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.SearchJobsRequest.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final DiversificationLevel[] VALUES = values(); + + public static DiversificationLevel valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DiversificationLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel) + } + + public interface CustomRankingInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required.
+     * Controls over how important the score of
+     * [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression]
+     * gets applied to job's final ranking position.
+     * An error is thrown if not specified.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel importance_level = 1; + * + */ + int getImportanceLevelValue(); + /** + * + * + *
+     * Required.
+     * Controls over how important the score of
+     * [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression]
+     * gets applied to job's final ranking position.
+     * An error is thrown if not specified.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel importance_level = 1; + * + */ + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel + getImportanceLevel(); + + /** + * + * + *
+     * Required.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm). The product of ranking expression
+     * and relevance score is used to determine job's final ranking position.
+     * The syntax for this expression is a subset of Google SQL syntax.
+     * Supported operators are: +, -, *, /, where the left and right side of
+     * the operator is either a numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+     * key, integer/double value or an expression that can be evaluated to a
+     * number.
+     * Parenthesis are supported to adjust calculation precedence. The
+     * expression must be < 100 characters in length.
+     * Sample ranking expression
+     * (year + 25) * 0.25 - (freshness / 0.5)
+     * 
+ * + * string ranking_expression = 2; + */ + java.lang.String getRankingExpression(); + /** + * + * + *
+     * Required.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm). The product of ranking expression
+     * and relevance score is used to determine job's final ranking position.
+     * The syntax for this expression is a subset of Google SQL syntax.
+     * Supported operators are: +, -, *, /, where the left and right side of
+     * the operator is either a numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+     * key, integer/double value or an expression that can be evaluated to a
+     * number.
+     * Parenthesis are supported to adjust calculation precedence. The
+     * expression must be < 100 characters in length.
+     * Sample ranking expression
+     * (year + 25) * 0.25 - (freshness / 0.5)
+     * 
+ * + * string ranking_expression = 2; + */ + com.google.protobuf.ByteString getRankingExpressionBytes(); + } + /** + * + * + *
+   * Input only.
+   * Custom ranking information for
+   * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo} + */ + public static final class CustomRankingInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo) + CustomRankingInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomRankingInfo.newBuilder() to construct. + private CustomRankingInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomRankingInfo() { + importanceLevel_ = 0; + rankingExpression_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CustomRankingInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + importanceLevel_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + rankingExpression_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_CustomRankingInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_CustomRankingInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.class, + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.Builder.class); + } + + /** + * + * + *
+     * The importance level for
+     * [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression].
+     * 
+ * + * Protobuf enum {@code + * google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel} + */ + public enum ImportanceLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Default value if the importance level isn't specified.
+       * 
+ * + * IMPORTANCE_LEVEL_UNSPECIFIED = 0; + */ + IMPORTANCE_LEVEL_UNSPECIFIED(0), + /** + * + * + *
+       * The given ranking expression is of None importance, existing relevance
+       * score (determined by API algorithm) dominates job's final ranking
+       * position.
+       * 
+ * + * NONE = 1; + */ + NONE(1), + /** + * + * + *
+       * The given ranking expression is of Low importance in terms of job's
+       * final ranking position compared to existing relevance
+       * score (determined by API algorithm).
+       * 
+ * + * LOW = 2; + */ + LOW(2), + /** + * + * + *
+       * The given ranking expression is of Mild importance in terms of job's
+       * final ranking position compared to existing relevance
+       * score (determined by API algorithm).
+       * 
+ * + * MILD = 3; + */ + MILD(3), + /** + * + * + *
+       * The given ranking expression is of Medium importance in terms of job's
+       * final ranking position compared to existing relevance
+       * score (determined by API algorithm).
+       * 
+ * + * MEDIUM = 4; + */ + MEDIUM(4), + /** + * + * + *
+       * The given ranking expression is of High importance in terms of job's
+       * final ranking position compared to existing relevance
+       * score (determined by API algorithm).
+       * 
+ * + * HIGH = 5; + */ + HIGH(5), + /** + * + * + *
+       * The given ranking expression is of Extreme importance, and dominates
+       * job's final ranking position with existing relevance
+       * score (determined by API algorithm) ignored.
+       * 
+ * + * EXTREME = 6; + */ + EXTREME(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Default value if the importance level isn't specified.
+       * 
+ * + * IMPORTANCE_LEVEL_UNSPECIFIED = 0; + */ + public static final int IMPORTANCE_LEVEL_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * The given ranking expression is of None importance, existing relevance
+       * score (determined by API algorithm) dominates job's final ranking
+       * position.
+       * 
+ * + * NONE = 1; + */ + public static final int NONE_VALUE = 1; + /** + * + * + *
+       * The given ranking expression is of Low importance in terms of job's
+       * final ranking position compared to existing relevance
+       * score (determined by API algorithm).
+       * 
+ * + * LOW = 2; + */ + public static final int LOW_VALUE = 2; + /** + * + * + *
+       * The given ranking expression is of Mild importance in terms of job's
+       * final ranking position compared to existing relevance
+       * score (determined by API algorithm).
+       * 
+ * + * MILD = 3; + */ + public static final int MILD_VALUE = 3; + /** + * + * + *
+       * The given ranking expression is of Medium importance in terms of job's
+       * final ranking position compared to existing relevance
+       * score (determined by API algorithm).
+       * 
+ * + * MEDIUM = 4; + */ + public static final int MEDIUM_VALUE = 4; + /** + * + * + *
+       * The given ranking expression is of High importance in terms of job's
+       * final ranking position compared to existing relevance
+       * score (determined by API algorithm).
+       * 
+ * + * HIGH = 5; + */ + public static final int HIGH_VALUE = 5; + /** + * + * + *
+       * The given ranking expression is of Extreme importance, and dominates
+       * job's final ranking position with existing relevance
+       * score (determined by API algorithm) ignored.
+       * 
+ * + * EXTREME = 6; + */ + public static final int EXTREME_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static ImportanceLevel valueOf(int value) { + return forNumber(value); + } + + public static ImportanceLevel forNumber(int value) { + switch (value) { + case 0: + return IMPORTANCE_LEVEL_UNSPECIFIED; + case 1: + return NONE; + case 2: + return LOW; + case 3: + return MILD; + case 4: + return MEDIUM; + case 5: + return HIGH; + case 6: + return EXTREME; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ImportanceLevel findValueByNumber(int number) { + return ImportanceLevel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ImportanceLevel[] VALUES = values(); + + public static ImportanceLevel valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ImportanceLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel) + } + + public static final int IMPORTANCE_LEVEL_FIELD_NUMBER = 1; + private int importanceLevel_; + /** + * + * + *
+     * Required.
+     * Controls over how important the score of
+     * [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression]
+     * gets applied to job's final ranking position.
+     * An error is thrown if not specified.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel importance_level = 1; + * + */ + public int getImportanceLevelValue() { + return importanceLevel_; + } + /** + * + * + *
+     * Required.
+     * Controls over how important the score of
+     * [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression]
+     * gets applied to job's final ranking position.
+     * An error is thrown if not specified.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel importance_level = 1; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel + getImportanceLevel() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel result = + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel + .valueOf(importanceLevel_); + return result == null + ? com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel + .UNRECOGNIZED + : result; + } + + public static final int RANKING_EXPRESSION_FIELD_NUMBER = 2; + private volatile java.lang.Object rankingExpression_; + /** + * + * + *
+     * Required.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm). The product of ranking expression
+     * and relevance score is used to determine job's final ranking position.
+     * The syntax for this expression is a subset of Google SQL syntax.
+     * Supported operators are: +, -, *, /, where the left and right side of
+     * the operator is either a numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+     * key, integer/double value or an expression that can be evaluated to a
+     * number.
+     * Parenthesis are supported to adjust calculation precedence. The
+     * expression must be < 100 characters in length.
+     * Sample ranking expression
+     * (year + 25) * 0.25 - (freshness / 0.5)
+     * 
+ * + * string ranking_expression = 2; + */ + public java.lang.String getRankingExpression() { + java.lang.Object ref = rankingExpression_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rankingExpression_ = s; + return s; + } + } + /** + * + * + *
+     * Required.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm). The product of ranking expression
+     * and relevance score is used to determine job's final ranking position.
+     * The syntax for this expression is a subset of Google SQL syntax.
+     * Supported operators are: +, -, *, /, where the left and right side of
+     * the operator is either a numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+     * key, integer/double value or an expression that can be evaluated to a
+     * number.
+     * Parenthesis are supported to adjust calculation precedence. The
+     * expression must be < 100 characters in length.
+     * Sample ranking expression
+     * (year + 25) * 0.25 - (freshness / 0.5)
+     * 
+ * + * string ranking_expression = 2; + */ + public com.google.protobuf.ByteString getRankingExpressionBytes() { + java.lang.Object ref = rankingExpression_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rankingExpression_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (importanceLevel_ + != com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel + .IMPORTANCE_LEVEL_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, importanceLevel_); + } + if (!getRankingExpressionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, rankingExpression_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (importanceLevel_ + != com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel + .IMPORTANCE_LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, importanceLevel_); + } + if (!getRankingExpressionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, rankingExpression_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo other = + (com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo) obj; + + boolean result = true; + result = result && importanceLevel_ == other.importanceLevel_; + result = result && getRankingExpression().equals(other.getRankingExpression()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + IMPORTANCE_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + importanceLevel_; + hash = (37 * hash) + RANKING_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getRankingExpression().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Input only.
+     * Custom ranking information for
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo) + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_CustomRankingInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_CustomRankingInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.class, + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.Builder.class); + } + + // Construct using + // com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + importanceLevel_ = 0; + + rankingExpression_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_CustomRankingInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo build() { + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo buildPartial() { + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo result = + new com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo(this); + result.importanceLevel_ = importanceLevel_; + result.rankingExpression_ = rankingExpression_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo) { + return mergeFrom( + (com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo other) { + if (other + == com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + .getDefaultInstance()) return this; + if (other.importanceLevel_ != 0) { + setImportanceLevelValue(other.getImportanceLevelValue()); + } + if (!other.getRankingExpression().isEmpty()) { + rankingExpression_ = other.rankingExpression_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int importanceLevel_ = 0; + /** + * + * + *
+       * Required.
+       * Controls over how important the score of
+       * [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression]
+       * gets applied to job's final ranking position.
+       * An error is thrown if not specified.
+       * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel importance_level = 1; + * + */ + public int getImportanceLevelValue() { + return importanceLevel_; + } + /** + * + * + *
+       * Required.
+       * Controls over how important the score of
+       * [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression]
+       * gets applied to job's final ranking position.
+       * An error is thrown if not specified.
+       * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel importance_level = 1; + * + */ + public Builder setImportanceLevelValue(int value) { + importanceLevel_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Required.
+       * Controls over how important the score of
+       * [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression]
+       * gets applied to job's final ranking position.
+       * An error is thrown if not specified.
+       * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel importance_level = 1; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel + getImportanceLevel() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel result = + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel + .valueOf(importanceLevel_); + return result == null + ? com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel + .UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Required.
+       * Controls over how important the score of
+       * [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression]
+       * gets applied to job's final ranking position.
+       * An error is thrown if not specified.
+       * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel importance_level = 1; + * + */ + public Builder setImportanceLevel( + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel + value) { + if (value == null) { + throw new NullPointerException(); + } + + importanceLevel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required.
+       * Controls over how important the score of
+       * [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression]
+       * gets applied to job's final ranking position.
+       * An error is thrown if not specified.
+       * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel importance_level = 1; + * + */ + public Builder clearImportanceLevel() { + + importanceLevel_ = 0; + onChanged(); + return this; + } + + private java.lang.Object rankingExpression_ = ""; + /** + * + * + *
+       * Required.
+       * Controls over how job documents get ranked on top of existing relevance
+       * score (determined by API algorithm). The product of ranking expression
+       * and relevance score is used to determine job's final ranking position.
+       * The syntax for this expression is a subset of Google SQL syntax.
+       * Supported operators are: +, -, *, /, where the left and right side of
+       * the operator is either a numeric
+       * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+       * key, integer/double value or an expression that can be evaluated to a
+       * number.
+       * Parenthesis are supported to adjust calculation precedence. The
+       * expression must be < 100 characters in length.
+       * Sample ranking expression
+       * (year + 25) * 0.25 - (freshness / 0.5)
+       * 
+ * + * string ranking_expression = 2; + */ + public java.lang.String getRankingExpression() { + java.lang.Object ref = rankingExpression_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rankingExpression_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required.
+       * Controls over how job documents get ranked on top of existing relevance
+       * score (determined by API algorithm). The product of ranking expression
+       * and relevance score is used to determine job's final ranking position.
+       * The syntax for this expression is a subset of Google SQL syntax.
+       * Supported operators are: +, -, *, /, where the left and right side of
+       * the operator is either a numeric
+       * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+       * key, integer/double value or an expression that can be evaluated to a
+       * number.
+       * Parenthesis are supported to adjust calculation precedence. The
+       * expression must be < 100 characters in length.
+       * Sample ranking expression
+       * (year + 25) * 0.25 - (freshness / 0.5)
+       * 
+ * + * string ranking_expression = 2; + */ + public com.google.protobuf.ByteString getRankingExpressionBytes() { + java.lang.Object ref = rankingExpression_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rankingExpression_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required.
+       * Controls over how job documents get ranked on top of existing relevance
+       * score (determined by API algorithm). The product of ranking expression
+       * and relevance score is used to determine job's final ranking position.
+       * The syntax for this expression is a subset of Google SQL syntax.
+       * Supported operators are: +, -, *, /, where the left and right side of
+       * the operator is either a numeric
+       * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+       * key, integer/double value or an expression that can be evaluated to a
+       * number.
+       * Parenthesis are supported to adjust calculation precedence. The
+       * expression must be < 100 characters in length.
+       * Sample ranking expression
+       * (year + 25) * 0.25 - (freshness / 0.5)
+       * 
+ * + * string ranking_expression = 2; + */ + public Builder setRankingExpression(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + rankingExpression_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Required.
+       * Controls over how job documents get ranked on top of existing relevance
+       * score (determined by API algorithm). The product of ranking expression
+       * and relevance score is used to determine job's final ranking position.
+       * The syntax for this expression is a subset of Google SQL syntax.
+       * Supported operators are: +, -, *, /, where the left and right side of
+       * the operator is either a numeric
+       * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+       * key, integer/double value or an expression that can be evaluated to a
+       * number.
+       * Parenthesis are supported to adjust calculation precedence. The
+       * expression must be < 100 characters in length.
+       * Sample ranking expression
+       * (year + 25) * 0.25 - (freshness / 0.5)
+       * 
+ * + * string ranking_expression = 2; + */ + public Builder clearRankingExpression() { + + rankingExpression_ = getDefaultInstance().getRankingExpression(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required.
+       * Controls over how job documents get ranked on top of existing relevance
+       * score (determined by API algorithm). The product of ranking expression
+       * and relevance score is used to determine job's final ranking position.
+       * The syntax for this expression is a subset of Google SQL syntax.
+       * Supported operators are: +, -, *, /, where the left and right side of
+       * the operator is either a numeric
+       * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+       * key, integer/double value or an expression that can be evaluated to a
+       * number.
+       * Parenthesis are supported to adjust calculation precedence. The
+       * expression must be < 100 characters in length.
+       * Sample ranking expression
+       * (year + 25) * 0.25 - (freshness / 0.5)
+       * 
+ * + * string ranking_expression = 2; + */ + public Builder setRankingExpressionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + rankingExpression_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo) + private static final com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo(); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomRankingInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomRankingInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * The resource name of the project to search within.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the project to search within.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SEARCH_MODE_FIELD_NUMBER = 2; + private int searchMode_; + /** + * + * + *
+   * Optional.
+   * Mode of a search.
+   * Defaults to
+   * [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH].
+   * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode search_mode = 2; + */ + public int getSearchModeValue() { + return searchMode_; + } + /** + * + * + *
+   * Optional.
+   * Mode of a search.
+   * Defaults to
+   * [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH].
+   * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode search_mode = 2; + */ + public com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode getSearchMode() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode result = + com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.valueOf(searchMode_); + return result == null + ? com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.UNRECOGNIZED + : result; + } + + public static final int REQUEST_METADATA_FIELD_NUMBER = 3; + private com.google.cloud.talent.v4beta1.RequestMetadata requestMetadata_; + /** + * + * + *
+   * Required.
+   * The meta information collected about the job searcher, used to improve the
+   * search quality of the service.. The identifiers, (such as `user_id`) are
+   * provided by users, and must be unique and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + public boolean hasRequestMetadata() { + return requestMetadata_ != null; + } + /** + * + * + *
+   * Required.
+   * The meta information collected about the job searcher, used to improve the
+   * search quality of the service.. The identifiers, (such as `user_id`) are
+   * provided by users, and must be unique and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + public com.google.cloud.talent.v4beta1.RequestMetadata getRequestMetadata() { + return requestMetadata_ == null + ? com.google.cloud.talent.v4beta1.RequestMetadata.getDefaultInstance() + : requestMetadata_; + } + /** + * + * + *
+   * Required.
+   * The meta information collected about the job searcher, used to improve the
+   * search quality of the service.. The identifiers, (such as `user_id`) are
+   * provided by users, and must be unique and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + public com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() { + return getRequestMetadata(); + } + + public static final int JOB_QUERY_FIELD_NUMBER = 4; + private com.google.cloud.talent.v4beta1.JobQuery jobQuery_; + /** + * + * + *
+   * Optional.
+   * Query used to search against jobs, such as keyword, location filters, etc.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + public boolean hasJobQuery() { + return jobQuery_ != null; + } + /** + * + * + *
+   * Optional.
+   * Query used to search against jobs, such as keyword, location filters, etc.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + public com.google.cloud.talent.v4beta1.JobQuery getJobQuery() { + return jobQuery_ == null + ? com.google.cloud.talent.v4beta1.JobQuery.getDefaultInstance() + : jobQuery_; + } + /** + * + * + *
+   * Optional.
+   * Query used to search against jobs, such as keyword, location filters, etc.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + public com.google.cloud.talent.v4beta1.JobQueryOrBuilder getJobQueryOrBuilder() { + return getJobQuery(); + } + + public static final int ENABLE_BROADENING_FIELD_NUMBER = 5; + private boolean enableBroadening_; + /** + * + * + *
+   * Optional.
+   * Controls whether to broaden the search when it produces sparse results.
+   * Broadened queries append results to the end of the matching results
+   * list.
+   * Defaults to false.
+   * 
+ * + * bool enable_broadening = 5; + */ + public boolean getEnableBroadening() { + return enableBroadening_; + } + + public static final int REQUIRE_PRECISE_RESULT_SIZE_FIELD_NUMBER = 6; + private boolean requirePreciseResultSize_; + /** + * + * + *
+   * Optional.
+   * Controls if the search job request requires the return of a precise
+   * count of the first 300 results. Setting this to `true` ensures
+   * consistency in the number of results per page. Best practice is to set this
+   * value to true if a client allows users to jump directly to a
+   * non-sequential search results page.
+   * Enabling this flag may adversely impact performance.
+   * Defaults to false.
+   * 
+ * + * bool require_precise_result_size = 6; + */ + public boolean getRequirePreciseResultSize() { + return requirePreciseResultSize_; + } + + public static final int HISTOGRAM_QUERIES_FIELD_NUMBER = 7; + private java.util.List histogramQueries_; + /** + * + * + *
+   * Optional.
+   * An expression specifies a histogram request against matching jobs.
+   * Expression syntax is an aggregation function call with histogram facets and
+   * other options.
+   * Available aggregation function calls are:
+   * * `count(string_histogram_facet)`: Count the number of matching entities,
+   * for each distinct attribute value.
+   * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+   * matching entities within each bucket.
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label]): bucket built-in function creates a bucket
+   * with range of [start, end). Note that the end is exclusive, for example,
+   * bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Job histogram facets:
+   * * company_id: histogram by [Job.distributor_company_id][].
+   * * company_display_name: histogram by
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+   * * employment_type: histogram by
+   * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+   * for example, "FULL_TIME", "PART_TIME".
+   * * company_size: histogram by
+   * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+   * "SMALL", "MEDIUM", "BIG".
+   * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+   * Must specify list of numeric buckets in spec.
+   * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+   * Must specify list of numeric buckets in spec.
+   * * degree_type: histogram by the [Job.degree_type][], for example,
+   * "Bachelors", "Masters".
+   * * job_level: histogram by the
+   * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+   * "Entry Level".
+   * * country: histogram by the country code of jobs, for example, "US", "FR".
+   * * admin1: histogram by the admin1 code of jobs, which is a global
+   * placeholder referring to the state, province, or the particular term a
+   * country uses to define the geographic structure below the country level,
+   * for example, "CA", "IL".
+   * * city: histogram by a combination of the "city name, admin1 code". For
+   * example,  "Mountain View, CA", "New York, NY".
+   * * admin1_country: histogram by a combination of the "admin1 code, country",
+   * for example, "CA, US", "IL, US".
+   * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+   * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+   * of a city center can change, customers may need to refresh them
+   * periodically.
+   * * locale: histogram by the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en-US", "fr-FR".
+   * * language: histogram by the language subtag of the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en", "fr".
+   * * category: histogram by the
+   * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+   * "COMPUTER_AND_IT", "HEALTHCARE".
+   * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+   * salary, for example, "WEEKLY", "MONTHLY".
+   * * base_compensation: histogram by the base salary. Must specify list of
+   * numeric buckets to group results by.
+   * * annualized_base_compensation: histogram by the base annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * annualized_total_compensation: histogram by the total annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * string_custom_attribute: histogram by string
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * string_custom_attribute["key1"].
+   * * numeric_custom_attribute: histogram by numeric
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+   * group results by.
+   * Example expressions:
+   * * count(admin1)
+   * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+   * bucket(100000, MAX)])
+   * * count(string_custom_attribute["some-string-custom-attribute"])
+   * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public java.util.List getHistogramQueriesList() { + return histogramQueries_; + } + /** + * + * + *
+   * Optional.
+   * An expression specifies a histogram request against matching jobs.
+   * Expression syntax is an aggregation function call with histogram facets and
+   * other options.
+   * Available aggregation function calls are:
+   * * `count(string_histogram_facet)`: Count the number of matching entities,
+   * for each distinct attribute value.
+   * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+   * matching entities within each bucket.
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label]): bucket built-in function creates a bucket
+   * with range of [start, end). Note that the end is exclusive, for example,
+   * bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Job histogram facets:
+   * * company_id: histogram by [Job.distributor_company_id][].
+   * * company_display_name: histogram by
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+   * * employment_type: histogram by
+   * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+   * for example, "FULL_TIME", "PART_TIME".
+   * * company_size: histogram by
+   * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+   * "SMALL", "MEDIUM", "BIG".
+   * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+   * Must specify list of numeric buckets in spec.
+   * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+   * Must specify list of numeric buckets in spec.
+   * * degree_type: histogram by the [Job.degree_type][], for example,
+   * "Bachelors", "Masters".
+   * * job_level: histogram by the
+   * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+   * "Entry Level".
+   * * country: histogram by the country code of jobs, for example, "US", "FR".
+   * * admin1: histogram by the admin1 code of jobs, which is a global
+   * placeholder referring to the state, province, or the particular term a
+   * country uses to define the geographic structure below the country level,
+   * for example, "CA", "IL".
+   * * city: histogram by a combination of the "city name, admin1 code". For
+   * example,  "Mountain View, CA", "New York, NY".
+   * * admin1_country: histogram by a combination of the "admin1 code, country",
+   * for example, "CA, US", "IL, US".
+   * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+   * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+   * of a city center can change, customers may need to refresh them
+   * periodically.
+   * * locale: histogram by the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en-US", "fr-FR".
+   * * language: histogram by the language subtag of the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en", "fr".
+   * * category: histogram by the
+   * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+   * "COMPUTER_AND_IT", "HEALTHCARE".
+   * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+   * salary, for example, "WEEKLY", "MONTHLY".
+   * * base_compensation: histogram by the base salary. Must specify list of
+   * numeric buckets to group results by.
+   * * annualized_base_compensation: histogram by the base annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * annualized_total_compensation: histogram by the total annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * string_custom_attribute: histogram by string
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * string_custom_attribute["key1"].
+   * * numeric_custom_attribute: histogram by numeric
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+   * group results by.
+   * Example expressions:
+   * * count(admin1)
+   * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+   * bucket(100000, MAX)])
+   * * count(string_custom_attribute["some-string-custom-attribute"])
+   * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public java.util.List + getHistogramQueriesOrBuilderList() { + return histogramQueries_; + } + /** + * + * + *
+   * Optional.
+   * An expression specifies a histogram request against matching jobs.
+   * Expression syntax is an aggregation function call with histogram facets and
+   * other options.
+   * Available aggregation function calls are:
+   * * `count(string_histogram_facet)`: Count the number of matching entities,
+   * for each distinct attribute value.
+   * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+   * matching entities within each bucket.
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label]): bucket built-in function creates a bucket
+   * with range of [start, end). Note that the end is exclusive, for example,
+   * bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Job histogram facets:
+   * * company_id: histogram by [Job.distributor_company_id][].
+   * * company_display_name: histogram by
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+   * * employment_type: histogram by
+   * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+   * for example, "FULL_TIME", "PART_TIME".
+   * * company_size: histogram by
+   * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+   * "SMALL", "MEDIUM", "BIG".
+   * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+   * Must specify list of numeric buckets in spec.
+   * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+   * Must specify list of numeric buckets in spec.
+   * * degree_type: histogram by the [Job.degree_type][], for example,
+   * "Bachelors", "Masters".
+   * * job_level: histogram by the
+   * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+   * "Entry Level".
+   * * country: histogram by the country code of jobs, for example, "US", "FR".
+   * * admin1: histogram by the admin1 code of jobs, which is a global
+   * placeholder referring to the state, province, or the particular term a
+   * country uses to define the geographic structure below the country level,
+   * for example, "CA", "IL".
+   * * city: histogram by a combination of the "city name, admin1 code". For
+   * example,  "Mountain View, CA", "New York, NY".
+   * * admin1_country: histogram by a combination of the "admin1 code, country",
+   * for example, "CA, US", "IL, US".
+   * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+   * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+   * of a city center can change, customers may need to refresh them
+   * periodically.
+   * * locale: histogram by the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en-US", "fr-FR".
+   * * language: histogram by the language subtag of the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en", "fr".
+   * * category: histogram by the
+   * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+   * "COMPUTER_AND_IT", "HEALTHCARE".
+   * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+   * salary, for example, "WEEKLY", "MONTHLY".
+   * * base_compensation: histogram by the base salary. Must specify list of
+   * numeric buckets to group results by.
+   * * annualized_base_compensation: histogram by the base annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * annualized_total_compensation: histogram by the total annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * string_custom_attribute: histogram by string
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * string_custom_attribute["key1"].
+   * * numeric_custom_attribute: histogram by numeric
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+   * group results by.
+   * Example expressions:
+   * * count(admin1)
+   * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+   * bucket(100000, MAX)])
+   * * count(string_custom_attribute["some-string-custom-attribute"])
+   * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public int getHistogramQueriesCount() { + return histogramQueries_.size(); + } + /** + * + * + *
+   * Optional.
+   * An expression specifies a histogram request against matching jobs.
+   * Expression syntax is an aggregation function call with histogram facets and
+   * other options.
+   * Available aggregation function calls are:
+   * * `count(string_histogram_facet)`: Count the number of matching entities,
+   * for each distinct attribute value.
+   * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+   * matching entities within each bucket.
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label]): bucket built-in function creates a bucket
+   * with range of [start, end). Note that the end is exclusive, for example,
+   * bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Job histogram facets:
+   * * company_id: histogram by [Job.distributor_company_id][].
+   * * company_display_name: histogram by
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+   * * employment_type: histogram by
+   * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+   * for example, "FULL_TIME", "PART_TIME".
+   * * company_size: histogram by
+   * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+   * "SMALL", "MEDIUM", "BIG".
+   * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+   * Must specify list of numeric buckets in spec.
+   * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+   * Must specify list of numeric buckets in spec.
+   * * degree_type: histogram by the [Job.degree_type][], for example,
+   * "Bachelors", "Masters".
+   * * job_level: histogram by the
+   * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+   * "Entry Level".
+   * * country: histogram by the country code of jobs, for example, "US", "FR".
+   * * admin1: histogram by the admin1 code of jobs, which is a global
+   * placeholder referring to the state, province, or the particular term a
+   * country uses to define the geographic structure below the country level,
+   * for example, "CA", "IL".
+   * * city: histogram by a combination of the "city name, admin1 code". For
+   * example,  "Mountain View, CA", "New York, NY".
+   * * admin1_country: histogram by a combination of the "admin1 code, country",
+   * for example, "CA, US", "IL, US".
+   * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+   * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+   * of a city center can change, customers may need to refresh them
+   * periodically.
+   * * locale: histogram by the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en-US", "fr-FR".
+   * * language: histogram by the language subtag of the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en", "fr".
+   * * category: histogram by the
+   * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+   * "COMPUTER_AND_IT", "HEALTHCARE".
+   * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+   * salary, for example, "WEEKLY", "MONTHLY".
+   * * base_compensation: histogram by the base salary. Must specify list of
+   * numeric buckets to group results by.
+   * * annualized_base_compensation: histogram by the base annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * annualized_total_compensation: histogram by the total annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * string_custom_attribute: histogram by string
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * string_custom_attribute["key1"].
+   * * numeric_custom_attribute: histogram by numeric
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+   * group results by.
+   * Example expressions:
+   * * count(admin1)
+   * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+   * bucket(100000, MAX)])
+   * * count(string_custom_attribute["some-string-custom-attribute"])
+   * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public com.google.cloud.talent.v4beta1.HistogramQuery getHistogramQueries(int index) { + return histogramQueries_.get(index); + } + /** + * + * + *
+   * Optional.
+   * An expression specifies a histogram request against matching jobs.
+   * Expression syntax is an aggregation function call with histogram facets and
+   * other options.
+   * Available aggregation function calls are:
+   * * `count(string_histogram_facet)`: Count the number of matching entities,
+   * for each distinct attribute value.
+   * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+   * matching entities within each bucket.
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label]): bucket built-in function creates a bucket
+   * with range of [start, end). Note that the end is exclusive, for example,
+   * bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Job histogram facets:
+   * * company_id: histogram by [Job.distributor_company_id][].
+   * * company_display_name: histogram by
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+   * * employment_type: histogram by
+   * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+   * for example, "FULL_TIME", "PART_TIME".
+   * * company_size: histogram by
+   * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+   * "SMALL", "MEDIUM", "BIG".
+   * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+   * Must specify list of numeric buckets in spec.
+   * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+   * Must specify list of numeric buckets in spec.
+   * * degree_type: histogram by the [Job.degree_type][], for example,
+   * "Bachelors", "Masters".
+   * * job_level: histogram by the
+   * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+   * "Entry Level".
+   * * country: histogram by the country code of jobs, for example, "US", "FR".
+   * * admin1: histogram by the admin1 code of jobs, which is a global
+   * placeholder referring to the state, province, or the particular term a
+   * country uses to define the geographic structure below the country level,
+   * for example, "CA", "IL".
+   * * city: histogram by a combination of the "city name, admin1 code". For
+   * example,  "Mountain View, CA", "New York, NY".
+   * * admin1_country: histogram by a combination of the "admin1 code, country",
+   * for example, "CA, US", "IL, US".
+   * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+   * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+   * of a city center can change, customers may need to refresh them
+   * periodically.
+   * * locale: histogram by the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en-US", "fr-FR".
+   * * language: histogram by the language subtag of the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en", "fr".
+   * * category: histogram by the
+   * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+   * "COMPUTER_AND_IT", "HEALTHCARE".
+   * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+   * salary, for example, "WEEKLY", "MONTHLY".
+   * * base_compensation: histogram by the base salary. Must specify list of
+   * numeric buckets to group results by.
+   * * annualized_base_compensation: histogram by the base annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * annualized_total_compensation: histogram by the total annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * string_custom_attribute: histogram by string
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * string_custom_attribute["key1"].
+   * * numeric_custom_attribute: histogram by numeric
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+   * group results by.
+   * Example expressions:
+   * * count(admin1)
+   * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+   * bucket(100000, MAX)])
+   * * count(string_custom_attribute["some-string-custom-attribute"])
+   * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder getHistogramQueriesOrBuilder( + int index) { + return histogramQueries_.get(index); + } + + public static final int JOB_VIEW_FIELD_NUMBER = 8; + private int jobView_; + /** + * + * + *
+   * Optional.
+   * The desired job attributes returned for jobs in the
+   * search response. Defaults to [JobView.SMALL][] if no value is specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 8; + */ + public int getJobViewValue() { + return jobView_; + } + /** + * + * + *
+   * Optional.
+   * The desired job attributes returned for jobs in the
+   * search response. Defaults to [JobView.SMALL][] if no value is specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 8; + */ + public com.google.cloud.talent.v4beta1.JobView getJobView() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobView result = + com.google.cloud.talent.v4beta1.JobView.valueOf(jobView_); + return result == null ? com.google.cloud.talent.v4beta1.JobView.UNRECOGNIZED : result; + } + + public static final int OFFSET_FIELD_NUMBER = 9; + private int offset_; + /** + * + * + *
+   * Optional.
+   * An integer that specifies the current offset (that is, starting result
+   * location, amongst the jobs deemed by the API as relevant) in search
+   * results. This field is only considered if
+   * [page_token][google.cloud.talent.v4beta1.SearchJobsRequest.page_token] is
+   * unset.
+   * For example, 0 means to  return results starting from the first matching
+   * job, and 10 means to return from the 11th job. This can be used for
+   * pagination, (for example, pageSize = 10 and offset = 10 means to return
+   * from the second page).
+   * 
+ * + * int32 offset = 9; + */ + public int getOffset() { + return offset_; + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 10; + private int pageSize_; + /** + * + * + *
+   * Optional.
+   * A limit on the number of jobs returned in the search results.
+   * Increasing this value above the default value of 10 can increase search
+   * response time. The value can be between 1 and 100.
+   * 
+ * + * int32 page_size = 10; + */ + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 11; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * Optional.
+   * The token specifying the current offset within
+   * search results. See
+   * [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token]
+   * for an explanation of how to obtain the next set of query results.
+   * 
+ * + * string page_token = 11; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The token specifying the current offset within
+   * search results. See
+   * [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token]
+   * for an explanation of how to obtain the next set of query results.
+   * 
+ * + * string page_token = 11; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 12; + private volatile java.lang.Object orderBy_; + /** + * + * + *
+   * Optional.
+   * The criteria determining how search results are sorted. Default is
+   * "relevance desc".
+   * Supported options are:
+   * * "relevance desc": By relevance descending, as determined by the API
+   * algorithms. Relevance thresholding of query results is only available
+   * with this ordering.
+   * * "posting`_`publish`_`time desc": By
+   * [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time]
+   * descending.
+   * * "posting`_`update`_`time desc": By
+   * [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time]
+   * descending.
+   * * "title": By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending.
+   * * "title desc": By [Job.title][google.cloud.talent.v4beta1.Job.title]
+   * descending.
+   * * "annualized`_`base`_`compensation": By job's
+   * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+   * ascending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`base`_`compensation desc": By job's
+   * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+   * descending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`total`_`compensation": By job's
+   * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+   * ascending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`total`_`compensation desc": By job's
+   * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+   * descending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "custom`_`ranking desc": By the relevance score adjusted to the
+   * [SearchJobsRequest.custom_ranking_info.ranking_expression][] with weight
+   * factor assigned by
+   * [SearchJobsRequest.custom_ranking_info.importance_level][] in descending
+   * order.
+   * * "location`_`distance": By the distance between the location on jobs and
+   *  locations specified in the
+   * [SearchJobsRequest.job_query.location_filters][].
+   * When this order is selected, the
+   * [SearchJobsRequest.job_query.location_filters][] must not be empty. When
+   * a job has multiple locations, the location closest to one of the locations
+   * specified in the location filter will be used to calculate location
+   * distance. Distance is calculated by the distance between two lat/long
+   * coordinates, with a precision of 10e-4 degrees (11.3 meters).
+   * Jobs that don't have locations specified will be ranked below jobs having
+   * locations.
+   * Diversification strategy is still applied unless explicitly disabled in
+   * [SearchJobsRequest.diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level].
+   * 
+ * + * string order_by = 12; + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The criteria determining how search results are sorted. Default is
+   * "relevance desc".
+   * Supported options are:
+   * * "relevance desc": By relevance descending, as determined by the API
+   * algorithms. Relevance thresholding of query results is only available
+   * with this ordering.
+   * * "posting`_`publish`_`time desc": By
+   * [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time]
+   * descending.
+   * * "posting`_`update`_`time desc": By
+   * [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time]
+   * descending.
+   * * "title": By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending.
+   * * "title desc": By [Job.title][google.cloud.talent.v4beta1.Job.title]
+   * descending.
+   * * "annualized`_`base`_`compensation": By job's
+   * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+   * ascending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`base`_`compensation desc": By job's
+   * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+   * descending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`total`_`compensation": By job's
+   * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+   * ascending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`total`_`compensation desc": By job's
+   * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+   * descending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "custom`_`ranking desc": By the relevance score adjusted to the
+   * [SearchJobsRequest.custom_ranking_info.ranking_expression][] with weight
+   * factor assigned by
+   * [SearchJobsRequest.custom_ranking_info.importance_level][] in descending
+   * order.
+   * * "location`_`distance": By the distance between the location on jobs and
+   *  locations specified in the
+   * [SearchJobsRequest.job_query.location_filters][].
+   * When this order is selected, the
+   * [SearchJobsRequest.job_query.location_filters][] must not be empty. When
+   * a job has multiple locations, the location closest to one of the locations
+   * specified in the location filter will be used to calculate location
+   * distance. Distance is calculated by the distance between two lat/long
+   * coordinates, with a precision of 10e-4 degrees (11.3 meters).
+   * Jobs that don't have locations specified will be ranked below jobs having
+   * locations.
+   * Diversification strategy is still applied unless explicitly disabled in
+   * [SearchJobsRequest.diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level].
+   * 
+ * + * string order_by = 12; + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIVERSIFICATION_LEVEL_FIELD_NUMBER = 13; + private int diversificationLevel_; + /** + * + * + *
+   * Optional.
+   * Controls whether highly similar jobs are returned next to each other in
+   * the search results. Jobs are identified as highly similar based on
+   * their titles, job categories, and locations. Highly similar results are
+   * clustered so that only one representative job of the cluster is
+   * displayed to the job seeker higher up in the results, with the other jobs
+   * being displayed lower down in the results.
+   * Defaults to
+   * [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE]
+   * if no value is specified.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel diversification_level = 13; + * + */ + public int getDiversificationLevelValue() { + return diversificationLevel_; + } + /** + * + * + *
+   * Optional.
+   * Controls whether highly similar jobs are returned next to each other in
+   * the search results. Jobs are identified as highly similar based on
+   * their titles, job categories, and locations. Highly similar results are
+   * clustered so that only one representative job of the cluster is
+   * displayed to the job seeker higher up in the results, with the other jobs
+   * being displayed lower down in the results.
+   * Defaults to
+   * [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE]
+   * if no value is specified.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel diversification_level = 13; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel + getDiversificationLevel() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel result = + com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.valueOf( + diversificationLevel_); + return result == null + ? com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.UNRECOGNIZED + : result; + } + + public static final int CUSTOM_RANKING_INFO_FIELD_NUMBER = 14; + private com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo customRankingInfo_; + /** + * + * + *
+   * Optional.
+   * Controls over how job documents get ranked on top of existing relevance
+   * score (determined by API algorithm).
+   * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + public boolean hasCustomRankingInfo() { + return customRankingInfo_ != null; + } + /** + * + * + *
+   * Optional.
+   * Controls over how job documents get ranked on top of existing relevance
+   * score (determined by API algorithm).
+   * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + getCustomRankingInfo() { + return customRankingInfo_ == null + ? com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.getDefaultInstance() + : customRankingInfo_; + } + /** + * + * + *
+   * Optional.
+   * Controls over how job documents get ranked on top of existing relevance
+   * score (determined by API algorithm).
+   * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfoOrBuilder + getCustomRankingInfoOrBuilder() { + return getCustomRankingInfo(); + } + + public static final int DISABLE_KEYWORD_MATCH_FIELD_NUMBER = 16; + private boolean disableKeywordMatch_; + /** + * + * + *
+   * Optional.
+   * Controls whether to disable exact keyword match on [Job.job_title][],
+   * [Job.description][google.cloud.talent.v4beta1.Job.description],
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name],
+   * [Job.locations][0],
+   * [Job.qualifications][google.cloud.talent.v4beta1.Job.qualifications]. When
+   * disable keyword match is turned off, a keyword match returns jobs that do
+   * not match given category filters when there are matching keywords. For
+   * example, for the query "program manager," a result is returned even if the
+   * job posting has the title "software developer," which doesn't fall into
+   * "program manager" ontology, but does have "program manager" appearing in
+   * its description.
+   * For queries like "cloud" that don't contain title or
+   * location specific ontology, jobs with "cloud" keyword matches are returned
+   * regardless of this flag's value.
+   * Please use [Company.keyword_searchable_custom_fields][] or
+   * [Company.keyword_searchable_custom_attributes][] if company specific
+   * globally matched custom field/attribute string values is needed. Enabling
+   * keyword match improves recall of subsequent search requests.
+   * Defaults to false.
+   * 
+ * + * bool disable_keyword_match = 16; + */ + public boolean getDisableKeywordMatch() { + return disableKeywordMatch_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (searchMode_ + != com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.SEARCH_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, searchMode_); + } + if (requestMetadata_ != null) { + output.writeMessage(3, getRequestMetadata()); + } + if (jobQuery_ != null) { + output.writeMessage(4, getJobQuery()); + } + if (enableBroadening_ != false) { + output.writeBool(5, enableBroadening_); + } + if (requirePreciseResultSize_ != false) { + output.writeBool(6, requirePreciseResultSize_); + } + for (int i = 0; i < histogramQueries_.size(); i++) { + output.writeMessage(7, histogramQueries_.get(i)); + } + if (jobView_ != com.google.cloud.talent.v4beta1.JobView.JOB_VIEW_UNSPECIFIED.getNumber()) { + output.writeEnum(8, jobView_); + } + if (offset_ != 0) { + output.writeInt32(9, offset_); + } + if (pageSize_ != 0) { + output.writeInt32(10, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, pageToken_); + } + if (!getOrderByBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, orderBy_); + } + if (diversificationLevel_ + != com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel + .DIVERSIFICATION_LEVEL_UNSPECIFIED + .getNumber()) { + output.writeEnum(13, diversificationLevel_); + } + if (customRankingInfo_ != null) { + output.writeMessage(14, getCustomRankingInfo()); + } + if (disableKeywordMatch_ != false) { + output.writeBool(16, disableKeywordMatch_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (searchMode_ + != com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.SEARCH_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, searchMode_); + } + if (requestMetadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRequestMetadata()); + } + if (jobQuery_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getJobQuery()); + } + if (enableBroadening_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, enableBroadening_); + } + if (requirePreciseResultSize_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requirePreciseResultSize_); + } + for (int i = 0; i < histogramQueries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, histogramQueries_.get(i)); + } + if (jobView_ != com.google.cloud.talent.v4beta1.JobView.JOB_VIEW_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, jobView_); + } + if (offset_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, offset_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, pageToken_); + } + if (!getOrderByBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, orderBy_); + } + if (diversificationLevel_ + != com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel + .DIVERSIFICATION_LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, diversificationLevel_); + } + if (customRankingInfo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getCustomRankingInfo()); + } + if (disableKeywordMatch_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, disableKeywordMatch_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.SearchJobsRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.SearchJobsRequest other = + (com.google.cloud.talent.v4beta1.SearchJobsRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && searchMode_ == other.searchMode_; + result = result && (hasRequestMetadata() == other.hasRequestMetadata()); + if (hasRequestMetadata()) { + result = result && getRequestMetadata().equals(other.getRequestMetadata()); + } + result = result && (hasJobQuery() == other.hasJobQuery()); + if (hasJobQuery()) { + result = result && getJobQuery().equals(other.getJobQuery()); + } + result = result && (getEnableBroadening() == other.getEnableBroadening()); + result = result && (getRequirePreciseResultSize() == other.getRequirePreciseResultSize()); + result = result && getHistogramQueriesList().equals(other.getHistogramQueriesList()); + result = result && jobView_ == other.jobView_; + result = result && (getOffset() == other.getOffset()); + result = result && (getPageSize() == other.getPageSize()); + result = result && getPageToken().equals(other.getPageToken()); + result = result && getOrderBy().equals(other.getOrderBy()); + result = result && diversificationLevel_ == other.diversificationLevel_; + result = result && (hasCustomRankingInfo() == other.hasCustomRankingInfo()); + if (hasCustomRankingInfo()) { + result = result && getCustomRankingInfo().equals(other.getCustomRankingInfo()); + } + result = result && (getDisableKeywordMatch() == other.getDisableKeywordMatch()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + SEARCH_MODE_FIELD_NUMBER; + hash = (53 * hash) + searchMode_; + if (hasRequestMetadata()) { + hash = (37 * hash) + REQUEST_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getRequestMetadata().hashCode(); + } + if (hasJobQuery()) { + hash = (37 * hash) + JOB_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getJobQuery().hashCode(); + } + hash = (37 * hash) + ENABLE_BROADENING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableBroadening()); + hash = (37 * hash) + REQUIRE_PRECISE_RESULT_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequirePreciseResultSize()); + if (getHistogramQueriesCount() > 0) { + hash = (37 * hash) + HISTOGRAM_QUERIES_FIELD_NUMBER; + hash = (53 * hash) + getHistogramQueriesList().hashCode(); + } + hash = (37 * hash) + JOB_VIEW_FIELD_NUMBER; + hash = (53 * hash) + jobView_; + hash = (37 * hash) + OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getOffset(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + DIVERSIFICATION_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + diversificationLevel_; + if (hasCustomRankingInfo()) { + hash = (37 * hash) + CUSTOM_RANKING_INFO_FIELD_NUMBER; + hash = (53 * hash) + getCustomRankingInfo().hashCode(); + } + hash = (37 * hash) + DISABLE_KEYWORD_MATCH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableKeywordMatch()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.SearchJobsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * The Request body of the `SearchJobs` call.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchJobsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SearchJobsRequest) + com.google.cloud.talent.v4beta1.SearchJobsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchJobsRequest.class, + com.google.cloud.talent.v4beta1.SearchJobsRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.SearchJobsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getHistogramQueriesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + searchMode_ = 0; + + if (requestMetadataBuilder_ == null) { + requestMetadata_ = null; + } else { + requestMetadata_ = null; + requestMetadataBuilder_ = null; + } + if (jobQueryBuilder_ == null) { + jobQuery_ = null; + } else { + jobQuery_ = null; + jobQueryBuilder_ = null; + } + enableBroadening_ = false; + + requirePreciseResultSize_ = false; + + if (histogramQueriesBuilder_ == null) { + histogramQueries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + } else { + histogramQueriesBuilder_.clear(); + } + jobView_ = 0; + + offset_ = 0; + + pageSize_ = 0; + + pageToken_ = ""; + + orderBy_ = ""; + + diversificationLevel_ = 0; + + if (customRankingInfoBuilder_ == null) { + customRankingInfo_ = null; + } else { + customRankingInfo_ = null; + customRankingInfoBuilder_ = null; + } + disableKeywordMatch_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.SearchJobsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsRequest build() { + com.google.cloud.talent.v4beta1.SearchJobsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsRequest buildPartial() { + com.google.cloud.talent.v4beta1.SearchJobsRequest result = + new com.google.cloud.talent.v4beta1.SearchJobsRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.parent_ = parent_; + result.searchMode_ = searchMode_; + if (requestMetadataBuilder_ == null) { + result.requestMetadata_ = requestMetadata_; + } else { + result.requestMetadata_ = requestMetadataBuilder_.build(); + } + if (jobQueryBuilder_ == null) { + result.jobQuery_ = jobQuery_; + } else { + result.jobQuery_ = jobQueryBuilder_.build(); + } + result.enableBroadening_ = enableBroadening_; + result.requirePreciseResultSize_ = requirePreciseResultSize_; + if (histogramQueriesBuilder_ == null) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { + histogramQueries_ = java.util.Collections.unmodifiableList(histogramQueries_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.histogramQueries_ = histogramQueries_; + } else { + result.histogramQueries_ = histogramQueriesBuilder_.build(); + } + result.jobView_ = jobView_; + result.offset_ = offset_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.orderBy_ = orderBy_; + result.diversificationLevel_ = diversificationLevel_; + if (customRankingInfoBuilder_ == null) { + result.customRankingInfo_ = customRankingInfo_; + } else { + result.customRankingInfo_ = customRankingInfoBuilder_.build(); + } + result.disableKeywordMatch_ = disableKeywordMatch_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.SearchJobsRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.SearchJobsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.SearchJobsRequest other) { + if (other == com.google.cloud.talent.v4beta1.SearchJobsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.searchMode_ != 0) { + setSearchModeValue(other.getSearchModeValue()); + } + if (other.hasRequestMetadata()) { + mergeRequestMetadata(other.getRequestMetadata()); + } + if (other.hasJobQuery()) { + mergeJobQuery(other.getJobQuery()); + } + if (other.getEnableBroadening() != false) { + setEnableBroadening(other.getEnableBroadening()); + } + if (other.getRequirePreciseResultSize() != false) { + setRequirePreciseResultSize(other.getRequirePreciseResultSize()); + } + if (histogramQueriesBuilder_ == null) { + if (!other.histogramQueries_.isEmpty()) { + if (histogramQueries_.isEmpty()) { + histogramQueries_ = other.histogramQueries_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureHistogramQueriesIsMutable(); + histogramQueries_.addAll(other.histogramQueries_); + } + onChanged(); + } + } else { + if (!other.histogramQueries_.isEmpty()) { + if (histogramQueriesBuilder_.isEmpty()) { + histogramQueriesBuilder_.dispose(); + histogramQueriesBuilder_ = null; + histogramQueries_ = other.histogramQueries_; + bitField0_ = (bitField0_ & ~0x00000040); + histogramQueriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHistogramQueriesFieldBuilder() + : null; + } else { + histogramQueriesBuilder_.addAllMessages(other.histogramQueries_); + } + } + } + if (other.jobView_ != 0) { + setJobViewValue(other.getJobViewValue()); + } + if (other.getOffset() != 0) { + setOffset(other.getOffset()); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + if (other.diversificationLevel_ != 0) { + setDiversificationLevelValue(other.getDiversificationLevelValue()); + } + if (other.hasCustomRankingInfo()) { + mergeCustomRankingInfo(other.getCustomRankingInfo()); + } + if (other.getDisableKeywordMatch() != false) { + setDisableKeywordMatch(other.getDisableKeywordMatch()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.SearchJobsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.SearchJobsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the project to search within.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the project to search within.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the project to search within.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the project to search within.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the project to search within.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int searchMode_ = 0; + /** + * + * + *
+     * Optional.
+     * Mode of a search.
+     * Defaults to
+     * [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH].
+     * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode search_mode = 2; + */ + public int getSearchModeValue() { + return searchMode_; + } + /** + * + * + *
+     * Optional.
+     * Mode of a search.
+     * Defaults to
+     * [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH].
+     * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode search_mode = 2; + */ + public Builder setSearchModeValue(int value) { + searchMode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Mode of a search.
+     * Defaults to
+     * [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH].
+     * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode search_mode = 2; + */ + public com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode getSearchMode() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode result = + com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.valueOf(searchMode_); + return result == null + ? com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * Mode of a search.
+     * Defaults to
+     * [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH].
+     * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode search_mode = 2; + */ + public Builder setSearchMode( + com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode value) { + if (value == null) { + throw new NullPointerException(); + } + + searchMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Mode of a search.
+     * Defaults to
+     * [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH].
+     * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode search_mode = 2; + */ + public Builder clearSearchMode() { + + searchMode_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.RequestMetadata requestMetadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.RequestMetadata, + com.google.cloud.talent.v4beta1.RequestMetadata.Builder, + com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder> + requestMetadataBuilder_; + /** + * + * + *
+     * Required.
+     * The meta information collected about the job searcher, used to improve the
+     * search quality of the service.. The identifiers, (such as `user_id`) are
+     * provided by users, and must be unique and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + public boolean hasRequestMetadata() { + return requestMetadataBuilder_ != null || requestMetadata_ != null; + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the job searcher, used to improve the
+     * search quality of the service.. The identifiers, (such as `user_id`) are
+     * provided by users, and must be unique and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + public com.google.cloud.talent.v4beta1.RequestMetadata getRequestMetadata() { + if (requestMetadataBuilder_ == null) { + return requestMetadata_ == null + ? com.google.cloud.talent.v4beta1.RequestMetadata.getDefaultInstance() + : requestMetadata_; + } else { + return requestMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the job searcher, used to improve the
+     * search quality of the service.. The identifiers, (such as `user_id`) are
+     * provided by users, and must be unique and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + public Builder setRequestMetadata(com.google.cloud.talent.v4beta1.RequestMetadata value) { + if (requestMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + requestMetadata_ = value; + onChanged(); + } else { + requestMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the job searcher, used to improve the
+     * search quality of the service.. The identifiers, (such as `user_id`) are
+     * provided by users, and must be unique and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + public Builder setRequestMetadata( + com.google.cloud.talent.v4beta1.RequestMetadata.Builder builderForValue) { + if (requestMetadataBuilder_ == null) { + requestMetadata_ = builderForValue.build(); + onChanged(); + } else { + requestMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the job searcher, used to improve the
+     * search quality of the service.. The identifiers, (such as `user_id`) are
+     * provided by users, and must be unique and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + public Builder mergeRequestMetadata(com.google.cloud.talent.v4beta1.RequestMetadata value) { + if (requestMetadataBuilder_ == null) { + if (requestMetadata_ != null) { + requestMetadata_ = + com.google.cloud.talent.v4beta1.RequestMetadata.newBuilder(requestMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + requestMetadata_ = value; + } + onChanged(); + } else { + requestMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the job searcher, used to improve the
+     * search quality of the service.. The identifiers, (such as `user_id`) are
+     * provided by users, and must be unique and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + public Builder clearRequestMetadata() { + if (requestMetadataBuilder_ == null) { + requestMetadata_ = null; + onChanged(); + } else { + requestMetadata_ = null; + requestMetadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the job searcher, used to improve the
+     * search quality of the service.. The identifiers, (such as `user_id`) are
+     * provided by users, and must be unique and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + public com.google.cloud.talent.v4beta1.RequestMetadata.Builder getRequestMetadataBuilder() { + + onChanged(); + return getRequestMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the job searcher, used to improve the
+     * search quality of the service.. The identifiers, (such as `user_id`) are
+     * provided by users, and must be unique and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + public com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() { + if (requestMetadataBuilder_ != null) { + return requestMetadataBuilder_.getMessageOrBuilder(); + } else { + return requestMetadata_ == null + ? com.google.cloud.talent.v4beta1.RequestMetadata.getDefaultInstance() + : requestMetadata_; + } + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the job searcher, used to improve the
+     * search quality of the service.. The identifiers, (such as `user_id`) are
+     * provided by users, and must be unique and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.RequestMetadata, + com.google.cloud.talent.v4beta1.RequestMetadata.Builder, + com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder> + getRequestMetadataFieldBuilder() { + if (requestMetadataBuilder_ == null) { + requestMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.RequestMetadata, + com.google.cloud.talent.v4beta1.RequestMetadata.Builder, + com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder>( + getRequestMetadata(), getParentForChildren(), isClean()); + requestMetadata_ = null; + } + return requestMetadataBuilder_; + } + + private com.google.cloud.talent.v4beta1.JobQuery jobQuery_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobQuery, + com.google.cloud.talent.v4beta1.JobQuery.Builder, + com.google.cloud.talent.v4beta1.JobQueryOrBuilder> + jobQueryBuilder_; + /** + * + * + *
+     * Optional.
+     * Query used to search against jobs, such as keyword, location filters, etc.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + public boolean hasJobQuery() { + return jobQueryBuilder_ != null || jobQuery_ != null; + } + /** + * + * + *
+     * Optional.
+     * Query used to search against jobs, such as keyword, location filters, etc.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + public com.google.cloud.talent.v4beta1.JobQuery getJobQuery() { + if (jobQueryBuilder_ == null) { + return jobQuery_ == null + ? com.google.cloud.talent.v4beta1.JobQuery.getDefaultInstance() + : jobQuery_; + } else { + return jobQueryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Query used to search against jobs, such as keyword, location filters, etc.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + public Builder setJobQuery(com.google.cloud.talent.v4beta1.JobQuery value) { + if (jobQueryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + jobQuery_ = value; + onChanged(); + } else { + jobQueryBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Query used to search against jobs, such as keyword, location filters, etc.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + public Builder setJobQuery(com.google.cloud.talent.v4beta1.JobQuery.Builder builderForValue) { + if (jobQueryBuilder_ == null) { + jobQuery_ = builderForValue.build(); + onChanged(); + } else { + jobQueryBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Query used to search against jobs, such as keyword, location filters, etc.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + public Builder mergeJobQuery(com.google.cloud.talent.v4beta1.JobQuery value) { + if (jobQueryBuilder_ == null) { + if (jobQuery_ != null) { + jobQuery_ = + com.google.cloud.talent.v4beta1.JobQuery.newBuilder(jobQuery_) + .mergeFrom(value) + .buildPartial(); + } else { + jobQuery_ = value; + } + onChanged(); + } else { + jobQueryBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Query used to search against jobs, such as keyword, location filters, etc.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + public Builder clearJobQuery() { + if (jobQueryBuilder_ == null) { + jobQuery_ = null; + onChanged(); + } else { + jobQuery_ = null; + jobQueryBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Query used to search against jobs, such as keyword, location filters, etc.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + public com.google.cloud.talent.v4beta1.JobQuery.Builder getJobQueryBuilder() { + + onChanged(); + return getJobQueryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Query used to search against jobs, such as keyword, location filters, etc.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + public com.google.cloud.talent.v4beta1.JobQueryOrBuilder getJobQueryOrBuilder() { + if (jobQueryBuilder_ != null) { + return jobQueryBuilder_.getMessageOrBuilder(); + } else { + return jobQuery_ == null + ? com.google.cloud.talent.v4beta1.JobQuery.getDefaultInstance() + : jobQuery_; + } + } + /** + * + * + *
+     * Optional.
+     * Query used to search against jobs, such as keyword, location filters, etc.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobQuery, + com.google.cloud.talent.v4beta1.JobQuery.Builder, + com.google.cloud.talent.v4beta1.JobQueryOrBuilder> + getJobQueryFieldBuilder() { + if (jobQueryBuilder_ == null) { + jobQueryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobQuery, + com.google.cloud.talent.v4beta1.JobQuery.Builder, + com.google.cloud.talent.v4beta1.JobQueryOrBuilder>( + getJobQuery(), getParentForChildren(), isClean()); + jobQuery_ = null; + } + return jobQueryBuilder_; + } + + private boolean enableBroadening_; + /** + * + * + *
+     * Optional.
+     * Controls whether to broaden the search when it produces sparse results.
+     * Broadened queries append results to the end of the matching results
+     * list.
+     * Defaults to false.
+     * 
+ * + * bool enable_broadening = 5; + */ + public boolean getEnableBroadening() { + return enableBroadening_; + } + /** + * + * + *
+     * Optional.
+     * Controls whether to broaden the search when it produces sparse results.
+     * Broadened queries append results to the end of the matching results
+     * list.
+     * Defaults to false.
+     * 
+ * + * bool enable_broadening = 5; + */ + public Builder setEnableBroadening(boolean value) { + + enableBroadening_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Controls whether to broaden the search when it produces sparse results.
+     * Broadened queries append results to the end of the matching results
+     * list.
+     * Defaults to false.
+     * 
+ * + * bool enable_broadening = 5; + */ + public Builder clearEnableBroadening() { + + enableBroadening_ = false; + onChanged(); + return this; + } + + private boolean requirePreciseResultSize_; + /** + * + * + *
+     * Optional.
+     * Controls if the search job request requires the return of a precise
+     * count of the first 300 results. Setting this to `true` ensures
+     * consistency in the number of results per page. Best practice is to set this
+     * value to true if a client allows users to jump directly to a
+     * non-sequential search results page.
+     * Enabling this flag may adversely impact performance.
+     * Defaults to false.
+     * 
+ * + * bool require_precise_result_size = 6; + */ + public boolean getRequirePreciseResultSize() { + return requirePreciseResultSize_; + } + /** + * + * + *
+     * Optional.
+     * Controls if the search job request requires the return of a precise
+     * count of the first 300 results. Setting this to `true` ensures
+     * consistency in the number of results per page. Best practice is to set this
+     * value to true if a client allows users to jump directly to a
+     * non-sequential search results page.
+     * Enabling this flag may adversely impact performance.
+     * Defaults to false.
+     * 
+ * + * bool require_precise_result_size = 6; + */ + public Builder setRequirePreciseResultSize(boolean value) { + + requirePreciseResultSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Controls if the search job request requires the return of a precise
+     * count of the first 300 results. Setting this to `true` ensures
+     * consistency in the number of results per page. Best practice is to set this
+     * value to true if a client allows users to jump directly to a
+     * non-sequential search results page.
+     * Enabling this flag may adversely impact performance.
+     * Defaults to false.
+     * 
+ * + * bool require_precise_result_size = 6; + */ + public Builder clearRequirePreciseResultSize() { + + requirePreciseResultSize_ = false; + onChanged(); + return this; + } + + private java.util.List histogramQueries_ = + java.util.Collections.emptyList(); + + private void ensureHistogramQueriesIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + histogramQueries_ = + new java.util.ArrayList( + histogramQueries_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQuery, + com.google.cloud.talent.v4beta1.HistogramQuery.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder> + histogramQueriesBuilder_; + + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public java.util.List + getHistogramQueriesList() { + if (histogramQueriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(histogramQueries_); + } else { + return histogramQueriesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public int getHistogramQueriesCount() { + if (histogramQueriesBuilder_ == null) { + return histogramQueries_.size(); + } else { + return histogramQueriesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public com.google.cloud.talent.v4beta1.HistogramQuery getHistogramQueries(int index) { + if (histogramQueriesBuilder_ == null) { + return histogramQueries_.get(index); + } else { + return histogramQueriesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public Builder setHistogramQueries( + int index, com.google.cloud.talent.v4beta1.HistogramQuery value) { + if (histogramQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueriesIsMutable(); + histogramQueries_.set(index, value); + onChanged(); + } else { + histogramQueriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public Builder setHistogramQueries( + int index, com.google.cloud.talent.v4beta1.HistogramQuery.Builder builderForValue) { + if (histogramQueriesBuilder_ == null) { + ensureHistogramQueriesIsMutable(); + histogramQueries_.set(index, builderForValue.build()); + onChanged(); + } else { + histogramQueriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public Builder addHistogramQueries(com.google.cloud.talent.v4beta1.HistogramQuery value) { + if (histogramQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueriesIsMutable(); + histogramQueries_.add(value); + onChanged(); + } else { + histogramQueriesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public Builder addHistogramQueries( + int index, com.google.cloud.talent.v4beta1.HistogramQuery value) { + if (histogramQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueriesIsMutable(); + histogramQueries_.add(index, value); + onChanged(); + } else { + histogramQueriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public Builder addHistogramQueries( + com.google.cloud.talent.v4beta1.HistogramQuery.Builder builderForValue) { + if (histogramQueriesBuilder_ == null) { + ensureHistogramQueriesIsMutable(); + histogramQueries_.add(builderForValue.build()); + onChanged(); + } else { + histogramQueriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public Builder addHistogramQueries( + int index, com.google.cloud.talent.v4beta1.HistogramQuery.Builder builderForValue) { + if (histogramQueriesBuilder_ == null) { + ensureHistogramQueriesIsMutable(); + histogramQueries_.add(index, builderForValue.build()); + onChanged(); + } else { + histogramQueriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public Builder addAllHistogramQueries( + java.lang.Iterable values) { + if (histogramQueriesBuilder_ == null) { + ensureHistogramQueriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, histogramQueries_); + onChanged(); + } else { + histogramQueriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public Builder clearHistogramQueries() { + if (histogramQueriesBuilder_ == null) { + histogramQueries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + histogramQueriesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public Builder removeHistogramQueries(int index) { + if (histogramQueriesBuilder_ == null) { + ensureHistogramQueriesIsMutable(); + histogramQueries_.remove(index); + onChanged(); + } else { + histogramQueriesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public com.google.cloud.talent.v4beta1.HistogramQuery.Builder getHistogramQueriesBuilder( + int index) { + return getHistogramQueriesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder getHistogramQueriesOrBuilder( + int index) { + if (histogramQueriesBuilder_ == null) { + return histogramQueries_.get(index); + } else { + return histogramQueriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public java.util.List + getHistogramQueriesOrBuilderList() { + if (histogramQueriesBuilder_ != null) { + return histogramQueriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(histogramQueries_); + } + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public com.google.cloud.talent.v4beta1.HistogramQuery.Builder addHistogramQueriesBuilder() { + return getHistogramQueriesFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.HistogramQuery.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public com.google.cloud.talent.v4beta1.HistogramQuery.Builder addHistogramQueriesBuilder( + int index) { + return getHistogramQueriesFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.HistogramQuery.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public java.util.List + getHistogramQueriesBuilderList() { + return getHistogramQueriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQuery, + com.google.cloud.talent.v4beta1.HistogramQuery.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder> + getHistogramQueriesFieldBuilder() { + if (histogramQueriesBuilder_ == null) { + histogramQueriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQuery, + com.google.cloud.talent.v4beta1.HistogramQuery.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder>( + histogramQueries_, + ((bitField0_ & 0x00000040) == 0x00000040), + getParentForChildren(), + isClean()); + histogramQueries_ = null; + } + return histogramQueriesBuilder_; + } + + private int jobView_ = 0; + /** + * + * + *
+     * Optional.
+     * The desired job attributes returned for jobs in the
+     * search response. Defaults to [JobView.SMALL][] if no value is specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 8; + */ + public int getJobViewValue() { + return jobView_; + } + /** + * + * + *
+     * Optional.
+     * The desired job attributes returned for jobs in the
+     * search response. Defaults to [JobView.SMALL][] if no value is specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 8; + */ + public Builder setJobViewValue(int value) { + jobView_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The desired job attributes returned for jobs in the
+     * search response. Defaults to [JobView.SMALL][] if no value is specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 8; + */ + public com.google.cloud.talent.v4beta1.JobView getJobView() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobView result = + com.google.cloud.talent.v4beta1.JobView.valueOf(jobView_); + return result == null ? com.google.cloud.talent.v4beta1.JobView.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional.
+     * The desired job attributes returned for jobs in the
+     * search response. Defaults to [JobView.SMALL][] if no value is specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 8; + */ + public Builder setJobView(com.google.cloud.talent.v4beta1.JobView value) { + if (value == null) { + throw new NullPointerException(); + } + + jobView_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The desired job attributes returned for jobs in the
+     * search response. Defaults to [JobView.SMALL][] if no value is specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 8; + */ + public Builder clearJobView() { + + jobView_ = 0; + onChanged(); + return this; + } + + private int offset_; + /** + * + * + *
+     * Optional.
+     * An integer that specifies the current offset (that is, starting result
+     * location, amongst the jobs deemed by the API as relevant) in search
+     * results. This field is only considered if
+     * [page_token][google.cloud.talent.v4beta1.SearchJobsRequest.page_token] is
+     * unset.
+     * For example, 0 means to  return results starting from the first matching
+     * job, and 10 means to return from the 11th job. This can be used for
+     * pagination, (for example, pageSize = 10 and offset = 10 means to return
+     * from the second page).
+     * 
+ * + * int32 offset = 9; + */ + public int getOffset() { + return offset_; + } + /** + * + * + *
+     * Optional.
+     * An integer that specifies the current offset (that is, starting result
+     * location, amongst the jobs deemed by the API as relevant) in search
+     * results. This field is only considered if
+     * [page_token][google.cloud.talent.v4beta1.SearchJobsRequest.page_token] is
+     * unset.
+     * For example, 0 means to  return results starting from the first matching
+     * job, and 10 means to return from the 11th job. This can be used for
+     * pagination, (for example, pageSize = 10 and offset = 10 means to return
+     * from the second page).
+     * 
+ * + * int32 offset = 9; + */ + public Builder setOffset(int value) { + + offset_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * An integer that specifies the current offset (that is, starting result
+     * location, amongst the jobs deemed by the API as relevant) in search
+     * results. This field is only considered if
+     * [page_token][google.cloud.talent.v4beta1.SearchJobsRequest.page_token] is
+     * unset.
+     * For example, 0 means to  return results starting from the first matching
+     * job, and 10 means to return from the 11th job. This can be used for
+     * pagination, (for example, pageSize = 10 and offset = 10 means to return
+     * from the second page).
+     * 
+ * + * int32 offset = 9; + */ + public Builder clearOffset() { + + offset_ = 0; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional.
+     * A limit on the number of jobs returned in the search results.
+     * Increasing this value above the default value of 10 can increase search
+     * response time. The value can be between 1 and 100.
+     * 
+ * + * int32 page_size = 10; + */ + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional.
+     * A limit on the number of jobs returned in the search results.
+     * Increasing this value above the default value of 10 can increase search
+     * response time. The value can be between 1 and 100.
+     * 
+ * + * int32 page_size = 10; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A limit on the number of jobs returned in the search results.
+     * Increasing this value above the default value of 10 can increase search
+     * response time. The value can be between 1 and 100.
+     * 
+ * + * int32 page_size = 10; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional.
+     * The token specifying the current offset within
+     * search results. See
+     * [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token]
+     * for an explanation of how to obtain the next set of query results.
+     * 
+ * + * string page_token = 11; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The token specifying the current offset within
+     * search results. See
+     * [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token]
+     * for an explanation of how to obtain the next set of query results.
+     * 
+ * + * string page_token = 11; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The token specifying the current offset within
+     * search results. See
+     * [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token]
+     * for an explanation of how to obtain the next set of query results.
+     * 
+ * + * string page_token = 11; + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The token specifying the current offset within
+     * search results. See
+     * [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token]
+     * for an explanation of how to obtain the next set of query results.
+     * 
+ * + * string page_token = 11; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The token specifying the current offset within
+     * search results. See
+     * [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token]
+     * for an explanation of how to obtain the next set of query results.
+     * 
+ * + * string page_token = 11; + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * Optional.
+     * The criteria determining how search results are sorted. Default is
+     * "relevance desc".
+     * Supported options are:
+     * * "relevance desc": By relevance descending, as determined by the API
+     * algorithms. Relevance thresholding of query results is only available
+     * with this ordering.
+     * * "posting`_`publish`_`time desc": By
+     * [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time]
+     * descending.
+     * * "posting`_`update`_`time desc": By
+     * [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time]
+     * descending.
+     * * "title": By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending.
+     * * "title desc": By [Job.title][google.cloud.talent.v4beta1.Job.title]
+     * descending.
+     * * "annualized`_`base`_`compensation": By job's
+     * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+     * ascending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`base`_`compensation desc": By job's
+     * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+     * descending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`total`_`compensation": By job's
+     * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+     * ascending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`total`_`compensation desc": By job's
+     * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+     * descending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "custom`_`ranking desc": By the relevance score adjusted to the
+     * [SearchJobsRequest.custom_ranking_info.ranking_expression][] with weight
+     * factor assigned by
+     * [SearchJobsRequest.custom_ranking_info.importance_level][] in descending
+     * order.
+     * * "location`_`distance": By the distance between the location on jobs and
+     *  locations specified in the
+     * [SearchJobsRequest.job_query.location_filters][].
+     * When this order is selected, the
+     * [SearchJobsRequest.job_query.location_filters][] must not be empty. When
+     * a job has multiple locations, the location closest to one of the locations
+     * specified in the location filter will be used to calculate location
+     * distance. Distance is calculated by the distance between two lat/long
+     * coordinates, with a precision of 10e-4 degrees (11.3 meters).
+     * Jobs that don't have locations specified will be ranked below jobs having
+     * locations.
+     * Diversification strategy is still applied unless explicitly disabled in
+     * [SearchJobsRequest.diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level].
+     * 
+ * + * string order_by = 12; + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The criteria determining how search results are sorted. Default is
+     * "relevance desc".
+     * Supported options are:
+     * * "relevance desc": By relevance descending, as determined by the API
+     * algorithms. Relevance thresholding of query results is only available
+     * with this ordering.
+     * * "posting`_`publish`_`time desc": By
+     * [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time]
+     * descending.
+     * * "posting`_`update`_`time desc": By
+     * [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time]
+     * descending.
+     * * "title": By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending.
+     * * "title desc": By [Job.title][google.cloud.talent.v4beta1.Job.title]
+     * descending.
+     * * "annualized`_`base`_`compensation": By job's
+     * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+     * ascending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`base`_`compensation desc": By job's
+     * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+     * descending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`total`_`compensation": By job's
+     * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+     * ascending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`total`_`compensation desc": By job's
+     * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+     * descending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "custom`_`ranking desc": By the relevance score adjusted to the
+     * [SearchJobsRequest.custom_ranking_info.ranking_expression][] with weight
+     * factor assigned by
+     * [SearchJobsRequest.custom_ranking_info.importance_level][] in descending
+     * order.
+     * * "location`_`distance": By the distance between the location on jobs and
+     *  locations specified in the
+     * [SearchJobsRequest.job_query.location_filters][].
+     * When this order is selected, the
+     * [SearchJobsRequest.job_query.location_filters][] must not be empty. When
+     * a job has multiple locations, the location closest to one of the locations
+     * specified in the location filter will be used to calculate location
+     * distance. Distance is calculated by the distance between two lat/long
+     * coordinates, with a precision of 10e-4 degrees (11.3 meters).
+     * Jobs that don't have locations specified will be ranked below jobs having
+     * locations.
+     * Diversification strategy is still applied unless explicitly disabled in
+     * [SearchJobsRequest.diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level].
+     * 
+ * + * string order_by = 12; + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The criteria determining how search results are sorted. Default is
+     * "relevance desc".
+     * Supported options are:
+     * * "relevance desc": By relevance descending, as determined by the API
+     * algorithms. Relevance thresholding of query results is only available
+     * with this ordering.
+     * * "posting`_`publish`_`time desc": By
+     * [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time]
+     * descending.
+     * * "posting`_`update`_`time desc": By
+     * [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time]
+     * descending.
+     * * "title": By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending.
+     * * "title desc": By [Job.title][google.cloud.talent.v4beta1.Job.title]
+     * descending.
+     * * "annualized`_`base`_`compensation": By job's
+     * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+     * ascending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`base`_`compensation desc": By job's
+     * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+     * descending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`total`_`compensation": By job's
+     * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+     * ascending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`total`_`compensation desc": By job's
+     * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+     * descending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "custom`_`ranking desc": By the relevance score adjusted to the
+     * [SearchJobsRequest.custom_ranking_info.ranking_expression][] with weight
+     * factor assigned by
+     * [SearchJobsRequest.custom_ranking_info.importance_level][] in descending
+     * order.
+     * * "location`_`distance": By the distance between the location on jobs and
+     *  locations specified in the
+     * [SearchJobsRequest.job_query.location_filters][].
+     * When this order is selected, the
+     * [SearchJobsRequest.job_query.location_filters][] must not be empty. When
+     * a job has multiple locations, the location closest to one of the locations
+     * specified in the location filter will be used to calculate location
+     * distance. Distance is calculated by the distance between two lat/long
+     * coordinates, with a precision of 10e-4 degrees (11.3 meters).
+     * Jobs that don't have locations specified will be ranked below jobs having
+     * locations.
+     * Diversification strategy is still applied unless explicitly disabled in
+     * [SearchJobsRequest.diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level].
+     * 
+ * + * string order_by = 12; + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + orderBy_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The criteria determining how search results are sorted. Default is
+     * "relevance desc".
+     * Supported options are:
+     * * "relevance desc": By relevance descending, as determined by the API
+     * algorithms. Relevance thresholding of query results is only available
+     * with this ordering.
+     * * "posting`_`publish`_`time desc": By
+     * [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time]
+     * descending.
+     * * "posting`_`update`_`time desc": By
+     * [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time]
+     * descending.
+     * * "title": By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending.
+     * * "title desc": By [Job.title][google.cloud.talent.v4beta1.Job.title]
+     * descending.
+     * * "annualized`_`base`_`compensation": By job's
+     * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+     * ascending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`base`_`compensation desc": By job's
+     * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+     * descending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`total`_`compensation": By job's
+     * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+     * ascending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`total`_`compensation desc": By job's
+     * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+     * descending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "custom`_`ranking desc": By the relevance score adjusted to the
+     * [SearchJobsRequest.custom_ranking_info.ranking_expression][] with weight
+     * factor assigned by
+     * [SearchJobsRequest.custom_ranking_info.importance_level][] in descending
+     * order.
+     * * "location`_`distance": By the distance between the location on jobs and
+     *  locations specified in the
+     * [SearchJobsRequest.job_query.location_filters][].
+     * When this order is selected, the
+     * [SearchJobsRequest.job_query.location_filters][] must not be empty. When
+     * a job has multiple locations, the location closest to one of the locations
+     * specified in the location filter will be used to calculate location
+     * distance. Distance is calculated by the distance between two lat/long
+     * coordinates, with a precision of 10e-4 degrees (11.3 meters).
+     * Jobs that don't have locations specified will be ranked below jobs having
+     * locations.
+     * Diversification strategy is still applied unless explicitly disabled in
+     * [SearchJobsRequest.diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level].
+     * 
+ * + * string order_by = 12; + */ + public Builder clearOrderBy() { + + orderBy_ = getDefaultInstance().getOrderBy(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The criteria determining how search results are sorted. Default is
+     * "relevance desc".
+     * Supported options are:
+     * * "relevance desc": By relevance descending, as determined by the API
+     * algorithms. Relevance thresholding of query results is only available
+     * with this ordering.
+     * * "posting`_`publish`_`time desc": By
+     * [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time]
+     * descending.
+     * * "posting`_`update`_`time desc": By
+     * [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time]
+     * descending.
+     * * "title": By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending.
+     * * "title desc": By [Job.title][google.cloud.talent.v4beta1.Job.title]
+     * descending.
+     * * "annualized`_`base`_`compensation": By job's
+     * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+     * ascending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`base`_`compensation desc": By job's
+     * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+     * descending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`total`_`compensation": By job's
+     * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+     * ascending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`total`_`compensation desc": By job's
+     * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+     * descending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "custom`_`ranking desc": By the relevance score adjusted to the
+     * [SearchJobsRequest.custom_ranking_info.ranking_expression][] with weight
+     * factor assigned by
+     * [SearchJobsRequest.custom_ranking_info.importance_level][] in descending
+     * order.
+     * * "location`_`distance": By the distance between the location on jobs and
+     *  locations specified in the
+     * [SearchJobsRequest.job_query.location_filters][].
+     * When this order is selected, the
+     * [SearchJobsRequest.job_query.location_filters][] must not be empty. When
+     * a job has multiple locations, the location closest to one of the locations
+     * specified in the location filter will be used to calculate location
+     * distance. Distance is calculated by the distance between two lat/long
+     * coordinates, with a precision of 10e-4 degrees (11.3 meters).
+     * Jobs that don't have locations specified will be ranked below jobs having
+     * locations.
+     * Diversification strategy is still applied unless explicitly disabled in
+     * [SearchJobsRequest.diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level].
+     * 
+ * + * string order_by = 12; + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + orderBy_ = value; + onChanged(); + return this; + } + + private int diversificationLevel_ = 0; + /** + * + * + *
+     * Optional.
+     * Controls whether highly similar jobs are returned next to each other in
+     * the search results. Jobs are identified as highly similar based on
+     * their titles, job categories, and locations. Highly similar results are
+     * clustered so that only one representative job of the cluster is
+     * displayed to the job seeker higher up in the results, with the other jobs
+     * being displayed lower down in the results.
+     * Defaults to
+     * [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE]
+     * if no value is specified.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel diversification_level = 13; + * + */ + public int getDiversificationLevelValue() { + return diversificationLevel_; + } + /** + * + * + *
+     * Optional.
+     * Controls whether highly similar jobs are returned next to each other in
+     * the search results. Jobs are identified as highly similar based on
+     * their titles, job categories, and locations. Highly similar results are
+     * clustered so that only one representative job of the cluster is
+     * displayed to the job seeker higher up in the results, with the other jobs
+     * being displayed lower down in the results.
+     * Defaults to
+     * [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE]
+     * if no value is specified.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel diversification_level = 13; + * + */ + public Builder setDiversificationLevelValue(int value) { + diversificationLevel_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Controls whether highly similar jobs are returned next to each other in
+     * the search results. Jobs are identified as highly similar based on
+     * their titles, job categories, and locations. Highly similar results are
+     * clustered so that only one representative job of the cluster is
+     * displayed to the job seeker higher up in the results, with the other jobs
+     * being displayed lower down in the results.
+     * Defaults to
+     * [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE]
+     * if no value is specified.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel diversification_level = 13; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel + getDiversificationLevel() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel result = + com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.valueOf( + diversificationLevel_); + return result == null + ? com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * Controls whether highly similar jobs are returned next to each other in
+     * the search results. Jobs are identified as highly similar based on
+     * their titles, job categories, and locations. Highly similar results are
+     * clustered so that only one representative job of the cluster is
+     * displayed to the job seeker higher up in the results, with the other jobs
+     * being displayed lower down in the results.
+     * Defaults to
+     * [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE]
+     * if no value is specified.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel diversification_level = 13; + * + */ + public Builder setDiversificationLevel( + com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel value) { + if (value == null) { + throw new NullPointerException(); + } + + diversificationLevel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Controls whether highly similar jobs are returned next to each other in
+     * the search results. Jobs are identified as highly similar based on
+     * their titles, job categories, and locations. Highly similar results are
+     * clustered so that only one representative job of the cluster is
+     * displayed to the job seeker higher up in the results, with the other jobs
+     * being displayed lower down in the results.
+     * Defaults to
+     * [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE]
+     * if no value is specified.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel diversification_level = 13; + * + */ + public Builder clearDiversificationLevel() { + + diversificationLevel_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo customRankingInfo_ = + null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo, + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.Builder, + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfoOrBuilder> + customRankingInfoBuilder_; + /** + * + * + *
+     * Optional.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm).
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + public boolean hasCustomRankingInfo() { + return customRankingInfoBuilder_ != null || customRankingInfo_ != null; + } + /** + * + * + *
+     * Optional.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm).
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + getCustomRankingInfo() { + if (customRankingInfoBuilder_ == null) { + return customRankingInfo_ == null + ? com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + .getDefaultInstance() + : customRankingInfo_; + } else { + return customRankingInfoBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm).
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + public Builder setCustomRankingInfo( + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo value) { + if (customRankingInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customRankingInfo_ = value; + onChanged(); + } else { + customRankingInfoBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm).
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + public Builder setCustomRankingInfo( + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.Builder + builderForValue) { + if (customRankingInfoBuilder_ == null) { + customRankingInfo_ = builderForValue.build(); + onChanged(); + } else { + customRankingInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm).
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + public Builder mergeCustomRankingInfo( + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo value) { + if (customRankingInfoBuilder_ == null) { + if (customRankingInfo_ != null) { + customRankingInfo_ = + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.newBuilder( + customRankingInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + customRankingInfo_ = value; + } + onChanged(); + } else { + customRankingInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm).
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + public Builder clearCustomRankingInfo() { + if (customRankingInfoBuilder_ == null) { + customRankingInfo_ = null; + onChanged(); + } else { + customRankingInfo_ = null; + customRankingInfoBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm).
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.Builder + getCustomRankingInfoBuilder() { + + onChanged(); + return getCustomRankingInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm).
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfoOrBuilder + getCustomRankingInfoOrBuilder() { + if (customRankingInfoBuilder_ != null) { + return customRankingInfoBuilder_.getMessageOrBuilder(); + } else { + return customRankingInfo_ == null + ? com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + .getDefaultInstance() + : customRankingInfo_; + } + } + /** + * + * + *
+     * Optional.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm).
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo, + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.Builder, + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfoOrBuilder> + getCustomRankingInfoFieldBuilder() { + if (customRankingInfoBuilder_ == null) { + customRankingInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo, + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.Builder, + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfoOrBuilder>( + getCustomRankingInfo(), getParentForChildren(), isClean()); + customRankingInfo_ = null; + } + return customRankingInfoBuilder_; + } + + private boolean disableKeywordMatch_; + /** + * + * + *
+     * Optional.
+     * Controls whether to disable exact keyword match on [Job.job_title][],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description],
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name],
+     * [Job.locations][0],
+     * [Job.qualifications][google.cloud.talent.v4beta1.Job.qualifications]. When
+     * disable keyword match is turned off, a keyword match returns jobs that do
+     * not match given category filters when there are matching keywords. For
+     * example, for the query "program manager," a result is returned even if the
+     * job posting has the title "software developer," which doesn't fall into
+     * "program manager" ontology, but does have "program manager" appearing in
+     * its description.
+     * For queries like "cloud" that don't contain title or
+     * location specific ontology, jobs with "cloud" keyword matches are returned
+     * regardless of this flag's value.
+     * Please use [Company.keyword_searchable_custom_fields][] or
+     * [Company.keyword_searchable_custom_attributes][] if company specific
+     * globally matched custom field/attribute string values is needed. Enabling
+     * keyword match improves recall of subsequent search requests.
+     * Defaults to false.
+     * 
+ * + * bool disable_keyword_match = 16; + */ + public boolean getDisableKeywordMatch() { + return disableKeywordMatch_; + } + /** + * + * + *
+     * Optional.
+     * Controls whether to disable exact keyword match on [Job.job_title][],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description],
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name],
+     * [Job.locations][0],
+     * [Job.qualifications][google.cloud.talent.v4beta1.Job.qualifications]. When
+     * disable keyword match is turned off, a keyword match returns jobs that do
+     * not match given category filters when there are matching keywords. For
+     * example, for the query "program manager," a result is returned even if the
+     * job posting has the title "software developer," which doesn't fall into
+     * "program manager" ontology, but does have "program manager" appearing in
+     * its description.
+     * For queries like "cloud" that don't contain title or
+     * location specific ontology, jobs with "cloud" keyword matches are returned
+     * regardless of this flag's value.
+     * Please use [Company.keyword_searchable_custom_fields][] or
+     * [Company.keyword_searchable_custom_attributes][] if company specific
+     * globally matched custom field/attribute string values is needed. Enabling
+     * keyword match improves recall of subsequent search requests.
+     * Defaults to false.
+     * 
+ * + * bool disable_keyword_match = 16; + */ + public Builder setDisableKeywordMatch(boolean value) { + + disableKeywordMatch_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Controls whether to disable exact keyword match on [Job.job_title][],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description],
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name],
+     * [Job.locations][0],
+     * [Job.qualifications][google.cloud.talent.v4beta1.Job.qualifications]. When
+     * disable keyword match is turned off, a keyword match returns jobs that do
+     * not match given category filters when there are matching keywords. For
+     * example, for the query "program manager," a result is returned even if the
+     * job posting has the title "software developer," which doesn't fall into
+     * "program manager" ontology, but does have "program manager" appearing in
+     * its description.
+     * For queries like "cloud" that don't contain title or
+     * location specific ontology, jobs with "cloud" keyword matches are returned
+     * regardless of this flag's value.
+     * Please use [Company.keyword_searchable_custom_fields][] or
+     * [Company.keyword_searchable_custom_attributes][] if company specific
+     * globally matched custom field/attribute string values is needed. Enabling
+     * keyword match improves recall of subsequent search requests.
+     * Defaults to false.
+     * 
+ * + * bool disable_keyword_match = 16; + */ + public Builder clearDisableKeywordMatch() { + + disableKeywordMatch_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SearchJobsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SearchJobsRequest) + private static final com.google.cloud.talent.v4beta1.SearchJobsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SearchJobsRequest(); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchJobsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SearchJobsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequestOrBuilder.java new file mode 100644 index 000000000000..b87b6f341593 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequestOrBuilder.java @@ -0,0 +1,977 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface SearchJobsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SearchJobsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the project to search within.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * The resource name of the project to search within.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional.
+   * Mode of a search.
+   * Defaults to
+   * [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH].
+   * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode search_mode = 2; + */ + int getSearchModeValue(); + /** + * + * + *
+   * Optional.
+   * Mode of a search.
+   * Defaults to
+   * [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH].
+   * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode search_mode = 2; + */ + com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode getSearchMode(); + + /** + * + * + *
+   * Required.
+   * The meta information collected about the job searcher, used to improve the
+   * search quality of the service.. The identifiers, (such as `user_id`) are
+   * provided by users, and must be unique and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + boolean hasRequestMetadata(); + /** + * + * + *
+   * Required.
+   * The meta information collected about the job searcher, used to improve the
+   * search quality of the service.. The identifiers, (such as `user_id`) are
+   * provided by users, and must be unique and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + com.google.cloud.talent.v4beta1.RequestMetadata getRequestMetadata(); + /** + * + * + *
+   * Required.
+   * The meta information collected about the job searcher, used to improve the
+   * search quality of the service.. The identifiers, (such as `user_id`) are
+   * provided by users, and must be unique and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder getRequestMetadataOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Query used to search against jobs, such as keyword, location filters, etc.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + boolean hasJobQuery(); + /** + * + * + *
+   * Optional.
+   * Query used to search against jobs, such as keyword, location filters, etc.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + com.google.cloud.talent.v4beta1.JobQuery getJobQuery(); + /** + * + * + *
+   * Optional.
+   * Query used to search against jobs, such as keyword, location filters, etc.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + com.google.cloud.talent.v4beta1.JobQueryOrBuilder getJobQueryOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Controls whether to broaden the search when it produces sparse results.
+   * Broadened queries append results to the end of the matching results
+   * list.
+   * Defaults to false.
+   * 
+ * + * bool enable_broadening = 5; + */ + boolean getEnableBroadening(); + + /** + * + * + *
+   * Optional.
+   * Controls if the search job request requires the return of a precise
+   * count of the first 300 results. Setting this to `true` ensures
+   * consistency in the number of results per page. Best practice is to set this
+   * value to true if a client allows users to jump directly to a
+   * non-sequential search results page.
+   * Enabling this flag may adversely impact performance.
+   * Defaults to false.
+   * 
+ * + * bool require_precise_result_size = 6; + */ + boolean getRequirePreciseResultSize(); + + /** + * + * + *
+   * Optional.
+   * An expression specifies a histogram request against matching jobs.
+   * Expression syntax is an aggregation function call with histogram facets and
+   * other options.
+   * Available aggregation function calls are:
+   * * `count(string_histogram_facet)`: Count the number of matching entities,
+   * for each distinct attribute value.
+   * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+   * matching entities within each bucket.
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label]): bucket built-in function creates a bucket
+   * with range of [start, end). Note that the end is exclusive, for example,
+   * bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Job histogram facets:
+   * * company_id: histogram by [Job.distributor_company_id][].
+   * * company_display_name: histogram by
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+   * * employment_type: histogram by
+   * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+   * for example, "FULL_TIME", "PART_TIME".
+   * * company_size: histogram by
+   * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+   * "SMALL", "MEDIUM", "BIG".
+   * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+   * Must specify list of numeric buckets in spec.
+   * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+   * Must specify list of numeric buckets in spec.
+   * * degree_type: histogram by the [Job.degree_type][], for example,
+   * "Bachelors", "Masters".
+   * * job_level: histogram by the
+   * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+   * "Entry Level".
+   * * country: histogram by the country code of jobs, for example, "US", "FR".
+   * * admin1: histogram by the admin1 code of jobs, which is a global
+   * placeholder referring to the state, province, or the particular term a
+   * country uses to define the geographic structure below the country level,
+   * for example, "CA", "IL".
+   * * city: histogram by a combination of the "city name, admin1 code". For
+   * example,  "Mountain View, CA", "New York, NY".
+   * * admin1_country: histogram by a combination of the "admin1 code, country",
+   * for example, "CA, US", "IL, US".
+   * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+   * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+   * of a city center can change, customers may need to refresh them
+   * periodically.
+   * * locale: histogram by the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en-US", "fr-FR".
+   * * language: histogram by the language subtag of the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en", "fr".
+   * * category: histogram by the
+   * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+   * "COMPUTER_AND_IT", "HEALTHCARE".
+   * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+   * salary, for example, "WEEKLY", "MONTHLY".
+   * * base_compensation: histogram by the base salary. Must specify list of
+   * numeric buckets to group results by.
+   * * annualized_base_compensation: histogram by the base annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * annualized_total_compensation: histogram by the total annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * string_custom_attribute: histogram by string
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * string_custom_attribute["key1"].
+   * * numeric_custom_attribute: histogram by numeric
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+   * group results by.
+   * Example expressions:
+   * * count(admin1)
+   * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+   * bucket(100000, MAX)])
+   * * count(string_custom_attribute["some-string-custom-attribute"])
+   * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + java.util.List getHistogramQueriesList(); + /** + * + * + *
+   * Optional.
+   * An expression specifies a histogram request against matching jobs.
+   * Expression syntax is an aggregation function call with histogram facets and
+   * other options.
+   * Available aggregation function calls are:
+   * * `count(string_histogram_facet)`: Count the number of matching entities,
+   * for each distinct attribute value.
+   * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+   * matching entities within each bucket.
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label]): bucket built-in function creates a bucket
+   * with range of [start, end). Note that the end is exclusive, for example,
+   * bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Job histogram facets:
+   * * company_id: histogram by [Job.distributor_company_id][].
+   * * company_display_name: histogram by
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+   * * employment_type: histogram by
+   * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+   * for example, "FULL_TIME", "PART_TIME".
+   * * company_size: histogram by
+   * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+   * "SMALL", "MEDIUM", "BIG".
+   * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+   * Must specify list of numeric buckets in spec.
+   * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+   * Must specify list of numeric buckets in spec.
+   * * degree_type: histogram by the [Job.degree_type][], for example,
+   * "Bachelors", "Masters".
+   * * job_level: histogram by the
+   * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+   * "Entry Level".
+   * * country: histogram by the country code of jobs, for example, "US", "FR".
+   * * admin1: histogram by the admin1 code of jobs, which is a global
+   * placeholder referring to the state, province, or the particular term a
+   * country uses to define the geographic structure below the country level,
+   * for example, "CA", "IL".
+   * * city: histogram by a combination of the "city name, admin1 code". For
+   * example,  "Mountain View, CA", "New York, NY".
+   * * admin1_country: histogram by a combination of the "admin1 code, country",
+   * for example, "CA, US", "IL, US".
+   * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+   * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+   * of a city center can change, customers may need to refresh them
+   * periodically.
+   * * locale: histogram by the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en-US", "fr-FR".
+   * * language: histogram by the language subtag of the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en", "fr".
+   * * category: histogram by the
+   * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+   * "COMPUTER_AND_IT", "HEALTHCARE".
+   * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+   * salary, for example, "WEEKLY", "MONTHLY".
+   * * base_compensation: histogram by the base salary. Must specify list of
+   * numeric buckets to group results by.
+   * * annualized_base_compensation: histogram by the base annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * annualized_total_compensation: histogram by the total annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * string_custom_attribute: histogram by string
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * string_custom_attribute["key1"].
+   * * numeric_custom_attribute: histogram by numeric
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+   * group results by.
+   * Example expressions:
+   * * count(admin1)
+   * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+   * bucket(100000, MAX)])
+   * * count(string_custom_attribute["some-string-custom-attribute"])
+   * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + com.google.cloud.talent.v4beta1.HistogramQuery getHistogramQueries(int index); + /** + * + * + *
+   * Optional.
+   * An expression specifies a histogram request against matching jobs.
+   * Expression syntax is an aggregation function call with histogram facets and
+   * other options.
+   * Available aggregation function calls are:
+   * * `count(string_histogram_facet)`: Count the number of matching entities,
+   * for each distinct attribute value.
+   * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+   * matching entities within each bucket.
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label]): bucket built-in function creates a bucket
+   * with range of [start, end). Note that the end is exclusive, for example,
+   * bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Job histogram facets:
+   * * company_id: histogram by [Job.distributor_company_id][].
+   * * company_display_name: histogram by
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+   * * employment_type: histogram by
+   * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+   * for example, "FULL_TIME", "PART_TIME".
+   * * company_size: histogram by
+   * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+   * "SMALL", "MEDIUM", "BIG".
+   * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+   * Must specify list of numeric buckets in spec.
+   * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+   * Must specify list of numeric buckets in spec.
+   * * degree_type: histogram by the [Job.degree_type][], for example,
+   * "Bachelors", "Masters".
+   * * job_level: histogram by the
+   * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+   * "Entry Level".
+   * * country: histogram by the country code of jobs, for example, "US", "FR".
+   * * admin1: histogram by the admin1 code of jobs, which is a global
+   * placeholder referring to the state, province, or the particular term a
+   * country uses to define the geographic structure below the country level,
+   * for example, "CA", "IL".
+   * * city: histogram by a combination of the "city name, admin1 code". For
+   * example,  "Mountain View, CA", "New York, NY".
+   * * admin1_country: histogram by a combination of the "admin1 code, country",
+   * for example, "CA, US", "IL, US".
+   * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+   * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+   * of a city center can change, customers may need to refresh them
+   * periodically.
+   * * locale: histogram by the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en-US", "fr-FR".
+   * * language: histogram by the language subtag of the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en", "fr".
+   * * category: histogram by the
+   * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+   * "COMPUTER_AND_IT", "HEALTHCARE".
+   * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+   * salary, for example, "WEEKLY", "MONTHLY".
+   * * base_compensation: histogram by the base salary. Must specify list of
+   * numeric buckets to group results by.
+   * * annualized_base_compensation: histogram by the base annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * annualized_total_compensation: histogram by the total annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * string_custom_attribute: histogram by string
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * string_custom_attribute["key1"].
+   * * numeric_custom_attribute: histogram by numeric
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+   * group results by.
+   * Example expressions:
+   * * count(admin1)
+   * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+   * bucket(100000, MAX)])
+   * * count(string_custom_attribute["some-string-custom-attribute"])
+   * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + int getHistogramQueriesCount(); + /** + * + * + *
+   * Optional.
+   * An expression specifies a histogram request against matching jobs.
+   * Expression syntax is an aggregation function call with histogram facets and
+   * other options.
+   * Available aggregation function calls are:
+   * * `count(string_histogram_facet)`: Count the number of matching entities,
+   * for each distinct attribute value.
+   * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+   * matching entities within each bucket.
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label]): bucket built-in function creates a bucket
+   * with range of [start, end). Note that the end is exclusive, for example,
+   * bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Job histogram facets:
+   * * company_id: histogram by [Job.distributor_company_id][].
+   * * company_display_name: histogram by
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+   * * employment_type: histogram by
+   * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+   * for example, "FULL_TIME", "PART_TIME".
+   * * company_size: histogram by
+   * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+   * "SMALL", "MEDIUM", "BIG".
+   * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+   * Must specify list of numeric buckets in spec.
+   * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+   * Must specify list of numeric buckets in spec.
+   * * degree_type: histogram by the [Job.degree_type][], for example,
+   * "Bachelors", "Masters".
+   * * job_level: histogram by the
+   * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+   * "Entry Level".
+   * * country: histogram by the country code of jobs, for example, "US", "FR".
+   * * admin1: histogram by the admin1 code of jobs, which is a global
+   * placeholder referring to the state, province, or the particular term a
+   * country uses to define the geographic structure below the country level,
+   * for example, "CA", "IL".
+   * * city: histogram by a combination of the "city name, admin1 code". For
+   * example,  "Mountain View, CA", "New York, NY".
+   * * admin1_country: histogram by a combination of the "admin1 code, country",
+   * for example, "CA, US", "IL, US".
+   * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+   * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+   * of a city center can change, customers may need to refresh them
+   * periodically.
+   * * locale: histogram by the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en-US", "fr-FR".
+   * * language: histogram by the language subtag of the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en", "fr".
+   * * category: histogram by the
+   * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+   * "COMPUTER_AND_IT", "HEALTHCARE".
+   * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+   * salary, for example, "WEEKLY", "MONTHLY".
+   * * base_compensation: histogram by the base salary. Must specify list of
+   * numeric buckets to group results by.
+   * * annualized_base_compensation: histogram by the base annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * annualized_total_compensation: histogram by the total annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * string_custom_attribute: histogram by string
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * string_custom_attribute["key1"].
+   * * numeric_custom_attribute: histogram by numeric
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+   * group results by.
+   * Example expressions:
+   * * count(admin1)
+   * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+   * bucket(100000, MAX)])
+   * * count(string_custom_attribute["some-string-custom-attribute"])
+   * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + java.util.List + getHistogramQueriesOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * An expression specifies a histogram request against matching jobs.
+   * Expression syntax is an aggregation function call with histogram facets and
+   * other options.
+   * Available aggregation function calls are:
+   * * `count(string_histogram_facet)`: Count the number of matching entities,
+   * for each distinct attribute value.
+   * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+   * matching entities within each bucket.
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label]): bucket built-in function creates a bucket
+   * with range of [start, end). Note that the end is exclusive, for example,
+   * bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Job histogram facets:
+   * * company_id: histogram by [Job.distributor_company_id][].
+   * * company_display_name: histogram by
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+   * * employment_type: histogram by
+   * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+   * for example, "FULL_TIME", "PART_TIME".
+   * * company_size: histogram by
+   * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+   * "SMALL", "MEDIUM", "BIG".
+   * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+   * Must specify list of numeric buckets in spec.
+   * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+   * Must specify list of numeric buckets in spec.
+   * * degree_type: histogram by the [Job.degree_type][], for example,
+   * "Bachelors", "Masters".
+   * * job_level: histogram by the
+   * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+   * "Entry Level".
+   * * country: histogram by the country code of jobs, for example, "US", "FR".
+   * * admin1: histogram by the admin1 code of jobs, which is a global
+   * placeholder referring to the state, province, or the particular term a
+   * country uses to define the geographic structure below the country level,
+   * for example, "CA", "IL".
+   * * city: histogram by a combination of the "city name, admin1 code". For
+   * example,  "Mountain View, CA", "New York, NY".
+   * * admin1_country: histogram by a combination of the "admin1 code, country",
+   * for example, "CA, US", "IL, US".
+   * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+   * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+   * of a city center can change, customers may need to refresh them
+   * periodically.
+   * * locale: histogram by the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en-US", "fr-FR".
+   * * language: histogram by the language subtag of the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en", "fr".
+   * * category: histogram by the
+   * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+   * "COMPUTER_AND_IT", "HEALTHCARE".
+   * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+   * salary, for example, "WEEKLY", "MONTHLY".
+   * * base_compensation: histogram by the base salary. Must specify list of
+   * numeric buckets to group results by.
+   * * annualized_base_compensation: histogram by the base annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * annualized_total_compensation: histogram by the total annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * string_custom_attribute: histogram by string
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * string_custom_attribute["key1"].
+   * * numeric_custom_attribute: histogram by numeric
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+   * group results by.
+   * Example expressions:
+   * * count(admin1)
+   * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+   * bucket(100000, MAX)])
+   * * count(string_custom_attribute["some-string-custom-attribute"])
+   * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder getHistogramQueriesOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The desired job attributes returned for jobs in the
+   * search response. Defaults to [JobView.SMALL][] if no value is specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 8; + */ + int getJobViewValue(); + /** + * + * + *
+   * Optional.
+   * The desired job attributes returned for jobs in the
+   * search response. Defaults to [JobView.SMALL][] if no value is specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 8; + */ + com.google.cloud.talent.v4beta1.JobView getJobView(); + + /** + * + * + *
+   * Optional.
+   * An integer that specifies the current offset (that is, starting result
+   * location, amongst the jobs deemed by the API as relevant) in search
+   * results. This field is only considered if
+   * [page_token][google.cloud.talent.v4beta1.SearchJobsRequest.page_token] is
+   * unset.
+   * For example, 0 means to  return results starting from the first matching
+   * job, and 10 means to return from the 11th job. This can be used for
+   * pagination, (for example, pageSize = 10 and offset = 10 means to return
+   * from the second page).
+   * 
+ * + * int32 offset = 9; + */ + int getOffset(); + + /** + * + * + *
+   * Optional.
+   * A limit on the number of jobs returned in the search results.
+   * Increasing this value above the default value of 10 can increase search
+   * response time. The value can be between 1 and 100.
+   * 
+ * + * int32 page_size = 10; + */ + int getPageSize(); + + /** + * + * + *
+   * Optional.
+   * The token specifying the current offset within
+   * search results. See
+   * [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token]
+   * for an explanation of how to obtain the next set of query results.
+   * 
+ * + * string page_token = 11; + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional.
+   * The token specifying the current offset within
+   * search results. See
+   * [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token]
+   * for an explanation of how to obtain the next set of query results.
+   * 
+ * + * string page_token = 11; + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional.
+   * The criteria determining how search results are sorted. Default is
+   * "relevance desc".
+   * Supported options are:
+   * * "relevance desc": By relevance descending, as determined by the API
+   * algorithms. Relevance thresholding of query results is only available
+   * with this ordering.
+   * * "posting`_`publish`_`time desc": By
+   * [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time]
+   * descending.
+   * * "posting`_`update`_`time desc": By
+   * [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time]
+   * descending.
+   * * "title": By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending.
+   * * "title desc": By [Job.title][google.cloud.talent.v4beta1.Job.title]
+   * descending.
+   * * "annualized`_`base`_`compensation": By job's
+   * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+   * ascending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`base`_`compensation desc": By job's
+   * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+   * descending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`total`_`compensation": By job's
+   * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+   * ascending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`total`_`compensation desc": By job's
+   * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+   * descending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "custom`_`ranking desc": By the relevance score adjusted to the
+   * [SearchJobsRequest.custom_ranking_info.ranking_expression][] with weight
+   * factor assigned by
+   * [SearchJobsRequest.custom_ranking_info.importance_level][] in descending
+   * order.
+   * * "location`_`distance": By the distance between the location on jobs and
+   *  locations specified in the
+   * [SearchJobsRequest.job_query.location_filters][].
+   * When this order is selected, the
+   * [SearchJobsRequest.job_query.location_filters][] must not be empty. When
+   * a job has multiple locations, the location closest to one of the locations
+   * specified in the location filter will be used to calculate location
+   * distance. Distance is calculated by the distance between two lat/long
+   * coordinates, with a precision of 10e-4 degrees (11.3 meters).
+   * Jobs that don't have locations specified will be ranked below jobs having
+   * locations.
+   * Diversification strategy is still applied unless explicitly disabled in
+   * [SearchJobsRequest.diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level].
+   * 
+ * + * string order_by = 12; + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Optional.
+   * The criteria determining how search results are sorted. Default is
+   * "relevance desc".
+   * Supported options are:
+   * * "relevance desc": By relevance descending, as determined by the API
+   * algorithms. Relevance thresholding of query results is only available
+   * with this ordering.
+   * * "posting`_`publish`_`time desc": By
+   * [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time]
+   * descending.
+   * * "posting`_`update`_`time desc": By
+   * [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time]
+   * descending.
+   * * "title": By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending.
+   * * "title desc": By [Job.title][google.cloud.talent.v4beta1.Job.title]
+   * descending.
+   * * "annualized`_`base`_`compensation": By job's
+   * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+   * ascending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`base`_`compensation desc": By job's
+   * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+   * descending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`total`_`compensation": By job's
+   * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+   * ascending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`total`_`compensation desc": By job's
+   * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+   * descending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "custom`_`ranking desc": By the relevance score adjusted to the
+   * [SearchJobsRequest.custom_ranking_info.ranking_expression][] with weight
+   * factor assigned by
+   * [SearchJobsRequest.custom_ranking_info.importance_level][] in descending
+   * order.
+   * * "location`_`distance": By the distance between the location on jobs and
+   *  locations specified in the
+   * [SearchJobsRequest.job_query.location_filters][].
+   * When this order is selected, the
+   * [SearchJobsRequest.job_query.location_filters][] must not be empty. When
+   * a job has multiple locations, the location closest to one of the locations
+   * specified in the location filter will be used to calculate location
+   * distance. Distance is calculated by the distance between two lat/long
+   * coordinates, with a precision of 10e-4 degrees (11.3 meters).
+   * Jobs that don't have locations specified will be ranked below jobs having
+   * locations.
+   * Diversification strategy is still applied unless explicitly disabled in
+   * [SearchJobsRequest.diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level].
+   * 
+ * + * string order_by = 12; + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Optional.
+   * Controls whether highly similar jobs are returned next to each other in
+   * the search results. Jobs are identified as highly similar based on
+   * their titles, job categories, and locations. Highly similar results are
+   * clustered so that only one representative job of the cluster is
+   * displayed to the job seeker higher up in the results, with the other jobs
+   * being displayed lower down in the results.
+   * Defaults to
+   * [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE]
+   * if no value is specified.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel diversification_level = 13; + * + */ + int getDiversificationLevelValue(); + /** + * + * + *
+   * Optional.
+   * Controls whether highly similar jobs are returned next to each other in
+   * the search results. Jobs are identified as highly similar based on
+   * their titles, job categories, and locations. Highly similar results are
+   * clustered so that only one representative job of the cluster is
+   * displayed to the job seeker higher up in the results, with the other jobs
+   * being displayed lower down in the results.
+   * Defaults to
+   * [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE]
+   * if no value is specified.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel diversification_level = 13; + * + */ + com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel getDiversificationLevel(); + + /** + * + * + *
+   * Optional.
+   * Controls over how job documents get ranked on top of existing relevance
+   * score (determined by API algorithm).
+   * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + boolean hasCustomRankingInfo(); + /** + * + * + *
+   * Optional.
+   * Controls over how job documents get ranked on top of existing relevance
+   * score (determined by API algorithm).
+   * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo getCustomRankingInfo(); + /** + * + * + *
+   * Optional.
+   * Controls over how job documents get ranked on top of existing relevance
+   * score (determined by API algorithm).
+   * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfoOrBuilder + getCustomRankingInfoOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Controls whether to disable exact keyword match on [Job.job_title][],
+   * [Job.description][google.cloud.talent.v4beta1.Job.description],
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name],
+   * [Job.locations][0],
+   * [Job.qualifications][google.cloud.talent.v4beta1.Job.qualifications]. When
+   * disable keyword match is turned off, a keyword match returns jobs that do
+   * not match given category filters when there are matching keywords. For
+   * example, for the query "program manager," a result is returned even if the
+   * job posting has the title "software developer," which doesn't fall into
+   * "program manager" ontology, but does have "program manager" appearing in
+   * its description.
+   * For queries like "cloud" that don't contain title or
+   * location specific ontology, jobs with "cloud" keyword matches are returned
+   * regardless of this flag's value.
+   * Please use [Company.keyword_searchable_custom_fields][] or
+   * [Company.keyword_searchable_custom_attributes][] if company specific
+   * globally matched custom field/attribute string values is needed. Enabling
+   * keyword match improves recall of subsequent search requests.
+   * Defaults to false.
+   * 
+ * + * bool disable_keyword_match = 16; + */ + boolean getDisableKeywordMatch(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsResponse.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsResponse.java new file mode 100644 index 000000000000..fcbc5f970298 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsResponse.java @@ -0,0 +1,5880 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Output only.
+ * Response for SearchJob method.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchJobsResponse} + */ +public final class SearchJobsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SearchJobsResponse) + SearchJobsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchJobsResponse.newBuilder() to construct. + private SearchJobsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchJobsResponse() { + matchingJobs_ = java.util.Collections.emptyList(); + histogramQueryResults_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + locationFilters_ = java.util.Collections.emptyList(); + estimatedTotalSize_ = 0; + totalSize_ = 0; + broadenedQueryJobsCount_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SearchJobsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + matchingJobs_ = + new java.util.ArrayList< + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob>(); + mutable_bitField0_ |= 0x00000001; + } + matchingJobs_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.parser(), + extensionRegistry)); + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + histogramQueryResults_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + histogramQueryResults_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.HistogramQueryResult.parser(), + extensionRegistry)); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + locationFilters_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + locationFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Location.parser(), extensionRegistry)); + break; + } + case 40: + { + estimatedTotalSize_ = input.readInt32(); + break; + } + case 48: + { + totalSize_ = input.readInt32(); + break; + } + case 58: + { + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = + input.readMessage( + com.google.cloud.talent.v4beta1.ResponseMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 64: + { + broadenedQueryJobsCount_ = input.readInt32(); + break; + } + case 74: + { + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder subBuilder = null; + if (spellCorrection_ != null) { + subBuilder = spellCorrection_.toBuilder(); + } + spellCorrection_ = + input.readMessage( + com.google.cloud.talent.v4beta1.SpellingCorrection.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spellCorrection_); + spellCorrection_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + matchingJobs_ = java.util.Collections.unmodifiableList(matchingJobs_); + } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + histogramQueryResults_ = java.util.Collections.unmodifiableList(histogramQueryResults_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + locationFilters_ = java.util.Collections.unmodifiableList(locationFilters_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchJobsResponse.class, + com.google.cloud.talent.v4beta1.SearchJobsResponse.Builder.class); + } + + public interface MatchingJobOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Job resource that matches the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + boolean hasJob(); + /** + * + * + *
+     * Job resource that matches the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + com.google.cloud.talent.v4beta1.Job getJob(); + /** + * + * + *
+     * Job resource that matches the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder(); + + /** + * + * + *
+     * A summary of the job with core information that's displayed on the search
+     * results listing page.
+     * 
+ * + * string job_summary = 2; + */ + java.lang.String getJobSummary(); + /** + * + * + *
+     * A summary of the job with core information that's displayed on the search
+     * results listing page.
+     * 
+ * + * string job_summary = 2; + */ + com.google.protobuf.ByteString getJobSummaryBytes(); + + /** + * + * + *
+     * Contains snippets of text from the [Job.job_title][] field most
+     * closely matching a search query's keywords, if available. The matching
+     * query keywords are enclosed in HTML bold tags.
+     * 
+ * + * string job_title_snippet = 3; + */ + java.lang.String getJobTitleSnippet(); + /** + * + * + *
+     * Contains snippets of text from the [Job.job_title][] field most
+     * closely matching a search query's keywords, if available. The matching
+     * query keywords are enclosed in HTML bold tags.
+     * 
+ * + * string job_title_snippet = 3; + */ + com.google.protobuf.ByteString getJobTitleSnippetBytes(); + + /** + * + * + *
+     * Contains snippets of text from the
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * similar fields that most closely match a search query's keywords, if
+     * available. All HTML tags in the original fields are stripped when
+     * returned in this field, and matching query keywords are enclosed in HTML
+     * bold tags.
+     * 
+ * + * string search_text_snippet = 4; + */ + java.lang.String getSearchTextSnippet(); + /** + * + * + *
+     * Contains snippets of text from the
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * similar fields that most closely match a search query's keywords, if
+     * available. All HTML tags in the original fields are stripped when
+     * returned in this field, and matching query keywords are enclosed in HTML
+     * bold tags.
+     * 
+ * + * string search_text_snippet = 4; + */ + com.google.protobuf.ByteString getSearchTextSnippetBytes(); + + /** + * + * + *
+     * Commute information which is generated based on specified
+     *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+     * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + boolean hasCommuteInfo(); + /** + * + * + *
+     * Commute information which is generated based on specified
+     *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+     * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo getCommuteInfo(); + /** + * + * + *
+     * Commute information which is generated based on specified
+     *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+     * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfoOrBuilder + getCommuteInfoOrBuilder(); + } + /** + * + * + *
+   * Output only.
+   * Job entry with metadata inside
+   * [SearchJobsResponse][google.cloud.talent.v4beta1.SearchJobsResponse].
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob} + */ + public static final class MatchingJob extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob) + MatchingJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use MatchingJob.newBuilder() to construct. + private MatchingJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MatchingJob() { + jobSummary_ = ""; + jobTitleSnippet_ = ""; + searchTextSnippet_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MatchingJob( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.talent.v4beta1.Job.Builder subBuilder = null; + if (job_ != null) { + subBuilder = job_.toBuilder(); + } + job_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Job.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(job_); + job_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobSummary_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobTitleSnippet_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + searchTextSnippet_ = s; + break; + } + case 42: + { + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.Builder subBuilder = + null; + if (commuteInfo_ != null) { + subBuilder = commuteInfo_.toBuilder(); + } + commuteInfo_ = + input.readMessage( + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(commuteInfo_); + commuteInfo_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_MatchingJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_MatchingJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.class, + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.Builder.class); + } + + public static final int JOB_FIELD_NUMBER = 1; + private com.google.cloud.talent.v4beta1.Job job_; + /** + * + * + *
+     * Job resource that matches the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public boolean hasJob() { + return job_ != null; + } + /** + * + * + *
+     * Job resource that matches the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.Job getJob() { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } + /** + * + * + *
+     * Job resource that matches the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder() { + return getJob(); + } + + public static final int JOB_SUMMARY_FIELD_NUMBER = 2; + private volatile java.lang.Object jobSummary_; + /** + * + * + *
+     * A summary of the job with core information that's displayed on the search
+     * results listing page.
+     * 
+ * + * string job_summary = 2; + */ + public java.lang.String getJobSummary() { + java.lang.Object ref = jobSummary_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobSummary_ = s; + return s; + } + } + /** + * + * + *
+     * A summary of the job with core information that's displayed on the search
+     * results listing page.
+     * 
+ * + * string job_summary = 2; + */ + public com.google.protobuf.ByteString getJobSummaryBytes() { + java.lang.Object ref = jobSummary_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobSummary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOB_TITLE_SNIPPET_FIELD_NUMBER = 3; + private volatile java.lang.Object jobTitleSnippet_; + /** + * + * + *
+     * Contains snippets of text from the [Job.job_title][] field most
+     * closely matching a search query's keywords, if available. The matching
+     * query keywords are enclosed in HTML bold tags.
+     * 
+ * + * string job_title_snippet = 3; + */ + public java.lang.String getJobTitleSnippet() { + java.lang.Object ref = jobTitleSnippet_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobTitleSnippet_ = s; + return s; + } + } + /** + * + * + *
+     * Contains snippets of text from the [Job.job_title][] field most
+     * closely matching a search query's keywords, if available. The matching
+     * query keywords are enclosed in HTML bold tags.
+     * 
+ * + * string job_title_snippet = 3; + */ + public com.google.protobuf.ByteString getJobTitleSnippetBytes() { + java.lang.Object ref = jobTitleSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitleSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SEARCH_TEXT_SNIPPET_FIELD_NUMBER = 4; + private volatile java.lang.Object searchTextSnippet_; + /** + * + * + *
+     * Contains snippets of text from the
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * similar fields that most closely match a search query's keywords, if
+     * available. All HTML tags in the original fields are stripped when
+     * returned in this field, and matching query keywords are enclosed in HTML
+     * bold tags.
+     * 
+ * + * string search_text_snippet = 4; + */ + public java.lang.String getSearchTextSnippet() { + java.lang.Object ref = searchTextSnippet_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + searchTextSnippet_ = s; + return s; + } + } + /** + * + * + *
+     * Contains snippets of text from the
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * similar fields that most closely match a search query's keywords, if
+     * available. All HTML tags in the original fields are stripped when
+     * returned in this field, and matching query keywords are enclosed in HTML
+     * bold tags.
+     * 
+ * + * string search_text_snippet = 4; + */ + public com.google.protobuf.ByteString getSearchTextSnippetBytes() { + java.lang.Object ref = searchTextSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + searchTextSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMUTE_INFO_FIELD_NUMBER = 5; + private com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commuteInfo_; + /** + * + * + *
+     * Commute information which is generated based on specified
+     *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+     * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + public boolean hasCommuteInfo() { + return commuteInfo_ != null; + } + /** + * + * + *
+     * Commute information which is generated based on specified
+     *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+     * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo getCommuteInfo() { + return commuteInfo_ == null + ? com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.getDefaultInstance() + : commuteInfo_; + } + /** + * + * + *
+     * Commute information which is generated based on specified
+     *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+     * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfoOrBuilder + getCommuteInfoOrBuilder() { + return getCommuteInfo(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (job_ != null) { + output.writeMessage(1, getJob()); + } + if (!getJobSummaryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobSummary_); + } + if (!getJobTitleSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, jobTitleSnippet_); + } + if (!getSearchTextSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, searchTextSnippet_); + } + if (commuteInfo_ != null) { + output.writeMessage(5, getCommuteInfo()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (job_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getJob()); + } + if (!getJobSummaryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobSummary_); + } + if (!getJobTitleSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, jobTitleSnippet_); + } + if (!getSearchTextSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, searchTextSnippet_); + } + if (commuteInfo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCommuteInfo()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob other = + (com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob) obj; + + boolean result = true; + result = result && (hasJob() == other.hasJob()); + if (hasJob()) { + result = result && getJob().equals(other.getJob()); + } + result = result && getJobSummary().equals(other.getJobSummary()); + result = result && getJobTitleSnippet().equals(other.getJobTitleSnippet()); + result = result && getSearchTextSnippet().equals(other.getSearchTextSnippet()); + result = result && (hasCommuteInfo() == other.hasCommuteInfo()); + if (hasCommuteInfo()) { + result = result && getCommuteInfo().equals(other.getCommuteInfo()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasJob()) { + hash = (37 * hash) + JOB_FIELD_NUMBER; + hash = (53 * hash) + getJob().hashCode(); + } + hash = (37 * hash) + JOB_SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getJobSummary().hashCode(); + hash = (37 * hash) + JOB_TITLE_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getJobTitleSnippet().hashCode(); + hash = (37 * hash) + SEARCH_TEXT_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getSearchTextSnippet().hashCode(); + if (hasCommuteInfo()) { + hash = (37 * hash) + COMMUTE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getCommuteInfo().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Output only.
+     * Job entry with metadata inside
+     * [SearchJobsResponse][google.cloud.talent.v4beta1.SearchJobsResponse].
+     * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob) + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_MatchingJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_MatchingJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.class, + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (jobBuilder_ == null) { + job_ = null; + } else { + job_ = null; + jobBuilder_ = null; + } + jobSummary_ = ""; + + jobTitleSnippet_ = ""; + + searchTextSnippet_ = ""; + + if (commuteInfoBuilder_ == null) { + commuteInfo_ = null; + } else { + commuteInfo_ = null; + commuteInfoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_MatchingJob_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob + getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob build() { + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob buildPartial() { + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob result = + new com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob(this); + if (jobBuilder_ == null) { + result.job_ = job_; + } else { + result.job_ = jobBuilder_.build(); + } + result.jobSummary_ = jobSummary_; + result.jobTitleSnippet_ = jobTitleSnippet_; + result.searchTextSnippet_ = searchTextSnippet_; + if (commuteInfoBuilder_ == null) { + result.commuteInfo_ = commuteInfo_; + } else { + result.commuteInfo_ = commuteInfoBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob) { + return mergeFrom((com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob other) { + if (other + == com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.getDefaultInstance()) + return this; + if (other.hasJob()) { + mergeJob(other.getJob()); + } + if (!other.getJobSummary().isEmpty()) { + jobSummary_ = other.jobSummary_; + onChanged(); + } + if (!other.getJobTitleSnippet().isEmpty()) { + jobTitleSnippet_ = other.jobTitleSnippet_; + onChanged(); + } + if (!other.getSearchTextSnippet().isEmpty()) { + searchTextSnippet_ = other.searchTextSnippet_; + onChanged(); + } + if (other.hasCommuteInfo()) { + mergeCommuteInfo(other.getCommuteInfo()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.talent.v4beta1.Job job_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder> + jobBuilder_; + /** + * + * + *
+       * Job resource that matches the specified
+       * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+       * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public boolean hasJob() { + return jobBuilder_ != null || job_ != null; + } + /** + * + * + *
+       * Job resource that matches the specified
+       * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+       * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.Job getJob() { + if (jobBuilder_ == null) { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } else { + return jobBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Job resource that matches the specified
+       * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+       * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder setJob(com.google.cloud.talent.v4beta1.Job value) { + if (jobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + job_ = value; + onChanged(); + } else { + jobBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Job resource that matches the specified
+       * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+       * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder setJob(com.google.cloud.talent.v4beta1.Job.Builder builderForValue) { + if (jobBuilder_ == null) { + job_ = builderForValue.build(); + onChanged(); + } else { + jobBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Job resource that matches the specified
+       * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+       * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder mergeJob(com.google.cloud.talent.v4beta1.Job value) { + if (jobBuilder_ == null) { + if (job_ != null) { + job_ = + com.google.cloud.talent.v4beta1.Job.newBuilder(job_) + .mergeFrom(value) + .buildPartial(); + } else { + job_ = value; + } + onChanged(); + } else { + jobBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Job resource that matches the specified
+       * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+       * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder clearJob() { + if (jobBuilder_ == null) { + job_ = null; + onChanged(); + } else { + job_ = null; + jobBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Job resource that matches the specified
+       * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+       * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.Job.Builder getJobBuilder() { + + onChanged(); + return getJobFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Job resource that matches the specified
+       * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+       * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder() { + if (jobBuilder_ != null) { + return jobBuilder_.getMessageOrBuilder(); + } else { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } + } + /** + * + * + *
+       * Job resource that matches the specified
+       * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+       * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder> + getJobFieldBuilder() { + if (jobBuilder_ == null) { + jobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder>( + getJob(), getParentForChildren(), isClean()); + job_ = null; + } + return jobBuilder_; + } + + private java.lang.Object jobSummary_ = ""; + /** + * + * + *
+       * A summary of the job with core information that's displayed on the search
+       * results listing page.
+       * 
+ * + * string job_summary = 2; + */ + public java.lang.String getJobSummary() { + java.lang.Object ref = jobSummary_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobSummary_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * A summary of the job with core information that's displayed on the search
+       * results listing page.
+       * 
+ * + * string job_summary = 2; + */ + public com.google.protobuf.ByteString getJobSummaryBytes() { + java.lang.Object ref = jobSummary_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobSummary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * A summary of the job with core information that's displayed on the search
+       * results listing page.
+       * 
+ * + * string job_summary = 2; + */ + public Builder setJobSummary(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobSummary_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * A summary of the job with core information that's displayed on the search
+       * results listing page.
+       * 
+ * + * string job_summary = 2; + */ + public Builder clearJobSummary() { + + jobSummary_ = getDefaultInstance().getJobSummary(); + onChanged(); + return this; + } + /** + * + * + *
+       * A summary of the job with core information that's displayed on the search
+       * results listing page.
+       * 
+ * + * string job_summary = 2; + */ + public Builder setJobSummaryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobSummary_ = value; + onChanged(); + return this; + } + + private java.lang.Object jobTitleSnippet_ = ""; + /** + * + * + *
+       * Contains snippets of text from the [Job.job_title][] field most
+       * closely matching a search query's keywords, if available. The matching
+       * query keywords are enclosed in HTML bold tags.
+       * 
+ * + * string job_title_snippet = 3; + */ + public java.lang.String getJobTitleSnippet() { + java.lang.Object ref = jobTitleSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobTitleSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Contains snippets of text from the [Job.job_title][] field most
+       * closely matching a search query's keywords, if available. The matching
+       * query keywords are enclosed in HTML bold tags.
+       * 
+ * + * string job_title_snippet = 3; + */ + public com.google.protobuf.ByteString getJobTitleSnippetBytes() { + java.lang.Object ref = jobTitleSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitleSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Contains snippets of text from the [Job.job_title][] field most
+       * closely matching a search query's keywords, if available. The matching
+       * query keywords are enclosed in HTML bold tags.
+       * 
+ * + * string job_title_snippet = 3; + */ + public Builder setJobTitleSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobTitleSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Contains snippets of text from the [Job.job_title][] field most
+       * closely matching a search query's keywords, if available. The matching
+       * query keywords are enclosed in HTML bold tags.
+       * 
+ * + * string job_title_snippet = 3; + */ + public Builder clearJobTitleSnippet() { + + jobTitleSnippet_ = getDefaultInstance().getJobTitleSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+       * Contains snippets of text from the [Job.job_title][] field most
+       * closely matching a search query's keywords, if available. The matching
+       * query keywords are enclosed in HTML bold tags.
+       * 
+ * + * string job_title_snippet = 3; + */ + public Builder setJobTitleSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobTitleSnippet_ = value; + onChanged(); + return this; + } + + private java.lang.Object searchTextSnippet_ = ""; + /** + * + * + *
+       * Contains snippets of text from the
+       * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+       * similar fields that most closely match a search query's keywords, if
+       * available. All HTML tags in the original fields are stripped when
+       * returned in this field, and matching query keywords are enclosed in HTML
+       * bold tags.
+       * 
+ * + * string search_text_snippet = 4; + */ + public java.lang.String getSearchTextSnippet() { + java.lang.Object ref = searchTextSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + searchTextSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Contains snippets of text from the
+       * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+       * similar fields that most closely match a search query's keywords, if
+       * available. All HTML tags in the original fields are stripped when
+       * returned in this field, and matching query keywords are enclosed in HTML
+       * bold tags.
+       * 
+ * + * string search_text_snippet = 4; + */ + public com.google.protobuf.ByteString getSearchTextSnippetBytes() { + java.lang.Object ref = searchTextSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + searchTextSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Contains snippets of text from the
+       * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+       * similar fields that most closely match a search query's keywords, if
+       * available. All HTML tags in the original fields are stripped when
+       * returned in this field, and matching query keywords are enclosed in HTML
+       * bold tags.
+       * 
+ * + * string search_text_snippet = 4; + */ + public Builder setSearchTextSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + searchTextSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Contains snippets of text from the
+       * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+       * similar fields that most closely match a search query's keywords, if
+       * available. All HTML tags in the original fields are stripped when
+       * returned in this field, and matching query keywords are enclosed in HTML
+       * bold tags.
+       * 
+ * + * string search_text_snippet = 4; + */ + public Builder clearSearchTextSnippet() { + + searchTextSnippet_ = getDefaultInstance().getSearchTextSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+       * Contains snippets of text from the
+       * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+       * similar fields that most closely match a search query's keywords, if
+       * available. All HTML tags in the original fields are stripped when
+       * returned in this field, and matching query keywords are enclosed in HTML
+       * bold tags.
+       * 
+ * + * string search_text_snippet = 4; + */ + public Builder setSearchTextSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + searchTextSnippet_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commuteInfo_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo, + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.Builder, + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfoOrBuilder> + commuteInfoBuilder_; + /** + * + * + *
+       * Commute information which is generated based on specified
+       *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+       * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + public boolean hasCommuteInfo() { + return commuteInfoBuilder_ != null || commuteInfo_ != null; + } + /** + * + * + *
+       * Commute information which is generated based on specified
+       *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+       * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo getCommuteInfo() { + if (commuteInfoBuilder_ == null) { + return commuteInfo_ == null + ? com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.getDefaultInstance() + : commuteInfo_; + } else { + return commuteInfoBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Commute information which is generated based on specified
+       *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+       * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + public Builder setCommuteInfo( + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo value) { + if (commuteInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + commuteInfo_ = value; + onChanged(); + } else { + commuteInfoBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Commute information which is generated based on specified
+       *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+       * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + public Builder setCommuteInfo( + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.Builder builderForValue) { + if (commuteInfoBuilder_ == null) { + commuteInfo_ = builderForValue.build(); + onChanged(); + } else { + commuteInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Commute information which is generated based on specified
+       *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+       * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + public Builder mergeCommuteInfo( + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo value) { + if (commuteInfoBuilder_ == null) { + if (commuteInfo_ != null) { + commuteInfo_ = + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.newBuilder( + commuteInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + commuteInfo_ = value; + } + onChanged(); + } else { + commuteInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Commute information which is generated based on specified
+       *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+       * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + public Builder clearCommuteInfo() { + if (commuteInfoBuilder_ == null) { + commuteInfo_ = null; + onChanged(); + } else { + commuteInfo_ = null; + commuteInfoBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Commute information which is generated based on specified
+       *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+       * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.Builder + getCommuteInfoBuilder() { + + onChanged(); + return getCommuteInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Commute information which is generated based on specified
+       *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+       * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfoOrBuilder + getCommuteInfoOrBuilder() { + if (commuteInfoBuilder_ != null) { + return commuteInfoBuilder_.getMessageOrBuilder(); + } else { + return commuteInfo_ == null + ? com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.getDefaultInstance() + : commuteInfo_; + } + } + /** + * + * + *
+       * Commute information which is generated based on specified
+       *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+       * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo, + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.Builder, + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfoOrBuilder> + getCommuteInfoFieldBuilder() { + if (commuteInfoBuilder_ == null) { + commuteInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo, + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.Builder, + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfoOrBuilder>( + getCommuteInfo(), getParentForChildren(), isClean()); + commuteInfo_ = null; + } + return commuteInfoBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob) + private static final com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob(); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MatchingJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MatchingJob(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface CommuteInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Location used as the destination in the commute calculation.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + boolean hasJobLocation(); + /** + * + * + *
+     * Location used as the destination in the commute calculation.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + com.google.cloud.talent.v4beta1.Location getJobLocation(); + /** + * + * + *
+     * Location used as the destination in the commute calculation.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + com.google.cloud.talent.v4beta1.LocationOrBuilder getJobLocationOrBuilder(); + + /** + * + * + *
+     * The number of seconds required to travel to the job location from the
+     * query location. A duration of 0 seconds indicates that the job isn't
+     * reachable within the requested duration, but was returned as part of an
+     * expanded query.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + boolean hasTravelDuration(); + /** + * + * + *
+     * The number of seconds required to travel to the job location from the
+     * query location. A duration of 0 seconds indicates that the job isn't
+     * reachable within the requested duration, but was returned as part of an
+     * expanded query.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + com.google.protobuf.Duration getTravelDuration(); + /** + * + * + *
+     * The number of seconds required to travel to the job location from the
+     * query location. A duration of 0 seconds indicates that the job isn't
+     * reachable within the requested duration, but was returned as part of an
+     * expanded query.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder(); + } + /** + * + * + *
+   * Output only.
+   * Commute details related to this job.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo} + */ + public static final class CommuteInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo) + CommuteInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use CommuteInfo.newBuilder() to construct. + private CommuteInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CommuteInfo() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CommuteInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.talent.v4beta1.Location.Builder subBuilder = null; + if (jobLocation_ != null) { + subBuilder = jobLocation_.toBuilder(); + } + jobLocation_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Location.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(jobLocation_); + jobLocation_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (travelDuration_ != null) { + subBuilder = travelDuration_.toBuilder(); + } + travelDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(travelDuration_); + travelDuration_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_CommuteInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_CommuteInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.class, + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.Builder.class); + } + + public static final int JOB_LOCATION_FIELD_NUMBER = 1; + private com.google.cloud.talent.v4beta1.Location jobLocation_; + /** + * + * + *
+     * Location used as the destination in the commute calculation.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + public boolean hasJobLocation() { + return jobLocation_ != null; + } + /** + * + * + *
+     * Location used as the destination in the commute calculation.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + public com.google.cloud.talent.v4beta1.Location getJobLocation() { + return jobLocation_ == null + ? com.google.cloud.talent.v4beta1.Location.getDefaultInstance() + : jobLocation_; + } + /** + * + * + *
+     * Location used as the destination in the commute calculation.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + public com.google.cloud.talent.v4beta1.LocationOrBuilder getJobLocationOrBuilder() { + return getJobLocation(); + } + + public static final int TRAVEL_DURATION_FIELD_NUMBER = 2; + private com.google.protobuf.Duration travelDuration_; + /** + * + * + *
+     * The number of seconds required to travel to the job location from the
+     * query location. A duration of 0 seconds indicates that the job isn't
+     * reachable within the requested duration, but was returned as part of an
+     * expanded query.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + public boolean hasTravelDuration() { + return travelDuration_ != null; + } + /** + * + * + *
+     * The number of seconds required to travel to the job location from the
+     * query location. A duration of 0 seconds indicates that the job isn't
+     * reachable within the requested duration, but was returned as part of an
+     * expanded query.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + public com.google.protobuf.Duration getTravelDuration() { + return travelDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : travelDuration_; + } + /** + * + * + *
+     * The number of seconds required to travel to the job location from the
+     * query location. A duration of 0 seconds indicates that the job isn't
+     * reachable within the requested duration, but was returned as part of an
+     * expanded query.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + public com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder() { + return getTravelDuration(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (jobLocation_ != null) { + output.writeMessage(1, getJobLocation()); + } + if (travelDuration_ != null) { + output.writeMessage(2, getTravelDuration()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (jobLocation_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getJobLocation()); + } + if (travelDuration_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTravelDuration()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo other = + (com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo) obj; + + boolean result = true; + result = result && (hasJobLocation() == other.hasJobLocation()); + if (hasJobLocation()) { + result = result && getJobLocation().equals(other.getJobLocation()); + } + result = result && (hasTravelDuration() == other.hasTravelDuration()); + if (hasTravelDuration()) { + result = result && getTravelDuration().equals(other.getTravelDuration()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasJobLocation()) { + hash = (37 * hash) + JOB_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getJobLocation().hashCode(); + } + if (hasTravelDuration()) { + hash = (37 * hash) + TRAVEL_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getTravelDuration().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Output only.
+     * Commute details related to this job.
+     * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo) + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_CommuteInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_CommuteInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.class, + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (jobLocationBuilder_ == null) { + jobLocation_ = null; + } else { + jobLocation_ = null; + jobLocationBuilder_ = null; + } + if (travelDurationBuilder_ == null) { + travelDuration_ = null; + } else { + travelDuration_ = null; + travelDurationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_CommuteInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo + getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo build() { + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo buildPartial() { + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo result = + new com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo(this); + if (jobLocationBuilder_ == null) { + result.jobLocation_ = jobLocation_; + } else { + result.jobLocation_ = jobLocationBuilder_.build(); + } + if (travelDurationBuilder_ == null) { + result.travelDuration_ = travelDuration_; + } else { + result.travelDuration_ = travelDurationBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo) { + return mergeFrom((com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo other) { + if (other + == com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.getDefaultInstance()) + return this; + if (other.hasJobLocation()) { + mergeJobLocation(other.getJobLocation()); + } + if (other.hasTravelDuration()) { + mergeTravelDuration(other.getTravelDuration()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.talent.v4beta1.Location jobLocation_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder> + jobLocationBuilder_; + /** + * + * + *
+       * Location used as the destination in the commute calculation.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + public boolean hasJobLocation() { + return jobLocationBuilder_ != null || jobLocation_ != null; + } + /** + * + * + *
+       * Location used as the destination in the commute calculation.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + public com.google.cloud.talent.v4beta1.Location getJobLocation() { + if (jobLocationBuilder_ == null) { + return jobLocation_ == null + ? com.google.cloud.talent.v4beta1.Location.getDefaultInstance() + : jobLocation_; + } else { + return jobLocationBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Location used as the destination in the commute calculation.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + public Builder setJobLocation(com.google.cloud.talent.v4beta1.Location value) { + if (jobLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + jobLocation_ = value; + onChanged(); + } else { + jobLocationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Location used as the destination in the commute calculation.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + public Builder setJobLocation( + com.google.cloud.talent.v4beta1.Location.Builder builderForValue) { + if (jobLocationBuilder_ == null) { + jobLocation_ = builderForValue.build(); + onChanged(); + } else { + jobLocationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Location used as the destination in the commute calculation.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + public Builder mergeJobLocation(com.google.cloud.talent.v4beta1.Location value) { + if (jobLocationBuilder_ == null) { + if (jobLocation_ != null) { + jobLocation_ = + com.google.cloud.talent.v4beta1.Location.newBuilder(jobLocation_) + .mergeFrom(value) + .buildPartial(); + } else { + jobLocation_ = value; + } + onChanged(); + } else { + jobLocationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Location used as the destination in the commute calculation.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + public Builder clearJobLocation() { + if (jobLocationBuilder_ == null) { + jobLocation_ = null; + onChanged(); + } else { + jobLocation_ = null; + jobLocationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Location used as the destination in the commute calculation.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + public com.google.cloud.talent.v4beta1.Location.Builder getJobLocationBuilder() { + + onChanged(); + return getJobLocationFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Location used as the destination in the commute calculation.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + public com.google.cloud.talent.v4beta1.LocationOrBuilder getJobLocationOrBuilder() { + if (jobLocationBuilder_ != null) { + return jobLocationBuilder_.getMessageOrBuilder(); + } else { + return jobLocation_ == null + ? com.google.cloud.talent.v4beta1.Location.getDefaultInstance() + : jobLocation_; + } + } + /** + * + * + *
+       * Location used as the destination in the commute calculation.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder> + getJobLocationFieldBuilder() { + if (jobLocationBuilder_ == null) { + jobLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder>( + getJobLocation(), getParentForChildren(), isClean()); + jobLocation_ = null; + } + return jobLocationBuilder_; + } + + private com.google.protobuf.Duration travelDuration_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + travelDurationBuilder_; + /** + * + * + *
+       * The number of seconds required to travel to the job location from the
+       * query location. A duration of 0 seconds indicates that the job isn't
+       * reachable within the requested duration, but was returned as part of an
+       * expanded query.
+       * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + public boolean hasTravelDuration() { + return travelDurationBuilder_ != null || travelDuration_ != null; + } + /** + * + * + *
+       * The number of seconds required to travel to the job location from the
+       * query location. A duration of 0 seconds indicates that the job isn't
+       * reachable within the requested duration, but was returned as part of an
+       * expanded query.
+       * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + public com.google.protobuf.Duration getTravelDuration() { + if (travelDurationBuilder_ == null) { + return travelDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : travelDuration_; + } else { + return travelDurationBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The number of seconds required to travel to the job location from the
+       * query location. A duration of 0 seconds indicates that the job isn't
+       * reachable within the requested duration, but was returned as part of an
+       * expanded query.
+       * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + public Builder setTravelDuration(com.google.protobuf.Duration value) { + if (travelDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + travelDuration_ = value; + onChanged(); + } else { + travelDurationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * The number of seconds required to travel to the job location from the
+       * query location. A duration of 0 seconds indicates that the job isn't
+       * reachable within the requested duration, but was returned as part of an
+       * expanded query.
+       * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + public Builder setTravelDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (travelDurationBuilder_ == null) { + travelDuration_ = builderForValue.build(); + onChanged(); + } else { + travelDurationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * The number of seconds required to travel to the job location from the
+       * query location. A duration of 0 seconds indicates that the job isn't
+       * reachable within the requested duration, but was returned as part of an
+       * expanded query.
+       * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + public Builder mergeTravelDuration(com.google.protobuf.Duration value) { + if (travelDurationBuilder_ == null) { + if (travelDuration_ != null) { + travelDuration_ = + com.google.protobuf.Duration.newBuilder(travelDuration_) + .mergeFrom(value) + .buildPartial(); + } else { + travelDuration_ = value; + } + onChanged(); + } else { + travelDurationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * The number of seconds required to travel to the job location from the
+       * query location. A duration of 0 seconds indicates that the job isn't
+       * reachable within the requested duration, but was returned as part of an
+       * expanded query.
+       * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + public Builder clearTravelDuration() { + if (travelDurationBuilder_ == null) { + travelDuration_ = null; + onChanged(); + } else { + travelDuration_ = null; + travelDurationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * The number of seconds required to travel to the job location from the
+       * query location. A duration of 0 seconds indicates that the job isn't
+       * reachable within the requested duration, but was returned as part of an
+       * expanded query.
+       * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + public com.google.protobuf.Duration.Builder getTravelDurationBuilder() { + + onChanged(); + return getTravelDurationFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The number of seconds required to travel to the job location from the
+       * query location. A duration of 0 seconds indicates that the job isn't
+       * reachable within the requested duration, but was returned as part of an
+       * expanded query.
+       * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + public com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder() { + if (travelDurationBuilder_ != null) { + return travelDurationBuilder_.getMessageOrBuilder(); + } else { + return travelDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : travelDuration_; + } + } + /** + * + * + *
+       * The number of seconds required to travel to the job location from the
+       * query location. A duration of 0 seconds indicates that the job isn't
+       * reachable within the requested duration, but was returned as part of an
+       * expanded query.
+       * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getTravelDurationFieldBuilder() { + if (travelDurationBuilder_ == null) { + travelDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getTravelDuration(), getParentForChildren(), isClean()); + travelDuration_ = null; + } + return travelDurationBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo) + private static final com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo(); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommuteInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CommuteInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int MATCHING_JOBS_FIELD_NUMBER = 1; + private java.util.List + matchingJobs_; + /** + * + * + *
+   * The Job entities that match the specified
+   * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public java.util.List + getMatchingJobsList() { + return matchingJobs_; + } + /** + * + * + *
+   * The Job entities that match the specified
+   * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJobOrBuilder> + getMatchingJobsOrBuilderList() { + return matchingJobs_; + } + /** + * + * + *
+   * The Job entities that match the specified
+   * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public int getMatchingJobsCount() { + return matchingJobs_.size(); + } + /** + * + * + *
+   * The Job entities that match the specified
+   * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob getMatchingJobs(int index) { + return matchingJobs_.get(index); + } + /** + * + * + *
+   * The Job entities that match the specified
+   * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJobOrBuilder + getMatchingJobsOrBuilder(int index) { + return matchingJobs_.get(index); + } + + public static final int HISTOGRAM_QUERY_RESULTS_FIELD_NUMBER = 2; + private java.util.List + histogramQueryResults_; + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public java.util.List + getHistogramQueryResultsList() { + return histogramQueryResults_; + } + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public java.util.List + getHistogramQueryResultsOrBuilderList() { + return histogramQueryResults_; + } + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public int getHistogramQueryResultsCount() { + return histogramQueryResults_.size(); + } + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResult getHistogramQueryResults(int index) { + return histogramQueryResults_.get(index); + } + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder + getHistogramQueryResultsOrBuilder(int index) { + return histogramQueryResults_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * The token that specifies the starting position of the next page of results.
+   * This field is empty if there are no more results.
+   * 
+ * + * string next_page_token = 3; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * The token that specifies the starting position of the next page of results.
+   * This field is empty if there are no more results.
+   * 
+ * + * string next_page_token = 3; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATION_FILTERS_FIELD_NUMBER = 4; + private java.util.List locationFilters_; + /** + * + * + *
+   * The location filters that the service applied to the specified query. If
+   * any filters are lat-lng based, the [JobLocation.location_type][] is
+   * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public java.util.List getLocationFiltersList() { + return locationFilters_; + } + /** + * + * + *
+   * The location filters that the service applied to the specified query. If
+   * any filters are lat-lng based, the [JobLocation.location_type][] is
+   * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public java.util.List + getLocationFiltersOrBuilderList() { + return locationFilters_; + } + /** + * + * + *
+   * The location filters that the service applied to the specified query. If
+   * any filters are lat-lng based, the [JobLocation.location_type][] is
+   * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public int getLocationFiltersCount() { + return locationFilters_.size(); + } + /** + * + * + *
+   * The location filters that the service applied to the specified query. If
+   * any filters are lat-lng based, the [JobLocation.location_type][] is
+   * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public com.google.cloud.talent.v4beta1.Location getLocationFilters(int index) { + return locationFilters_.get(index); + } + /** + * + * + *
+   * The location filters that the service applied to the specified query. If
+   * any filters are lat-lng based, the [JobLocation.location_type][] is
+   * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public com.google.cloud.talent.v4beta1.LocationOrBuilder getLocationFiltersOrBuilder(int index) { + return locationFilters_.get(index); + } + + public static final int ESTIMATED_TOTAL_SIZE_FIELD_NUMBER = 5; + private int estimatedTotalSize_; + /** + * + * + *
+   * An estimation of the number of jobs that match the specified query.
+   * This number isn't guaranteed to be accurate. For accurate results,
+   * see [enable_precise_result_size][].
+   * 
+ * + * int32 estimated_total_size = 5; + */ + public int getEstimatedTotalSize() { + return estimatedTotalSize_; + } + + public static final int TOTAL_SIZE_FIELD_NUMBER = 6; + private int totalSize_; + /** + * + * + *
+   * The precise result count, which is available only if the client set
+   * [enable_precise_result_size][] to `true`, or if the response
+   * is the last page of results. Otherwise, the value is `-1`.
+   * 
+ * + * int32 total_size = 6; + */ + public int getTotalSize() { + return totalSize_; + } + + public static final int METADATA_FIELD_NUMBER = 7; + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_; + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int BROADENED_QUERY_JOBS_COUNT_FIELD_NUMBER = 8; + private int broadenedQueryJobsCount_; + /** + * + * + *
+   * If query broadening is enabled, we may append additional results from the
+   * broadened query. This number indicates how many of the jobs returned in the
+   * jobs field are from the broadened query. These results are always at the
+   * end of the jobs list. In particular, a value of 0, or if the field isn't
+   * set, all the jobs in the jobs list are from the original
+   * (without broadening) query. If this field is non-zero, subsequent requests
+   * with offset after this result set should contain all broadened results.
+   * 
+ * + * int32 broadened_query_jobs_count = 8; + */ + public int getBroadenedQueryJobsCount() { + return broadenedQueryJobsCount_; + } + + public static final int SPELL_CORRECTION_FIELD_NUMBER = 9; + private com.google.cloud.talent.v4beta1.SpellingCorrection spellCorrection_; + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + public boolean hasSpellCorrection() { + return spellCorrection_ != null; + } + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + public com.google.cloud.talent.v4beta1.SpellingCorrection getSpellCorrection() { + return spellCorrection_ == null + ? com.google.cloud.talent.v4beta1.SpellingCorrection.getDefaultInstance() + : spellCorrection_; + } + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + public com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder getSpellCorrectionOrBuilder() { + return getSpellCorrection(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < matchingJobs_.size(); i++) { + output.writeMessage(1, matchingJobs_.get(i)); + } + for (int i = 0; i < histogramQueryResults_.size(); i++) { + output.writeMessage(2, histogramQueryResults_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nextPageToken_); + } + for (int i = 0; i < locationFilters_.size(); i++) { + output.writeMessage(4, locationFilters_.get(i)); + } + if (estimatedTotalSize_ != 0) { + output.writeInt32(5, estimatedTotalSize_); + } + if (totalSize_ != 0) { + output.writeInt32(6, totalSize_); + } + if (metadata_ != null) { + output.writeMessage(7, getMetadata()); + } + if (broadenedQueryJobsCount_ != 0) { + output.writeInt32(8, broadenedQueryJobsCount_); + } + if (spellCorrection_ != null) { + output.writeMessage(9, getSpellCorrection()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < matchingJobs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, matchingJobs_.get(i)); + } + for (int i = 0; i < histogramQueryResults_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, histogramQueryResults_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); + } + for (int i = 0; i < locationFilters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, locationFilters_.get(i)); + } + if (estimatedTotalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, estimatedTotalSize_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, totalSize_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getMetadata()); + } + if (broadenedQueryJobsCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, broadenedQueryJobsCount_); + } + if (spellCorrection_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getSpellCorrection()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.SearchJobsResponse)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.SearchJobsResponse other = + (com.google.cloud.talent.v4beta1.SearchJobsResponse) obj; + + boolean result = true; + result = result && getMatchingJobsList().equals(other.getMatchingJobsList()); + result = result && getHistogramQueryResultsList().equals(other.getHistogramQueryResultsList()); + result = result && getNextPageToken().equals(other.getNextPageToken()); + result = result && getLocationFiltersList().equals(other.getLocationFiltersList()); + result = result && (getEstimatedTotalSize() == other.getEstimatedTotalSize()); + result = result && (getTotalSize() == other.getTotalSize()); + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata().equals(other.getMetadata()); + } + result = result && (getBroadenedQueryJobsCount() == other.getBroadenedQueryJobsCount()); + result = result && (hasSpellCorrection() == other.hasSpellCorrection()); + if (hasSpellCorrection()) { + result = result && getSpellCorrection().equals(other.getSpellCorrection()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getMatchingJobsCount() > 0) { + hash = (37 * hash) + MATCHING_JOBS_FIELD_NUMBER; + hash = (53 * hash) + getMatchingJobsList().hashCode(); + } + if (getHistogramQueryResultsCount() > 0) { + hash = (37 * hash) + HISTOGRAM_QUERY_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getHistogramQueryResultsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getLocationFiltersCount() > 0) { + hash = (37 * hash) + LOCATION_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getLocationFiltersList().hashCode(); + } + hash = (37 * hash) + ESTIMATED_TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getEstimatedTotalSize(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (37 * hash) + BROADENED_QUERY_JOBS_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getBroadenedQueryJobsCount(); + if (hasSpellCorrection()) { + hash = (37 * hash) + SPELL_CORRECTION_FIELD_NUMBER; + hash = (53 * hash) + getSpellCorrection().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.SearchJobsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Output only.
+   * Response for SearchJob method.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchJobsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SearchJobsResponse) + com.google.cloud.talent.v4beta1.SearchJobsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchJobsResponse.class, + com.google.cloud.talent.v4beta1.SearchJobsResponse.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.SearchJobsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMatchingJobsFieldBuilder(); + getHistogramQueryResultsFieldBuilder(); + getLocationFiltersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (matchingJobsBuilder_ == null) { + matchingJobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + matchingJobsBuilder_.clear(); + } + if (histogramQueryResultsBuilder_ == null) { + histogramQueryResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + histogramQueryResultsBuilder_.clear(); + } + nextPageToken_ = ""; + + if (locationFiltersBuilder_ == null) { + locationFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + locationFiltersBuilder_.clear(); + } + estimatedTotalSize_ = 0; + + totalSize_ = 0; + + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + broadenedQueryJobsCount_ = 0; + + if (spellCorrectionBuilder_ == null) { + spellCorrection_ = null; + } else { + spellCorrection_ = null; + spellCorrectionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsResponse getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.SearchJobsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsResponse build() { + com.google.cloud.talent.v4beta1.SearchJobsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsResponse buildPartial() { + com.google.cloud.talent.v4beta1.SearchJobsResponse result = + new com.google.cloud.talent.v4beta1.SearchJobsResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (matchingJobsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + matchingJobs_ = java.util.Collections.unmodifiableList(matchingJobs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.matchingJobs_ = matchingJobs_; + } else { + result.matchingJobs_ = matchingJobsBuilder_.build(); + } + if (histogramQueryResultsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + histogramQueryResults_ = java.util.Collections.unmodifiableList(histogramQueryResults_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.histogramQueryResults_ = histogramQueryResults_; + } else { + result.histogramQueryResults_ = histogramQueryResultsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (locationFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + locationFilters_ = java.util.Collections.unmodifiableList(locationFilters_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.locationFilters_ = locationFilters_; + } else { + result.locationFilters_ = locationFiltersBuilder_.build(); + } + result.estimatedTotalSize_ = estimatedTotalSize_; + result.totalSize_ = totalSize_; + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + result.broadenedQueryJobsCount_ = broadenedQueryJobsCount_; + if (spellCorrectionBuilder_ == null) { + result.spellCorrection_ = spellCorrection_; + } else { + result.spellCorrection_ = spellCorrectionBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.SearchJobsResponse) { + return mergeFrom((com.google.cloud.talent.v4beta1.SearchJobsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.SearchJobsResponse other) { + if (other == com.google.cloud.talent.v4beta1.SearchJobsResponse.getDefaultInstance()) + return this; + if (matchingJobsBuilder_ == null) { + if (!other.matchingJobs_.isEmpty()) { + if (matchingJobs_.isEmpty()) { + matchingJobs_ = other.matchingJobs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMatchingJobsIsMutable(); + matchingJobs_.addAll(other.matchingJobs_); + } + onChanged(); + } + } else { + if (!other.matchingJobs_.isEmpty()) { + if (matchingJobsBuilder_.isEmpty()) { + matchingJobsBuilder_.dispose(); + matchingJobsBuilder_ = null; + matchingJobs_ = other.matchingJobs_; + bitField0_ = (bitField0_ & ~0x00000001); + matchingJobsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMatchingJobsFieldBuilder() + : null; + } else { + matchingJobsBuilder_.addAllMessages(other.matchingJobs_); + } + } + } + if (histogramQueryResultsBuilder_ == null) { + if (!other.histogramQueryResults_.isEmpty()) { + if (histogramQueryResults_.isEmpty()) { + histogramQueryResults_ = other.histogramQueryResults_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.addAll(other.histogramQueryResults_); + } + onChanged(); + } + } else { + if (!other.histogramQueryResults_.isEmpty()) { + if (histogramQueryResultsBuilder_.isEmpty()) { + histogramQueryResultsBuilder_.dispose(); + histogramQueryResultsBuilder_ = null; + histogramQueryResults_ = other.histogramQueryResults_; + bitField0_ = (bitField0_ & ~0x00000002); + histogramQueryResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHistogramQueryResultsFieldBuilder() + : null; + } else { + histogramQueryResultsBuilder_.addAllMessages(other.histogramQueryResults_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (locationFiltersBuilder_ == null) { + if (!other.locationFilters_.isEmpty()) { + if (locationFilters_.isEmpty()) { + locationFilters_ = other.locationFilters_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureLocationFiltersIsMutable(); + locationFilters_.addAll(other.locationFilters_); + } + onChanged(); + } + } else { + if (!other.locationFilters_.isEmpty()) { + if (locationFiltersBuilder_.isEmpty()) { + locationFiltersBuilder_.dispose(); + locationFiltersBuilder_ = null; + locationFilters_ = other.locationFilters_; + bitField0_ = (bitField0_ & ~0x00000008); + locationFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLocationFiltersFieldBuilder() + : null; + } else { + locationFiltersBuilder_.addAllMessages(other.locationFilters_); + } + } + } + if (other.getEstimatedTotalSize() != 0) { + setEstimatedTotalSize(other.getEstimatedTotalSize()); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.getBroadenedQueryJobsCount() != 0) { + setBroadenedQueryJobsCount(other.getBroadenedQueryJobsCount()); + } + if (other.hasSpellCorrection()) { + mergeSpellCorrection(other.getSpellCorrection()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.SearchJobsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.SearchJobsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + matchingJobs_ = java.util.Collections.emptyList(); + + private void ensureMatchingJobsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + matchingJobs_ = + new java.util.ArrayList( + matchingJobs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob, + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.Builder, + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJobOrBuilder> + matchingJobsBuilder_; + + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public java.util.List + getMatchingJobsList() { + if (matchingJobsBuilder_ == null) { + return java.util.Collections.unmodifiableList(matchingJobs_); + } else { + return matchingJobsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public int getMatchingJobsCount() { + if (matchingJobsBuilder_ == null) { + return matchingJobs_.size(); + } else { + return matchingJobsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob getMatchingJobs( + int index) { + if (matchingJobsBuilder_ == null) { + return matchingJobs_.get(index); + } else { + return matchingJobsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public Builder setMatchingJobs( + int index, com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob value) { + if (matchingJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMatchingJobsIsMutable(); + matchingJobs_.set(index, value); + onChanged(); + } else { + matchingJobsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public Builder setMatchingJobs( + int index, + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.Builder builderForValue) { + if (matchingJobsBuilder_ == null) { + ensureMatchingJobsIsMutable(); + matchingJobs_.set(index, builderForValue.build()); + onChanged(); + } else { + matchingJobsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public Builder addMatchingJobs( + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob value) { + if (matchingJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMatchingJobsIsMutable(); + matchingJobs_.add(value); + onChanged(); + } else { + matchingJobsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public Builder addMatchingJobs( + int index, com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob value) { + if (matchingJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMatchingJobsIsMutable(); + matchingJobs_.add(index, value); + onChanged(); + } else { + matchingJobsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public Builder addMatchingJobs( + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.Builder builderForValue) { + if (matchingJobsBuilder_ == null) { + ensureMatchingJobsIsMutable(); + matchingJobs_.add(builderForValue.build()); + onChanged(); + } else { + matchingJobsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public Builder addMatchingJobs( + int index, + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.Builder builderForValue) { + if (matchingJobsBuilder_ == null) { + ensureMatchingJobsIsMutable(); + matchingJobs_.add(index, builderForValue.build()); + onChanged(); + } else { + matchingJobsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public Builder addAllMatchingJobs( + java.lang.Iterable + values) { + if (matchingJobsBuilder_ == null) { + ensureMatchingJobsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, matchingJobs_); + onChanged(); + } else { + matchingJobsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public Builder clearMatchingJobs() { + if (matchingJobsBuilder_ == null) { + matchingJobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + matchingJobsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public Builder removeMatchingJobs(int index) { + if (matchingJobsBuilder_ == null) { + ensureMatchingJobsIsMutable(); + matchingJobs_.remove(index); + onChanged(); + } else { + matchingJobsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.Builder + getMatchingJobsBuilder(int index) { + return getMatchingJobsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJobOrBuilder + getMatchingJobsOrBuilder(int index) { + if (matchingJobsBuilder_ == null) { + return matchingJobs_.get(index); + } else { + return matchingJobsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJobOrBuilder> + getMatchingJobsOrBuilderList() { + if (matchingJobsBuilder_ != null) { + return matchingJobsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(matchingJobs_); + } + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.Builder + addMatchingJobsBuilder() { + return getMatchingJobsFieldBuilder() + .addBuilder( + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.getDefaultInstance()); + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.Builder + addMatchingJobsBuilder(int index) { + return getMatchingJobsFieldBuilder() + .addBuilder( + index, + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.getDefaultInstance()); + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public java.util.List + getMatchingJobsBuilderList() { + return getMatchingJobsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob, + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.Builder, + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJobOrBuilder> + getMatchingJobsFieldBuilder() { + if (matchingJobsBuilder_ == null) { + matchingJobsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob, + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.Builder, + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJobOrBuilder>( + matchingJobs_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + matchingJobs_ = null; + } + return matchingJobsBuilder_; + } + + private java.util.List + histogramQueryResults_ = java.util.Collections.emptyList(); + + private void ensureHistogramQueryResultsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + histogramQueryResults_ = + new java.util.ArrayList( + histogramQueryResults_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQueryResult, + com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder> + histogramQueryResultsBuilder_; + + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public java.util.List + getHistogramQueryResultsList() { + if (histogramQueryResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(histogramQueryResults_); + } else { + return histogramQueryResultsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public int getHistogramQueryResultsCount() { + if (histogramQueryResultsBuilder_ == null) { + return histogramQueryResults_.size(); + } else { + return histogramQueryResultsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResult getHistogramQueryResults( + int index) { + if (histogramQueryResultsBuilder_ == null) { + return histogramQueryResults_.get(index); + } else { + return histogramQueryResultsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public Builder setHistogramQueryResults( + int index, com.google.cloud.talent.v4beta1.HistogramQueryResult value) { + if (histogramQueryResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.set(index, value); + onChanged(); + } else { + histogramQueryResultsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public Builder setHistogramQueryResults( + int index, com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder builderForValue) { + if (histogramQueryResultsBuilder_ == null) { + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.set(index, builderForValue.build()); + onChanged(); + } else { + histogramQueryResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public Builder addHistogramQueryResults( + com.google.cloud.talent.v4beta1.HistogramQueryResult value) { + if (histogramQueryResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.add(value); + onChanged(); + } else { + histogramQueryResultsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public Builder addHistogramQueryResults( + int index, com.google.cloud.talent.v4beta1.HistogramQueryResult value) { + if (histogramQueryResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.add(index, value); + onChanged(); + } else { + histogramQueryResultsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public Builder addHistogramQueryResults( + com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder builderForValue) { + if (histogramQueryResultsBuilder_ == null) { + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.add(builderForValue.build()); + onChanged(); + } else { + histogramQueryResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public Builder addHistogramQueryResults( + int index, com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder builderForValue) { + if (histogramQueryResultsBuilder_ == null) { + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.add(index, builderForValue.build()); + onChanged(); + } else { + histogramQueryResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public Builder addAllHistogramQueryResults( + java.lang.Iterable values) { + if (histogramQueryResultsBuilder_ == null) { + ensureHistogramQueryResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, histogramQueryResults_); + onChanged(); + } else { + histogramQueryResultsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public Builder clearHistogramQueryResults() { + if (histogramQueryResultsBuilder_ == null) { + histogramQueryResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + histogramQueryResultsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public Builder removeHistogramQueryResults(int index) { + if (histogramQueryResultsBuilder_ == null) { + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.remove(index); + onChanged(); + } else { + histogramQueryResultsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder + getHistogramQueryResultsBuilder(int index) { + return getHistogramQueryResultsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder + getHistogramQueryResultsOrBuilder(int index) { + if (histogramQueryResultsBuilder_ == null) { + return histogramQueryResults_.get(index); + } else { + return histogramQueryResultsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public java.util.List + getHistogramQueryResultsOrBuilderList() { + if (histogramQueryResultsBuilder_ != null) { + return histogramQueryResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(histogramQueryResults_); + } + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder + addHistogramQueryResultsBuilder() { + return getHistogramQueryResultsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.HistogramQueryResult.getDefaultInstance()); + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder + addHistogramQueryResultsBuilder(int index) { + return getHistogramQueryResultsFieldBuilder() + .addBuilder( + index, com.google.cloud.talent.v4beta1.HistogramQueryResult.getDefaultInstance()); + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public java.util.List + getHistogramQueryResultsBuilderList() { + return getHistogramQueryResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQueryResult, + com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder> + getHistogramQueryResultsFieldBuilder() { + if (histogramQueryResultsBuilder_ == null) { + histogramQueryResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQueryResult, + com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder>( + histogramQueryResults_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + histogramQueryResults_ = null; + } + return histogramQueryResultsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * The token that specifies the starting position of the next page of results.
+     * This field is empty if there are no more results.
+     * 
+ * + * string next_page_token = 3; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The token that specifies the starting position of the next page of results.
+     * This field is empty if there are no more results.
+     * 
+ * + * string next_page_token = 3; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The token that specifies the starting position of the next page of results.
+     * This field is empty if there are no more results.
+     * 
+ * + * string next_page_token = 3; + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The token that specifies the starting position of the next page of results.
+     * This field is empty if there are no more results.
+     * 
+ * + * string next_page_token = 3; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * The token that specifies the starting position of the next page of results.
+     * This field is empty if there are no more results.
+     * 
+ * + * string next_page_token = 3; + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + private java.util.List locationFilters_ = + java.util.Collections.emptyList(); + + private void ensureLocationFiltersIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + locationFilters_ = + new java.util.ArrayList(locationFilters_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder> + locationFiltersBuilder_; + + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public java.util.List getLocationFiltersList() { + if (locationFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(locationFilters_); + } else { + return locationFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public int getLocationFiltersCount() { + if (locationFiltersBuilder_ == null) { + return locationFilters_.size(); + } else { + return locationFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public com.google.cloud.talent.v4beta1.Location getLocationFilters(int index) { + if (locationFiltersBuilder_ == null) { + return locationFilters_.get(index); + } else { + return locationFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public Builder setLocationFilters(int index, com.google.cloud.talent.v4beta1.Location value) { + if (locationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationFiltersIsMutable(); + locationFilters_.set(index, value); + onChanged(); + } else { + locationFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public Builder setLocationFilters( + int index, com.google.cloud.talent.v4beta1.Location.Builder builderForValue) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + locationFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public Builder addLocationFilters(com.google.cloud.talent.v4beta1.Location value) { + if (locationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationFiltersIsMutable(); + locationFilters_.add(value); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public Builder addLocationFilters(int index, com.google.cloud.talent.v4beta1.Location value) { + if (locationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationFiltersIsMutable(); + locationFilters_.add(index, value); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public Builder addLocationFilters( + com.google.cloud.talent.v4beta1.Location.Builder builderForValue) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.add(builderForValue.build()); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public Builder addLocationFilters( + int index, com.google.cloud.talent.v4beta1.Location.Builder builderForValue) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public Builder addAllLocationFilters( + java.lang.Iterable values) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locationFilters_); + onChanged(); + } else { + locationFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public Builder clearLocationFilters() { + if (locationFiltersBuilder_ == null) { + locationFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + locationFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public Builder removeLocationFilters(int index) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.remove(index); + onChanged(); + } else { + locationFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public com.google.cloud.talent.v4beta1.Location.Builder getLocationFiltersBuilder(int index) { + return getLocationFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public com.google.cloud.talent.v4beta1.LocationOrBuilder getLocationFiltersOrBuilder( + int index) { + if (locationFiltersBuilder_ == null) { + return locationFilters_.get(index); + } else { + return locationFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public java.util.List + getLocationFiltersOrBuilderList() { + if (locationFiltersBuilder_ != null) { + return locationFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(locationFilters_); + } + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public com.google.cloud.talent.v4beta1.Location.Builder addLocationFiltersBuilder() { + return getLocationFiltersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Location.getDefaultInstance()); + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public com.google.cloud.talent.v4beta1.Location.Builder addLocationFiltersBuilder(int index) { + return getLocationFiltersFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Location.getDefaultInstance()); + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public java.util.List + getLocationFiltersBuilderList() { + return getLocationFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder> + getLocationFiltersFieldBuilder() { + if (locationFiltersBuilder_ == null) { + locationFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder>( + locationFilters_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + locationFilters_ = null; + } + return locationFiltersBuilder_; + } + + private int estimatedTotalSize_; + /** + * + * + *
+     * An estimation of the number of jobs that match the specified query.
+     * This number isn't guaranteed to be accurate. For accurate results,
+     * see [enable_precise_result_size][].
+     * 
+ * + * int32 estimated_total_size = 5; + */ + public int getEstimatedTotalSize() { + return estimatedTotalSize_; + } + /** + * + * + *
+     * An estimation of the number of jobs that match the specified query.
+     * This number isn't guaranteed to be accurate. For accurate results,
+     * see [enable_precise_result_size][].
+     * 
+ * + * int32 estimated_total_size = 5; + */ + public Builder setEstimatedTotalSize(int value) { + + estimatedTotalSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * An estimation of the number of jobs that match the specified query.
+     * This number isn't guaranteed to be accurate. For accurate results,
+     * see [enable_precise_result_size][].
+     * 
+ * + * int32 estimated_total_size = 5; + */ + public Builder clearEstimatedTotalSize() { + + estimatedTotalSize_ = 0; + onChanged(); + return this; + } + + private int totalSize_; + /** + * + * + *
+     * The precise result count, which is available only if the client set
+     * [enable_precise_result_size][] to `true`, or if the response
+     * is the last page of results. Otherwise, the value is `-1`.
+     * 
+ * + * int32 total_size = 6; + */ + public int getTotalSize() { + return totalSize_; + } + /** + * + * + *
+     * The precise result count, which is available only if the client set
+     * [enable_precise_result_size][] to `true`, or if the response
+     * is the last page of results. Otherwise, the value is `-1`.
+     * 
+ * + * int32 total_size = 6; + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The precise result count, which is available only if the client set
+     * [enable_precise_result_size][] to `true`, or if the response
+     * is the last page of results. Otherwise, the value is `-1`.
+     * 
+ * + * int32 total_size = 6; + */ + public Builder clearTotalSize() { + + totalSize_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + metadataBuilder_; + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + public Builder setMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + public Builder setMetadata( + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + public Builder mergeMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.cloud.talent.v4beta1.ResponseMetadata.newBuilder(metadata_) + .mergeFrom(value) + .buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private int broadenedQueryJobsCount_; + /** + * + * + *
+     * If query broadening is enabled, we may append additional results from the
+     * broadened query. This number indicates how many of the jobs returned in the
+     * jobs field are from the broadened query. These results are always at the
+     * end of the jobs list. In particular, a value of 0, or if the field isn't
+     * set, all the jobs in the jobs list are from the original
+     * (without broadening) query. If this field is non-zero, subsequent requests
+     * with offset after this result set should contain all broadened results.
+     * 
+ * + * int32 broadened_query_jobs_count = 8; + */ + public int getBroadenedQueryJobsCount() { + return broadenedQueryJobsCount_; + } + /** + * + * + *
+     * If query broadening is enabled, we may append additional results from the
+     * broadened query. This number indicates how many of the jobs returned in the
+     * jobs field are from the broadened query. These results are always at the
+     * end of the jobs list. In particular, a value of 0, or if the field isn't
+     * set, all the jobs in the jobs list are from the original
+     * (without broadening) query. If this field is non-zero, subsequent requests
+     * with offset after this result set should contain all broadened results.
+     * 
+ * + * int32 broadened_query_jobs_count = 8; + */ + public Builder setBroadenedQueryJobsCount(int value) { + + broadenedQueryJobsCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If query broadening is enabled, we may append additional results from the
+     * broadened query. This number indicates how many of the jobs returned in the
+     * jobs field are from the broadened query. These results are always at the
+     * end of the jobs list. In particular, a value of 0, or if the field isn't
+     * set, all the jobs in the jobs list are from the original
+     * (without broadening) query. If this field is non-zero, subsequent requests
+     * with offset after this result set should contain all broadened results.
+     * 
+ * + * int32 broadened_query_jobs_count = 8; + */ + public Builder clearBroadenedQueryJobsCount() { + + broadenedQueryJobsCount_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.SpellingCorrection spellCorrection_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SpellingCorrection, + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder, + com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder> + spellCorrectionBuilder_; + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + public boolean hasSpellCorrection() { + return spellCorrectionBuilder_ != null || spellCorrection_ != null; + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + public com.google.cloud.talent.v4beta1.SpellingCorrection getSpellCorrection() { + if (spellCorrectionBuilder_ == null) { + return spellCorrection_ == null + ? com.google.cloud.talent.v4beta1.SpellingCorrection.getDefaultInstance() + : spellCorrection_; + } else { + return spellCorrectionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + public Builder setSpellCorrection(com.google.cloud.talent.v4beta1.SpellingCorrection value) { + if (spellCorrectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spellCorrection_ = value; + onChanged(); + } else { + spellCorrectionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + public Builder setSpellCorrection( + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder builderForValue) { + if (spellCorrectionBuilder_ == null) { + spellCorrection_ = builderForValue.build(); + onChanged(); + } else { + spellCorrectionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + public Builder mergeSpellCorrection(com.google.cloud.talent.v4beta1.SpellingCorrection value) { + if (spellCorrectionBuilder_ == null) { + if (spellCorrection_ != null) { + spellCorrection_ = + com.google.cloud.talent.v4beta1.SpellingCorrection.newBuilder(spellCorrection_) + .mergeFrom(value) + .buildPartial(); + } else { + spellCorrection_ = value; + } + onChanged(); + } else { + spellCorrectionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + public Builder clearSpellCorrection() { + if (spellCorrectionBuilder_ == null) { + spellCorrection_ = null; + onChanged(); + } else { + spellCorrection_ = null; + spellCorrectionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + public com.google.cloud.talent.v4beta1.SpellingCorrection.Builder getSpellCorrectionBuilder() { + + onChanged(); + return getSpellCorrectionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + public com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder + getSpellCorrectionOrBuilder() { + if (spellCorrectionBuilder_ != null) { + return spellCorrectionBuilder_.getMessageOrBuilder(); + } else { + return spellCorrection_ == null + ? com.google.cloud.talent.v4beta1.SpellingCorrection.getDefaultInstance() + : spellCorrection_; + } + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SpellingCorrection, + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder, + com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder> + getSpellCorrectionFieldBuilder() { + if (spellCorrectionBuilder_ == null) { + spellCorrectionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SpellingCorrection, + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder, + com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder>( + getSpellCorrection(), getParentForChildren(), isClean()); + spellCorrection_ = null; + } + return spellCorrectionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SearchJobsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SearchJobsResponse) + private static final com.google.cloud.talent.v4beta1.SearchJobsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SearchJobsResponse(); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchJobsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SearchJobsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsResponseOrBuilder.java new file mode 100644 index 000000000000..2265b8891c29 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsResponseOrBuilder.java @@ -0,0 +1,331 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface SearchJobsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SearchJobsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Job entities that match the specified
+   * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + java.util.List + getMatchingJobsList(); + /** + * + * + *
+   * The Job entities that match the specified
+   * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob getMatchingJobs(int index); + /** + * + * + *
+   * The Job entities that match the specified
+   * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + int getMatchingJobsCount(); + /** + * + * + *
+   * The Job entities that match the specified
+   * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + java.util.List + getMatchingJobsOrBuilderList(); + /** + * + * + *
+   * The Job entities that match the specified
+   * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJobOrBuilder getMatchingJobsOrBuilder( + int index); + + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + java.util.List + getHistogramQueryResultsList(); + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + com.google.cloud.talent.v4beta1.HistogramQueryResult getHistogramQueryResults(int index); + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + int getHistogramQueryResultsCount(); + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + java.util.List + getHistogramQueryResultsOrBuilderList(); + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder getHistogramQueryResultsOrBuilder( + int index); + + /** + * + * + *
+   * The token that specifies the starting position of the next page of results.
+   * This field is empty if there are no more results.
+   * 
+ * + * string next_page_token = 3; + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * The token that specifies the starting position of the next page of results.
+   * This field is empty if there are no more results.
+   * 
+ * + * string next_page_token = 3; + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * The location filters that the service applied to the specified query. If
+   * any filters are lat-lng based, the [JobLocation.location_type][] is
+   * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + java.util.List getLocationFiltersList(); + /** + * + * + *
+   * The location filters that the service applied to the specified query. If
+   * any filters are lat-lng based, the [JobLocation.location_type][] is
+   * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + com.google.cloud.talent.v4beta1.Location getLocationFilters(int index); + /** + * + * + *
+   * The location filters that the service applied to the specified query. If
+   * any filters are lat-lng based, the [JobLocation.location_type][] is
+   * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + int getLocationFiltersCount(); + /** + * + * + *
+   * The location filters that the service applied to the specified query. If
+   * any filters are lat-lng based, the [JobLocation.location_type][] is
+   * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + java.util.List + getLocationFiltersOrBuilderList(); + /** + * + * + *
+   * The location filters that the service applied to the specified query. If
+   * any filters are lat-lng based, the [JobLocation.location_type][] is
+   * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + com.google.cloud.talent.v4beta1.LocationOrBuilder getLocationFiltersOrBuilder(int index); + + /** + * + * + *
+   * An estimation of the number of jobs that match the specified query.
+   * This number isn't guaranteed to be accurate. For accurate results,
+   * see [enable_precise_result_size][].
+   * 
+ * + * int32 estimated_total_size = 5; + */ + int getEstimatedTotalSize(); + + /** + * + * + *
+   * The precise result count, which is available only if the client set
+   * [enable_precise_result_size][] to `true`, or if the response
+   * is the last page of results. Otherwise, the value is `-1`.
+   * 
+ * + * int32 total_size = 6; + */ + int getTotalSize(); + + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + boolean hasMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder(); + + /** + * + * + *
+   * If query broadening is enabled, we may append additional results from the
+   * broadened query. This number indicates how many of the jobs returned in the
+   * jobs field are from the broadened query. These results are always at the
+   * end of the jobs list. In particular, a value of 0, or if the field isn't
+   * set, all the jobs in the jobs list are from the original
+   * (without broadening) query. If this field is non-zero, subsequent requests
+   * with offset after this result set should contain all broadened results.
+   * 
+ * + * int32 broadened_query_jobs_count = 8; + */ + int getBroadenedQueryJobsCount(); + + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + boolean hasSpellCorrection(); + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + com.google.cloud.talent.v4beta1.SpellingCorrection getSpellCorrection(); + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder getSpellCorrectionOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequest.java new file mode 100644 index 000000000000..f61d28144193 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequest.java @@ -0,0 +1,4437 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * The request body of the `SearchProfiles` call.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchProfilesRequest} + */ +public final class SearchProfilesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SearchProfilesRequest) + SearchProfilesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchProfilesRequest.newBuilder() to construct. + private SearchProfilesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchProfilesRequest() { + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + offset_ = 0; + disableSpellCheck_ = false; + orderBy_ = ""; + caseSensitiveSort_ = false; + histogramQueries_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SearchProfilesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.cloud.talent.v4beta1.RequestMetadata.Builder subBuilder = null; + if (requestMetadata_ != null) { + subBuilder = requestMetadata_.toBuilder(); + } + requestMetadata_ = + input.readMessage( + com.google.cloud.talent.v4beta1.RequestMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(requestMetadata_); + requestMetadata_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.cloud.talent.v4beta1.ProfileQuery.Builder subBuilder = null; + if (profileQuery_ != null) { + subBuilder = profileQuery_.toBuilder(); + } + profileQuery_ = + input.readMessage( + com.google.cloud.talent.v4beta1.ProfileQuery.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(profileQuery_); + profileQuery_ = subBuilder.buildPartial(); + } + + break; + } + case 32: + { + pageSize_ = input.readInt32(); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 48: + { + offset_ = input.readInt32(); + break; + } + case 56: + { + disableSpellCheck_ = input.readBool(); + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + case 72: + { + caseSensitiveSort_ = input.readBool(); + break; + } + case 82: + { + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + histogramQueries_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000200; + } + histogramQueries_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.HistogramQuery.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + histogramQueries_ = java.util.Collections.unmodifiableList(histogramQueries_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchProfilesRequest.class, + com.google.cloud.talent.v4beta1.SearchProfilesRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to search within.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to search within.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_METADATA_FIELD_NUMBER = 2; + private com.google.cloud.talent.v4beta1.RequestMetadata requestMetadata_; + /** + * + * + *
+   * Required.
+   * The meta information collected about the profile search user. This is used
+   * to improve the search quality of the service. These values are provided by
+   * users, and must be precise and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + public boolean hasRequestMetadata() { + return requestMetadata_ != null; + } + /** + * + * + *
+   * Required.
+   * The meta information collected about the profile search user. This is used
+   * to improve the search quality of the service. These values are provided by
+   * users, and must be precise and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + public com.google.cloud.talent.v4beta1.RequestMetadata getRequestMetadata() { + return requestMetadata_ == null + ? com.google.cloud.talent.v4beta1.RequestMetadata.getDefaultInstance() + : requestMetadata_; + } + /** + * + * + *
+   * Required.
+   * The meta information collected about the profile search user. This is used
+   * to improve the search quality of the service. These values are provided by
+   * users, and must be precise and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + public com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() { + return getRequestMetadata(); + } + + public static final int PROFILE_QUERY_FIELD_NUMBER = 3; + private com.google.cloud.talent.v4beta1.ProfileQuery profileQuery_; + /** + * + * + *
+   * Optional.
+   * Search query to execute. See
+   * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + public boolean hasProfileQuery() { + return profileQuery_ != null; + } + /** + * + * + *
+   * Optional.
+   * Search query to execute. See
+   * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + public com.google.cloud.talent.v4beta1.ProfileQuery getProfileQuery() { + return profileQuery_ == null + ? com.google.cloud.talent.v4beta1.ProfileQuery.getDefaultInstance() + : profileQuery_; + } + /** + * + * + *
+   * Optional.
+   * Search query to execute. See
+   * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + public com.google.cloud.talent.v4beta1.ProfileQueryOrBuilder getProfileQueryOrBuilder() { + return getProfileQuery(); + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 4; + private int pageSize_; + /** + * + * + *
+   * Optional.
+   * A limit on the number of profiles returned in the search results.
+   * A value above the default value 10 can increase search response time.
+   * The maximum value allowed is 100. Otherwise an error is thrown.
+   * 
+ * + * int32 page_size = 4; + */ + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 5; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * Optional.
+   * The pageToken, similar to offset enables users of the API to paginate
+   * through the search results. To retrieve the first page of results, set the
+   * pageToken to empty. The search response includes a
+   * [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token]
+   * field that can be used to populate the pageToken field for the next page of
+   * results. Using pageToken instead of offset increases the performance of the
+   * API, especially compared to larger offset values.
+   * 
+ * + * string page_token = 5; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The pageToken, similar to offset enables users of the API to paginate
+   * through the search results. To retrieve the first page of results, set the
+   * pageToken to empty. The search response includes a
+   * [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token]
+   * field that can be used to populate the pageToken field for the next page of
+   * results. Using pageToken instead of offset increases the performance of the
+   * API, especially compared to larger offset values.
+   * 
+ * + * string page_token = 5; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OFFSET_FIELD_NUMBER = 6; + private int offset_; + /** + * + * + *
+   * Optional.
+   * An integer that specifies the current offset (that is, starting result) in
+   * search results. This field is only considered if
+   * [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token]
+   * is unset.
+   * The maximum allowed value is 5000. Otherwise an error is thrown.
+   * For example, 0 means to search from the first profile, and 10 means to
+   * search from the 11th profile. This can be used for pagination, for example
+   * pageSize = 10 and offset = 10 means to search from the second page.
+   * 
+ * + * int32 offset = 6; + */ + public int getOffset() { + return offset_; + } + + public static final int DISABLE_SPELL_CHECK_FIELD_NUMBER = 7; + private boolean disableSpellCheck_; + /** + * + * + *
+   * Optional.
+   * This flag controls the spell-check feature. If `false`, the
+   * service attempts to correct a misspelled query.
+   * For example, "enginee" is corrected to "engineer".
+   * 
+ * + * bool disable_spell_check = 7; + */ + public boolean getDisableSpellCheck() { + return disableSpellCheck_; + } + + public static final int ORDER_BY_FIELD_NUMBER = 8; + private volatile java.lang.Object orderBy_; + /** + * + * + *
+   * Optional.
+   * The criteria that determines how search results are sorted.
+   * Defaults is "relevance desc" if no value is specified.
+   * Supported options are:
+   * * "relevance desc": By descending relevance, as determined by the API
+   *    algorithms.
+   * * "update_date desc": Sort by [Profile.update_date][] in descending order
+   *   (recently updated profiles first).
+   * * "create_date desc": Sort by [Profile.create_date][] in descending order
+   *   (recently created profiles first).
+   * * "first_name": Sort by [PersonStrcuturedName.given_name][] in ascending
+   *   order.
+   * * "first_name desc": Sort by [PersonStrcuturedName.given_name][] in
+   *   descending order.
+   * * "last_name": Sort by [PersonStrcuturedName.family_name][] in ascending
+   *   order.
+   * * "last_name desc": Sort by [PersonStrcuturedName.family_name][] in
+   *   ascending order.
+   * 
+ * + * string order_by = 8; + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The criteria that determines how search results are sorted.
+   * Defaults is "relevance desc" if no value is specified.
+   * Supported options are:
+   * * "relevance desc": By descending relevance, as determined by the API
+   *    algorithms.
+   * * "update_date desc": Sort by [Profile.update_date][] in descending order
+   *   (recently updated profiles first).
+   * * "create_date desc": Sort by [Profile.create_date][] in descending order
+   *   (recently created profiles first).
+   * * "first_name": Sort by [PersonStrcuturedName.given_name][] in ascending
+   *   order.
+   * * "first_name desc": Sort by [PersonStrcuturedName.given_name][] in
+   *   descending order.
+   * * "last_name": Sort by [PersonStrcuturedName.family_name][] in ascending
+   *   order.
+   * * "last_name desc": Sort by [PersonStrcuturedName.family_name][] in
+   *   ascending order.
+   * 
+ * + * string order_by = 8; + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CASE_SENSITIVE_SORT_FIELD_NUMBER = 9; + private boolean caseSensitiveSort_; + /** + * + * + *
+   * Optional.
+   * When sort by field is based on alphabetical order, sort values case
+   * sensitively (based on ASCII) when the value is set to true. Default value
+   * is case in-sensitive sort (false).
+   * 
+ * + * bool case_sensitive_sort = 9; + */ + public boolean getCaseSensitiveSort() { + return caseSensitiveSort_; + } + + public static final int HISTOGRAM_QUERIES_FIELD_NUMBER = 10; + private java.util.List histogramQueries_; + /** + * + * + *
+   * Optional.
+   * A list of expressions specifies histogram requests against matching
+   * profiles for
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * The expression syntax looks like a function definition with optional
+   * parameters.
+   * Function syntax: function_name(histogram_facet[, list of buckets])
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label])
+   * Bucket build-in function creates a bucket with range of [start, end). Note
+   * that the end is exclusive.
+   * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Histogram Facets:
+   * * admin1: Admin1 is a global placeholder for referring to state, province,
+   * or the particular term a country uses to define the geographic structure
+   * below the country level. Examples include states codes such as "CA", "IL",
+   * "NY", and provinces, such as "BC".
+   * * locality: Locality is a global placeholder for referring to city, town,
+   * or the particular term a country uses to define the geographic structure
+   * below the admin1 level. Examples include city names such as
+   * "Mountain View" and "New York".
+   * * extended_locality: Extended locality is concatenated version of admin1
+   * and locality with comma separator. For example, "Mountain View, CA" and
+   * "New York, NY".
+   * * postal_code: Postal code of profile which follows locale code.
+   * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+   *  JP, GB.
+   * * job_title: Normalized job titles specified in EmploymentHistory.
+   * * company_name: Normalized company name of profiles to match on.
+   * * institution: The school name. For example, "MIT",
+   * "University of California, Berkeley"
+   * * degree: Highest education degree in ISCED code. Each value in degree
+   * covers specific level of education, without any expansion to upper nor
+   * lower levels of education degree.
+   * * experience_in_months: experience in months. 0 means 0 month to 1 month
+   * (exclusive).
+   * * application_date: The application date specifies application start dates.
+   * See
+   * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+   * for more details.
+   * * application_outcome_reason: The application outcome reason specifies the
+   * outcome reasons of job application.
+   * See
+   * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+   * for more details.
+   * * application_last_stage: The application last stage specifies the last
+   * stage of job application.
+   * See
+   * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+   * for more details.
+   * * application_job_title: The application job title specifies the job
+   * applied for in the application.
+   * See
+   * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+   * for more details.
+   * * application_status: The application status specifies the status of job
+   * application.
+   * See
+   * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+   * for more details.
+   * * hirable_status: Hirable status specifies the profile's hirable status.
+   * * string_custom_attribute: String custom attributes. Values can be accessed
+   * via square bracket notation like string_custom_attribute["key1"].
+   * * numeric_custom_attribute: Numeric custom attributes. Values can be
+   * accessed via square bracket notation like numeric_custom_attribute["key1"].
+   * Example expressions:
+   * * count(admin1)
+   * * count(experience_in_months, [bucket(0, 12, "1 year"),
+   * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+   * * count(string_custom_attribute["assigned_recruiter"])
+   * * count(numeric_custom_attribute["favorite_number"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public java.util.List getHistogramQueriesList() { + return histogramQueries_; + } + /** + * + * + *
+   * Optional.
+   * A list of expressions specifies histogram requests against matching
+   * profiles for
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * The expression syntax looks like a function definition with optional
+   * parameters.
+   * Function syntax: function_name(histogram_facet[, list of buckets])
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label])
+   * Bucket build-in function creates a bucket with range of [start, end). Note
+   * that the end is exclusive.
+   * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Histogram Facets:
+   * * admin1: Admin1 is a global placeholder for referring to state, province,
+   * or the particular term a country uses to define the geographic structure
+   * below the country level. Examples include states codes such as "CA", "IL",
+   * "NY", and provinces, such as "BC".
+   * * locality: Locality is a global placeholder for referring to city, town,
+   * or the particular term a country uses to define the geographic structure
+   * below the admin1 level. Examples include city names such as
+   * "Mountain View" and "New York".
+   * * extended_locality: Extended locality is concatenated version of admin1
+   * and locality with comma separator. For example, "Mountain View, CA" and
+   * "New York, NY".
+   * * postal_code: Postal code of profile which follows locale code.
+   * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+   *  JP, GB.
+   * * job_title: Normalized job titles specified in EmploymentHistory.
+   * * company_name: Normalized company name of profiles to match on.
+   * * institution: The school name. For example, "MIT",
+   * "University of California, Berkeley"
+   * * degree: Highest education degree in ISCED code. Each value in degree
+   * covers specific level of education, without any expansion to upper nor
+   * lower levels of education degree.
+   * * experience_in_months: experience in months. 0 means 0 month to 1 month
+   * (exclusive).
+   * * application_date: The application date specifies application start dates.
+   * See
+   * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+   * for more details.
+   * * application_outcome_reason: The application outcome reason specifies the
+   * outcome reasons of job application.
+   * See
+   * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+   * for more details.
+   * * application_last_stage: The application last stage specifies the last
+   * stage of job application.
+   * See
+   * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+   * for more details.
+   * * application_job_title: The application job title specifies the job
+   * applied for in the application.
+   * See
+   * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+   * for more details.
+   * * application_status: The application status specifies the status of job
+   * application.
+   * See
+   * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+   * for more details.
+   * * hirable_status: Hirable status specifies the profile's hirable status.
+   * * string_custom_attribute: String custom attributes. Values can be accessed
+   * via square bracket notation like string_custom_attribute["key1"].
+   * * numeric_custom_attribute: Numeric custom attributes. Values can be
+   * accessed via square bracket notation like numeric_custom_attribute["key1"].
+   * Example expressions:
+   * * count(admin1)
+   * * count(experience_in_months, [bucket(0, 12, "1 year"),
+   * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+   * * count(string_custom_attribute["assigned_recruiter"])
+   * * count(numeric_custom_attribute["favorite_number"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public java.util.List + getHistogramQueriesOrBuilderList() { + return histogramQueries_; + } + /** + * + * + *
+   * Optional.
+   * A list of expressions specifies histogram requests against matching
+   * profiles for
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * The expression syntax looks like a function definition with optional
+   * parameters.
+   * Function syntax: function_name(histogram_facet[, list of buckets])
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label])
+   * Bucket build-in function creates a bucket with range of [start, end). Note
+   * that the end is exclusive.
+   * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Histogram Facets:
+   * * admin1: Admin1 is a global placeholder for referring to state, province,
+   * or the particular term a country uses to define the geographic structure
+   * below the country level. Examples include states codes such as "CA", "IL",
+   * "NY", and provinces, such as "BC".
+   * * locality: Locality is a global placeholder for referring to city, town,
+   * or the particular term a country uses to define the geographic structure
+   * below the admin1 level. Examples include city names such as
+   * "Mountain View" and "New York".
+   * * extended_locality: Extended locality is concatenated version of admin1
+   * and locality with comma separator. For example, "Mountain View, CA" and
+   * "New York, NY".
+   * * postal_code: Postal code of profile which follows locale code.
+   * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+   *  JP, GB.
+   * * job_title: Normalized job titles specified in EmploymentHistory.
+   * * company_name: Normalized company name of profiles to match on.
+   * * institution: The school name. For example, "MIT",
+   * "University of California, Berkeley"
+   * * degree: Highest education degree in ISCED code. Each value in degree
+   * covers specific level of education, without any expansion to upper nor
+   * lower levels of education degree.
+   * * experience_in_months: experience in months. 0 means 0 month to 1 month
+   * (exclusive).
+   * * application_date: The application date specifies application start dates.
+   * See
+   * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+   * for more details.
+   * * application_outcome_reason: The application outcome reason specifies the
+   * outcome reasons of job application.
+   * See
+   * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+   * for more details.
+   * * application_last_stage: The application last stage specifies the last
+   * stage of job application.
+   * See
+   * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+   * for more details.
+   * * application_job_title: The application job title specifies the job
+   * applied for in the application.
+   * See
+   * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+   * for more details.
+   * * application_status: The application status specifies the status of job
+   * application.
+   * See
+   * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+   * for more details.
+   * * hirable_status: Hirable status specifies the profile's hirable status.
+   * * string_custom_attribute: String custom attributes. Values can be accessed
+   * via square bracket notation like string_custom_attribute["key1"].
+   * * numeric_custom_attribute: Numeric custom attributes. Values can be
+   * accessed via square bracket notation like numeric_custom_attribute["key1"].
+   * Example expressions:
+   * * count(admin1)
+   * * count(experience_in_months, [bucket(0, 12, "1 year"),
+   * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+   * * count(string_custom_attribute["assigned_recruiter"])
+   * * count(numeric_custom_attribute["favorite_number"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public int getHistogramQueriesCount() { + return histogramQueries_.size(); + } + /** + * + * + *
+   * Optional.
+   * A list of expressions specifies histogram requests against matching
+   * profiles for
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * The expression syntax looks like a function definition with optional
+   * parameters.
+   * Function syntax: function_name(histogram_facet[, list of buckets])
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label])
+   * Bucket build-in function creates a bucket with range of [start, end). Note
+   * that the end is exclusive.
+   * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Histogram Facets:
+   * * admin1: Admin1 is a global placeholder for referring to state, province,
+   * or the particular term a country uses to define the geographic structure
+   * below the country level. Examples include states codes such as "CA", "IL",
+   * "NY", and provinces, such as "BC".
+   * * locality: Locality is a global placeholder for referring to city, town,
+   * or the particular term a country uses to define the geographic structure
+   * below the admin1 level. Examples include city names such as
+   * "Mountain View" and "New York".
+   * * extended_locality: Extended locality is concatenated version of admin1
+   * and locality with comma separator. For example, "Mountain View, CA" and
+   * "New York, NY".
+   * * postal_code: Postal code of profile which follows locale code.
+   * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+   *  JP, GB.
+   * * job_title: Normalized job titles specified in EmploymentHistory.
+   * * company_name: Normalized company name of profiles to match on.
+   * * institution: The school name. For example, "MIT",
+   * "University of California, Berkeley"
+   * * degree: Highest education degree in ISCED code. Each value in degree
+   * covers specific level of education, without any expansion to upper nor
+   * lower levels of education degree.
+   * * experience_in_months: experience in months. 0 means 0 month to 1 month
+   * (exclusive).
+   * * application_date: The application date specifies application start dates.
+   * See
+   * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+   * for more details.
+   * * application_outcome_reason: The application outcome reason specifies the
+   * outcome reasons of job application.
+   * See
+   * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+   * for more details.
+   * * application_last_stage: The application last stage specifies the last
+   * stage of job application.
+   * See
+   * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+   * for more details.
+   * * application_job_title: The application job title specifies the job
+   * applied for in the application.
+   * See
+   * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+   * for more details.
+   * * application_status: The application status specifies the status of job
+   * application.
+   * See
+   * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+   * for more details.
+   * * hirable_status: Hirable status specifies the profile's hirable status.
+   * * string_custom_attribute: String custom attributes. Values can be accessed
+   * via square bracket notation like string_custom_attribute["key1"].
+   * * numeric_custom_attribute: Numeric custom attributes. Values can be
+   * accessed via square bracket notation like numeric_custom_attribute["key1"].
+   * Example expressions:
+   * * count(admin1)
+   * * count(experience_in_months, [bucket(0, 12, "1 year"),
+   * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+   * * count(string_custom_attribute["assigned_recruiter"])
+   * * count(numeric_custom_attribute["favorite_number"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public com.google.cloud.talent.v4beta1.HistogramQuery getHistogramQueries(int index) { + return histogramQueries_.get(index); + } + /** + * + * + *
+   * Optional.
+   * A list of expressions specifies histogram requests against matching
+   * profiles for
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * The expression syntax looks like a function definition with optional
+   * parameters.
+   * Function syntax: function_name(histogram_facet[, list of buckets])
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label])
+   * Bucket build-in function creates a bucket with range of [start, end). Note
+   * that the end is exclusive.
+   * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Histogram Facets:
+   * * admin1: Admin1 is a global placeholder for referring to state, province,
+   * or the particular term a country uses to define the geographic structure
+   * below the country level. Examples include states codes such as "CA", "IL",
+   * "NY", and provinces, such as "BC".
+   * * locality: Locality is a global placeholder for referring to city, town,
+   * or the particular term a country uses to define the geographic structure
+   * below the admin1 level. Examples include city names such as
+   * "Mountain View" and "New York".
+   * * extended_locality: Extended locality is concatenated version of admin1
+   * and locality with comma separator. For example, "Mountain View, CA" and
+   * "New York, NY".
+   * * postal_code: Postal code of profile which follows locale code.
+   * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+   *  JP, GB.
+   * * job_title: Normalized job titles specified in EmploymentHistory.
+   * * company_name: Normalized company name of profiles to match on.
+   * * institution: The school name. For example, "MIT",
+   * "University of California, Berkeley"
+   * * degree: Highest education degree in ISCED code. Each value in degree
+   * covers specific level of education, without any expansion to upper nor
+   * lower levels of education degree.
+   * * experience_in_months: experience in months. 0 means 0 month to 1 month
+   * (exclusive).
+   * * application_date: The application date specifies application start dates.
+   * See
+   * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+   * for more details.
+   * * application_outcome_reason: The application outcome reason specifies the
+   * outcome reasons of job application.
+   * See
+   * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+   * for more details.
+   * * application_last_stage: The application last stage specifies the last
+   * stage of job application.
+   * See
+   * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+   * for more details.
+   * * application_job_title: The application job title specifies the job
+   * applied for in the application.
+   * See
+   * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+   * for more details.
+   * * application_status: The application status specifies the status of job
+   * application.
+   * See
+   * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+   * for more details.
+   * * hirable_status: Hirable status specifies the profile's hirable status.
+   * * string_custom_attribute: String custom attributes. Values can be accessed
+   * via square bracket notation like string_custom_attribute["key1"].
+   * * numeric_custom_attribute: Numeric custom attributes. Values can be
+   * accessed via square bracket notation like numeric_custom_attribute["key1"].
+   * Example expressions:
+   * * count(admin1)
+   * * count(experience_in_months, [bucket(0, 12, "1 year"),
+   * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+   * * count(string_custom_attribute["assigned_recruiter"])
+   * * count(numeric_custom_attribute["favorite_number"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder getHistogramQueriesOrBuilder( + int index) { + return histogramQueries_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (requestMetadata_ != null) { + output.writeMessage(2, getRequestMetadata()); + } + if (profileQuery_ != null) { + output.writeMessage(3, getProfileQuery()); + } + if (pageSize_ != 0) { + output.writeInt32(4, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, pageToken_); + } + if (offset_ != 0) { + output.writeInt32(6, offset_); + } + if (disableSpellCheck_ != false) { + output.writeBool(7, disableSpellCheck_); + } + if (!getOrderByBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, orderBy_); + } + if (caseSensitiveSort_ != false) { + output.writeBool(9, caseSensitiveSort_); + } + for (int i = 0; i < histogramQueries_.size(); i++) { + output.writeMessage(10, histogramQueries_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (requestMetadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRequestMetadata()); + } + if (profileQuery_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getProfileQuery()); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pageToken_); + } + if (offset_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, offset_); + } + if (disableSpellCheck_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, disableSpellCheck_); + } + if (!getOrderByBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, orderBy_); + } + if (caseSensitiveSort_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, caseSensitiveSort_); + } + for (int i = 0; i < histogramQueries_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, histogramQueries_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.SearchProfilesRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.SearchProfilesRequest other = + (com.google.cloud.talent.v4beta1.SearchProfilesRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && (hasRequestMetadata() == other.hasRequestMetadata()); + if (hasRequestMetadata()) { + result = result && getRequestMetadata().equals(other.getRequestMetadata()); + } + result = result && (hasProfileQuery() == other.hasProfileQuery()); + if (hasProfileQuery()) { + result = result && getProfileQuery().equals(other.getProfileQuery()); + } + result = result && (getPageSize() == other.getPageSize()); + result = result && getPageToken().equals(other.getPageToken()); + result = result && (getOffset() == other.getOffset()); + result = result && (getDisableSpellCheck() == other.getDisableSpellCheck()); + result = result && getOrderBy().equals(other.getOrderBy()); + result = result && (getCaseSensitiveSort() == other.getCaseSensitiveSort()); + result = result && getHistogramQueriesList().equals(other.getHistogramQueriesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasRequestMetadata()) { + hash = (37 * hash) + REQUEST_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getRequestMetadata().hashCode(); + } + if (hasProfileQuery()) { + hash = (37 * hash) + PROFILE_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getProfileQuery().hashCode(); + } + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getOffset(); + hash = (37 * hash) + DISABLE_SPELL_CHECK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableSpellCheck()); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + CASE_SENSITIVE_SORT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaseSensitiveSort()); + if (getHistogramQueriesCount() > 0) { + hash = (37 * hash) + HISTOGRAM_QUERIES_FIELD_NUMBER; + hash = (53 * hash) + getHistogramQueriesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.SearchProfilesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request body of the `SearchProfiles` call.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchProfilesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SearchProfilesRequest) + com.google.cloud.talent.v4beta1.SearchProfilesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchProfilesRequest.class, + com.google.cloud.talent.v4beta1.SearchProfilesRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.SearchProfilesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getHistogramQueriesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (requestMetadataBuilder_ == null) { + requestMetadata_ = null; + } else { + requestMetadata_ = null; + requestMetadataBuilder_ = null; + } + if (profileQueryBuilder_ == null) { + profileQuery_ = null; + } else { + profileQuery_ = null; + profileQueryBuilder_ = null; + } + pageSize_ = 0; + + pageToken_ = ""; + + offset_ = 0; + + disableSpellCheck_ = false; + + orderBy_ = ""; + + caseSensitiveSort_ = false; + + if (histogramQueriesBuilder_ == null) { + histogramQueries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + } else { + histogramQueriesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchProfilesRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.SearchProfilesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchProfilesRequest build() { + com.google.cloud.talent.v4beta1.SearchProfilesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchProfilesRequest buildPartial() { + com.google.cloud.talent.v4beta1.SearchProfilesRequest result = + new com.google.cloud.talent.v4beta1.SearchProfilesRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.parent_ = parent_; + if (requestMetadataBuilder_ == null) { + result.requestMetadata_ = requestMetadata_; + } else { + result.requestMetadata_ = requestMetadataBuilder_.build(); + } + if (profileQueryBuilder_ == null) { + result.profileQuery_ = profileQuery_; + } else { + result.profileQuery_ = profileQueryBuilder_.build(); + } + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.offset_ = offset_; + result.disableSpellCheck_ = disableSpellCheck_; + result.orderBy_ = orderBy_; + result.caseSensitiveSort_ = caseSensitiveSort_; + if (histogramQueriesBuilder_ == null) { + if (((bitField0_ & 0x00000200) == 0x00000200)) { + histogramQueries_ = java.util.Collections.unmodifiableList(histogramQueries_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.histogramQueries_ = histogramQueries_; + } else { + result.histogramQueries_ = histogramQueriesBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.SearchProfilesRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.SearchProfilesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.SearchProfilesRequest other) { + if (other == com.google.cloud.talent.v4beta1.SearchProfilesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasRequestMetadata()) { + mergeRequestMetadata(other.getRequestMetadata()); + } + if (other.hasProfileQuery()) { + mergeProfileQuery(other.getProfileQuery()); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (other.getOffset() != 0) { + setOffset(other.getOffset()); + } + if (other.getDisableSpellCheck() != false) { + setDisableSpellCheck(other.getDisableSpellCheck()); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + if (other.getCaseSensitiveSort() != false) { + setCaseSensitiveSort(other.getCaseSensitiveSort()); + } + if (histogramQueriesBuilder_ == null) { + if (!other.histogramQueries_.isEmpty()) { + if (histogramQueries_.isEmpty()) { + histogramQueries_ = other.histogramQueries_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureHistogramQueriesIsMutable(); + histogramQueries_.addAll(other.histogramQueries_); + } + onChanged(); + } + } else { + if (!other.histogramQueries_.isEmpty()) { + if (histogramQueriesBuilder_.isEmpty()) { + histogramQueriesBuilder_.dispose(); + histogramQueriesBuilder_ = null; + histogramQueries_ = other.histogramQueries_; + bitField0_ = (bitField0_ & ~0x00000200); + histogramQueriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHistogramQueriesFieldBuilder() + : null; + } else { + histogramQueriesBuilder_.addAllMessages(other.histogramQueries_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.SearchProfilesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.SearchProfilesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to search within.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to search within.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to search within.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to search within.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to search within.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.RequestMetadata requestMetadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.RequestMetadata, + com.google.cloud.talent.v4beta1.RequestMetadata.Builder, + com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder> + requestMetadataBuilder_; + /** + * + * + *
+     * Required.
+     * The meta information collected about the profile search user. This is used
+     * to improve the search quality of the service. These values are provided by
+     * users, and must be precise and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + public boolean hasRequestMetadata() { + return requestMetadataBuilder_ != null || requestMetadata_ != null; + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the profile search user. This is used
+     * to improve the search quality of the service. These values are provided by
+     * users, and must be precise and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + public com.google.cloud.talent.v4beta1.RequestMetadata getRequestMetadata() { + if (requestMetadataBuilder_ == null) { + return requestMetadata_ == null + ? com.google.cloud.talent.v4beta1.RequestMetadata.getDefaultInstance() + : requestMetadata_; + } else { + return requestMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the profile search user. This is used
+     * to improve the search quality of the service. These values are provided by
+     * users, and must be precise and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + public Builder setRequestMetadata(com.google.cloud.talent.v4beta1.RequestMetadata value) { + if (requestMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + requestMetadata_ = value; + onChanged(); + } else { + requestMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the profile search user. This is used
+     * to improve the search quality of the service. These values are provided by
+     * users, and must be precise and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + public Builder setRequestMetadata( + com.google.cloud.talent.v4beta1.RequestMetadata.Builder builderForValue) { + if (requestMetadataBuilder_ == null) { + requestMetadata_ = builderForValue.build(); + onChanged(); + } else { + requestMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the profile search user. This is used
+     * to improve the search quality of the service. These values are provided by
+     * users, and must be precise and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + public Builder mergeRequestMetadata(com.google.cloud.talent.v4beta1.RequestMetadata value) { + if (requestMetadataBuilder_ == null) { + if (requestMetadata_ != null) { + requestMetadata_ = + com.google.cloud.talent.v4beta1.RequestMetadata.newBuilder(requestMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + requestMetadata_ = value; + } + onChanged(); + } else { + requestMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the profile search user. This is used
+     * to improve the search quality of the service. These values are provided by
+     * users, and must be precise and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + public Builder clearRequestMetadata() { + if (requestMetadataBuilder_ == null) { + requestMetadata_ = null; + onChanged(); + } else { + requestMetadata_ = null; + requestMetadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the profile search user. This is used
+     * to improve the search quality of the service. These values are provided by
+     * users, and must be precise and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + public com.google.cloud.talent.v4beta1.RequestMetadata.Builder getRequestMetadataBuilder() { + + onChanged(); + return getRequestMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the profile search user. This is used
+     * to improve the search quality of the service. These values are provided by
+     * users, and must be precise and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + public com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() { + if (requestMetadataBuilder_ != null) { + return requestMetadataBuilder_.getMessageOrBuilder(); + } else { + return requestMetadata_ == null + ? com.google.cloud.talent.v4beta1.RequestMetadata.getDefaultInstance() + : requestMetadata_; + } + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the profile search user. This is used
+     * to improve the search quality of the service. These values are provided by
+     * users, and must be precise and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.RequestMetadata, + com.google.cloud.talent.v4beta1.RequestMetadata.Builder, + com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder> + getRequestMetadataFieldBuilder() { + if (requestMetadataBuilder_ == null) { + requestMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.RequestMetadata, + com.google.cloud.talent.v4beta1.RequestMetadata.Builder, + com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder>( + getRequestMetadata(), getParentForChildren(), isClean()); + requestMetadata_ = null; + } + return requestMetadataBuilder_; + } + + private com.google.cloud.talent.v4beta1.ProfileQuery profileQuery_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ProfileQuery, + com.google.cloud.talent.v4beta1.ProfileQuery.Builder, + com.google.cloud.talent.v4beta1.ProfileQueryOrBuilder> + profileQueryBuilder_; + /** + * + * + *
+     * Optional.
+     * Search query to execute. See
+     * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + public boolean hasProfileQuery() { + return profileQueryBuilder_ != null || profileQuery_ != null; + } + /** + * + * + *
+     * Optional.
+     * Search query to execute. See
+     * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + public com.google.cloud.talent.v4beta1.ProfileQuery getProfileQuery() { + if (profileQueryBuilder_ == null) { + return profileQuery_ == null + ? com.google.cloud.talent.v4beta1.ProfileQuery.getDefaultInstance() + : profileQuery_; + } else { + return profileQueryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Search query to execute. See
+     * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + public Builder setProfileQuery(com.google.cloud.talent.v4beta1.ProfileQuery value) { + if (profileQueryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profileQuery_ = value; + onChanged(); + } else { + profileQueryBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Search query to execute. See
+     * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + public Builder setProfileQuery( + com.google.cloud.talent.v4beta1.ProfileQuery.Builder builderForValue) { + if (profileQueryBuilder_ == null) { + profileQuery_ = builderForValue.build(); + onChanged(); + } else { + profileQueryBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Search query to execute. See
+     * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + public Builder mergeProfileQuery(com.google.cloud.talent.v4beta1.ProfileQuery value) { + if (profileQueryBuilder_ == null) { + if (profileQuery_ != null) { + profileQuery_ = + com.google.cloud.talent.v4beta1.ProfileQuery.newBuilder(profileQuery_) + .mergeFrom(value) + .buildPartial(); + } else { + profileQuery_ = value; + } + onChanged(); + } else { + profileQueryBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Search query to execute. See
+     * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + public Builder clearProfileQuery() { + if (profileQueryBuilder_ == null) { + profileQuery_ = null; + onChanged(); + } else { + profileQuery_ = null; + profileQueryBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Search query to execute. See
+     * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + public com.google.cloud.talent.v4beta1.ProfileQuery.Builder getProfileQueryBuilder() { + + onChanged(); + return getProfileQueryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Search query to execute. See
+     * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + public com.google.cloud.talent.v4beta1.ProfileQueryOrBuilder getProfileQueryOrBuilder() { + if (profileQueryBuilder_ != null) { + return profileQueryBuilder_.getMessageOrBuilder(); + } else { + return profileQuery_ == null + ? com.google.cloud.talent.v4beta1.ProfileQuery.getDefaultInstance() + : profileQuery_; + } + } + /** + * + * + *
+     * Optional.
+     * Search query to execute. See
+     * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ProfileQuery, + com.google.cloud.talent.v4beta1.ProfileQuery.Builder, + com.google.cloud.talent.v4beta1.ProfileQueryOrBuilder> + getProfileQueryFieldBuilder() { + if (profileQueryBuilder_ == null) { + profileQueryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ProfileQuery, + com.google.cloud.talent.v4beta1.ProfileQuery.Builder, + com.google.cloud.talent.v4beta1.ProfileQueryOrBuilder>( + getProfileQuery(), getParentForChildren(), isClean()); + profileQuery_ = null; + } + return profileQueryBuilder_; + } + + private int pageSize_; + /** + * + * + *
+     * Optional.
+     * A limit on the number of profiles returned in the search results.
+     * A value above the default value 10 can increase search response time.
+     * The maximum value allowed is 100. Otherwise an error is thrown.
+     * 
+ * + * int32 page_size = 4; + */ + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional.
+     * A limit on the number of profiles returned in the search results.
+     * A value above the default value 10 can increase search response time.
+     * The maximum value allowed is 100. Otherwise an error is thrown.
+     * 
+ * + * int32 page_size = 4; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A limit on the number of profiles returned in the search results.
+     * A value above the default value 10 can increase search response time.
+     * The maximum value allowed is 100. Otherwise an error is thrown.
+     * 
+ * + * int32 page_size = 4; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional.
+     * The pageToken, similar to offset enables users of the API to paginate
+     * through the search results. To retrieve the first page of results, set the
+     * pageToken to empty. The search response includes a
+     * [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token]
+     * field that can be used to populate the pageToken field for the next page of
+     * results. Using pageToken instead of offset increases the performance of the
+     * API, especially compared to larger offset values.
+     * 
+ * + * string page_token = 5; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The pageToken, similar to offset enables users of the API to paginate
+     * through the search results. To retrieve the first page of results, set the
+     * pageToken to empty. The search response includes a
+     * [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token]
+     * field that can be used to populate the pageToken field for the next page of
+     * results. Using pageToken instead of offset increases the performance of the
+     * API, especially compared to larger offset values.
+     * 
+ * + * string page_token = 5; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The pageToken, similar to offset enables users of the API to paginate
+     * through the search results. To retrieve the first page of results, set the
+     * pageToken to empty. The search response includes a
+     * [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token]
+     * field that can be used to populate the pageToken field for the next page of
+     * results. Using pageToken instead of offset increases the performance of the
+     * API, especially compared to larger offset values.
+     * 
+ * + * string page_token = 5; + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The pageToken, similar to offset enables users of the API to paginate
+     * through the search results. To retrieve the first page of results, set the
+     * pageToken to empty. The search response includes a
+     * [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token]
+     * field that can be used to populate the pageToken field for the next page of
+     * results. Using pageToken instead of offset increases the performance of the
+     * API, especially compared to larger offset values.
+     * 
+ * + * string page_token = 5; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The pageToken, similar to offset enables users of the API to paginate
+     * through the search results. To retrieve the first page of results, set the
+     * pageToken to empty. The search response includes a
+     * [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token]
+     * field that can be used to populate the pageToken field for the next page of
+     * results. Using pageToken instead of offset increases the performance of the
+     * API, especially compared to larger offset values.
+     * 
+ * + * string page_token = 5; + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private int offset_; + /** + * + * + *
+     * Optional.
+     * An integer that specifies the current offset (that is, starting result) in
+     * search results. This field is only considered if
+     * [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token]
+     * is unset.
+     * The maximum allowed value is 5000. Otherwise an error is thrown.
+     * For example, 0 means to search from the first profile, and 10 means to
+     * search from the 11th profile. This can be used for pagination, for example
+     * pageSize = 10 and offset = 10 means to search from the second page.
+     * 
+ * + * int32 offset = 6; + */ + public int getOffset() { + return offset_; + } + /** + * + * + *
+     * Optional.
+     * An integer that specifies the current offset (that is, starting result) in
+     * search results. This field is only considered if
+     * [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token]
+     * is unset.
+     * The maximum allowed value is 5000. Otherwise an error is thrown.
+     * For example, 0 means to search from the first profile, and 10 means to
+     * search from the 11th profile. This can be used for pagination, for example
+     * pageSize = 10 and offset = 10 means to search from the second page.
+     * 
+ * + * int32 offset = 6; + */ + public Builder setOffset(int value) { + + offset_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * An integer that specifies the current offset (that is, starting result) in
+     * search results. This field is only considered if
+     * [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token]
+     * is unset.
+     * The maximum allowed value is 5000. Otherwise an error is thrown.
+     * For example, 0 means to search from the first profile, and 10 means to
+     * search from the 11th profile. This can be used for pagination, for example
+     * pageSize = 10 and offset = 10 means to search from the second page.
+     * 
+ * + * int32 offset = 6; + */ + public Builder clearOffset() { + + offset_ = 0; + onChanged(); + return this; + } + + private boolean disableSpellCheck_; + /** + * + * + *
+     * Optional.
+     * This flag controls the spell-check feature. If `false`, the
+     * service attempts to correct a misspelled query.
+     * For example, "enginee" is corrected to "engineer".
+     * 
+ * + * bool disable_spell_check = 7; + */ + public boolean getDisableSpellCheck() { + return disableSpellCheck_; + } + /** + * + * + *
+     * Optional.
+     * This flag controls the spell-check feature. If `false`, the
+     * service attempts to correct a misspelled query.
+     * For example, "enginee" is corrected to "engineer".
+     * 
+ * + * bool disable_spell_check = 7; + */ + public Builder setDisableSpellCheck(boolean value) { + + disableSpellCheck_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This flag controls the spell-check feature. If `false`, the
+     * service attempts to correct a misspelled query.
+     * For example, "enginee" is corrected to "engineer".
+     * 
+ * + * bool disable_spell_check = 7; + */ + public Builder clearDisableSpellCheck() { + + disableSpellCheck_ = false; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * Optional.
+     * The criteria that determines how search results are sorted.
+     * Defaults is "relevance desc" if no value is specified.
+     * Supported options are:
+     * * "relevance desc": By descending relevance, as determined by the API
+     *    algorithms.
+     * * "update_date desc": Sort by [Profile.update_date][] in descending order
+     *   (recently updated profiles first).
+     * * "create_date desc": Sort by [Profile.create_date][] in descending order
+     *   (recently created profiles first).
+     * * "first_name": Sort by [PersonStrcuturedName.given_name][] in ascending
+     *   order.
+     * * "first_name desc": Sort by [PersonStrcuturedName.given_name][] in
+     *   descending order.
+     * * "last_name": Sort by [PersonStrcuturedName.family_name][] in ascending
+     *   order.
+     * * "last_name desc": Sort by [PersonStrcuturedName.family_name][] in
+     *   ascending order.
+     * 
+ * + * string order_by = 8; + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The criteria that determines how search results are sorted.
+     * Defaults is "relevance desc" if no value is specified.
+     * Supported options are:
+     * * "relevance desc": By descending relevance, as determined by the API
+     *    algorithms.
+     * * "update_date desc": Sort by [Profile.update_date][] in descending order
+     *   (recently updated profiles first).
+     * * "create_date desc": Sort by [Profile.create_date][] in descending order
+     *   (recently created profiles first).
+     * * "first_name": Sort by [PersonStrcuturedName.given_name][] in ascending
+     *   order.
+     * * "first_name desc": Sort by [PersonStrcuturedName.given_name][] in
+     *   descending order.
+     * * "last_name": Sort by [PersonStrcuturedName.family_name][] in ascending
+     *   order.
+     * * "last_name desc": Sort by [PersonStrcuturedName.family_name][] in
+     *   ascending order.
+     * 
+ * + * string order_by = 8; + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The criteria that determines how search results are sorted.
+     * Defaults is "relevance desc" if no value is specified.
+     * Supported options are:
+     * * "relevance desc": By descending relevance, as determined by the API
+     *    algorithms.
+     * * "update_date desc": Sort by [Profile.update_date][] in descending order
+     *   (recently updated profiles first).
+     * * "create_date desc": Sort by [Profile.create_date][] in descending order
+     *   (recently created profiles first).
+     * * "first_name": Sort by [PersonStrcuturedName.given_name][] in ascending
+     *   order.
+     * * "first_name desc": Sort by [PersonStrcuturedName.given_name][] in
+     *   descending order.
+     * * "last_name": Sort by [PersonStrcuturedName.family_name][] in ascending
+     *   order.
+     * * "last_name desc": Sort by [PersonStrcuturedName.family_name][] in
+     *   ascending order.
+     * 
+ * + * string order_by = 8; + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + orderBy_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The criteria that determines how search results are sorted.
+     * Defaults is "relevance desc" if no value is specified.
+     * Supported options are:
+     * * "relevance desc": By descending relevance, as determined by the API
+     *    algorithms.
+     * * "update_date desc": Sort by [Profile.update_date][] in descending order
+     *   (recently updated profiles first).
+     * * "create_date desc": Sort by [Profile.create_date][] in descending order
+     *   (recently created profiles first).
+     * * "first_name": Sort by [PersonStrcuturedName.given_name][] in ascending
+     *   order.
+     * * "first_name desc": Sort by [PersonStrcuturedName.given_name][] in
+     *   descending order.
+     * * "last_name": Sort by [PersonStrcuturedName.family_name][] in ascending
+     *   order.
+     * * "last_name desc": Sort by [PersonStrcuturedName.family_name][] in
+     *   ascending order.
+     * 
+ * + * string order_by = 8; + */ + public Builder clearOrderBy() { + + orderBy_ = getDefaultInstance().getOrderBy(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The criteria that determines how search results are sorted.
+     * Defaults is "relevance desc" if no value is specified.
+     * Supported options are:
+     * * "relevance desc": By descending relevance, as determined by the API
+     *    algorithms.
+     * * "update_date desc": Sort by [Profile.update_date][] in descending order
+     *   (recently updated profiles first).
+     * * "create_date desc": Sort by [Profile.create_date][] in descending order
+     *   (recently created profiles first).
+     * * "first_name": Sort by [PersonStrcuturedName.given_name][] in ascending
+     *   order.
+     * * "first_name desc": Sort by [PersonStrcuturedName.given_name][] in
+     *   descending order.
+     * * "last_name": Sort by [PersonStrcuturedName.family_name][] in ascending
+     *   order.
+     * * "last_name desc": Sort by [PersonStrcuturedName.family_name][] in
+     *   ascending order.
+     * 
+ * + * string order_by = 8; + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + orderBy_ = value; + onChanged(); + return this; + } + + private boolean caseSensitiveSort_; + /** + * + * + *
+     * Optional.
+     * When sort by field is based on alphabetical order, sort values case
+     * sensitively (based on ASCII) when the value is set to true. Default value
+     * is case in-sensitive sort (false).
+     * 
+ * + * bool case_sensitive_sort = 9; + */ + public boolean getCaseSensitiveSort() { + return caseSensitiveSort_; + } + /** + * + * + *
+     * Optional.
+     * When sort by field is based on alphabetical order, sort values case
+     * sensitively (based on ASCII) when the value is set to true. Default value
+     * is case in-sensitive sort (false).
+     * 
+ * + * bool case_sensitive_sort = 9; + */ + public Builder setCaseSensitiveSort(boolean value) { + + caseSensitiveSort_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * When sort by field is based on alphabetical order, sort values case
+     * sensitively (based on ASCII) when the value is set to true. Default value
+     * is case in-sensitive sort (false).
+     * 
+ * + * bool case_sensitive_sort = 9; + */ + public Builder clearCaseSensitiveSort() { + + caseSensitiveSort_ = false; + onChanged(); + return this; + } + + private java.util.List histogramQueries_ = + java.util.Collections.emptyList(); + + private void ensureHistogramQueriesIsMutable() { + if (!((bitField0_ & 0x00000200) == 0x00000200)) { + histogramQueries_ = + new java.util.ArrayList( + histogramQueries_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQuery, + com.google.cloud.talent.v4beta1.HistogramQuery.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder> + histogramQueriesBuilder_; + + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public java.util.List + getHistogramQueriesList() { + if (histogramQueriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(histogramQueries_); + } else { + return histogramQueriesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public int getHistogramQueriesCount() { + if (histogramQueriesBuilder_ == null) { + return histogramQueries_.size(); + } else { + return histogramQueriesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public com.google.cloud.talent.v4beta1.HistogramQuery getHistogramQueries(int index) { + if (histogramQueriesBuilder_ == null) { + return histogramQueries_.get(index); + } else { + return histogramQueriesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public Builder setHistogramQueries( + int index, com.google.cloud.talent.v4beta1.HistogramQuery value) { + if (histogramQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueriesIsMutable(); + histogramQueries_.set(index, value); + onChanged(); + } else { + histogramQueriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public Builder setHistogramQueries( + int index, com.google.cloud.talent.v4beta1.HistogramQuery.Builder builderForValue) { + if (histogramQueriesBuilder_ == null) { + ensureHistogramQueriesIsMutable(); + histogramQueries_.set(index, builderForValue.build()); + onChanged(); + } else { + histogramQueriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public Builder addHistogramQueries(com.google.cloud.talent.v4beta1.HistogramQuery value) { + if (histogramQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueriesIsMutable(); + histogramQueries_.add(value); + onChanged(); + } else { + histogramQueriesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public Builder addHistogramQueries( + int index, com.google.cloud.talent.v4beta1.HistogramQuery value) { + if (histogramQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueriesIsMutable(); + histogramQueries_.add(index, value); + onChanged(); + } else { + histogramQueriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public Builder addHistogramQueries( + com.google.cloud.talent.v4beta1.HistogramQuery.Builder builderForValue) { + if (histogramQueriesBuilder_ == null) { + ensureHistogramQueriesIsMutable(); + histogramQueries_.add(builderForValue.build()); + onChanged(); + } else { + histogramQueriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public Builder addHistogramQueries( + int index, com.google.cloud.talent.v4beta1.HistogramQuery.Builder builderForValue) { + if (histogramQueriesBuilder_ == null) { + ensureHistogramQueriesIsMutable(); + histogramQueries_.add(index, builderForValue.build()); + onChanged(); + } else { + histogramQueriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public Builder addAllHistogramQueries( + java.lang.Iterable values) { + if (histogramQueriesBuilder_ == null) { + ensureHistogramQueriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, histogramQueries_); + onChanged(); + } else { + histogramQueriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public Builder clearHistogramQueries() { + if (histogramQueriesBuilder_ == null) { + histogramQueries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + histogramQueriesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public Builder removeHistogramQueries(int index) { + if (histogramQueriesBuilder_ == null) { + ensureHistogramQueriesIsMutable(); + histogramQueries_.remove(index); + onChanged(); + } else { + histogramQueriesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public com.google.cloud.talent.v4beta1.HistogramQuery.Builder getHistogramQueriesBuilder( + int index) { + return getHistogramQueriesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder getHistogramQueriesOrBuilder( + int index) { + if (histogramQueriesBuilder_ == null) { + return histogramQueries_.get(index); + } else { + return histogramQueriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public java.util.List + getHistogramQueriesOrBuilderList() { + if (histogramQueriesBuilder_ != null) { + return histogramQueriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(histogramQueries_); + } + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public com.google.cloud.talent.v4beta1.HistogramQuery.Builder addHistogramQueriesBuilder() { + return getHistogramQueriesFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.HistogramQuery.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public com.google.cloud.talent.v4beta1.HistogramQuery.Builder addHistogramQueriesBuilder( + int index) { + return getHistogramQueriesFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.HistogramQuery.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public java.util.List + getHistogramQueriesBuilderList() { + return getHistogramQueriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQuery, + com.google.cloud.talent.v4beta1.HistogramQuery.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder> + getHistogramQueriesFieldBuilder() { + if (histogramQueriesBuilder_ == null) { + histogramQueriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQuery, + com.google.cloud.talent.v4beta1.HistogramQuery.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder>( + histogramQueries_, + ((bitField0_ & 0x00000200) == 0x00000200), + getParentForChildren(), + isClean()); + histogramQueries_ = null; + } + return histogramQueriesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SearchProfilesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SearchProfilesRequest) + private static final com.google.cloud.talent.v4beta1.SearchProfilesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SearchProfilesRequest(); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchProfilesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SearchProfilesRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchProfilesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequestOrBuilder.java new file mode 100644 index 000000000000..4a6216e74b90 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequestOrBuilder.java @@ -0,0 +1,717 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface SearchProfilesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SearchProfilesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to search within.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to search within.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required.
+   * The meta information collected about the profile search user. This is used
+   * to improve the search quality of the service. These values are provided by
+   * users, and must be precise and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + boolean hasRequestMetadata(); + /** + * + * + *
+   * Required.
+   * The meta information collected about the profile search user. This is used
+   * to improve the search quality of the service. These values are provided by
+   * users, and must be precise and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + com.google.cloud.talent.v4beta1.RequestMetadata getRequestMetadata(); + /** + * + * + *
+   * Required.
+   * The meta information collected about the profile search user. This is used
+   * to improve the search quality of the service. These values are provided by
+   * users, and must be precise and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder getRequestMetadataOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Search query to execute. See
+   * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + boolean hasProfileQuery(); + /** + * + * + *
+   * Optional.
+   * Search query to execute. See
+   * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + com.google.cloud.talent.v4beta1.ProfileQuery getProfileQuery(); + /** + * + * + *
+   * Optional.
+   * Search query to execute. See
+   * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + com.google.cloud.talent.v4beta1.ProfileQueryOrBuilder getProfileQueryOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * A limit on the number of profiles returned in the search results.
+   * A value above the default value 10 can increase search response time.
+   * The maximum value allowed is 100. Otherwise an error is thrown.
+   * 
+ * + * int32 page_size = 4; + */ + int getPageSize(); + + /** + * + * + *
+   * Optional.
+   * The pageToken, similar to offset enables users of the API to paginate
+   * through the search results. To retrieve the first page of results, set the
+   * pageToken to empty. The search response includes a
+   * [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token]
+   * field that can be used to populate the pageToken field for the next page of
+   * results. Using pageToken instead of offset increases the performance of the
+   * API, especially compared to larger offset values.
+   * 
+ * + * string page_token = 5; + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional.
+   * The pageToken, similar to offset enables users of the API to paginate
+   * through the search results. To retrieve the first page of results, set the
+   * pageToken to empty. The search response includes a
+   * [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token]
+   * field that can be used to populate the pageToken field for the next page of
+   * results. Using pageToken instead of offset increases the performance of the
+   * API, especially compared to larger offset values.
+   * 
+ * + * string page_token = 5; + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional.
+   * An integer that specifies the current offset (that is, starting result) in
+   * search results. This field is only considered if
+   * [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token]
+   * is unset.
+   * The maximum allowed value is 5000. Otherwise an error is thrown.
+   * For example, 0 means to search from the first profile, and 10 means to
+   * search from the 11th profile. This can be used for pagination, for example
+   * pageSize = 10 and offset = 10 means to search from the second page.
+   * 
+ * + * int32 offset = 6; + */ + int getOffset(); + + /** + * + * + *
+   * Optional.
+   * This flag controls the spell-check feature. If `false`, the
+   * service attempts to correct a misspelled query.
+   * For example, "enginee" is corrected to "engineer".
+   * 
+ * + * bool disable_spell_check = 7; + */ + boolean getDisableSpellCheck(); + + /** + * + * + *
+   * Optional.
+   * The criteria that determines how search results are sorted.
+   * Defaults is "relevance desc" if no value is specified.
+   * Supported options are:
+   * * "relevance desc": By descending relevance, as determined by the API
+   *    algorithms.
+   * * "update_date desc": Sort by [Profile.update_date][] in descending order
+   *   (recently updated profiles first).
+   * * "create_date desc": Sort by [Profile.create_date][] in descending order
+   *   (recently created profiles first).
+   * * "first_name": Sort by [PersonStrcuturedName.given_name][] in ascending
+   *   order.
+   * * "first_name desc": Sort by [PersonStrcuturedName.given_name][] in
+   *   descending order.
+   * * "last_name": Sort by [PersonStrcuturedName.family_name][] in ascending
+   *   order.
+   * * "last_name desc": Sort by [PersonStrcuturedName.family_name][] in
+   *   ascending order.
+   * 
+ * + * string order_by = 8; + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Optional.
+   * The criteria that determines how search results are sorted.
+   * Defaults is "relevance desc" if no value is specified.
+   * Supported options are:
+   * * "relevance desc": By descending relevance, as determined by the API
+   *    algorithms.
+   * * "update_date desc": Sort by [Profile.update_date][] in descending order
+   *   (recently updated profiles first).
+   * * "create_date desc": Sort by [Profile.create_date][] in descending order
+   *   (recently created profiles first).
+   * * "first_name": Sort by [PersonStrcuturedName.given_name][] in ascending
+   *   order.
+   * * "first_name desc": Sort by [PersonStrcuturedName.given_name][] in
+   *   descending order.
+   * * "last_name": Sort by [PersonStrcuturedName.family_name][] in ascending
+   *   order.
+   * * "last_name desc": Sort by [PersonStrcuturedName.family_name][] in
+   *   ascending order.
+   * 
+ * + * string order_by = 8; + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Optional.
+   * When sort by field is based on alphabetical order, sort values case
+   * sensitively (based on ASCII) when the value is set to true. Default value
+   * is case in-sensitive sort (false).
+   * 
+ * + * bool case_sensitive_sort = 9; + */ + boolean getCaseSensitiveSort(); + + /** + * + * + *
+   * Optional.
+   * A list of expressions specifies histogram requests against matching
+   * profiles for
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * The expression syntax looks like a function definition with optional
+   * parameters.
+   * Function syntax: function_name(histogram_facet[, list of buckets])
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label])
+   * Bucket build-in function creates a bucket with range of [start, end). Note
+   * that the end is exclusive.
+   * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Histogram Facets:
+   * * admin1: Admin1 is a global placeholder for referring to state, province,
+   * or the particular term a country uses to define the geographic structure
+   * below the country level. Examples include states codes such as "CA", "IL",
+   * "NY", and provinces, such as "BC".
+   * * locality: Locality is a global placeholder for referring to city, town,
+   * or the particular term a country uses to define the geographic structure
+   * below the admin1 level. Examples include city names such as
+   * "Mountain View" and "New York".
+   * * extended_locality: Extended locality is concatenated version of admin1
+   * and locality with comma separator. For example, "Mountain View, CA" and
+   * "New York, NY".
+   * * postal_code: Postal code of profile which follows locale code.
+   * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+   *  JP, GB.
+   * * job_title: Normalized job titles specified in EmploymentHistory.
+   * * company_name: Normalized company name of profiles to match on.
+   * * institution: The school name. For example, "MIT",
+   * "University of California, Berkeley"
+   * * degree: Highest education degree in ISCED code. Each value in degree
+   * covers specific level of education, without any expansion to upper nor
+   * lower levels of education degree.
+   * * experience_in_months: experience in months. 0 means 0 month to 1 month
+   * (exclusive).
+   * * application_date: The application date specifies application start dates.
+   * See
+   * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+   * for more details.
+   * * application_outcome_reason: The application outcome reason specifies the
+   * outcome reasons of job application.
+   * See
+   * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+   * for more details.
+   * * application_last_stage: The application last stage specifies the last
+   * stage of job application.
+   * See
+   * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+   * for more details.
+   * * application_job_title: The application job title specifies the job
+   * applied for in the application.
+   * See
+   * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+   * for more details.
+   * * application_status: The application status specifies the status of job
+   * application.
+   * See
+   * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+   * for more details.
+   * * hirable_status: Hirable status specifies the profile's hirable status.
+   * * string_custom_attribute: String custom attributes. Values can be accessed
+   * via square bracket notation like string_custom_attribute["key1"].
+   * * numeric_custom_attribute: Numeric custom attributes. Values can be
+   * accessed via square bracket notation like numeric_custom_attribute["key1"].
+   * Example expressions:
+   * * count(admin1)
+   * * count(experience_in_months, [bucket(0, 12, "1 year"),
+   * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+   * * count(string_custom_attribute["assigned_recruiter"])
+   * * count(numeric_custom_attribute["favorite_number"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + java.util.List getHistogramQueriesList(); + /** + * + * + *
+   * Optional.
+   * A list of expressions specifies histogram requests against matching
+   * profiles for
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * The expression syntax looks like a function definition with optional
+   * parameters.
+   * Function syntax: function_name(histogram_facet[, list of buckets])
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label])
+   * Bucket build-in function creates a bucket with range of [start, end). Note
+   * that the end is exclusive.
+   * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Histogram Facets:
+   * * admin1: Admin1 is a global placeholder for referring to state, province,
+   * or the particular term a country uses to define the geographic structure
+   * below the country level. Examples include states codes such as "CA", "IL",
+   * "NY", and provinces, such as "BC".
+   * * locality: Locality is a global placeholder for referring to city, town,
+   * or the particular term a country uses to define the geographic structure
+   * below the admin1 level. Examples include city names such as
+   * "Mountain View" and "New York".
+   * * extended_locality: Extended locality is concatenated version of admin1
+   * and locality with comma separator. For example, "Mountain View, CA" and
+   * "New York, NY".
+   * * postal_code: Postal code of profile which follows locale code.
+   * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+   *  JP, GB.
+   * * job_title: Normalized job titles specified in EmploymentHistory.
+   * * company_name: Normalized company name of profiles to match on.
+   * * institution: The school name. For example, "MIT",
+   * "University of California, Berkeley"
+   * * degree: Highest education degree in ISCED code. Each value in degree
+   * covers specific level of education, without any expansion to upper nor
+   * lower levels of education degree.
+   * * experience_in_months: experience in months. 0 means 0 month to 1 month
+   * (exclusive).
+   * * application_date: The application date specifies application start dates.
+   * See
+   * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+   * for more details.
+   * * application_outcome_reason: The application outcome reason specifies the
+   * outcome reasons of job application.
+   * See
+   * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+   * for more details.
+   * * application_last_stage: The application last stage specifies the last
+   * stage of job application.
+   * See
+   * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+   * for more details.
+   * * application_job_title: The application job title specifies the job
+   * applied for in the application.
+   * See
+   * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+   * for more details.
+   * * application_status: The application status specifies the status of job
+   * application.
+   * See
+   * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+   * for more details.
+   * * hirable_status: Hirable status specifies the profile's hirable status.
+   * * string_custom_attribute: String custom attributes. Values can be accessed
+   * via square bracket notation like string_custom_attribute["key1"].
+   * * numeric_custom_attribute: Numeric custom attributes. Values can be
+   * accessed via square bracket notation like numeric_custom_attribute["key1"].
+   * Example expressions:
+   * * count(admin1)
+   * * count(experience_in_months, [bucket(0, 12, "1 year"),
+   * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+   * * count(string_custom_attribute["assigned_recruiter"])
+   * * count(numeric_custom_attribute["favorite_number"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + com.google.cloud.talent.v4beta1.HistogramQuery getHistogramQueries(int index); + /** + * + * + *
+   * Optional.
+   * A list of expressions specifies histogram requests against matching
+   * profiles for
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * The expression syntax looks like a function definition with optional
+   * parameters.
+   * Function syntax: function_name(histogram_facet[, list of buckets])
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label])
+   * Bucket build-in function creates a bucket with range of [start, end). Note
+   * that the end is exclusive.
+   * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Histogram Facets:
+   * * admin1: Admin1 is a global placeholder for referring to state, province,
+   * or the particular term a country uses to define the geographic structure
+   * below the country level. Examples include states codes such as "CA", "IL",
+   * "NY", and provinces, such as "BC".
+   * * locality: Locality is a global placeholder for referring to city, town,
+   * or the particular term a country uses to define the geographic structure
+   * below the admin1 level. Examples include city names such as
+   * "Mountain View" and "New York".
+   * * extended_locality: Extended locality is concatenated version of admin1
+   * and locality with comma separator. For example, "Mountain View, CA" and
+   * "New York, NY".
+   * * postal_code: Postal code of profile which follows locale code.
+   * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+   *  JP, GB.
+   * * job_title: Normalized job titles specified in EmploymentHistory.
+   * * company_name: Normalized company name of profiles to match on.
+   * * institution: The school name. For example, "MIT",
+   * "University of California, Berkeley"
+   * * degree: Highest education degree in ISCED code. Each value in degree
+   * covers specific level of education, without any expansion to upper nor
+   * lower levels of education degree.
+   * * experience_in_months: experience in months. 0 means 0 month to 1 month
+   * (exclusive).
+   * * application_date: The application date specifies application start dates.
+   * See
+   * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+   * for more details.
+   * * application_outcome_reason: The application outcome reason specifies the
+   * outcome reasons of job application.
+   * See
+   * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+   * for more details.
+   * * application_last_stage: The application last stage specifies the last
+   * stage of job application.
+   * See
+   * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+   * for more details.
+   * * application_job_title: The application job title specifies the job
+   * applied for in the application.
+   * See
+   * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+   * for more details.
+   * * application_status: The application status specifies the status of job
+   * application.
+   * See
+   * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+   * for more details.
+   * * hirable_status: Hirable status specifies the profile's hirable status.
+   * * string_custom_attribute: String custom attributes. Values can be accessed
+   * via square bracket notation like string_custom_attribute["key1"].
+   * * numeric_custom_attribute: Numeric custom attributes. Values can be
+   * accessed via square bracket notation like numeric_custom_attribute["key1"].
+   * Example expressions:
+   * * count(admin1)
+   * * count(experience_in_months, [bucket(0, 12, "1 year"),
+   * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+   * * count(string_custom_attribute["assigned_recruiter"])
+   * * count(numeric_custom_attribute["favorite_number"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + int getHistogramQueriesCount(); + /** + * + * + *
+   * Optional.
+   * A list of expressions specifies histogram requests against matching
+   * profiles for
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * The expression syntax looks like a function definition with optional
+   * parameters.
+   * Function syntax: function_name(histogram_facet[, list of buckets])
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label])
+   * Bucket build-in function creates a bucket with range of [start, end). Note
+   * that the end is exclusive.
+   * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Histogram Facets:
+   * * admin1: Admin1 is a global placeholder for referring to state, province,
+   * or the particular term a country uses to define the geographic structure
+   * below the country level. Examples include states codes such as "CA", "IL",
+   * "NY", and provinces, such as "BC".
+   * * locality: Locality is a global placeholder for referring to city, town,
+   * or the particular term a country uses to define the geographic structure
+   * below the admin1 level. Examples include city names such as
+   * "Mountain View" and "New York".
+   * * extended_locality: Extended locality is concatenated version of admin1
+   * and locality with comma separator. For example, "Mountain View, CA" and
+   * "New York, NY".
+   * * postal_code: Postal code of profile which follows locale code.
+   * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+   *  JP, GB.
+   * * job_title: Normalized job titles specified in EmploymentHistory.
+   * * company_name: Normalized company name of profiles to match on.
+   * * institution: The school name. For example, "MIT",
+   * "University of California, Berkeley"
+   * * degree: Highest education degree in ISCED code. Each value in degree
+   * covers specific level of education, without any expansion to upper nor
+   * lower levels of education degree.
+   * * experience_in_months: experience in months. 0 means 0 month to 1 month
+   * (exclusive).
+   * * application_date: The application date specifies application start dates.
+   * See
+   * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+   * for more details.
+   * * application_outcome_reason: The application outcome reason specifies the
+   * outcome reasons of job application.
+   * See
+   * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+   * for more details.
+   * * application_last_stage: The application last stage specifies the last
+   * stage of job application.
+   * See
+   * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+   * for more details.
+   * * application_job_title: The application job title specifies the job
+   * applied for in the application.
+   * See
+   * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+   * for more details.
+   * * application_status: The application status specifies the status of job
+   * application.
+   * See
+   * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+   * for more details.
+   * * hirable_status: Hirable status specifies the profile's hirable status.
+   * * string_custom_attribute: String custom attributes. Values can be accessed
+   * via square bracket notation like string_custom_attribute["key1"].
+   * * numeric_custom_attribute: Numeric custom attributes. Values can be
+   * accessed via square bracket notation like numeric_custom_attribute["key1"].
+   * Example expressions:
+   * * count(admin1)
+   * * count(experience_in_months, [bucket(0, 12, "1 year"),
+   * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+   * * count(string_custom_attribute["assigned_recruiter"])
+   * * count(numeric_custom_attribute["favorite_number"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + java.util.List + getHistogramQueriesOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * A list of expressions specifies histogram requests against matching
+   * profiles for
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * The expression syntax looks like a function definition with optional
+   * parameters.
+   * Function syntax: function_name(histogram_facet[, list of buckets])
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label])
+   * Bucket build-in function creates a bucket with range of [start, end). Note
+   * that the end is exclusive.
+   * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Histogram Facets:
+   * * admin1: Admin1 is a global placeholder for referring to state, province,
+   * or the particular term a country uses to define the geographic structure
+   * below the country level. Examples include states codes such as "CA", "IL",
+   * "NY", and provinces, such as "BC".
+   * * locality: Locality is a global placeholder for referring to city, town,
+   * or the particular term a country uses to define the geographic structure
+   * below the admin1 level. Examples include city names such as
+   * "Mountain View" and "New York".
+   * * extended_locality: Extended locality is concatenated version of admin1
+   * and locality with comma separator. For example, "Mountain View, CA" and
+   * "New York, NY".
+   * * postal_code: Postal code of profile which follows locale code.
+   * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+   *  JP, GB.
+   * * job_title: Normalized job titles specified in EmploymentHistory.
+   * * company_name: Normalized company name of profiles to match on.
+   * * institution: The school name. For example, "MIT",
+   * "University of California, Berkeley"
+   * * degree: Highest education degree in ISCED code. Each value in degree
+   * covers specific level of education, without any expansion to upper nor
+   * lower levels of education degree.
+   * * experience_in_months: experience in months. 0 means 0 month to 1 month
+   * (exclusive).
+   * * application_date: The application date specifies application start dates.
+   * See
+   * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+   * for more details.
+   * * application_outcome_reason: The application outcome reason specifies the
+   * outcome reasons of job application.
+   * See
+   * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+   * for more details.
+   * * application_last_stage: The application last stage specifies the last
+   * stage of job application.
+   * See
+   * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+   * for more details.
+   * * application_job_title: The application job title specifies the job
+   * applied for in the application.
+   * See
+   * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+   * for more details.
+   * * application_status: The application status specifies the status of job
+   * application.
+   * See
+   * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+   * for more details.
+   * * hirable_status: Hirable status specifies the profile's hirable status.
+   * * string_custom_attribute: String custom attributes. Values can be accessed
+   * via square bracket notation like string_custom_attribute["key1"].
+   * * numeric_custom_attribute: Numeric custom attributes. Values can be
+   * accessed via square bracket notation like numeric_custom_attribute["key1"].
+   * Example expressions:
+   * * count(admin1)
+   * * count(experience_in_months, [bucket(0, 12, "1 year"),
+   * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+   * * count(string_custom_attribute["assigned_recruiter"])
+   * * count(numeric_custom_attribute["favorite_number"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder getHistogramQueriesOrBuilder(int index); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesResponse.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesResponse.java new file mode 100644 index 000000000000..ccd7f336e1b5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesResponse.java @@ -0,0 +1,2321 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Response of SearchProfiles method.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchProfilesResponse} + */ +public final class SearchProfilesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SearchProfilesResponse) + SearchProfilesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchProfilesResponse.newBuilder() to construct. + private SearchProfilesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchProfilesResponse() { + estimatedTotalSize_ = 0L; + nextPageToken_ = ""; + histogramQueryResults_ = java.util.Collections.emptyList(); + summarizedProfiles_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SearchProfilesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + estimatedTotalSize_ = input.readInt64(); + break; + } + case 18: + { + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder subBuilder = null; + if (spellCorrection_ != null) { + subBuilder = spellCorrection_.toBuilder(); + } + spellCorrection_ = + input.readMessage( + com.google.cloud.talent.v4beta1.SpellingCorrection.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spellCorrection_); + spellCorrection_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = + input.readMessage( + com.google.cloud.talent.v4beta1.ResponseMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 42: + { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + histogramQueryResults_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + histogramQueryResults_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.HistogramQueryResult.parser(), + extensionRegistry)); + break; + } + case 50: + { + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + summarizedProfiles_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + summarizedProfiles_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.SummarizedProfile.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + histogramQueryResults_ = java.util.Collections.unmodifiableList(histogramQueryResults_); + } + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + summarizedProfiles_ = java.util.Collections.unmodifiableList(summarizedProfiles_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchProfilesResponse.class, + com.google.cloud.talent.v4beta1.SearchProfilesResponse.Builder.class); + } + + private int bitField0_; + public static final int ESTIMATED_TOTAL_SIZE_FIELD_NUMBER = 1; + private long estimatedTotalSize_; + /** + * + * + *
+   * An estimation of the number of profiles that match the specified query.
+   * This number isn't guaranteed to be accurate.
+   * 
+ * + * int64 estimated_total_size = 1; + */ + public long getEstimatedTotalSize() { + return estimatedTotalSize_; + } + + public static final int SPELL_CORRECTION_FIELD_NUMBER = 2; + private com.google.cloud.talent.v4beta1.SpellingCorrection spellCorrection_; + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + public boolean hasSpellCorrection() { + return spellCorrection_ != null; + } + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + public com.google.cloud.talent.v4beta1.SpellingCorrection getSpellCorrection() { + return spellCorrection_ == null + ? com.google.cloud.talent.v4beta1.SpellingCorrection.getDefaultInstance() + : spellCorrection_; + } + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + public com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder getSpellCorrectionOrBuilder() { + return getSpellCorrection(); + } + + public static final int METADATA_FIELD_NUMBER = 3; + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_; + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 4; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token to retrieve the next page of results. This is empty if there are no
+   * more results.
+   * 
+ * + * string next_page_token = 4; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token to retrieve the next page of results. This is empty if there are no
+   * more results.
+   * 
+ * + * string next_page_token = 4; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HISTOGRAM_QUERY_RESULTS_FIELD_NUMBER = 5; + private java.util.List + histogramQueryResults_; + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public java.util.List + getHistogramQueryResultsList() { + return histogramQueryResults_; + } + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public java.util.List + getHistogramQueryResultsOrBuilderList() { + return histogramQueryResults_; + } + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public int getHistogramQueryResultsCount() { + return histogramQueryResults_.size(); + } + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResult getHistogramQueryResults(int index) { + return histogramQueryResults_.get(index); + } + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder + getHistogramQueryResultsOrBuilder(int index) { + return histogramQueryResults_.get(index); + } + + public static final int SUMMARIZED_PROFILES_FIELD_NUMBER = 6; + private java.util.List summarizedProfiles_; + /** + * + * + *
+   * The profile entities that match the specified
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public java.util.List + getSummarizedProfilesList() { + return summarizedProfiles_; + } + /** + * + * + *
+   * The profile entities that match the specified
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public java.util.List + getSummarizedProfilesOrBuilderList() { + return summarizedProfiles_; + } + /** + * + * + *
+   * The profile entities that match the specified
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public int getSummarizedProfilesCount() { + return summarizedProfiles_.size(); + } + /** + * + * + *
+   * The profile entities that match the specified
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public com.google.cloud.talent.v4beta1.SummarizedProfile getSummarizedProfiles(int index) { + return summarizedProfiles_.get(index); + } + /** + * + * + *
+   * The profile entities that match the specified
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public com.google.cloud.talent.v4beta1.SummarizedProfileOrBuilder getSummarizedProfilesOrBuilder( + int index) { + return summarizedProfiles_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (estimatedTotalSize_ != 0L) { + output.writeInt64(1, estimatedTotalSize_); + } + if (spellCorrection_ != null) { + output.writeMessage(2, getSpellCorrection()); + } + if (metadata_ != null) { + output.writeMessage(3, getMetadata()); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nextPageToken_); + } + for (int i = 0; i < histogramQueryResults_.size(); i++) { + output.writeMessage(5, histogramQueryResults_.get(i)); + } + for (int i = 0; i < summarizedProfiles_.size(); i++) { + output.writeMessage(6, summarizedProfiles_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (estimatedTotalSize_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, estimatedTotalSize_); + } + if (spellCorrection_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpellCorrection()); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata()); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nextPageToken_); + } + for (int i = 0; i < histogramQueryResults_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, histogramQueryResults_.get(i)); + } + for (int i = 0; i < summarizedProfiles_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, summarizedProfiles_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.SearchProfilesResponse)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.SearchProfilesResponse other = + (com.google.cloud.talent.v4beta1.SearchProfilesResponse) obj; + + boolean result = true; + result = result && (getEstimatedTotalSize() == other.getEstimatedTotalSize()); + result = result && (hasSpellCorrection() == other.hasSpellCorrection()); + if (hasSpellCorrection()) { + result = result && getSpellCorrection().equals(other.getSpellCorrection()); + } + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata().equals(other.getMetadata()); + } + result = result && getNextPageToken().equals(other.getNextPageToken()); + result = result && getHistogramQueryResultsList().equals(other.getHistogramQueryResultsList()); + result = result && getSummarizedProfilesList().equals(other.getSummarizedProfilesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ESTIMATED_TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEstimatedTotalSize()); + if (hasSpellCorrection()) { + hash = (37 * hash) + SPELL_CORRECTION_FIELD_NUMBER; + hash = (53 * hash) + getSpellCorrection().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getHistogramQueryResultsCount() > 0) { + hash = (37 * hash) + HISTOGRAM_QUERY_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getHistogramQueryResultsList().hashCode(); + } + if (getSummarizedProfilesCount() > 0) { + hash = (37 * hash) + SUMMARIZED_PROFILES_FIELD_NUMBER; + hash = (53 * hash) + getSummarizedProfilesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.SearchProfilesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response of SearchProfiles method.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchProfilesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SearchProfilesResponse) + com.google.cloud.talent.v4beta1.SearchProfilesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchProfilesResponse.class, + com.google.cloud.talent.v4beta1.SearchProfilesResponse.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.SearchProfilesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getHistogramQueryResultsFieldBuilder(); + getSummarizedProfilesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + estimatedTotalSize_ = 0L; + + if (spellCorrectionBuilder_ == null) { + spellCorrection_ = null; + } else { + spellCorrection_ = null; + spellCorrectionBuilder_ = null; + } + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + nextPageToken_ = ""; + + if (histogramQueryResultsBuilder_ == null) { + histogramQueryResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + histogramQueryResultsBuilder_.clear(); + } + if (summarizedProfilesBuilder_ == null) { + summarizedProfiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + summarizedProfilesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchProfilesResponse getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.SearchProfilesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchProfilesResponse build() { + com.google.cloud.talent.v4beta1.SearchProfilesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchProfilesResponse buildPartial() { + com.google.cloud.talent.v4beta1.SearchProfilesResponse result = + new com.google.cloud.talent.v4beta1.SearchProfilesResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.estimatedTotalSize_ = estimatedTotalSize_; + if (spellCorrectionBuilder_ == null) { + result.spellCorrection_ = spellCorrection_; + } else { + result.spellCorrection_ = spellCorrectionBuilder_.build(); + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (histogramQueryResultsBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { + histogramQueryResults_ = java.util.Collections.unmodifiableList(histogramQueryResults_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.histogramQueryResults_ = histogramQueryResults_; + } else { + result.histogramQueryResults_ = histogramQueryResultsBuilder_.build(); + } + if (summarizedProfilesBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { + summarizedProfiles_ = java.util.Collections.unmodifiableList(summarizedProfiles_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.summarizedProfiles_ = summarizedProfiles_; + } else { + result.summarizedProfiles_ = summarizedProfilesBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.SearchProfilesResponse) { + return mergeFrom((com.google.cloud.talent.v4beta1.SearchProfilesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.SearchProfilesResponse other) { + if (other == com.google.cloud.talent.v4beta1.SearchProfilesResponse.getDefaultInstance()) + return this; + if (other.getEstimatedTotalSize() != 0L) { + setEstimatedTotalSize(other.getEstimatedTotalSize()); + } + if (other.hasSpellCorrection()) { + mergeSpellCorrection(other.getSpellCorrection()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (histogramQueryResultsBuilder_ == null) { + if (!other.histogramQueryResults_.isEmpty()) { + if (histogramQueryResults_.isEmpty()) { + histogramQueryResults_ = other.histogramQueryResults_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.addAll(other.histogramQueryResults_); + } + onChanged(); + } + } else { + if (!other.histogramQueryResults_.isEmpty()) { + if (histogramQueryResultsBuilder_.isEmpty()) { + histogramQueryResultsBuilder_.dispose(); + histogramQueryResultsBuilder_ = null; + histogramQueryResults_ = other.histogramQueryResults_; + bitField0_ = (bitField0_ & ~0x00000010); + histogramQueryResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHistogramQueryResultsFieldBuilder() + : null; + } else { + histogramQueryResultsBuilder_.addAllMessages(other.histogramQueryResults_); + } + } + } + if (summarizedProfilesBuilder_ == null) { + if (!other.summarizedProfiles_.isEmpty()) { + if (summarizedProfiles_.isEmpty()) { + summarizedProfiles_ = other.summarizedProfiles_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureSummarizedProfilesIsMutable(); + summarizedProfiles_.addAll(other.summarizedProfiles_); + } + onChanged(); + } + } else { + if (!other.summarizedProfiles_.isEmpty()) { + if (summarizedProfilesBuilder_.isEmpty()) { + summarizedProfilesBuilder_.dispose(); + summarizedProfilesBuilder_ = null; + summarizedProfiles_ = other.summarizedProfiles_; + bitField0_ = (bitField0_ & ~0x00000020); + summarizedProfilesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSummarizedProfilesFieldBuilder() + : null; + } else { + summarizedProfilesBuilder_.addAllMessages(other.summarizedProfiles_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.SearchProfilesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.SearchProfilesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private long estimatedTotalSize_; + /** + * + * + *
+     * An estimation of the number of profiles that match the specified query.
+     * This number isn't guaranteed to be accurate.
+     * 
+ * + * int64 estimated_total_size = 1; + */ + public long getEstimatedTotalSize() { + return estimatedTotalSize_; + } + /** + * + * + *
+     * An estimation of the number of profiles that match the specified query.
+     * This number isn't guaranteed to be accurate.
+     * 
+ * + * int64 estimated_total_size = 1; + */ + public Builder setEstimatedTotalSize(long value) { + + estimatedTotalSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * An estimation of the number of profiles that match the specified query.
+     * This number isn't guaranteed to be accurate.
+     * 
+ * + * int64 estimated_total_size = 1; + */ + public Builder clearEstimatedTotalSize() { + + estimatedTotalSize_ = 0L; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.SpellingCorrection spellCorrection_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SpellingCorrection, + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder, + com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder> + spellCorrectionBuilder_; + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + public boolean hasSpellCorrection() { + return spellCorrectionBuilder_ != null || spellCorrection_ != null; + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + public com.google.cloud.talent.v4beta1.SpellingCorrection getSpellCorrection() { + if (spellCorrectionBuilder_ == null) { + return spellCorrection_ == null + ? com.google.cloud.talent.v4beta1.SpellingCorrection.getDefaultInstance() + : spellCorrection_; + } else { + return spellCorrectionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + public Builder setSpellCorrection(com.google.cloud.talent.v4beta1.SpellingCorrection value) { + if (spellCorrectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spellCorrection_ = value; + onChanged(); + } else { + spellCorrectionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + public Builder setSpellCorrection( + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder builderForValue) { + if (spellCorrectionBuilder_ == null) { + spellCorrection_ = builderForValue.build(); + onChanged(); + } else { + spellCorrectionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + public Builder mergeSpellCorrection(com.google.cloud.talent.v4beta1.SpellingCorrection value) { + if (spellCorrectionBuilder_ == null) { + if (spellCorrection_ != null) { + spellCorrection_ = + com.google.cloud.talent.v4beta1.SpellingCorrection.newBuilder(spellCorrection_) + .mergeFrom(value) + .buildPartial(); + } else { + spellCorrection_ = value; + } + onChanged(); + } else { + spellCorrectionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + public Builder clearSpellCorrection() { + if (spellCorrectionBuilder_ == null) { + spellCorrection_ = null; + onChanged(); + } else { + spellCorrection_ = null; + spellCorrectionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + public com.google.cloud.talent.v4beta1.SpellingCorrection.Builder getSpellCorrectionBuilder() { + + onChanged(); + return getSpellCorrectionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + public com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder + getSpellCorrectionOrBuilder() { + if (spellCorrectionBuilder_ != null) { + return spellCorrectionBuilder_.getMessageOrBuilder(); + } else { + return spellCorrection_ == null + ? com.google.cloud.talent.v4beta1.SpellingCorrection.getDefaultInstance() + : spellCorrection_; + } + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SpellingCorrection, + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder, + com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder> + getSpellCorrectionFieldBuilder() { + if (spellCorrectionBuilder_ == null) { + spellCorrectionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SpellingCorrection, + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder, + com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder>( + getSpellCorrection(), getParentForChildren(), isClean()); + spellCorrection_ = null; + } + return spellCorrectionBuilder_; + } + + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + metadataBuilder_; + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder setMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder setMetadata( + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder mergeMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.cloud.talent.v4beta1.ResponseMetadata.newBuilder(metadata_) + .mergeFrom(value) + .buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token to retrieve the next page of results. This is empty if there are no
+     * more results.
+     * 
+ * + * string next_page_token = 4; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results. This is empty if there are no
+     * more results.
+     * 
+ * + * string next_page_token = 4; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results. This is empty if there are no
+     * more results.
+     * 
+ * + * string next_page_token = 4; + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results. This is empty if there are no
+     * more results.
+     * 
+ * + * string next_page_token = 4; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results. This is empty if there are no
+     * more results.
+     * 
+ * + * string next_page_token = 4; + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + private java.util.List + histogramQueryResults_ = java.util.Collections.emptyList(); + + private void ensureHistogramQueryResultsIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + histogramQueryResults_ = + new java.util.ArrayList( + histogramQueryResults_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQueryResult, + com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder> + histogramQueryResultsBuilder_; + + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public java.util.List + getHistogramQueryResultsList() { + if (histogramQueryResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(histogramQueryResults_); + } else { + return histogramQueryResultsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public int getHistogramQueryResultsCount() { + if (histogramQueryResultsBuilder_ == null) { + return histogramQueryResults_.size(); + } else { + return histogramQueryResultsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResult getHistogramQueryResults( + int index) { + if (histogramQueryResultsBuilder_ == null) { + return histogramQueryResults_.get(index); + } else { + return histogramQueryResultsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public Builder setHistogramQueryResults( + int index, com.google.cloud.talent.v4beta1.HistogramQueryResult value) { + if (histogramQueryResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.set(index, value); + onChanged(); + } else { + histogramQueryResultsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public Builder setHistogramQueryResults( + int index, com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder builderForValue) { + if (histogramQueryResultsBuilder_ == null) { + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.set(index, builderForValue.build()); + onChanged(); + } else { + histogramQueryResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public Builder addHistogramQueryResults( + com.google.cloud.talent.v4beta1.HistogramQueryResult value) { + if (histogramQueryResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.add(value); + onChanged(); + } else { + histogramQueryResultsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public Builder addHistogramQueryResults( + int index, com.google.cloud.talent.v4beta1.HistogramQueryResult value) { + if (histogramQueryResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.add(index, value); + onChanged(); + } else { + histogramQueryResultsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public Builder addHistogramQueryResults( + com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder builderForValue) { + if (histogramQueryResultsBuilder_ == null) { + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.add(builderForValue.build()); + onChanged(); + } else { + histogramQueryResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public Builder addHistogramQueryResults( + int index, com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder builderForValue) { + if (histogramQueryResultsBuilder_ == null) { + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.add(index, builderForValue.build()); + onChanged(); + } else { + histogramQueryResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public Builder addAllHistogramQueryResults( + java.lang.Iterable values) { + if (histogramQueryResultsBuilder_ == null) { + ensureHistogramQueryResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, histogramQueryResults_); + onChanged(); + } else { + histogramQueryResultsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public Builder clearHistogramQueryResults() { + if (histogramQueryResultsBuilder_ == null) { + histogramQueryResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + histogramQueryResultsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public Builder removeHistogramQueryResults(int index) { + if (histogramQueryResultsBuilder_ == null) { + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.remove(index); + onChanged(); + } else { + histogramQueryResultsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder + getHistogramQueryResultsBuilder(int index) { + return getHistogramQueryResultsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder + getHistogramQueryResultsOrBuilder(int index) { + if (histogramQueryResultsBuilder_ == null) { + return histogramQueryResults_.get(index); + } else { + return histogramQueryResultsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public java.util.List + getHistogramQueryResultsOrBuilderList() { + if (histogramQueryResultsBuilder_ != null) { + return histogramQueryResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(histogramQueryResults_); + } + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder + addHistogramQueryResultsBuilder() { + return getHistogramQueryResultsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.HistogramQueryResult.getDefaultInstance()); + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder + addHistogramQueryResultsBuilder(int index) { + return getHistogramQueryResultsFieldBuilder() + .addBuilder( + index, com.google.cloud.talent.v4beta1.HistogramQueryResult.getDefaultInstance()); + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public java.util.List + getHistogramQueryResultsBuilderList() { + return getHistogramQueryResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQueryResult, + com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder> + getHistogramQueryResultsFieldBuilder() { + if (histogramQueryResultsBuilder_ == null) { + histogramQueryResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQueryResult, + com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder>( + histogramQueryResults_, + ((bitField0_ & 0x00000010) == 0x00000010), + getParentForChildren(), + isClean()); + histogramQueryResults_ = null; + } + return histogramQueryResultsBuilder_; + } + + private java.util.List summarizedProfiles_ = + java.util.Collections.emptyList(); + + private void ensureSummarizedProfilesIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + summarizedProfiles_ = + new java.util.ArrayList( + summarizedProfiles_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.SummarizedProfile, + com.google.cloud.talent.v4beta1.SummarizedProfile.Builder, + com.google.cloud.talent.v4beta1.SummarizedProfileOrBuilder> + summarizedProfilesBuilder_; + + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public java.util.List + getSummarizedProfilesList() { + if (summarizedProfilesBuilder_ == null) { + return java.util.Collections.unmodifiableList(summarizedProfiles_); + } else { + return summarizedProfilesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public int getSummarizedProfilesCount() { + if (summarizedProfilesBuilder_ == null) { + return summarizedProfiles_.size(); + } else { + return summarizedProfilesBuilder_.getCount(); + } + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public com.google.cloud.talent.v4beta1.SummarizedProfile getSummarizedProfiles(int index) { + if (summarizedProfilesBuilder_ == null) { + return summarizedProfiles_.get(index); + } else { + return summarizedProfilesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public Builder setSummarizedProfiles( + int index, com.google.cloud.talent.v4beta1.SummarizedProfile value) { + if (summarizedProfilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSummarizedProfilesIsMutable(); + summarizedProfiles_.set(index, value); + onChanged(); + } else { + summarizedProfilesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public Builder setSummarizedProfiles( + int index, com.google.cloud.talent.v4beta1.SummarizedProfile.Builder builderForValue) { + if (summarizedProfilesBuilder_ == null) { + ensureSummarizedProfilesIsMutable(); + summarizedProfiles_.set(index, builderForValue.build()); + onChanged(); + } else { + summarizedProfilesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public Builder addSummarizedProfiles(com.google.cloud.talent.v4beta1.SummarizedProfile value) { + if (summarizedProfilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSummarizedProfilesIsMutable(); + summarizedProfiles_.add(value); + onChanged(); + } else { + summarizedProfilesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public Builder addSummarizedProfiles( + int index, com.google.cloud.talent.v4beta1.SummarizedProfile value) { + if (summarizedProfilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSummarizedProfilesIsMutable(); + summarizedProfiles_.add(index, value); + onChanged(); + } else { + summarizedProfilesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public Builder addSummarizedProfiles( + com.google.cloud.talent.v4beta1.SummarizedProfile.Builder builderForValue) { + if (summarizedProfilesBuilder_ == null) { + ensureSummarizedProfilesIsMutable(); + summarizedProfiles_.add(builderForValue.build()); + onChanged(); + } else { + summarizedProfilesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public Builder addSummarizedProfiles( + int index, com.google.cloud.talent.v4beta1.SummarizedProfile.Builder builderForValue) { + if (summarizedProfilesBuilder_ == null) { + ensureSummarizedProfilesIsMutable(); + summarizedProfiles_.add(index, builderForValue.build()); + onChanged(); + } else { + summarizedProfilesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public Builder addAllSummarizedProfiles( + java.lang.Iterable values) { + if (summarizedProfilesBuilder_ == null) { + ensureSummarizedProfilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, summarizedProfiles_); + onChanged(); + } else { + summarizedProfilesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public Builder clearSummarizedProfiles() { + if (summarizedProfilesBuilder_ == null) { + summarizedProfiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + summarizedProfilesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public Builder removeSummarizedProfiles(int index) { + if (summarizedProfilesBuilder_ == null) { + ensureSummarizedProfilesIsMutable(); + summarizedProfiles_.remove(index); + onChanged(); + } else { + summarizedProfilesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public com.google.cloud.talent.v4beta1.SummarizedProfile.Builder getSummarizedProfilesBuilder( + int index) { + return getSummarizedProfilesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public com.google.cloud.talent.v4beta1.SummarizedProfileOrBuilder + getSummarizedProfilesOrBuilder(int index) { + if (summarizedProfilesBuilder_ == null) { + return summarizedProfiles_.get(index); + } else { + return summarizedProfilesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public java.util.List + getSummarizedProfilesOrBuilderList() { + if (summarizedProfilesBuilder_ != null) { + return summarizedProfilesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(summarizedProfiles_); + } + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public com.google.cloud.talent.v4beta1.SummarizedProfile.Builder + addSummarizedProfilesBuilder() { + return getSummarizedProfilesFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.SummarizedProfile.getDefaultInstance()); + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public com.google.cloud.talent.v4beta1.SummarizedProfile.Builder addSummarizedProfilesBuilder( + int index) { + return getSummarizedProfilesFieldBuilder() + .addBuilder( + index, com.google.cloud.talent.v4beta1.SummarizedProfile.getDefaultInstance()); + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public java.util.List + getSummarizedProfilesBuilderList() { + return getSummarizedProfilesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.SummarizedProfile, + com.google.cloud.talent.v4beta1.SummarizedProfile.Builder, + com.google.cloud.talent.v4beta1.SummarizedProfileOrBuilder> + getSummarizedProfilesFieldBuilder() { + if (summarizedProfilesBuilder_ == null) { + summarizedProfilesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.SummarizedProfile, + com.google.cloud.talent.v4beta1.SummarizedProfile.Builder, + com.google.cloud.talent.v4beta1.SummarizedProfileOrBuilder>( + summarizedProfiles_, + ((bitField0_ & 0x00000020) == 0x00000020), + getParentForChildren(), + isClean()); + summarizedProfiles_ = null; + } + return summarizedProfilesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SearchProfilesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SearchProfilesResponse) + private static final com.google.cloud.talent.v4beta1.SearchProfilesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SearchProfilesResponse(); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchProfilesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SearchProfilesResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchProfilesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesResponseOrBuilder.java new file mode 100644 index 000000000000..1997cd946d11 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesResponseOrBuilder.java @@ -0,0 +1,232 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface SearchProfilesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SearchProfilesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * An estimation of the number of profiles that match the specified query.
+   * This number isn't guaranteed to be accurate.
+   * 
+ * + * int64 estimated_total_size = 1; + */ + long getEstimatedTotalSize(); + + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + boolean hasSpellCorrection(); + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + com.google.cloud.talent.v4beta1.SpellingCorrection getSpellCorrection(); + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder getSpellCorrectionOrBuilder(); + + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + boolean hasMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder(); + + /** + * + * + *
+   * A token to retrieve the next page of results. This is empty if there are no
+   * more results.
+   * 
+ * + * string next_page_token = 4; + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token to retrieve the next page of results. This is empty if there are no
+   * more results.
+   * 
+ * + * string next_page_token = 4; + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + java.util.List + getHistogramQueryResultsList(); + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + com.google.cloud.talent.v4beta1.HistogramQueryResult getHistogramQueryResults(int index); + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + int getHistogramQueryResultsCount(); + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + java.util.List + getHistogramQueryResultsOrBuilderList(); + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder getHistogramQueryResultsOrBuilder( + int index); + + /** + * + * + *
+   * The profile entities that match the specified
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + java.util.List getSummarizedProfilesList(); + /** + * + * + *
+   * The profile entities that match the specified
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + com.google.cloud.talent.v4beta1.SummarizedProfile getSummarizedProfiles(int index); + /** + * + * + *
+   * The profile entities that match the specified
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + int getSummarizedProfilesCount(); + /** + * + * + *
+   * The profile entities that match the specified
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + java.util.List + getSummarizedProfilesOrBuilderList(); + /** + * + * + *
+   * The profile entities that match the specified
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + com.google.cloud.talent.v4beta1.SummarizedProfileOrBuilder getSummarizedProfilesOrBuilder( + int index); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Skill.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Skill.java new file mode 100644 index 000000000000..bd92391b43db --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Skill.java @@ -0,0 +1,1617 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents a skill of a candidate.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Skill} + */ +public final class Skill extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Skill) + SkillOrBuilder { + private static final long serialVersionUID = 0L; + // Use Skill.newBuilder() to construct. + private Skill(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Skill() { + displayName_ = ""; + level_ = 0; + context_ = ""; + skillNameSnippet_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Skill( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 18: + { + com.google.type.Date.Builder subBuilder = null; + if (lastUsedDate_ != null) { + subBuilder = lastUsedDate_.toBuilder(); + } + lastUsedDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastUsedDate_); + lastUsedDate_ = subBuilder.buildPartial(); + } + + break; + } + case 24: + { + int rawValue = input.readEnum(); + + level_ = rawValue; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + context_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + skillNameSnippet_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Skill_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Skill_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Skill.class, + com.google.cloud.talent.v4beta1.Skill.Builder.class); + } + + /** + * + * + *
+   * Enum that represents the skill proficiency level.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel} + */ + public enum SkillProficiencyLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * SKILL_PROFICIENCY_LEVEL_UNSPECIFIED = 0; + */ + SKILL_PROFICIENCY_LEVEL_UNSPECIFIED(0), + /** + * + * + *
+     * Have a common knowledge or an understanding of basic techniques and
+     * concepts.
+     * 
+ * + * FUNDAMENTAL_AWARENESS = 1; + */ + FUNDAMENTAL_AWARENESS(1), + /** + * + * + *
+     * Have the level of experience gained in a classroom and/or experimental
+     * scenarios or as a trainee on-the-job.
+     * 
+ * + * NOVICE = 2; + */ + NOVICE(2), + /** + * + * + *
+     * Be able to successfully complete tasks in this skill as requested. Help
+     * from an expert may be required from time to time, but can usually perform
+     * skill independently.
+     * 
+ * + * INTERMEDIATE = 3; + */ + INTERMEDIATE(3), + /** + * + * + *
+     * Can perform the actions associated with this skill without assistance.
+     * 
+ * + * ADVANCED = 4; + */ + ADVANCED(4), + /** + * + * + *
+     * Known as an expert in this area.
+     * 
+ * + * EXPERT = 5; + */ + EXPERT(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * SKILL_PROFICIENCY_LEVEL_UNSPECIFIED = 0; + */ + public static final int SKILL_PROFICIENCY_LEVEL_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Have a common knowledge or an understanding of basic techniques and
+     * concepts.
+     * 
+ * + * FUNDAMENTAL_AWARENESS = 1; + */ + public static final int FUNDAMENTAL_AWARENESS_VALUE = 1; + /** + * + * + *
+     * Have the level of experience gained in a classroom and/or experimental
+     * scenarios or as a trainee on-the-job.
+     * 
+ * + * NOVICE = 2; + */ + public static final int NOVICE_VALUE = 2; + /** + * + * + *
+     * Be able to successfully complete tasks in this skill as requested. Help
+     * from an expert may be required from time to time, but can usually perform
+     * skill independently.
+     * 
+ * + * INTERMEDIATE = 3; + */ + public static final int INTERMEDIATE_VALUE = 3; + /** + * + * + *
+     * Can perform the actions associated with this skill without assistance.
+     * 
+ * + * ADVANCED = 4; + */ + public static final int ADVANCED_VALUE = 4; + /** + * + * + *
+     * Known as an expert in this area.
+     * 
+ * + * EXPERT = 5; + */ + public static final int EXPERT_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static SkillProficiencyLevel valueOf(int value) { + return forNumber(value); + } + + public static SkillProficiencyLevel forNumber(int value) { + switch (value) { + case 0: + return SKILL_PROFICIENCY_LEVEL_UNSPECIFIED; + case 1: + return FUNDAMENTAL_AWARENESS; + case 2: + return NOVICE; + case 3: + return INTERMEDIATE; + case 4: + return ADVANCED; + case 5: + return EXPERT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SkillProficiencyLevel findValueByNumber(int number) { + return SkillProficiencyLevel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.Skill.getDescriptor().getEnumTypes().get(0); + } + + private static final SkillProficiencyLevel[] VALUES = values(); + + public static SkillProficiencyLevel valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SkillProficiencyLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel) + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Optional.
+   * Skill display name.
+   * For example, "Java", "Python".
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Skill display name.
+   * For example, "Java", "Python".
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LAST_USED_DATE_FIELD_NUMBER = 2; + private com.google.type.Date lastUsedDate_; + /** + * + * + *
+   * Optional.
+   * The last time this skill was used.
+   * 
+ * + * .google.type.Date last_used_date = 2; + */ + public boolean hasLastUsedDate() { + return lastUsedDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * The last time this skill was used.
+   * 
+ * + * .google.type.Date last_used_date = 2; + */ + public com.google.type.Date getLastUsedDate() { + return lastUsedDate_ == null ? com.google.type.Date.getDefaultInstance() : lastUsedDate_; + } + /** + * + * + *
+   * Optional.
+   * The last time this skill was used.
+   * 
+ * + * .google.type.Date last_used_date = 2; + */ + public com.google.type.DateOrBuilder getLastUsedDateOrBuilder() { + return getLastUsedDate(); + } + + public static final int LEVEL_FIELD_NUMBER = 3; + private int level_; + /** + * + * + *
+   * Optional.
+   * Skill proficiency level which indicates how proficient the candidate is at
+   * this skill.
+   * 
+ * + * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + */ + public int getLevelValue() { + return level_; + } + /** + * + * + *
+   * Optional.
+   * Skill proficiency level which indicates how proficient the candidate is at
+   * this skill.
+   * 
+ * + * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + */ + public com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel getLevel() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel result = + com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel.valueOf(level_); + return result == null + ? com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel.UNRECOGNIZED + : result; + } + + public static final int CONTEXT_FIELD_NUMBER = 4; + private volatile java.lang.Object context_; + /** + * + * + *
+   * Optional.
+   * A paragraph describes context of this skill.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string context = 4; + */ + public java.lang.String getContext() { + java.lang.Object ref = context_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + context_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * A paragraph describes context of this skill.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string context = 4; + */ + public com.google.protobuf.ByteString getContextBytes() { + java.lang.Object ref = context_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + context_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKILL_NAME_SNIPPET_FIELD_NUMBER = 5; + private volatile java.lang.Object skillNameSnippet_; + /** + * + * + *
+   * Output only. Skill name snippet shows how the
+   * [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related
+   * to a search query. It's empty if the
+   * [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't
+   * related to the search query.
+   * 
+ * + * string skill_name_snippet = 5; + */ + public java.lang.String getSkillNameSnippet() { + java.lang.Object ref = skillNameSnippet_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + skillNameSnippet_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Skill name snippet shows how the
+   * [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related
+   * to a search query. It's empty if the
+   * [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't
+   * related to the search query.
+   * 
+ * + * string skill_name_snippet = 5; + */ + public com.google.protobuf.ByteString getSkillNameSnippetBytes() { + java.lang.Object ref = skillNameSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + skillNameSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (lastUsedDate_ != null) { + output.writeMessage(2, getLastUsedDate()); + } + if (level_ + != com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel + .SKILL_PROFICIENCY_LEVEL_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, level_); + } + if (!getContextBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, context_); + } + if (!getSkillNameSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, skillNameSnippet_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (lastUsedDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLastUsedDate()); + } + if (level_ + != com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel + .SKILL_PROFICIENCY_LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, level_); + } + if (!getContextBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, context_); + } + if (!getSkillNameSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, skillNameSnippet_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Skill)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Skill other = (com.google.cloud.talent.v4beta1.Skill) obj; + + boolean result = true; + result = result && getDisplayName().equals(other.getDisplayName()); + result = result && (hasLastUsedDate() == other.hasLastUsedDate()); + if (hasLastUsedDate()) { + result = result && getLastUsedDate().equals(other.getLastUsedDate()); + } + result = result && level_ == other.level_; + result = result && getContext().equals(other.getContext()); + result = result && getSkillNameSnippet().equals(other.getSkillNameSnippet()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasLastUsedDate()) { + hash = (37 * hash) + LAST_USED_DATE_FIELD_NUMBER; + hash = (53 * hash) + getLastUsedDate().hashCode(); + } + hash = (37 * hash) + LEVEL_FIELD_NUMBER; + hash = (53 * hash) + level_; + hash = (37 * hash) + CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getContext().hashCode(); + hash = (37 * hash) + SKILL_NAME_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getSkillNameSnippet().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Skill parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Skill parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Skill parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Skill parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Skill parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Skill parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Skill parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Skill parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Skill parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Skill parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Skill parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Skill parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.Skill prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Resource that represents a skill of a candidate.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Skill} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Skill) + com.google.cloud.talent.v4beta1.SkillOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Skill_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Skill_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Skill.class, + com.google.cloud.talent.v4beta1.Skill.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Skill.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + displayName_ = ""; + + if (lastUsedDateBuilder_ == null) { + lastUsedDate_ = null; + } else { + lastUsedDate_ = null; + lastUsedDateBuilder_ = null; + } + level_ = 0; + + context_ = ""; + + skillNameSnippet_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Skill_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Skill getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Skill.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Skill build() { + com.google.cloud.talent.v4beta1.Skill result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Skill buildPartial() { + com.google.cloud.talent.v4beta1.Skill result = + new com.google.cloud.talent.v4beta1.Skill(this); + result.displayName_ = displayName_; + if (lastUsedDateBuilder_ == null) { + result.lastUsedDate_ = lastUsedDate_; + } else { + result.lastUsedDate_ = lastUsedDateBuilder_.build(); + } + result.level_ = level_; + result.context_ = context_; + result.skillNameSnippet_ = skillNameSnippet_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Skill) { + return mergeFrom((com.google.cloud.talent.v4beta1.Skill) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Skill other) { + if (other == com.google.cloud.talent.v4beta1.Skill.getDefaultInstance()) return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (other.hasLastUsedDate()) { + mergeLastUsedDate(other.getLastUsedDate()); + } + if (other.level_ != 0) { + setLevelValue(other.getLevelValue()); + } + if (!other.getContext().isEmpty()) { + context_ = other.context_; + onChanged(); + } + if (!other.getSkillNameSnippet().isEmpty()) { + skillNameSnippet_ = other.skillNameSnippet_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Skill parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Skill) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Optional.
+     * Skill display name.
+     * For example, "Java", "Python".
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Skill display name.
+     * For example, "Java", "Python".
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Skill display name.
+     * For example, "Java", "Python".
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill display name.
+     * For example, "Java", "Python".
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill display name.
+     * For example, "Java", "Python".
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private com.google.type.Date lastUsedDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + lastUsedDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The last time this skill was used.
+     * 
+ * + * .google.type.Date last_used_date = 2; + */ + public boolean hasLastUsedDate() { + return lastUsedDateBuilder_ != null || lastUsedDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The last time this skill was used.
+     * 
+ * + * .google.type.Date last_used_date = 2; + */ + public com.google.type.Date getLastUsedDate() { + if (lastUsedDateBuilder_ == null) { + return lastUsedDate_ == null ? com.google.type.Date.getDefaultInstance() : lastUsedDate_; + } else { + return lastUsedDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The last time this skill was used.
+     * 
+ * + * .google.type.Date last_used_date = 2; + */ + public Builder setLastUsedDate(com.google.type.Date value) { + if (lastUsedDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastUsedDate_ = value; + onChanged(); + } else { + lastUsedDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last time this skill was used.
+     * 
+ * + * .google.type.Date last_used_date = 2; + */ + public Builder setLastUsedDate(com.google.type.Date.Builder builderForValue) { + if (lastUsedDateBuilder_ == null) { + lastUsedDate_ = builderForValue.build(); + onChanged(); + } else { + lastUsedDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last time this skill was used.
+     * 
+ * + * .google.type.Date last_used_date = 2; + */ + public Builder mergeLastUsedDate(com.google.type.Date value) { + if (lastUsedDateBuilder_ == null) { + if (lastUsedDate_ != null) { + lastUsedDate_ = + com.google.type.Date.newBuilder(lastUsedDate_).mergeFrom(value).buildPartial(); + } else { + lastUsedDate_ = value; + } + onChanged(); + } else { + lastUsedDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last time this skill was used.
+     * 
+ * + * .google.type.Date last_used_date = 2; + */ + public Builder clearLastUsedDate() { + if (lastUsedDateBuilder_ == null) { + lastUsedDate_ = null; + onChanged(); + } else { + lastUsedDate_ = null; + lastUsedDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last time this skill was used.
+     * 
+ * + * .google.type.Date last_used_date = 2; + */ + public com.google.type.Date.Builder getLastUsedDateBuilder() { + + onChanged(); + return getLastUsedDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The last time this skill was used.
+     * 
+ * + * .google.type.Date last_used_date = 2; + */ + public com.google.type.DateOrBuilder getLastUsedDateOrBuilder() { + if (lastUsedDateBuilder_ != null) { + return lastUsedDateBuilder_.getMessageOrBuilder(); + } else { + return lastUsedDate_ == null ? com.google.type.Date.getDefaultInstance() : lastUsedDate_; + } + } + /** + * + * + *
+     * Optional.
+     * The last time this skill was used.
+     * 
+ * + * .google.type.Date last_used_date = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getLastUsedDateFieldBuilder() { + if (lastUsedDateBuilder_ == null) { + lastUsedDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getLastUsedDate(), getParentForChildren(), isClean()); + lastUsedDate_ = null; + } + return lastUsedDateBuilder_; + } + + private int level_ = 0; + /** + * + * + *
+     * Optional.
+     * Skill proficiency level which indicates how proficient the candidate is at
+     * this skill.
+     * 
+ * + * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + */ + public int getLevelValue() { + return level_; + } + /** + * + * + *
+     * Optional.
+     * Skill proficiency level which indicates how proficient the candidate is at
+     * this skill.
+     * 
+ * + * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + */ + public Builder setLevelValue(int value) { + level_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill proficiency level which indicates how proficient the candidate is at
+     * this skill.
+     * 
+ * + * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + */ + public com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel getLevel() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel result = + com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel.valueOf(level_); + return result == null + ? com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * Skill proficiency level which indicates how proficient the candidate is at
+     * this skill.
+     * 
+ * + * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + */ + public Builder setLevel(com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel value) { + if (value == null) { + throw new NullPointerException(); + } + + level_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill proficiency level which indicates how proficient the candidate is at
+     * this skill.
+     * 
+ * + * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + */ + public Builder clearLevel() { + + level_ = 0; + onChanged(); + return this; + } + + private java.lang.Object context_ = ""; + /** + * + * + *
+     * Optional.
+     * A paragraph describes context of this skill.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string context = 4; + */ + public java.lang.String getContext() { + java.lang.Object ref = context_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + context_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A paragraph describes context of this skill.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string context = 4; + */ + public com.google.protobuf.ByteString getContextBytes() { + java.lang.Object ref = context_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + context_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A paragraph describes context of this skill.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string context = 4; + */ + public Builder setContext(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + context_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A paragraph describes context of this skill.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string context = 4; + */ + public Builder clearContext() { + + context_ = getDefaultInstance().getContext(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A paragraph describes context of this skill.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string context = 4; + */ + public Builder setContextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + context_ = value; + onChanged(); + return this; + } + + private java.lang.Object skillNameSnippet_ = ""; + /** + * + * + *
+     * Output only. Skill name snippet shows how the
+     * [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related
+     * to a search query. It's empty if the
+     * [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't
+     * related to the search query.
+     * 
+ * + * string skill_name_snippet = 5; + */ + public java.lang.String getSkillNameSnippet() { + java.lang.Object ref = skillNameSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + skillNameSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Skill name snippet shows how the
+     * [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related
+     * to a search query. It's empty if the
+     * [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't
+     * related to the search query.
+     * 
+ * + * string skill_name_snippet = 5; + */ + public com.google.protobuf.ByteString getSkillNameSnippetBytes() { + java.lang.Object ref = skillNameSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + skillNameSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Skill name snippet shows how the
+     * [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related
+     * to a search query. It's empty if the
+     * [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't
+     * related to the search query.
+     * 
+ * + * string skill_name_snippet = 5; + */ + public Builder setSkillNameSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + skillNameSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Skill name snippet shows how the
+     * [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related
+     * to a search query. It's empty if the
+     * [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't
+     * related to the search query.
+     * 
+ * + * string skill_name_snippet = 5; + */ + public Builder clearSkillNameSnippet() { + + skillNameSnippet_ = getDefaultInstance().getSkillNameSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Skill name snippet shows how the
+     * [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related
+     * to a search query. It's empty if the
+     * [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't
+     * related to the search query.
+     * 
+ * + * string skill_name_snippet = 5; + */ + public Builder setSkillNameSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + skillNameSnippet_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Skill) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Skill) + private static final com.google.cloud.talent.v4beta1.Skill DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Skill(); + } + + public static com.google.cloud.talent.v4beta1.Skill getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Skill parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Skill(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Skill getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillFilter.java new file mode 100644 index 000000000000..0111c872372c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillFilter.java @@ -0,0 +1,694 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Skill filter of the search.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SkillFilter} + */ +public final class SkillFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SkillFilter) + SkillFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use SkillFilter.newBuilder() to construct. + private SkillFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SkillFilter() { + skill_ = ""; + negated_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SkillFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + skill_ = s; + break; + } + case 16: + { + negated_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_SkillFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_SkillFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SkillFilter.class, + com.google.cloud.talent.v4beta1.SkillFilter.Builder.class); + } + + public static final int SKILL_FIELD_NUMBER = 1; + private volatile java.lang.Object skill_; + /** + * + * + *
+   * Required.
+   * The skill name. For example, "java", "j2ee", etc.
+   * 
+ * + * string skill = 1; + */ + public java.lang.String getSkill() { + java.lang.Object ref = skill_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + skill_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The skill name. For example, "java", "j2ee", etc.
+   * 
+ * + * string skill = 1; + */ + public com.google.protobuf.ByteString getSkillBytes() { + java.lang.Object ref = skill_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + skill_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEGATED_FIELD_NUMBER = 2; + private boolean negated_; + /** + * + * + *
+   * Optional.
+   * Whether to apply negation to the filter so profiles matching the filter
+   * are excluded.
+   * 
+ * + * bool negated = 2; + */ + public boolean getNegated() { + return negated_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getSkillBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, skill_); + } + if (negated_ != false) { + output.writeBool(2, negated_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSkillBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, skill_); + } + if (negated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, negated_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.SkillFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.SkillFilter other = + (com.google.cloud.talent.v4beta1.SkillFilter) obj; + + boolean result = true; + result = result && getSkill().equals(other.getSkill()); + result = result && (getNegated() == other.getNegated()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SKILL_FIELD_NUMBER; + hash = (53 * hash) + getSkill().hashCode(); + hash = (37 * hash) + NEGATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SkillFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SkillFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.SkillFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Skill filter of the search.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SkillFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SkillFilter) + com.google.cloud.talent.v4beta1.SkillFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_SkillFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_SkillFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SkillFilter.class, + com.google.cloud.talent.v4beta1.SkillFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.SkillFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + skill_ = ""; + + negated_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_SkillFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SkillFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.SkillFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SkillFilter build() { + com.google.cloud.talent.v4beta1.SkillFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SkillFilter buildPartial() { + com.google.cloud.talent.v4beta1.SkillFilter result = + new com.google.cloud.talent.v4beta1.SkillFilter(this); + result.skill_ = skill_; + result.negated_ = negated_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.SkillFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.SkillFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.SkillFilter other) { + if (other == com.google.cloud.talent.v4beta1.SkillFilter.getDefaultInstance()) return this; + if (!other.getSkill().isEmpty()) { + skill_ = other.skill_; + onChanged(); + } + if (other.getNegated() != false) { + setNegated(other.getNegated()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.SkillFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.SkillFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object skill_ = ""; + /** + * + * + *
+     * Required.
+     * The skill name. For example, "java", "j2ee", etc.
+     * 
+ * + * string skill = 1; + */ + public java.lang.String getSkill() { + java.lang.Object ref = skill_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + skill_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The skill name. For example, "java", "j2ee", etc.
+     * 
+ * + * string skill = 1; + */ + public com.google.protobuf.ByteString getSkillBytes() { + java.lang.Object ref = skill_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + skill_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The skill name. For example, "java", "j2ee", etc.
+     * 
+ * + * string skill = 1; + */ + public Builder setSkill(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + skill_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The skill name. For example, "java", "j2ee", etc.
+     * 
+ * + * string skill = 1; + */ + public Builder clearSkill() { + + skill_ = getDefaultInstance().getSkill(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The skill name. For example, "java", "j2ee", etc.
+     * 
+ * + * string skill = 1; + */ + public Builder setSkillBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + skill_ = value; + onChanged(); + return this; + } + + private boolean negated_; + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * are excluded.
+     * 
+ * + * bool negated = 2; + */ + public boolean getNegated() { + return negated_; + } + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * are excluded.
+     * 
+ * + * bool negated = 2; + */ + public Builder setNegated(boolean value) { + + negated_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * are excluded.
+     * 
+ * + * bool negated = 2; + */ + public Builder clearNegated() { + + negated_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SkillFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SkillFilter) + private static final com.google.cloud.talent.v4beta1.SkillFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SkillFilter(); + } + + public static com.google.cloud.talent.v4beta1.SkillFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SkillFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SkillFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SkillFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillFilterOrBuilder.java new file mode 100644 index 000000000000..db64683417e9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillFilterOrBuilder.java @@ -0,0 +1,46 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface SkillFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SkillFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The skill name. For example, "java", "j2ee", etc.
+   * 
+ * + * string skill = 1; + */ + java.lang.String getSkill(); + /** + * + * + *
+   * Required.
+   * The skill name. For example, "java", "j2ee", etc.
+   * 
+ * + * string skill = 1; + */ + com.google.protobuf.ByteString getSkillBytes(); + + /** + * + * + *
+   * Optional.
+   * Whether to apply negation to the filter so profiles matching the filter
+   * are excluded.
+   * 
+ * + * bool negated = 2; + */ + boolean getNegated(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillOrBuilder.java new file mode 100644 index 000000000000..c3be9c393e3c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillOrBuilder.java @@ -0,0 +1,150 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface SkillOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Skill) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * Skill display name.
+   * For example, "Java", "Python".
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Optional.
+   * Skill display name.
+   * For example, "Java", "Python".
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional.
+   * The last time this skill was used.
+   * 
+ * + * .google.type.Date last_used_date = 2; + */ + boolean hasLastUsedDate(); + /** + * + * + *
+   * Optional.
+   * The last time this skill was used.
+   * 
+ * + * .google.type.Date last_used_date = 2; + */ + com.google.type.Date getLastUsedDate(); + /** + * + * + *
+   * Optional.
+   * The last time this skill was used.
+   * 
+ * + * .google.type.Date last_used_date = 2; + */ + com.google.type.DateOrBuilder getLastUsedDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Skill proficiency level which indicates how proficient the candidate is at
+   * this skill.
+   * 
+ * + * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + */ + int getLevelValue(); + /** + * + * + *
+   * Optional.
+   * Skill proficiency level which indicates how proficient the candidate is at
+   * this skill.
+   * 
+ * + * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + */ + com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel getLevel(); + + /** + * + * + *
+   * Optional.
+   * A paragraph describes context of this skill.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string context = 4; + */ + java.lang.String getContext(); + /** + * + * + *
+   * Optional.
+   * A paragraph describes context of this skill.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string context = 4; + */ + com.google.protobuf.ByteString getContextBytes(); + + /** + * + * + *
+   * Output only. Skill name snippet shows how the
+   * [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related
+   * to a search query. It's empty if the
+   * [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't
+   * related to the search query.
+   * 
+ * + * string skill_name_snippet = 5; + */ + java.lang.String getSkillNameSnippet(); + /** + * + * + *
+   * Output only. Skill name snippet shows how the
+   * [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related
+   * to a search query. It's empty if the
+   * [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't
+   * related to the search query.
+   * 
+ * + * string skill_name_snippet = 5; + */ + com.google.protobuf.ByteString getSkillNameSnippetBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SpellingCorrection.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SpellingCorrection.java new file mode 100644 index 000000000000..295174ff8603 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SpellingCorrection.java @@ -0,0 +1,877 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Output only.
+ * Spell check result.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SpellingCorrection} + */ +public final class SpellingCorrection extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SpellingCorrection) + SpellingCorrectionOrBuilder { + private static final long serialVersionUID = 0L; + // Use SpellingCorrection.newBuilder() to construct. + private SpellingCorrection(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SpellingCorrection() { + corrected_ = false; + correctedText_ = ""; + correctedHtml_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SpellingCorrection( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + corrected_ = input.readBool(); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + correctedText_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + correctedHtml_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_SpellingCorrection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_SpellingCorrection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SpellingCorrection.class, + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder.class); + } + + public static final int CORRECTED_FIELD_NUMBER = 1; + private boolean corrected_; + /** + * + * + *
+   * Indicates if the query was corrected by the spell checker.
+   * 
+ * + * bool corrected = 1; + */ + public boolean getCorrected() { + return corrected_; + } + + public static final int CORRECTED_TEXT_FIELD_NUMBER = 2; + private volatile java.lang.Object correctedText_; + /** + * + * + *
+   * Correction output consisting of the corrected keyword string.
+   * 
+ * + * string corrected_text = 2; + */ + public java.lang.String getCorrectedText() { + java.lang.Object ref = correctedText_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + correctedText_ = s; + return s; + } + } + /** + * + * + *
+   * Correction output consisting of the corrected keyword string.
+   * 
+ * + * string corrected_text = 2; + */ + public com.google.protobuf.ByteString getCorrectedTextBytes() { + java.lang.Object ref = correctedText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + correctedText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CORRECTED_HTML_FIELD_NUMBER = 3; + private volatile java.lang.Object correctedHtml_; + /** + * + * + *
+   * Corrected output with html tags to highlight the corrected words.
+   * Corrected words are called out with the "<b><i>...</i></b>" html tags.
+   * For example, the user input query is "software enginear", where the second
+   * word, "enginear," is incorrect. It should be "engineer". When spelling
+   * correction is enabled, this value is
+   * "software <b><i>engineer</i></b>".
+   * 
+ * + * string corrected_html = 3; + */ + public java.lang.String getCorrectedHtml() { + java.lang.Object ref = correctedHtml_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + correctedHtml_ = s; + return s; + } + } + /** + * + * + *
+   * Corrected output with html tags to highlight the corrected words.
+   * Corrected words are called out with the "<b><i>...</i></b>" html tags.
+   * For example, the user input query is "software enginear", where the second
+   * word, "enginear," is incorrect. It should be "engineer". When spelling
+   * correction is enabled, this value is
+   * "software <b><i>engineer</i></b>".
+   * 
+ * + * string corrected_html = 3; + */ + public com.google.protobuf.ByteString getCorrectedHtmlBytes() { + java.lang.Object ref = correctedHtml_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + correctedHtml_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (corrected_ != false) { + output.writeBool(1, corrected_); + } + if (!getCorrectedTextBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, correctedText_); + } + if (!getCorrectedHtmlBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, correctedHtml_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (corrected_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, corrected_); + } + if (!getCorrectedTextBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, correctedText_); + } + if (!getCorrectedHtmlBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, correctedHtml_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.SpellingCorrection)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.SpellingCorrection other = + (com.google.cloud.talent.v4beta1.SpellingCorrection) obj; + + boolean result = true; + result = result && (getCorrected() == other.getCorrected()); + result = result && getCorrectedText().equals(other.getCorrectedText()); + result = result && getCorrectedHtml().equals(other.getCorrectedHtml()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CORRECTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCorrected()); + hash = (37 * hash) + CORRECTED_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getCorrectedText().hashCode(); + hash = (37 * hash) + CORRECTED_HTML_FIELD_NUMBER; + hash = (53 * hash) + getCorrectedHtml().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.SpellingCorrection prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Output only.
+   * Spell check result.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SpellingCorrection} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SpellingCorrection) + com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_SpellingCorrection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_SpellingCorrection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SpellingCorrection.class, + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.SpellingCorrection.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + corrected_ = false; + + correctedText_ = ""; + + correctedHtml_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_SpellingCorrection_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SpellingCorrection getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.SpellingCorrection.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SpellingCorrection build() { + com.google.cloud.talent.v4beta1.SpellingCorrection result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SpellingCorrection buildPartial() { + com.google.cloud.talent.v4beta1.SpellingCorrection result = + new com.google.cloud.talent.v4beta1.SpellingCorrection(this); + result.corrected_ = corrected_; + result.correctedText_ = correctedText_; + result.correctedHtml_ = correctedHtml_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.SpellingCorrection) { + return mergeFrom((com.google.cloud.talent.v4beta1.SpellingCorrection) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.SpellingCorrection other) { + if (other == com.google.cloud.talent.v4beta1.SpellingCorrection.getDefaultInstance()) + return this; + if (other.getCorrected() != false) { + setCorrected(other.getCorrected()); + } + if (!other.getCorrectedText().isEmpty()) { + correctedText_ = other.correctedText_; + onChanged(); + } + if (!other.getCorrectedHtml().isEmpty()) { + correctedHtml_ = other.correctedHtml_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.SpellingCorrection parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.SpellingCorrection) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean corrected_; + /** + * + * + *
+     * Indicates if the query was corrected by the spell checker.
+     * 
+ * + * bool corrected = 1; + */ + public boolean getCorrected() { + return corrected_; + } + /** + * + * + *
+     * Indicates if the query was corrected by the spell checker.
+     * 
+ * + * bool corrected = 1; + */ + public Builder setCorrected(boolean value) { + + corrected_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Indicates if the query was corrected by the spell checker.
+     * 
+ * + * bool corrected = 1; + */ + public Builder clearCorrected() { + + corrected_ = false; + onChanged(); + return this; + } + + private java.lang.Object correctedText_ = ""; + /** + * + * + *
+     * Correction output consisting of the corrected keyword string.
+     * 
+ * + * string corrected_text = 2; + */ + public java.lang.String getCorrectedText() { + java.lang.Object ref = correctedText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + correctedText_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Correction output consisting of the corrected keyword string.
+     * 
+ * + * string corrected_text = 2; + */ + public com.google.protobuf.ByteString getCorrectedTextBytes() { + java.lang.Object ref = correctedText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + correctedText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Correction output consisting of the corrected keyword string.
+     * 
+ * + * string corrected_text = 2; + */ + public Builder setCorrectedText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + correctedText_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Correction output consisting of the corrected keyword string.
+     * 
+ * + * string corrected_text = 2; + */ + public Builder clearCorrectedText() { + + correctedText_ = getDefaultInstance().getCorrectedText(); + onChanged(); + return this; + } + /** + * + * + *
+     * Correction output consisting of the corrected keyword string.
+     * 
+ * + * string corrected_text = 2; + */ + public Builder setCorrectedTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + correctedText_ = value; + onChanged(); + return this; + } + + private java.lang.Object correctedHtml_ = ""; + /** + * + * + *
+     * Corrected output with html tags to highlight the corrected words.
+     * Corrected words are called out with the "<b><i>...</i></b>" html tags.
+     * For example, the user input query is "software enginear", where the second
+     * word, "enginear," is incorrect. It should be "engineer". When spelling
+     * correction is enabled, this value is
+     * "software <b><i>engineer</i></b>".
+     * 
+ * + * string corrected_html = 3; + */ + public java.lang.String getCorrectedHtml() { + java.lang.Object ref = correctedHtml_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + correctedHtml_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Corrected output with html tags to highlight the corrected words.
+     * Corrected words are called out with the "<b><i>...</i></b>" html tags.
+     * For example, the user input query is "software enginear", where the second
+     * word, "enginear," is incorrect. It should be "engineer". When spelling
+     * correction is enabled, this value is
+     * "software <b><i>engineer</i></b>".
+     * 
+ * + * string corrected_html = 3; + */ + public com.google.protobuf.ByteString getCorrectedHtmlBytes() { + java.lang.Object ref = correctedHtml_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + correctedHtml_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Corrected output with html tags to highlight the corrected words.
+     * Corrected words are called out with the "<b><i>...</i></b>" html tags.
+     * For example, the user input query is "software enginear", where the second
+     * word, "enginear," is incorrect. It should be "engineer". When spelling
+     * correction is enabled, this value is
+     * "software <b><i>engineer</i></b>".
+     * 
+ * + * string corrected_html = 3; + */ + public Builder setCorrectedHtml(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + correctedHtml_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Corrected output with html tags to highlight the corrected words.
+     * Corrected words are called out with the "<b><i>...</i></b>" html tags.
+     * For example, the user input query is "software enginear", where the second
+     * word, "enginear," is incorrect. It should be "engineer". When spelling
+     * correction is enabled, this value is
+     * "software <b><i>engineer</i></b>".
+     * 
+ * + * string corrected_html = 3; + */ + public Builder clearCorrectedHtml() { + + correctedHtml_ = getDefaultInstance().getCorrectedHtml(); + onChanged(); + return this; + } + /** + * + * + *
+     * Corrected output with html tags to highlight the corrected words.
+     * Corrected words are called out with the "<b><i>...</i></b>" html tags.
+     * For example, the user input query is "software enginear", where the second
+     * word, "enginear," is incorrect. It should be "engineer". When spelling
+     * correction is enabled, this value is
+     * "software <b><i>engineer</i></b>".
+     * 
+ * + * string corrected_html = 3; + */ + public Builder setCorrectedHtmlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + correctedHtml_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SpellingCorrection) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SpellingCorrection) + private static final com.google.cloud.talent.v4beta1.SpellingCorrection DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SpellingCorrection(); + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpellingCorrection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpellingCorrection(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SpellingCorrection getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SpellingCorrectionOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SpellingCorrectionOrBuilder.java new file mode 100644 index 000000000000..849748d13d06 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SpellingCorrectionOrBuilder.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +public interface SpellingCorrectionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SpellingCorrection) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Indicates if the query was corrected by the spell checker.
+   * 
+ * + * bool corrected = 1; + */ + boolean getCorrected(); + + /** + * + * + *
+   * Correction output consisting of the corrected keyword string.
+   * 
+ * + * string corrected_text = 2; + */ + java.lang.String getCorrectedText(); + /** + * + * + *
+   * Correction output consisting of the corrected keyword string.
+   * 
+ * + * string corrected_text = 2; + */ + com.google.protobuf.ByteString getCorrectedTextBytes(); + + /** + * + * + *
+   * Corrected output with html tags to highlight the corrected words.
+   * Corrected words are called out with the "<b><i>...</i></b>" html tags.
+   * For example, the user input query is "software enginear", where the second
+   * word, "enginear," is incorrect. It should be "engineer". When spelling
+   * correction is enabled, this value is
+   * "software <b><i>engineer</i></b>".
+   * 
+ * + * string corrected_html = 3; + */ + java.lang.String getCorrectedHtml(); + /** + * + * + *
+   * Corrected output with html tags to highlight the corrected words.
+   * Corrected words are called out with the "<b><i>...</i></b>" html tags.
+   * For example, the user input query is "software enginear", where the second
+   * word, "enginear," is incorrect. It should be "engineer". When spelling
+   * correction is enabled, this value is
+   * "software <b><i>engineer</i></b>".
+   * 
+ * + * string corrected_html = 3; + */ + com.google.protobuf.ByteString getCorrectedHtmlBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SummarizedProfile.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SummarizedProfile.java new file mode 100644 index 000000000000..8b9abde10575 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SummarizedProfile.java @@ -0,0 +1,1320 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Output only.
+ * Profile entry with metadata inside
+ * [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse].
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SummarizedProfile} + */ +public final class SummarizedProfile extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SummarizedProfile) + SummarizedProfileOrBuilder { + private static final long serialVersionUID = 0L; + // Use SummarizedProfile.newBuilder() to construct. + private SummarizedProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SummarizedProfile() { + profiles_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SummarizedProfile( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + profiles_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + profiles_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Profile.parser(), extensionRegistry)); + break; + } + case 18: + { + com.google.cloud.talent.v4beta1.Profile.Builder subBuilder = null; + if (summary_ != null) { + subBuilder = summary_.toBuilder(); + } + summary_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Profile.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(summary_); + summary_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + profiles_ = java.util.Collections.unmodifiableList(profiles_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SummarizedProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SummarizedProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SummarizedProfile.class, + com.google.cloud.talent.v4beta1.SummarizedProfile.Builder.class); + } + + private int bitField0_; + public static final int PROFILES_FIELD_NUMBER = 1; + private java.util.List profiles_; + /** + * + * + *
+   * A list of profiles that are linked by [Profile.cluster_id][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public java.util.List getProfilesList() { + return profiles_; + } + /** + * + * + *
+   * A list of profiles that are linked by [Profile.cluster_id][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public java.util.List + getProfilesOrBuilderList() { + return profiles_; + } + /** + * + * + *
+   * A list of profiles that are linked by [Profile.cluster_id][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public int getProfilesCount() { + return profiles_.size(); + } + /** + * + * + *
+   * A list of profiles that are linked by [Profile.cluster_id][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.Profile getProfiles(int index) { + return profiles_.get(index); + } + /** + * + * + *
+   * A list of profiles that are linked by [Profile.cluster_id][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfilesOrBuilder(int index) { + return profiles_.get(index); + } + + public static final int SUMMARY_FIELD_NUMBER = 2; + private com.google.cloud.talent.v4beta1.Profile summary_; + /** + * + * + *
+   * A profile summary shows the profile summary and how the profile matches the
+   * search query.
+   * In profile summary, the profiles with the same [Profile.cluster_id][] are
+   * merged together. Among profiles, same education/employment records may be
+   * slightly different but they are merged into one with best efforts.
+   * For example, in one profile the school name is "UC Berkeley" and the field
+   * study is "Computer Science" and in another one the school name is
+   * "University of California at Berkeley" and the field study is "CS". The API
+   * merges these two inputs into one and selects one value for each field. For
+   * example, the school name in summary is set to "University of California at
+   * Berkeley" and the field of study is set to "Computer Science".
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + public boolean hasSummary() { + return summary_ != null; + } + /** + * + * + *
+   * A profile summary shows the profile summary and how the profile matches the
+   * search query.
+   * In profile summary, the profiles with the same [Profile.cluster_id][] are
+   * merged together. Among profiles, same education/employment records may be
+   * slightly different but they are merged into one with best efforts.
+   * For example, in one profile the school name is "UC Berkeley" and the field
+   * study is "Computer Science" and in another one the school name is
+   * "University of California at Berkeley" and the field study is "CS". The API
+   * merges these two inputs into one and selects one value for each field. For
+   * example, the school name in summary is set to "University of California at
+   * Berkeley" and the field of study is set to "Computer Science".
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + public com.google.cloud.talent.v4beta1.Profile getSummary() { + return summary_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : summary_; + } + /** + * + * + *
+   * A profile summary shows the profile summary and how the profile matches the
+   * search query.
+   * In profile summary, the profiles with the same [Profile.cluster_id][] are
+   * merged together. Among profiles, same education/employment records may be
+   * slightly different but they are merged into one with best efforts.
+   * For example, in one profile the school name is "UC Berkeley" and the field
+   * study is "Computer Science" and in another one the school name is
+   * "University of California at Berkeley" and the field study is "CS". The API
+   * merges these two inputs into one and selects one value for each field. For
+   * example, the school name in summary is set to "University of California at
+   * Berkeley" and the field of study is set to "Computer Science".
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getSummaryOrBuilder() { + return getSummary(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < profiles_.size(); i++) { + output.writeMessage(1, profiles_.get(i)); + } + if (summary_ != null) { + output.writeMessage(2, getSummary()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < profiles_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, profiles_.get(i)); + } + if (summary_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSummary()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.SummarizedProfile)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.SummarizedProfile other = + (com.google.cloud.talent.v4beta1.SummarizedProfile) obj; + + boolean result = true; + result = result && getProfilesList().equals(other.getProfilesList()); + result = result && (hasSummary() == other.hasSummary()); + if (hasSummary()) { + result = result && getSummary().equals(other.getSummary()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getProfilesCount() > 0) { + hash = (37 * hash) + PROFILES_FIELD_NUMBER; + hash = (53 * hash) + getProfilesList().hashCode(); + } + if (hasSummary()) { + hash = (37 * hash) + SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getSummary().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.SummarizedProfile prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Output only.
+   * Profile entry with metadata inside
+   * [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse].
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SummarizedProfile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SummarizedProfile) + com.google.cloud.talent.v4beta1.SummarizedProfileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SummarizedProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SummarizedProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SummarizedProfile.class, + com.google.cloud.talent.v4beta1.SummarizedProfile.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.SummarizedProfile.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getProfilesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (profilesBuilder_ == null) { + profiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + profilesBuilder_.clear(); + } + if (summaryBuilder_ == null) { + summary_ = null; + } else { + summary_ = null; + summaryBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SummarizedProfile_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SummarizedProfile getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.SummarizedProfile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SummarizedProfile build() { + com.google.cloud.talent.v4beta1.SummarizedProfile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SummarizedProfile buildPartial() { + com.google.cloud.talent.v4beta1.SummarizedProfile result = + new com.google.cloud.talent.v4beta1.SummarizedProfile(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (profilesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + profiles_ = java.util.Collections.unmodifiableList(profiles_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.profiles_ = profiles_; + } else { + result.profiles_ = profilesBuilder_.build(); + } + if (summaryBuilder_ == null) { + result.summary_ = summary_; + } else { + result.summary_ = summaryBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.SummarizedProfile) { + return mergeFrom((com.google.cloud.talent.v4beta1.SummarizedProfile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.SummarizedProfile other) { + if (other == com.google.cloud.talent.v4beta1.SummarizedProfile.getDefaultInstance()) + return this; + if (profilesBuilder_ == null) { + if (!other.profiles_.isEmpty()) { + if (profiles_.isEmpty()) { + profiles_ = other.profiles_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureProfilesIsMutable(); + profiles_.addAll(other.profiles_); + } + onChanged(); + } + } else { + if (!other.profiles_.isEmpty()) { + if (profilesBuilder_.isEmpty()) { + profilesBuilder_.dispose(); + profilesBuilder_ = null; + profiles_ = other.profiles_; + bitField0_ = (bitField0_ & ~0x00000001); + profilesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getProfilesFieldBuilder() + : null; + } else { + profilesBuilder_.addAllMessages(other.profiles_); + } + } + } + if (other.hasSummary()) { + mergeSummary(other.getSummary()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.SummarizedProfile parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.SummarizedProfile) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List profiles_ = + java.util.Collections.emptyList(); + + private void ensureProfilesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + profiles_ = new java.util.ArrayList(profiles_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + profilesBuilder_; + + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public java.util.List getProfilesList() { + if (profilesBuilder_ == null) { + return java.util.Collections.unmodifiableList(profiles_); + } else { + return profilesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public int getProfilesCount() { + if (profilesBuilder_ == null) { + return profiles_.size(); + } else { + return profilesBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.Profile getProfiles(int index) { + if (profilesBuilder_ == null) { + return profiles_.get(index); + } else { + return profilesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder setProfiles(int index, com.google.cloud.talent.v4beta1.Profile value) { + if (profilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProfilesIsMutable(); + profiles_.set(index, value); + onChanged(); + } else { + profilesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder setProfiles( + int index, com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + profiles_.set(index, builderForValue.build()); + onChanged(); + } else { + profilesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder addProfiles(com.google.cloud.talent.v4beta1.Profile value) { + if (profilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProfilesIsMutable(); + profiles_.add(value); + onChanged(); + } else { + profilesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder addProfiles(int index, com.google.cloud.talent.v4beta1.Profile value) { + if (profilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProfilesIsMutable(); + profiles_.add(index, value); + onChanged(); + } else { + profilesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder addProfiles(com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + profiles_.add(builderForValue.build()); + onChanged(); + } else { + profilesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder addProfiles( + int index, com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + profiles_.add(index, builderForValue.build()); + onChanged(); + } else { + profilesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder addAllProfiles( + java.lang.Iterable values) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, profiles_); + onChanged(); + } else { + profilesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder clearProfiles() { + if (profilesBuilder_ == null) { + profiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + profilesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder removeProfiles(int index) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + profiles_.remove(index); + onChanged(); + } else { + profilesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.Profile.Builder getProfilesBuilder(int index) { + return getProfilesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfilesOrBuilder(int index) { + if (profilesBuilder_ == null) { + return profiles_.get(index); + } else { + return profilesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public java.util.List + getProfilesOrBuilderList() { + if (profilesBuilder_ != null) { + return profilesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(profiles_); + } + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.Profile.Builder addProfilesBuilder() { + return getProfilesFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Profile.getDefaultInstance()); + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.Profile.Builder addProfilesBuilder(int index) { + return getProfilesFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Profile.getDefaultInstance()); + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public java.util.List + getProfilesBuilderList() { + return getProfilesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + getProfilesFieldBuilder() { + if (profilesBuilder_ == null) { + profilesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder>( + profiles_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + profiles_ = null; + } + return profilesBuilder_; + } + + private com.google.cloud.talent.v4beta1.Profile summary_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + summaryBuilder_; + /** + * + * + *
+     * A profile summary shows the profile summary and how the profile matches the
+     * search query.
+     * In profile summary, the profiles with the same [Profile.cluster_id][] are
+     * merged together. Among profiles, same education/employment records may be
+     * slightly different but they are merged into one with best efforts.
+     * For example, in one profile the school name is "UC Berkeley" and the field
+     * study is "Computer Science" and in another one the school name is
+     * "University of California at Berkeley" and the field study is "CS". The API
+     * merges these two inputs into one and selects one value for each field. For
+     * example, the school name in summary is set to "University of California at
+     * Berkeley" and the field of study is set to "Computer Science".
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + public boolean hasSummary() { + return summaryBuilder_ != null || summary_ != null; + } + /** + * + * + *
+     * A profile summary shows the profile summary and how the profile matches the
+     * search query.
+     * In profile summary, the profiles with the same [Profile.cluster_id][] are
+     * merged together. Among profiles, same education/employment records may be
+     * slightly different but they are merged into one with best efforts.
+     * For example, in one profile the school name is "UC Berkeley" and the field
+     * study is "Computer Science" and in another one the school name is
+     * "University of California at Berkeley" and the field study is "CS". The API
+     * merges these two inputs into one and selects one value for each field. For
+     * example, the school name in summary is set to "University of California at
+     * Berkeley" and the field of study is set to "Computer Science".
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + public com.google.cloud.talent.v4beta1.Profile getSummary() { + if (summaryBuilder_ == null) { + return summary_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : summary_; + } else { + return summaryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * A profile summary shows the profile summary and how the profile matches the
+     * search query.
+     * In profile summary, the profiles with the same [Profile.cluster_id][] are
+     * merged together. Among profiles, same education/employment records may be
+     * slightly different but they are merged into one with best efforts.
+     * For example, in one profile the school name is "UC Berkeley" and the field
+     * study is "Computer Science" and in another one the school name is
+     * "University of California at Berkeley" and the field study is "CS". The API
+     * merges these two inputs into one and selects one value for each field. For
+     * example, the school name in summary is set to "University of California at
+     * Berkeley" and the field of study is set to "Computer Science".
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + public Builder setSummary(com.google.cloud.talent.v4beta1.Profile value) { + if (summaryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + summary_ = value; + onChanged(); + } else { + summaryBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * A profile summary shows the profile summary and how the profile matches the
+     * search query.
+     * In profile summary, the profiles with the same [Profile.cluster_id][] are
+     * merged together. Among profiles, same education/employment records may be
+     * slightly different but they are merged into one with best efforts.
+     * For example, in one profile the school name is "UC Berkeley" and the field
+     * study is "Computer Science" and in another one the school name is
+     * "University of California at Berkeley" and the field study is "CS". The API
+     * merges these two inputs into one and selects one value for each field. For
+     * example, the school name in summary is set to "University of California at
+     * Berkeley" and the field of study is set to "Computer Science".
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + public Builder setSummary(com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { + if (summaryBuilder_ == null) { + summary_ = builderForValue.build(); + onChanged(); + } else { + summaryBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * A profile summary shows the profile summary and how the profile matches the
+     * search query.
+     * In profile summary, the profiles with the same [Profile.cluster_id][] are
+     * merged together. Among profiles, same education/employment records may be
+     * slightly different but they are merged into one with best efforts.
+     * For example, in one profile the school name is "UC Berkeley" and the field
+     * study is "Computer Science" and in another one the school name is
+     * "University of California at Berkeley" and the field study is "CS". The API
+     * merges these two inputs into one and selects one value for each field. For
+     * example, the school name in summary is set to "University of California at
+     * Berkeley" and the field of study is set to "Computer Science".
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + public Builder mergeSummary(com.google.cloud.talent.v4beta1.Profile value) { + if (summaryBuilder_ == null) { + if (summary_ != null) { + summary_ = + com.google.cloud.talent.v4beta1.Profile.newBuilder(summary_) + .mergeFrom(value) + .buildPartial(); + } else { + summary_ = value; + } + onChanged(); + } else { + summaryBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * A profile summary shows the profile summary and how the profile matches the
+     * search query.
+     * In profile summary, the profiles with the same [Profile.cluster_id][] are
+     * merged together. Among profiles, same education/employment records may be
+     * slightly different but they are merged into one with best efforts.
+     * For example, in one profile the school name is "UC Berkeley" and the field
+     * study is "Computer Science" and in another one the school name is
+     * "University of California at Berkeley" and the field study is "CS". The API
+     * merges these two inputs into one and selects one value for each field. For
+     * example, the school name in summary is set to "University of California at
+     * Berkeley" and the field of study is set to "Computer Science".
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + public Builder clearSummary() { + if (summaryBuilder_ == null) { + summary_ = null; + onChanged(); + } else { + summary_ = null; + summaryBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * A profile summary shows the profile summary and how the profile matches the
+     * search query.
+     * In profile summary, the profiles with the same [Profile.cluster_id][] are
+     * merged together. Among profiles, same education/employment records may be
+     * slightly different but they are merged into one with best efforts.
+     * For example, in one profile the school name is "UC Berkeley" and the field
+     * study is "Computer Science" and in another one the school name is
+     * "University of California at Berkeley" and the field study is "CS". The API
+     * merges these two inputs into one and selects one value for each field. For
+     * example, the school name in summary is set to "University of California at
+     * Berkeley" and the field of study is set to "Computer Science".
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + public com.google.cloud.talent.v4beta1.Profile.Builder getSummaryBuilder() { + + onChanged(); + return getSummaryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A profile summary shows the profile summary and how the profile matches the
+     * search query.
+     * In profile summary, the profiles with the same [Profile.cluster_id][] are
+     * merged together. Among profiles, same education/employment records may be
+     * slightly different but they are merged into one with best efforts.
+     * For example, in one profile the school name is "UC Berkeley" and the field
+     * study is "Computer Science" and in another one the school name is
+     * "University of California at Berkeley" and the field study is "CS". The API
+     * merges these two inputs into one and selects one value for each field. For
+     * example, the school name in summary is set to "University of California at
+     * Berkeley" and the field of study is set to "Computer Science".
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getSummaryOrBuilder() { + if (summaryBuilder_ != null) { + return summaryBuilder_.getMessageOrBuilder(); + } else { + return summary_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : summary_; + } + } + /** + * + * + *
+     * A profile summary shows the profile summary and how the profile matches the
+     * search query.
+     * In profile summary, the profiles with the same [Profile.cluster_id][] are
+     * merged together. Among profiles, same education/employment records may be
+     * slightly different but they are merged into one with best efforts.
+     * For example, in one profile the school name is "UC Berkeley" and the field
+     * study is "Computer Science" and in another one the school name is
+     * "University of California at Berkeley" and the field study is "CS". The API
+     * merges these two inputs into one and selects one value for each field. For
+     * example, the school name in summary is set to "University of California at
+     * Berkeley" and the field of study is set to "Computer Science".
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + getSummaryFieldBuilder() { + if (summaryBuilder_ == null) { + summaryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder>( + getSummary(), getParentForChildren(), isClean()); + summary_ = null; + } + return summaryBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SummarizedProfile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SummarizedProfile) + private static final com.google.cloud.talent.v4beta1.SummarizedProfile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SummarizedProfile(); + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SummarizedProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SummarizedProfile(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SummarizedProfile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SummarizedProfileOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SummarizedProfileOrBuilder.java new file mode 100644 index 000000000000..9d32f0691e8b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SummarizedProfileOrBuilder.java @@ -0,0 +1,123 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface SummarizedProfileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SummarizedProfile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of profiles that are linked by [Profile.cluster_id][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + java.util.List getProfilesList(); + /** + * + * + *
+   * A list of profiles that are linked by [Profile.cluster_id][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + com.google.cloud.talent.v4beta1.Profile getProfiles(int index); + /** + * + * + *
+   * A list of profiles that are linked by [Profile.cluster_id][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + int getProfilesCount(); + /** + * + * + *
+   * A list of profiles that are linked by [Profile.cluster_id][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + java.util.List + getProfilesOrBuilderList(); + /** + * + * + *
+   * A list of profiles that are linked by [Profile.cluster_id][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfilesOrBuilder(int index); + + /** + * + * + *
+   * A profile summary shows the profile summary and how the profile matches the
+   * search query.
+   * In profile summary, the profiles with the same [Profile.cluster_id][] are
+   * merged together. Among profiles, same education/employment records may be
+   * slightly different but they are merged into one with best efforts.
+   * For example, in one profile the school name is "UC Berkeley" and the field
+   * study is "Computer Science" and in another one the school name is
+   * "University of California at Berkeley" and the field study is "CS". The API
+   * merges these two inputs into one and selects one value for each field. For
+   * example, the school name in summary is set to "University of California at
+   * Berkeley" and the field of study is set to "Computer Science".
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + boolean hasSummary(); + /** + * + * + *
+   * A profile summary shows the profile summary and how the profile matches the
+   * search query.
+   * In profile summary, the profiles with the same [Profile.cluster_id][] are
+   * merged together. Among profiles, same education/employment records may be
+   * slightly different but they are merged into one with best efforts.
+   * For example, in one profile the school name is "UC Berkeley" and the field
+   * study is "Computer Science" and in another one the school name is
+   * "University of California at Berkeley" and the field study is "CS". The API
+   * merges these two inputs into one and selects one value for each field. For
+   * example, the school name in summary is set to "University of California at
+   * Berkeley" and the field of study is set to "Computer Science".
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + com.google.cloud.talent.v4beta1.Profile getSummary(); + /** + * + * + *
+   * A profile summary shows the profile summary and how the profile matches the
+   * search query.
+   * In profile summary, the profiles with the same [Profile.cluster_id][] are
+   * merged together. Among profiles, same education/employment records may be
+   * slightly different but they are merged into one with best efforts.
+   * For example, in one profile the school name is "UC Berkeley" and the field
+   * study is "Computer Science" and in another one the school name is
+   * "University of California at Berkeley" and the field study is "CS". The API
+   * merges these two inputs into one and selects one value for each field. For
+   * example, the school name in summary is set to "University of California at
+   * Berkeley" and the field of study is set to "Computer Science".
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + com.google.cloud.talent.v4beta1.ProfileOrBuilder getSummaryOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Tenant.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Tenant.java new file mode 100644 index 000000000000..6d0cb89c1256 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Tenant.java @@ -0,0 +1,1126 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * A Tenant resource represents a tenant in the service. A tenant is a group or
+ * entity that shares common access with specific privileges for resources like
+ * profiles. Customer may create multiple tenants to provide data isolation for
+ * different groups.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Tenant} + */ +public final class Tenant extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Tenant) + TenantOrBuilder { + private static final long serialVersionUID = 0L; + // Use Tenant.newBuilder() to construct. + private Tenant(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Tenant() { + name_ = ""; + externalId_ = ""; + usageType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Tenant( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + externalId_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); + + usageType_ = rawValue; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantResourceProto + .internal_static_google_cloud_talent_v4beta1_Tenant_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantResourceProto + .internal_static_google_cloud_talent_v4beta1_Tenant_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Tenant.class, + com.google.cloud.talent.v4beta1.Tenant.Builder.class); + } + + /** + * + * + *
+   * Enum that represents how user data owned by the tenant is used.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.Tenant.DataUsageType} + */ + public enum DataUsageType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * DATA_USAGE_TYPE_UNSPECIFIED = 0; + */ + DATA_USAGE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Data owned by this tenant is used to improve search/recommendation
+     * quality across tenants.
+     * 
+ * + * AGGREGATED = 1; + */ + AGGREGATED(1), + /** + * + * + *
+     * Data owned by this tenant is used to improve search/recommendation
+     * quality for this tenant only.
+     * 
+ * + * ISOLATED = 2; + */ + ISOLATED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * DATA_USAGE_TYPE_UNSPECIFIED = 0; + */ + public static final int DATA_USAGE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Data owned by this tenant is used to improve search/recommendation
+     * quality across tenants.
+     * 
+ * + * AGGREGATED = 1; + */ + public static final int AGGREGATED_VALUE = 1; + /** + * + * + *
+     * Data owned by this tenant is used to improve search/recommendation
+     * quality for this tenant only.
+     * 
+ * + * ISOLATED = 2; + */ + public static final int ISOLATED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static DataUsageType valueOf(int value) { + return forNumber(value); + } + + public static DataUsageType forNumber(int value) { + switch (value) { + case 0: + return DATA_USAGE_TYPE_UNSPECIFIED; + case 1: + return AGGREGATED; + case 2: + return ISOLATED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DataUsageType findValueByNumber(int number) { + return DataUsageType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.Tenant.getDescriptor().getEnumTypes().get(0); + } + + private static final DataUsageType[] VALUES = values(); + + public static DataUsageType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DataUsageType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.Tenant.DataUsageType) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required during tenant update.
+   * The resource name for a tenant. This is generated by the service when a
+   * tenant is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required during tenant update.
+   * The resource name for a tenant. This is generated by the service when a
+   * tenant is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXTERNAL_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object externalId_; + /** + * + * + *
+   * Required.
+   * Client side tenant identifier, used to uniquely identify the tenant.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string external_id = 2; + */ + public java.lang.String getExternalId() { + java.lang.Object ref = externalId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + externalId_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * Client side tenant identifier, used to uniquely identify the tenant.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string external_id = 2; + */ + public com.google.protobuf.ByteString getExternalIdBytes() { + java.lang.Object ref = externalId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USAGE_TYPE_FIELD_NUMBER = 3; + private int usageType_; + /** + * + * + *
+   * Optional.
+   * Indicates whether data owned by this tenant may be used to provide product
+   * improvements across other tenants.
+   * Defaults behavior is
+   * [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED]
+   * if it's unset.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant.DataUsageType usage_type = 3; + */ + public int getUsageTypeValue() { + return usageType_; + } + /** + * + * + *
+   * Optional.
+   * Indicates whether data owned by this tenant may be used to provide product
+   * improvements across other tenants.
+   * Defaults behavior is
+   * [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED]
+   * if it's unset.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant.DataUsageType usage_type = 3; + */ + public com.google.cloud.talent.v4beta1.Tenant.DataUsageType getUsageType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.Tenant.DataUsageType result = + com.google.cloud.talent.v4beta1.Tenant.DataUsageType.valueOf(usageType_); + return result == null + ? com.google.cloud.talent.v4beta1.Tenant.DataUsageType.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getExternalIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, externalId_); + } + if (usageType_ + != com.google.cloud.talent.v4beta1.Tenant.DataUsageType.DATA_USAGE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, usageType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getExternalIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, externalId_); + } + if (usageType_ + != com.google.cloud.talent.v4beta1.Tenant.DataUsageType.DATA_USAGE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, usageType_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Tenant)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Tenant other = (com.google.cloud.talent.v4beta1.Tenant) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && getExternalId().equals(other.getExternalId()); + result = result && usageType_ == other.usageType_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + EXTERNAL_ID_FIELD_NUMBER; + hash = (53 * hash) + getExternalId().hashCode(); + hash = (37 * hash) + USAGE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + usageType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Tenant parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Tenant parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Tenant parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Tenant parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Tenant parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Tenant parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Tenant parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Tenant parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Tenant parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Tenant parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Tenant parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Tenant parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.Tenant prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A Tenant resource represents a tenant in the service. A tenant is a group or
+   * entity that shares common access with specific privileges for resources like
+   * profiles. Customer may create multiple tenants to provide data isolation for
+   * different groups.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Tenant} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Tenant) + com.google.cloud.talent.v4beta1.TenantOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantResourceProto + .internal_static_google_cloud_talent_v4beta1_Tenant_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantResourceProto + .internal_static_google_cloud_talent_v4beta1_Tenant_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Tenant.class, + com.google.cloud.talent.v4beta1.Tenant.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Tenant.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + externalId_ = ""; + + usageType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.TenantResourceProto + .internal_static_google_cloud_talent_v4beta1_Tenant_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Tenant getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Tenant build() { + com.google.cloud.talent.v4beta1.Tenant result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Tenant buildPartial() { + com.google.cloud.talent.v4beta1.Tenant result = + new com.google.cloud.talent.v4beta1.Tenant(this); + result.name_ = name_; + result.externalId_ = externalId_; + result.usageType_ = usageType_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Tenant) { + return mergeFrom((com.google.cloud.talent.v4beta1.Tenant) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Tenant other) { + if (other == com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getExternalId().isEmpty()) { + externalId_ = other.externalId_; + onChanged(); + } + if (other.usageType_ != 0) { + setUsageTypeValue(other.getUsageTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Tenant parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Tenant) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required during tenant update.
+     * The resource name for a tenant. This is generated by the service when a
+     * tenant is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required during tenant update.
+     * The resource name for a tenant. This is generated by the service when a
+     * tenant is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required during tenant update.
+     * The resource name for a tenant. This is generated by the service when a
+     * tenant is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required during tenant update.
+     * The resource name for a tenant. This is generated by the service when a
+     * tenant is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required during tenant update.
+     * The resource name for a tenant. This is generated by the service when a
+     * tenant is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object externalId_ = ""; + /** + * + * + *
+     * Required.
+     * Client side tenant identifier, used to uniquely identify the tenant.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 2; + */ + public java.lang.String getExternalId() { + java.lang.Object ref = externalId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + externalId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * Client side tenant identifier, used to uniquely identify the tenant.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 2; + */ + public com.google.protobuf.ByteString getExternalIdBytes() { + java.lang.Object ref = externalId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * Client side tenant identifier, used to uniquely identify the tenant.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 2; + */ + public Builder setExternalId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + externalId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Client side tenant identifier, used to uniquely identify the tenant.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 2; + */ + public Builder clearExternalId() { + + externalId_ = getDefaultInstance().getExternalId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Client side tenant identifier, used to uniquely identify the tenant.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 2; + */ + public Builder setExternalIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + externalId_ = value; + onChanged(); + return this; + } + + private int usageType_ = 0; + /** + * + * + *
+     * Optional.
+     * Indicates whether data owned by this tenant may be used to provide product
+     * improvements across other tenants.
+     * Defaults behavior is
+     * [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED]
+     * if it's unset.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant.DataUsageType usage_type = 3; + */ + public int getUsageTypeValue() { + return usageType_; + } + /** + * + * + *
+     * Optional.
+     * Indicates whether data owned by this tenant may be used to provide product
+     * improvements across other tenants.
+     * Defaults behavior is
+     * [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED]
+     * if it's unset.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant.DataUsageType usage_type = 3; + */ + public Builder setUsageTypeValue(int value) { + usageType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Indicates whether data owned by this tenant may be used to provide product
+     * improvements across other tenants.
+     * Defaults behavior is
+     * [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED]
+     * if it's unset.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant.DataUsageType usage_type = 3; + */ + public com.google.cloud.talent.v4beta1.Tenant.DataUsageType getUsageType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.Tenant.DataUsageType result = + com.google.cloud.talent.v4beta1.Tenant.DataUsageType.valueOf(usageType_); + return result == null + ? com.google.cloud.talent.v4beta1.Tenant.DataUsageType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * Indicates whether data owned by this tenant may be used to provide product
+     * improvements across other tenants.
+     * Defaults behavior is
+     * [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED]
+     * if it's unset.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant.DataUsageType usage_type = 3; + */ + public Builder setUsageType(com.google.cloud.talent.v4beta1.Tenant.DataUsageType value) { + if (value == null) { + throw new NullPointerException(); + } + + usageType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Indicates whether data owned by this tenant may be used to provide product
+     * improvements across other tenants.
+     * Defaults behavior is
+     * [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED]
+     * if it's unset.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant.DataUsageType usage_type = 3; + */ + public Builder clearUsageType() { + + usageType_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Tenant) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Tenant) + private static final com.google.cloud.talent.v4beta1.Tenant DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Tenant(); + } + + public static com.google.cloud.talent.v4beta1.Tenant getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Tenant parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Tenant(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Tenant getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantName.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantName.java new file mode 100644 index 000000000000..30e378a8e100 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantName.java @@ -0,0 +1,180 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.cloud.talent.v4beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class TenantName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/tenants/{tenant}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String tenant; + + public String getProject() { + return project; + } + + public String getTenant() { + return tenant; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private TenantName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + tenant = Preconditions.checkNotNull(builder.getTenant()); + } + + public static TenantName of(String project, String tenant) { + return newBuilder().setProject(project).setTenant(tenant).build(); + } + + public static String format(String project, String tenant) { + return newBuilder().setProject(project).setTenant(tenant).build().toString(); + } + + public static TenantName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "TenantName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("tenant")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (TenantName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("tenant", tenant); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "tenant", tenant); + } + + /** Builder for TenantName. */ + public static class Builder { + + private String project; + private String tenant; + + public String getProject() { + return project; + } + + public String getTenant() { + return tenant; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setTenant(String tenant) { + this.tenant = tenant; + return this; + } + + private Builder() {} + + private Builder(TenantName tenantName) { + project = tenantName.project; + tenant = tenantName.tenant; + } + + public TenantName build() { + return new TenantName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof TenantName) { + TenantName that = (TenantName) o; + return (this.project.equals(that.project)) && (this.tenant.equals(that.tenant)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= tenant.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantOrBuilder.java new file mode 100644 index 000000000000..1ae4690636c4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantOrBuilder.java @@ -0,0 +1,95 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant.proto + +package com.google.cloud.talent.v4beta1; + +public interface TenantOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Tenant) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required during tenant update.
+   * The resource name for a tenant. This is generated by the service when a
+   * tenant is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required during tenant update.
+   * The resource name for a tenant. This is generated by the service when a
+   * tenant is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required.
+   * Client side tenant identifier, used to uniquely identify the tenant.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string external_id = 2; + */ + java.lang.String getExternalId(); + /** + * + * + *
+   * Required.
+   * Client side tenant identifier, used to uniquely identify the tenant.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string external_id = 2; + */ + com.google.protobuf.ByteString getExternalIdBytes(); + + /** + * + * + *
+   * Optional.
+   * Indicates whether data owned by this tenant may be used to provide product
+   * improvements across other tenants.
+   * Defaults behavior is
+   * [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED]
+   * if it's unset.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant.DataUsageType usage_type = 3; + */ + int getUsageTypeValue(); + /** + * + * + *
+   * Optional.
+   * Indicates whether data owned by this tenant may be used to provide product
+   * improvements across other tenants.
+   * Defaults behavior is
+   * [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED]
+   * if it's unset.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant.DataUsageType usage_type = 3; + */ + com.google.cloud.talent.v4beta1.Tenant.DataUsageType getUsageType(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantResourceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantResourceProto.java new file mode 100644 index 000000000000..6bc1236511a0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantResourceProto.java @@ -0,0 +1,69 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant.proto + +package com.google.cloud.talent.v4beta1; + +public final class TenantResourceProto { + private TenantResourceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Tenant_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Tenant_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n(google/cloud/talent/v4beta1/tenant.pro" + + "to\022\033google.cloud.talent.v4beta1\032\034google/" + + "api/annotations.proto\032(google/cloud/tale" + + "nt/v4beta1/common.proto\"\302\001\n\006Tenant\022\014\n\004na" + + "me\030\001 \001(\t\022\023\n\013external_id\030\002 \001(\t\022E\n\nusage_t" + + "ype\030\003 \001(\01621.google.cloud.talent.v4beta1." + + "Tenant.DataUsageType\"N\n\rDataUsageType\022\037\n" + + "\033DATA_USAGE_TYPE_UNSPECIFIED\020\000\022\016\n\nAGGREG" + + "ATED\020\001\022\014\n\010ISOLATED\020\002B\201\001\n\037com.google.clou" + + "d.talent.v4beta1B\023TenantResourceProtoP\001Z" + + "Agoogle.golang.org/genproto/googleapis/c" + + "loud/talent/v4beta1;talent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_Tenant_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_Tenant_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Tenant_descriptor, + new java.lang.String[] { + "Name", "ExternalId", "UsageType", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceProto.java new file mode 100644 index 000000000000..d35e7cddcd15 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceProto.java @@ -0,0 +1,171 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +public final class TenantServiceProto { + private TenantServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CreateTenantRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CreateTenantRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_GetTenantRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_GetTenantRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_UpdateTenantRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_UpdateTenantRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_DeleteTenantRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_DeleteTenantRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ListTenantsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ListTenantsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ListTenantsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ListTenantsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/talent/v4beta1/tenant_ser" + + "vice.proto\022\033google.cloud.talent.v4beta1\032" + + "\034google/api/annotations.proto\032(google/cl" + + "oud/talent/v4beta1/common.proto\032(google/" + + "cloud/talent/v4beta1/tenant.proto\032\033googl" + + "e/protobuf/empty.proto\032 google/protobuf/" + + "field_mask.proto\"Z\n\023CreateTenantRequest\022" + + "\016\n\006parent\030\001 \001(\t\0223\n\006tenant\030\002 \001(\0132#.google" + + ".cloud.talent.v4beta1.Tenant\" \n\020GetTenan" + + "tRequest\022\014\n\004name\030\001 \001(\t\"{\n\023UpdateTenantRe" + + "quest\0223\n\006tenant\030\001 \001(\0132#.google.cloud.tal" + + "ent.v4beta1.Tenant\022/\n\013update_mask\030\002 \001(\0132" + + "\032.google.protobuf.FieldMask\"#\n\023DeleteTen" + + "antRequest\022\014\n\004name\030\001 \001(\t\"K\n\022ListTenantsR" + + "equest\022\016\n\006parent\030\001 \001(\t\022\022\n\npage_token\030\002 \001" + + "(\t\022\021\n\tpage_size\030\003 \001(\005\"\245\001\n\023ListTenantsRes" + + "ponse\0224\n\007tenants\030\001 \003(\0132#.google.cloud.ta" + + "lent.v4beta1.Tenant\022\027\n\017next_page_token\030\002" + + " \001(\t\022?\n\010metadata\030\003 \001(\0132-.google.cloud.ta" + + "lent.v4beta1.ResponseMetadata2\202\006\n\rTenant" + + "Service\022\226\001\n\014CreateTenant\0220.google.cloud." + + "talent.v4beta1.CreateTenantRequest\032#.goo" + + "gle.cloud.talent.v4beta1.Tenant\"/\202\323\344\223\002)\"" + + "$/v4beta1/{parent=projects/*}/tenants:\001*" + + "\022\215\001\n\tGetTenant\022-.google.cloud.talent.v4b" + + "eta1.GetTenantRequest\032#.google.cloud.tal" + + "ent.v4beta1.Tenant\",\202\323\344\223\002&\022$/v4beta1/{na" + + "me=projects/*/tenants/*}\022\235\001\n\014UpdateTenan" + + "t\0220.google.cloud.talent.v4beta1.UpdateTe" + + "nantRequest\032#.google.cloud.talent.v4beta" + + "1.Tenant\"6\202\323\344\223\00202+/v4beta1/{tenant.name=" + + "projects/*/tenants/*}:\001*\022\206\001\n\014DeleteTenan" + + "t\0220.google.cloud.talent.v4beta1.DeleteTe" + + "nantRequest\032\026.google.protobuf.Empty\",\202\323\344" + + "\223\002&*$/v4beta1/{name=projects/*/tenants/*" + + "}\022\236\001\n\013ListTenants\022/.google.cloud.talent." + + "v4beta1.ListTenantsRequest\0320.google.clou" + + "d.talent.v4beta1.ListTenantsResponse\",\202\323" + + "\344\223\002&\022$/v4beta1/{parent=projects/*}/tenan" + + "tsB\200\001\n\037com.google.cloud.talent.v4beta1B\022" + + "TenantServiceProtoP\001ZAgoogle.golang.org/" + + "genproto/googleapis/cloud/talent/v4beta1" + + ";talent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), + com.google.cloud.talent.v4beta1.TenantResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_CreateTenantRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_CreateTenantRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CreateTenantRequest_descriptor, + new java.lang.String[] { + "Parent", "Tenant", + }); + internal_static_google_cloud_talent_v4beta1_GetTenantRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_talent_v4beta1_GetTenantRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_GetTenantRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_talent_v4beta1_UpdateTenantRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_talent_v4beta1_UpdateTenantRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_UpdateTenantRequest_descriptor, + new java.lang.String[] { + "Tenant", "UpdateMask", + }); + internal_static_google_cloud_talent_v4beta1_DeleteTenantRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_talent_v4beta1_DeleteTenantRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_DeleteTenantRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_talent_v4beta1_ListTenantsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_talent_v4beta1_ListTenantsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ListTenantsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", + }); + internal_static_google_cloud_talent_v4beta1_ListTenantsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_talent_v4beta1_ListTenantsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ListTenantsResponse_descriptor, + new java.lang.String[] { + "Tenants", "NextPageToken", "Metadata", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); + com.google.cloud.talent.v4beta1.TenantResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimeFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimeFilter.java new file mode 100644 index 000000000000..c71c81eb9b2e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimeFilter.java @@ -0,0 +1,1327 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Filter on create timestamp or update timestamp of profiles.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.TimeFilter} + */ +public final class TimeFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.TimeFilter) + TimeFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use TimeFilter.newBuilder() to construct. + private TimeFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TimeFilter() { + timeField_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TimeFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; + } + case 24: + { + int rawValue = input.readEnum(); + + timeField_ = rawValue; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_TimeFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_TimeFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.TimeFilter.class, + com.google.cloud.talent.v4beta1.TimeFilter.Builder.class); + } + + /** + * + * + *
+   * Time fields can be used in TimeFilter.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.TimeFilter.TimeField} + */ + public enum TimeField implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * TIME_FIELD_UNSPECIFIED = 0; + */ + TIME_FIELD_UNSPECIFIED(0), + /** + * + * + *
+     * Earliest profile create time.
+     * 
+ * + * CREATE_TIME = 1; + */ + CREATE_TIME(1), + /** + * + * + *
+     * Latest profile update time.
+     * 
+ * + * UPDATE_TIME = 2; + */ + UPDATE_TIME(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * TIME_FIELD_UNSPECIFIED = 0; + */ + public static final int TIME_FIELD_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Earliest profile create time.
+     * 
+ * + * CREATE_TIME = 1; + */ + public static final int CREATE_TIME_VALUE = 1; + /** + * + * + *
+     * Latest profile update time.
+     * 
+ * + * UPDATE_TIME = 2; + */ + public static final int UPDATE_TIME_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static TimeField valueOf(int value) { + return forNumber(value); + } + + public static TimeField forNumber(int value) { + switch (value) { + case 0: + return TIME_FIELD_UNSPECIFIED; + case 1: + return CREATE_TIME; + case 2: + return UPDATE_TIME; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TimeField findValueByNumber(int number) { + return TimeField.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TimeFilter.getDescriptor().getEnumTypes().get(0); + } + + private static final TimeField[] VALUES = values(); + + public static TimeField valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private TimeField(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.TimeFilter.TimeField) + } + + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * Optional.
+   * Start timestamp, matching profiles with the start time. If this field
+   * missing, The API matches profiles with create / update timestamp before the
+   * end timestamp.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public boolean hasStartTime() { + return startTime_ != null; + } + /** + * + * + *
+   * Optional.
+   * Start timestamp, matching profiles with the start time. If this field
+   * missing, The API matches profiles with create / update timestamp before the
+   * end timestamp.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * Optional.
+   * Start timestamp, matching profiles with the start time. If this field
+   * missing, The API matches profiles with create / update timestamp before the
+   * end timestamp.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * Optional.
+   * End timestamp, matching profiles with the end time. If this field
+   * missing, The API matches profiles with create / update timestamp after the
+   * start timestamp.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public boolean hasEndTime() { + return endTime_ != null; + } + /** + * + * + *
+   * Optional.
+   * End timestamp, matching profiles with the end time. If this field
+   * missing, The API matches profiles with create / update timestamp after the
+   * start timestamp.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+   * Optional.
+   * End timestamp, matching profiles with the end time. If this field
+   * missing, The API matches profiles with create / update timestamp after the
+   * start timestamp.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + public static final int TIME_FIELD_FIELD_NUMBER = 3; + private int timeField_; + /** + * + * + *
+   * Optional.
+   * Specifies which time field to filter profiles.
+   * Defaults to
+   * [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
+   * 
+ * + * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; + */ + public int getTimeFieldValue() { + return timeField_; + } + /** + * + * + *
+   * Optional.
+   * Specifies which time field to filter profiles.
+   * Defaults to
+   * [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
+   * 
+ * + * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; + */ + public com.google.cloud.talent.v4beta1.TimeFilter.TimeField getTimeField() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.TimeFilter.TimeField result = + com.google.cloud.talent.v4beta1.TimeFilter.TimeField.valueOf(timeField_); + return result == null + ? com.google.cloud.talent.v4beta1.TimeFilter.TimeField.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (startTime_ != null) { + output.writeMessage(1, getStartTime()); + } + if (endTime_ != null) { + output.writeMessage(2, getEndTime()); + } + if (timeField_ + != com.google.cloud.talent.v4beta1.TimeFilter.TimeField.TIME_FIELD_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, timeField_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (timeField_ + != com.google.cloud.talent.v4beta1.TimeFilter.TimeField.TIME_FIELD_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, timeField_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.TimeFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.TimeFilter other = + (com.google.cloud.talent.v4beta1.TimeFilter) obj; + + boolean result = true; + result = result && (hasStartTime() == other.hasStartTime()); + if (hasStartTime()) { + result = result && getStartTime().equals(other.getStartTime()); + } + result = result && (hasEndTime() == other.hasEndTime()); + if (hasEndTime()) { + result = result && getEndTime().equals(other.getEndTime()); + } + result = result && timeField_ == other.timeField_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + TIME_FIELD_FIELD_NUMBER; + hash = (53 * hash) + timeField_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.TimeFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.TimeFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.TimeFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Filter on create timestamp or update timestamp of profiles.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.TimeFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.TimeFilter) + com.google.cloud.talent.v4beta1.TimeFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_TimeFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_TimeFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.TimeFilter.class, + com.google.cloud.talent.v4beta1.TimeFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.TimeFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + timeField_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_TimeFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.TimeFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.TimeFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.TimeFilter build() { + com.google.cloud.talent.v4beta1.TimeFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.TimeFilter buildPartial() { + com.google.cloud.talent.v4beta1.TimeFilter result = + new com.google.cloud.talent.v4beta1.TimeFilter(this); + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } + result.timeField_ = timeField_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.TimeFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.TimeFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.TimeFilter other) { + if (other == com.google.cloud.talent.v4beta1.TimeFilter.getDefaultInstance()) return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (other.timeField_ != 0) { + setTimeFieldValue(other.getTimeFieldValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.TimeFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.TimeFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Timestamp startTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * Optional.
+     * Start timestamp, matching profiles with the start time. If this field
+     * missing, The API matches profiles with create / update timestamp before the
+     * end timestamp.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + * + * + *
+     * Optional.
+     * Start timestamp, matching profiles with the start time. If this field
+     * missing, The API matches profiles with create / update timestamp before the
+     * end timestamp.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Start timestamp, matching profiles with the start time. If this field
+     * missing, The API matches profiles with create / update timestamp before the
+     * end timestamp.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start timestamp, matching profiles with the start time. If this field
+     * missing, The API matches profiles with create / update timestamp before the
+     * end timestamp.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start timestamp, matching profiles with the start time. If this field
+     * missing, The API matches profiles with create / update timestamp before the
+     * end timestamp.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start timestamp, matching profiles with the start time. If this field
+     * missing, The API matches profiles with create / update timestamp before the
+     * end timestamp.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start timestamp, matching profiles with the start time. If this field
+     * missing, The API matches profiles with create / update timestamp before the
+     * end timestamp.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Start timestamp, matching profiles with the start time. If this field
+     * missing, The API matches profiles with create / update timestamp before the
+     * end timestamp.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * Optional.
+     * Start timestamp, matching profiles with the start time. If this field
+     * missing, The API matches profiles with create / update timestamp before the
+     * end timestamp.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+     * Optional.
+     * End timestamp, matching profiles with the end time. If this field
+     * missing, The API matches profiles with create / update timestamp after the
+     * start timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + * + * + *
+     * Optional.
+     * End timestamp, matching profiles with the end time. If this field
+     * missing, The API matches profiles with create / update timestamp after the
+     * start timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * End timestamp, matching profiles with the end time. If this field
+     * missing, The API matches profiles with create / update timestamp after the
+     * start timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End timestamp, matching profiles with the end time. If this field
+     * missing, The API matches profiles with create / update timestamp after the
+     * start timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End timestamp, matching profiles with the end time. If this field
+     * missing, The API matches profiles with create / update timestamp after the
+     * start timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End timestamp, matching profiles with the end time. If this field
+     * missing, The API matches profiles with create / update timestamp after the
+     * start timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End timestamp, matching profiles with the end time. If this field
+     * missing, The API matches profiles with create / update timestamp after the
+     * start timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * End timestamp, matching profiles with the end time. If this field
+     * missing, The API matches profiles with create / update timestamp after the
+     * start timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * Optional.
+     * End timestamp, matching profiles with the end time. If this field
+     * missing, The API matches profiles with create / update timestamp after the
+     * start timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private int timeField_ = 0; + /** + * + * + *
+     * Optional.
+     * Specifies which time field to filter profiles.
+     * Defaults to
+     * [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
+     * 
+ * + * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; + */ + public int getTimeFieldValue() { + return timeField_; + } + /** + * + * + *
+     * Optional.
+     * Specifies which time field to filter profiles.
+     * Defaults to
+     * [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
+     * 
+ * + * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; + */ + public Builder setTimeFieldValue(int value) { + timeField_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Specifies which time field to filter profiles.
+     * Defaults to
+     * [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
+     * 
+ * + * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; + */ + public com.google.cloud.talent.v4beta1.TimeFilter.TimeField getTimeField() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.TimeFilter.TimeField result = + com.google.cloud.talent.v4beta1.TimeFilter.TimeField.valueOf(timeField_); + return result == null + ? com.google.cloud.talent.v4beta1.TimeFilter.TimeField.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * Specifies which time field to filter profiles.
+     * Defaults to
+     * [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
+     * 
+ * + * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; + */ + public Builder setTimeField(com.google.cloud.talent.v4beta1.TimeFilter.TimeField value) { + if (value == null) { + throw new NullPointerException(); + } + + timeField_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Specifies which time field to filter profiles.
+     * Defaults to
+     * [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
+     * 
+ * + * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; + */ + public Builder clearTimeField() { + + timeField_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.TimeFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.TimeFilter) + private static final com.google.cloud.talent.v4beta1.TimeFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.TimeFilter(); + } + + public static com.google.cloud.talent.v4beta1.TimeFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TimeFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.TimeFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimeFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimeFilterOrBuilder.java new file mode 100644 index 000000000000..676b7e48763c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimeFilterOrBuilder.java @@ -0,0 +1,117 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface TimeFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.TimeFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * Start timestamp, matching profiles with the start time. If this field
+   * missing, The API matches profiles with create / update timestamp before the
+   * end timestamp.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + boolean hasStartTime(); + /** + * + * + *
+   * Optional.
+   * Start timestamp, matching profiles with the start time. If this field
+   * missing, The API matches profiles with create / update timestamp before the
+   * end timestamp.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * Optional.
+   * Start timestamp, matching profiles with the start time. If this field
+   * missing, The API matches profiles with create / update timestamp before the
+   * end timestamp.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * End timestamp, matching profiles with the end time. If this field
+   * missing, The API matches profiles with create / update timestamp after the
+   * start timestamp.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + boolean hasEndTime(); + /** + * + * + *
+   * Optional.
+   * End timestamp, matching profiles with the end time. If this field
+   * missing, The API matches profiles with create / update timestamp after the
+   * start timestamp.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * Optional.
+   * End timestamp, matching profiles with the end time. If this field
+   * missing, The API matches profiles with create / update timestamp after the
+   * start timestamp.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Specifies which time field to filter profiles.
+   * Defaults to
+   * [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
+   * 
+ * + * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; + */ + int getTimeFieldValue(); + /** + * + * + *
+   * Optional.
+   * Specifies which time field to filter profiles.
+   * Defaults to
+   * [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
+   * 
+ * + * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; + */ + com.google.cloud.talent.v4beta1.TimeFilter.TimeField getTimeField(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimestampRange.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimestampRange.java new file mode 100644 index 000000000000..b6eccef24ff6 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimestampRange.java @@ -0,0 +1,949 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Message representing a period of time between two timestamps.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.TimestampRange} + */ +public final class TimestampRange extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.TimestampRange) + TimestampRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use TimestampRange.newBuilder() to construct. + private TimestampRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TimestampRange() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TimestampRange( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_TimestampRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_TimestampRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.TimestampRange.class, + com.google.cloud.talent.v4beta1.TimestampRange.Builder.class); + } + + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * Begin of the period.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public boolean hasStartTime() { + return startTime_ != null; + } + /** + * + * + *
+   * Begin of the period.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * Begin of the period.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * End of the period.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public boolean hasEndTime() { + return endTime_ != null; + } + /** + * + * + *
+   * End of the period.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+   * End of the period.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (startTime_ != null) { + output.writeMessage(1, getStartTime()); + } + if (endTime_ != null) { + output.writeMessage(2, getEndTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.TimestampRange)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.TimestampRange other = + (com.google.cloud.talent.v4beta1.TimestampRange) obj; + + boolean result = true; + result = result && (hasStartTime() == other.hasStartTime()); + if (hasStartTime()) { + result = result && getStartTime().equals(other.getStartTime()); + } + result = result && (hasEndTime() == other.hasEndTime()); + if (hasEndTime()) { + result = result && getEndTime().equals(other.getEndTime()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.TimestampRange parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.TimestampRange parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.TimestampRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.TimestampRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.TimestampRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.TimestampRange parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.TimestampRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.TimestampRange parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.TimestampRange parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.TimestampRange parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.TimestampRange parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.TimestampRange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.TimestampRange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Message representing a period of time between two timestamps.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.TimestampRange} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.TimestampRange) + com.google.cloud.talent.v4beta1.TimestampRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_TimestampRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_TimestampRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.TimestampRange.class, + com.google.cloud.talent.v4beta1.TimestampRange.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.TimestampRange.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_TimestampRange_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.TimestampRange getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.TimestampRange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.TimestampRange build() { + com.google.cloud.talent.v4beta1.TimestampRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.TimestampRange buildPartial() { + com.google.cloud.talent.v4beta1.TimestampRange result = + new com.google.cloud.talent.v4beta1.TimestampRange(this); + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.TimestampRange) { + return mergeFrom((com.google.cloud.talent.v4beta1.TimestampRange) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.TimestampRange other) { + if (other == com.google.cloud.talent.v4beta1.TimestampRange.getDefaultInstance()) return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.TimestampRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.TimestampRange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Timestamp startTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * Begin of the period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + * + * + *
+     * Begin of the period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Begin of the period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Begin of the period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Begin of the period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Begin of the period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Begin of the period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Begin of the period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * Begin of the period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+     * End of the period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + * + * + *
+     * End of the period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * End of the period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * End of the period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * End of the period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * End of the period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * End of the period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * End of the period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * End of the period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.TimestampRange) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.TimestampRange) + private static final com.google.cloud.talent.v4beta1.TimestampRange DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.TimestampRange(); + } + + public static com.google.cloud.talent.v4beta1.TimestampRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimestampRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TimestampRange(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.TimestampRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimestampRangeOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimestampRangeOrBuilder.java new file mode 100644 index 000000000000..cbce38979c1d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimestampRangeOrBuilder.java @@ -0,0 +1,72 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +public interface TimestampRangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.TimestampRange) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Begin of the period.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + boolean hasStartTime(); + /** + * + * + *
+   * Begin of the period.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * Begin of the period.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * End of the period.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + boolean hasEndTime(); + /** + * + * + *
+   * End of the period.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * End of the period.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateCompanyRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateCompanyRequest.java new file mode 100644 index 000000000000..7e3f8239c7cc --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateCompanyRequest.java @@ -0,0 +1,1084 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Request for updating a specified company.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.UpdateCompanyRequest} + */ +public final class UpdateCompanyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.UpdateCompanyRequest) + UpdateCompanyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateCompanyRequest.newBuilder() to construct. + private UpdateCompanyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateCompanyRequest() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateCompanyRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.talent.v4beta1.Company.Builder subBuilder = null; + if (company_ != null) { + subBuilder = company_.toBuilder(); + } + company_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Company.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(company_); + company_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateCompanyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateCompanyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.UpdateCompanyRequest.class, + com.google.cloud.talent.v4beta1.UpdateCompanyRequest.Builder.class); + } + + public static final int COMPANY_FIELD_NUMBER = 1; + private com.google.cloud.talent.v4beta1.Company company_; + /** + * + * + *
+   * Required.
+   * The company resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + public boolean hasCompany() { + return company_ != null; + } + /** + * + * + *
+   * Required.
+   * The company resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + public com.google.cloud.talent.v4beta1.Company getCompany() { + return company_ == null + ? com.google.cloud.talent.v4beta1.Company.getDefaultInstance() + : company_; + } + /** + * + * + *
+   * Required.
+   * The company resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + public com.google.cloud.talent.v4beta1.CompanyOrBuilder getCompanyOrBuilder() { + return getCompany(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+   * is provided, only the specified fields in
+   * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the company fields to be updated. Only
+   * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+   * is provided, only the specified fields in
+   * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the company fields to be updated. Only
+   * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+   * is provided, only the specified fields in
+   * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the company fields to be updated. Only
+   * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (company_ != null) { + output.writeMessage(1, getCompany()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (company_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCompany()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.UpdateCompanyRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.UpdateCompanyRequest other = + (com.google.cloud.talent.v4beta1.UpdateCompanyRequest) obj; + + boolean result = true; + result = result && (hasCompany() == other.hasCompany()); + if (hasCompany()) { + result = result && getCompany().equals(other.getCompany()); + } + result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask()) { + result = result && getUpdateMask().equals(other.getUpdateMask()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCompany()) { + hash = (37 * hash) + COMPANY_FIELD_NUMBER; + hash = (53 * hash) + getCompany().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.UpdateCompanyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request for updating a specified company.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.UpdateCompanyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.UpdateCompanyRequest) + com.google.cloud.talent.v4beta1.UpdateCompanyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateCompanyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateCompanyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.UpdateCompanyRequest.class, + com.google.cloud.talent.v4beta1.UpdateCompanyRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.UpdateCompanyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (companyBuilder_ == null) { + company_ = null; + } else { + company_ = null; + companyBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateCompanyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateCompanyRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.UpdateCompanyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateCompanyRequest build() { + com.google.cloud.talent.v4beta1.UpdateCompanyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateCompanyRequest buildPartial() { + com.google.cloud.talent.v4beta1.UpdateCompanyRequest result = + new com.google.cloud.talent.v4beta1.UpdateCompanyRequest(this); + if (companyBuilder_ == null) { + result.company_ = company_; + } else { + result.company_ = companyBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.UpdateCompanyRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.UpdateCompanyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.UpdateCompanyRequest other) { + if (other == com.google.cloud.talent.v4beta1.UpdateCompanyRequest.getDefaultInstance()) + return this; + if (other.hasCompany()) { + mergeCompany(other.getCompany()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.UpdateCompanyRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.UpdateCompanyRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.talent.v4beta1.Company company_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company, + com.google.cloud.talent.v4beta1.Company.Builder, + com.google.cloud.talent.v4beta1.CompanyOrBuilder> + companyBuilder_; + /** + * + * + *
+     * Required.
+     * The company resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + public boolean hasCompany() { + return companyBuilder_ != null || company_ != null; + } + /** + * + * + *
+     * Required.
+     * The company resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + public com.google.cloud.talent.v4beta1.Company getCompany() { + if (companyBuilder_ == null) { + return company_ == null + ? com.google.cloud.talent.v4beta1.Company.getDefaultInstance() + : company_; + } else { + return companyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The company resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + public Builder setCompany(com.google.cloud.talent.v4beta1.Company value) { + if (companyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + company_ = value; + onChanged(); + } else { + companyBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The company resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + public Builder setCompany(com.google.cloud.talent.v4beta1.Company.Builder builderForValue) { + if (companyBuilder_ == null) { + company_ = builderForValue.build(); + onChanged(); + } else { + companyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The company resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + public Builder mergeCompany(com.google.cloud.talent.v4beta1.Company value) { + if (companyBuilder_ == null) { + if (company_ != null) { + company_ = + com.google.cloud.talent.v4beta1.Company.newBuilder(company_) + .mergeFrom(value) + .buildPartial(); + } else { + company_ = value; + } + onChanged(); + } else { + companyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The company resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + public Builder clearCompany() { + if (companyBuilder_ == null) { + company_ = null; + onChanged(); + } else { + company_ = null; + companyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The company resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + public com.google.cloud.talent.v4beta1.Company.Builder getCompanyBuilder() { + + onChanged(); + return getCompanyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The company resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + public com.google.cloud.talent.v4beta1.CompanyOrBuilder getCompanyOrBuilder() { + if (companyBuilder_ != null) { + return companyBuilder_.getMessageOrBuilder(); + } else { + return company_ == null + ? com.google.cloud.talent.v4beta1.Company.getDefaultInstance() + : company_; + } + } + /** + * + * + *
+     * Required.
+     * The company resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company, + com.google.cloud.talent.v4beta1.Company.Builder, + com.google.cloud.talent.v4beta1.CompanyOrBuilder> + getCompanyFieldBuilder() { + if (companyBuilder_ == null) { + companyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company, + com.google.cloud.talent.v4beta1.Company.Builder, + com.google.cloud.talent.v4beta1.CompanyOrBuilder>( + getCompany(), getParentForChildren(), isClean()); + company_ = null; + } + return companyBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+     * is provided, only the specified fields in
+     * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the company fields to be updated. Only
+     * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+     * is provided, only the specified fields in
+     * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the company fields to be updated. Only
+     * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+     * is provided, only the specified fields in
+     * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the company fields to be updated. Only
+     * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+     * is provided, only the specified fields in
+     * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the company fields to be updated. Only
+     * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+     * is provided, only the specified fields in
+     * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the company fields to be updated. Only
+     * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+     * is provided, only the specified fields in
+     * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the company fields to be updated. Only
+     * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+     * is provided, only the specified fields in
+     * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the company fields to be updated. Only
+     * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+     * is provided, only the specified fields in
+     * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the company fields to be updated. Only
+     * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+     * is provided, only the specified fields in
+     * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the company fields to be updated. Only
+     * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.UpdateCompanyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.UpdateCompanyRequest) + private static final com.google.cloud.talent.v4beta1.UpdateCompanyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.UpdateCompanyRequest(); + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCompanyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateCompanyRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateCompanyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateCompanyRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateCompanyRequestOrBuilder.java new file mode 100644 index 000000000000..21a3fcaa1dc0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateCompanyRequestOrBuilder.java @@ -0,0 +1,102 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface UpdateCompanyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.UpdateCompanyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The company resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + boolean hasCompany(); + /** + * + * + *
+   * Required.
+   * The company resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + com.google.cloud.talent.v4beta1.Company getCompany(); + /** + * + * + *
+   * Required.
+   * The company resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + com.google.cloud.talent.v4beta1.CompanyOrBuilder getCompanyOrBuilder(); + + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+   * is provided, only the specified fields in
+   * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the company fields to be updated. Only
+   * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+   * is provided, only the specified fields in
+   * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the company fields to be updated. Only
+   * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+   * is provided, only the specified fields in
+   * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the company fields to be updated. Only
+   * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateJobRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateJobRequest.java new file mode 100644 index 000000000000..d86eb75536e7 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateJobRequest.java @@ -0,0 +1,1053 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Update job request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.UpdateJobRequest} + */ +public final class UpdateJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.UpdateJobRequest) + UpdateJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateJobRequest.newBuilder() to construct. + private UpdateJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateJobRequest() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateJobRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.talent.v4beta1.Job.Builder subBuilder = null; + if (job_ != null) { + subBuilder = job_.toBuilder(); + } + job_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Job.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(job_); + job_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.UpdateJobRequest.class, + com.google.cloud.talent.v4beta1.UpdateJobRequest.Builder.class); + } + + public static final int JOB_FIELD_NUMBER = 1; + private com.google.cloud.talent.v4beta1.Job job_; + /** + * + * + *
+   * Required.
+   * The Job to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public boolean hasJob() { + return job_ != null; + } + /** + * + * + *
+   * Required.
+   * The Job to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.Job getJob() { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } + /** + * + * + *
+   * Required.
+   * The Job to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder() { + return getJob(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Optional but strongly recommended to be provided for the best service
+   * experience.
+   * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+   * is provided, only the specified fields in
+   * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+   * Otherwise all the fields are updated.
+   * A field mask to restrict the fields that are updated. Only
+   * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Optional but strongly recommended to be provided for the best service
+   * experience.
+   * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+   * is provided, only the specified fields in
+   * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+   * Otherwise all the fields are updated.
+   * A field mask to restrict the fields that are updated. Only
+   * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Optional but strongly recommended to be provided for the best service
+   * experience.
+   * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+   * is provided, only the specified fields in
+   * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+   * Otherwise all the fields are updated.
+   * A field mask to restrict the fields that are updated. Only
+   * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (job_ != null) { + output.writeMessage(1, getJob()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (job_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getJob()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.UpdateJobRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.UpdateJobRequest other = + (com.google.cloud.talent.v4beta1.UpdateJobRequest) obj; + + boolean result = true; + result = result && (hasJob() == other.hasJob()); + if (hasJob()) { + result = result && getJob().equals(other.getJob()); + } + result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask()) { + result = result && getUpdateMask().equals(other.getUpdateMask()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasJob()) { + hash = (37 * hash) + JOB_FIELD_NUMBER; + hash = (53 * hash) + getJob().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.UpdateJobRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Update job request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.UpdateJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.UpdateJobRequest) + com.google.cloud.talent.v4beta1.UpdateJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.UpdateJobRequest.class, + com.google.cloud.talent.v4beta1.UpdateJobRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.UpdateJobRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (jobBuilder_ == null) { + job_ = null; + } else { + job_ = null; + jobBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateJobRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.UpdateJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateJobRequest build() { + com.google.cloud.talent.v4beta1.UpdateJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateJobRequest buildPartial() { + com.google.cloud.talent.v4beta1.UpdateJobRequest result = + new com.google.cloud.talent.v4beta1.UpdateJobRequest(this); + if (jobBuilder_ == null) { + result.job_ = job_; + } else { + result.job_ = jobBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.UpdateJobRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.UpdateJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.UpdateJobRequest other) { + if (other == com.google.cloud.talent.v4beta1.UpdateJobRequest.getDefaultInstance()) + return this; + if (other.hasJob()) { + mergeJob(other.getJob()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.UpdateJobRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.UpdateJobRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.talent.v4beta1.Job job_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder> + jobBuilder_; + /** + * + * + *
+     * Required.
+     * The Job to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public boolean hasJob() { + return jobBuilder_ != null || job_ != null; + } + /** + * + * + *
+     * Required.
+     * The Job to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.Job getJob() { + if (jobBuilder_ == null) { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } else { + return jobBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The Job to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder setJob(com.google.cloud.talent.v4beta1.Job value) { + if (jobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + job_ = value; + onChanged(); + } else { + jobBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The Job to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder setJob(com.google.cloud.talent.v4beta1.Job.Builder builderForValue) { + if (jobBuilder_ == null) { + job_ = builderForValue.build(); + onChanged(); + } else { + jobBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The Job to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder mergeJob(com.google.cloud.talent.v4beta1.Job value) { + if (jobBuilder_ == null) { + if (job_ != null) { + job_ = + com.google.cloud.talent.v4beta1.Job.newBuilder(job_).mergeFrom(value).buildPartial(); + } else { + job_ = value; + } + onChanged(); + } else { + jobBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The Job to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder clearJob() { + if (jobBuilder_ == null) { + job_ = null; + onChanged(); + } else { + job_ = null; + jobBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The Job to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.Job.Builder getJobBuilder() { + + onChanged(); + return getJobFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The Job to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder() { + if (jobBuilder_ != null) { + return jobBuilder_.getMessageOrBuilder(); + } else { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } + } + /** + * + * + *
+     * Required.
+     * The Job to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder> + getJobFieldBuilder() { + if (jobBuilder_ == null) { + jobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder>( + getJob(), getParentForChildren(), isClean()); + job_ = null; + } + return jobBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Optional but strongly recommended to be provided for the best service
+     * experience.
+     * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+     * is provided, only the specified fields in
+     * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+     * Otherwise all the fields are updated.
+     * A field mask to restrict the fields that are updated. Only
+     * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Optional but strongly recommended to be provided for the best service
+     * experience.
+     * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+     * is provided, only the specified fields in
+     * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+     * Otherwise all the fields are updated.
+     * A field mask to restrict the fields that are updated. Only
+     * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional but strongly recommended to be provided for the best service
+     * experience.
+     * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+     * is provided, only the specified fields in
+     * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+     * Otherwise all the fields are updated.
+     * A field mask to restrict the fields that are updated. Only
+     * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended to be provided for the best service
+     * experience.
+     * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+     * is provided, only the specified fields in
+     * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+     * Otherwise all the fields are updated.
+     * A field mask to restrict the fields that are updated. Only
+     * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended to be provided for the best service
+     * experience.
+     * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+     * is provided, only the specified fields in
+     * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+     * Otherwise all the fields are updated.
+     * A field mask to restrict the fields that are updated. Only
+     * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended to be provided for the best service
+     * experience.
+     * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+     * is provided, only the specified fields in
+     * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+     * Otherwise all the fields are updated.
+     * A field mask to restrict the fields that are updated. Only
+     * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended to be provided for the best service
+     * experience.
+     * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+     * is provided, only the specified fields in
+     * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+     * Otherwise all the fields are updated.
+     * A field mask to restrict the fields that are updated. Only
+     * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional but strongly recommended to be provided for the best service
+     * experience.
+     * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+     * is provided, only the specified fields in
+     * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+     * Otherwise all the fields are updated.
+     * A field mask to restrict the fields that are updated. Only
+     * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Optional but strongly recommended to be provided for the best service
+     * experience.
+     * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+     * is provided, only the specified fields in
+     * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+     * Otherwise all the fields are updated.
+     * A field mask to restrict the fields that are updated. Only
+     * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.UpdateJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.UpdateJobRequest) + private static final com.google.cloud.talent.v4beta1.UpdateJobRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.UpdateJobRequest(); + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateJobRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateJobRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateJobRequestOrBuilder.java new file mode 100644 index 000000000000..dc28ba2a0d01 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateJobRequestOrBuilder.java @@ -0,0 +1,96 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface UpdateJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.UpdateJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The Job to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + boolean hasJob(); + /** + * + * + *
+   * Required.
+   * The Job to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + com.google.cloud.talent.v4beta1.Job getJob(); + /** + * + * + *
+   * Required.
+   * The Job to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder(); + + /** + * + * + *
+   * Optional but strongly recommended to be provided for the best service
+   * experience.
+   * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+   * is provided, only the specified fields in
+   * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+   * Otherwise all the fields are updated.
+   * A field mask to restrict the fields that are updated. Only
+   * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Optional but strongly recommended to be provided for the best service
+   * experience.
+   * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+   * is provided, only the specified fields in
+   * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+   * Otherwise all the fields are updated.
+   * A field mask to restrict the fields that are updated. Only
+   * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Optional but strongly recommended to be provided for the best service
+   * experience.
+   * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+   * is provided, only the specified fields in
+   * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+   * Otherwise all the fields are updated.
+   * A field mask to restrict the fields that are updated. Only
+   * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequest.java new file mode 100644 index 000000000000..7275224ce203 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequest.java @@ -0,0 +1,1288 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Update profile request
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.UpdateProfileRequest} + */ +public final class UpdateProfileRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.UpdateProfileRequest) + UpdateProfileRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateProfileRequest.newBuilder() to construct. + private UpdateProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateProfileRequest() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateProfileRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.talent.v4beta1.Profile.Builder subBuilder = null; + if (profile_ != null) { + subBuilder = profile_.toBuilder(); + } + profile_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Profile.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(profile_); + profile_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.UpdateProfileRequest.class, + com.google.cloud.talent.v4beta1.UpdateProfileRequest.Builder.class); + } + + public static final int PROFILE_FIELD_NUMBER = 1; + private com.google.cloud.talent.v4beta1.Profile profile_; + /** + * + * + *
+   * Required.
+   * Profile to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public boolean hasProfile() { + return profile_ != null; + } + /** + * + * + *
+   * Required.
+   * Profile to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public com.google.cloud.talent.v4beta1.Profile getProfile() { + return profile_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : profile_; + } + /** + * + * + *
+   * Required.
+   * Profile to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder() { + return getProfile(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to update.
+   * A full update is performed if it is unset.
+   * Valid values are:
+   * * externalId
+   * * source
+   * * uri
+   * * isHirable
+   * * createTime
+   * * updateTime
+   * * resumeHrxml
+   * * personNames
+   * * addresses
+   * * emailAddresses
+   * * phoneNumbers
+   * * personalUris
+   * * additionalContactInfo
+   * * employmentRecords
+   * * educationRecords
+   * * skills
+   * * projects
+   * * publications
+   * * patents
+   * * certifications
+   * * jobApplications
+   * * recruitingNotes
+   * * customAttributes
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to update.
+   * A full update is performed if it is unset.
+   * Valid values are:
+   * * externalId
+   * * source
+   * * uri
+   * * isHirable
+   * * createTime
+   * * updateTime
+   * * resumeHrxml
+   * * personNames
+   * * addresses
+   * * emailAddresses
+   * * phoneNumbers
+   * * personalUris
+   * * additionalContactInfo
+   * * employmentRecords
+   * * educationRecords
+   * * skills
+   * * projects
+   * * publications
+   * * patents
+   * * certifications
+   * * jobApplications
+   * * recruitingNotes
+   * * customAttributes
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to update.
+   * A full update is performed if it is unset.
+   * Valid values are:
+   * * externalId
+   * * source
+   * * uri
+   * * isHirable
+   * * createTime
+   * * updateTime
+   * * resumeHrxml
+   * * personNames
+   * * addresses
+   * * emailAddresses
+   * * phoneNumbers
+   * * personalUris
+   * * additionalContactInfo
+   * * employmentRecords
+   * * educationRecords
+   * * skills
+   * * projects
+   * * publications
+   * * patents
+   * * certifications
+   * * jobApplications
+   * * recruitingNotes
+   * * customAttributes
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (profile_ != null) { + output.writeMessage(1, getProfile()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (profile_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProfile()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.UpdateProfileRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.UpdateProfileRequest other = + (com.google.cloud.talent.v4beta1.UpdateProfileRequest) obj; + + boolean result = true; + result = result && (hasProfile() == other.hasProfile()); + if (hasProfile()) { + result = result && getProfile().equals(other.getProfile()); + } + result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask()) { + result = result && getUpdateMask().equals(other.getUpdateMask()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasProfile()) { + hash = (37 * hash) + PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getProfile().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.UpdateProfileRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Update profile request
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.UpdateProfileRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.UpdateProfileRequest) + com.google.cloud.talent.v4beta1.UpdateProfileRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.UpdateProfileRequest.class, + com.google.cloud.talent.v4beta1.UpdateProfileRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.UpdateProfileRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (profileBuilder_ == null) { + profile_ = null; + } else { + profile_ = null; + profileBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateProfileRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.UpdateProfileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateProfileRequest build() { + com.google.cloud.talent.v4beta1.UpdateProfileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateProfileRequest buildPartial() { + com.google.cloud.talent.v4beta1.UpdateProfileRequest result = + new com.google.cloud.talent.v4beta1.UpdateProfileRequest(this); + if (profileBuilder_ == null) { + result.profile_ = profile_; + } else { + result.profile_ = profileBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.UpdateProfileRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.UpdateProfileRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.UpdateProfileRequest other) { + if (other == com.google.cloud.talent.v4beta1.UpdateProfileRequest.getDefaultInstance()) + return this; + if (other.hasProfile()) { + mergeProfile(other.getProfile()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.UpdateProfileRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.UpdateProfileRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.talent.v4beta1.Profile profile_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + profileBuilder_; + /** + * + * + *
+     * Required.
+     * Profile to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public boolean hasProfile() { + return profileBuilder_ != null || profile_ != null; + } + /** + * + * + *
+     * Required.
+     * Profile to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public com.google.cloud.talent.v4beta1.Profile getProfile() { + if (profileBuilder_ == null) { + return profile_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : profile_; + } else { + return profileBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * Profile to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public Builder setProfile(com.google.cloud.talent.v4beta1.Profile value) { + if (profileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profile_ = value; + onChanged(); + } else { + profileBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * Profile to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public Builder setProfile(com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { + if (profileBuilder_ == null) { + profile_ = builderForValue.build(); + onChanged(); + } else { + profileBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * Profile to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public Builder mergeProfile(com.google.cloud.talent.v4beta1.Profile value) { + if (profileBuilder_ == null) { + if (profile_ != null) { + profile_ = + com.google.cloud.talent.v4beta1.Profile.newBuilder(profile_) + .mergeFrom(value) + .buildPartial(); + } else { + profile_ = value; + } + onChanged(); + } else { + profileBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * Profile to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public Builder clearProfile() { + if (profileBuilder_ == null) { + profile_ = null; + onChanged(); + } else { + profile_ = null; + profileBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * Profile to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public com.google.cloud.talent.v4beta1.Profile.Builder getProfileBuilder() { + + onChanged(); + return getProfileFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * Profile to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder() { + if (profileBuilder_ != null) { + return profileBuilder_.getMessageOrBuilder(); + } else { + return profile_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : profile_; + } + } + /** + * + * + *
+     * Required.
+     * Profile to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + getProfileFieldBuilder() { + if (profileBuilder_ == null) { + profileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder>( + getProfile(), getParentForChildren(), isClean()); + profile_ = null; + } + return profileBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to update.
+     * A full update is performed if it is unset.
+     * Valid values are:
+     * * externalId
+     * * source
+     * * uri
+     * * isHirable
+     * * createTime
+     * * updateTime
+     * * resumeHrxml
+     * * personNames
+     * * addresses
+     * * emailAddresses
+     * * phoneNumbers
+     * * personalUris
+     * * additionalContactInfo
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * * projects
+     * * publications
+     * * patents
+     * * certifications
+     * * jobApplications
+     * * recruitingNotes
+     * * customAttributes
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to update.
+     * A full update is performed if it is unset.
+     * Valid values are:
+     * * externalId
+     * * source
+     * * uri
+     * * isHirable
+     * * createTime
+     * * updateTime
+     * * resumeHrxml
+     * * personNames
+     * * addresses
+     * * emailAddresses
+     * * phoneNumbers
+     * * personalUris
+     * * additionalContactInfo
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * * projects
+     * * publications
+     * * patents
+     * * certifications
+     * * jobApplications
+     * * recruitingNotes
+     * * customAttributes
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to update.
+     * A full update is performed if it is unset.
+     * Valid values are:
+     * * externalId
+     * * source
+     * * uri
+     * * isHirable
+     * * createTime
+     * * updateTime
+     * * resumeHrxml
+     * * personNames
+     * * addresses
+     * * emailAddresses
+     * * phoneNumbers
+     * * personalUris
+     * * additionalContactInfo
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * * projects
+     * * publications
+     * * patents
+     * * certifications
+     * * jobApplications
+     * * recruitingNotes
+     * * customAttributes
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to update.
+     * A full update is performed if it is unset.
+     * Valid values are:
+     * * externalId
+     * * source
+     * * uri
+     * * isHirable
+     * * createTime
+     * * updateTime
+     * * resumeHrxml
+     * * personNames
+     * * addresses
+     * * emailAddresses
+     * * phoneNumbers
+     * * personalUris
+     * * additionalContactInfo
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * * projects
+     * * publications
+     * * patents
+     * * certifications
+     * * jobApplications
+     * * recruitingNotes
+     * * customAttributes
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to update.
+     * A full update is performed if it is unset.
+     * Valid values are:
+     * * externalId
+     * * source
+     * * uri
+     * * isHirable
+     * * createTime
+     * * updateTime
+     * * resumeHrxml
+     * * personNames
+     * * addresses
+     * * emailAddresses
+     * * phoneNumbers
+     * * personalUris
+     * * additionalContactInfo
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * * projects
+     * * publications
+     * * patents
+     * * certifications
+     * * jobApplications
+     * * recruitingNotes
+     * * customAttributes
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to update.
+     * A full update is performed if it is unset.
+     * Valid values are:
+     * * externalId
+     * * source
+     * * uri
+     * * isHirable
+     * * createTime
+     * * updateTime
+     * * resumeHrxml
+     * * personNames
+     * * addresses
+     * * emailAddresses
+     * * phoneNumbers
+     * * personalUris
+     * * additionalContactInfo
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * * projects
+     * * publications
+     * * patents
+     * * certifications
+     * * jobApplications
+     * * recruitingNotes
+     * * customAttributes
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to update.
+     * A full update is performed if it is unset.
+     * Valid values are:
+     * * externalId
+     * * source
+     * * uri
+     * * isHirable
+     * * createTime
+     * * updateTime
+     * * resumeHrxml
+     * * personNames
+     * * addresses
+     * * emailAddresses
+     * * phoneNumbers
+     * * personalUris
+     * * additionalContactInfo
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * * projects
+     * * publications
+     * * patents
+     * * certifications
+     * * jobApplications
+     * * recruitingNotes
+     * * customAttributes
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to update.
+     * A full update is performed if it is unset.
+     * Valid values are:
+     * * externalId
+     * * source
+     * * uri
+     * * isHirable
+     * * createTime
+     * * updateTime
+     * * resumeHrxml
+     * * personNames
+     * * addresses
+     * * emailAddresses
+     * * phoneNumbers
+     * * personalUris
+     * * additionalContactInfo
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * * projects
+     * * publications
+     * * patents
+     * * certifications
+     * * jobApplications
+     * * recruitingNotes
+     * * customAttributes
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to update.
+     * A full update is performed if it is unset.
+     * Valid values are:
+     * * externalId
+     * * source
+     * * uri
+     * * isHirable
+     * * createTime
+     * * updateTime
+     * * resumeHrxml
+     * * personNames
+     * * addresses
+     * * emailAddresses
+     * * phoneNumbers
+     * * personalUris
+     * * additionalContactInfo
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * * projects
+     * * publications
+     * * patents
+     * * certifications
+     * * jobApplications
+     * * recruitingNotes
+     * * customAttributes
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.UpdateProfileRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.UpdateProfileRequest) + private static final com.google.cloud.talent.v4beta1.UpdateProfileRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.UpdateProfileRequest(); + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateProfileRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateProfileRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequestOrBuilder.java new file mode 100644 index 000000000000..90c17d7b42f1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequestOrBuilder.java @@ -0,0 +1,153 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface UpdateProfileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.UpdateProfileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * Profile to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + boolean hasProfile(); + /** + * + * + *
+   * Required.
+   * Profile to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + com.google.cloud.talent.v4beta1.Profile getProfile(); + /** + * + * + *
+   * Required.
+   * Profile to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to update.
+   * A full update is performed if it is unset.
+   * Valid values are:
+   * * externalId
+   * * source
+   * * uri
+   * * isHirable
+   * * createTime
+   * * updateTime
+   * * resumeHrxml
+   * * personNames
+   * * addresses
+   * * emailAddresses
+   * * phoneNumbers
+   * * personalUris
+   * * additionalContactInfo
+   * * employmentRecords
+   * * educationRecords
+   * * skills
+   * * projects
+   * * publications
+   * * patents
+   * * certifications
+   * * jobApplications
+   * * recruitingNotes
+   * * customAttributes
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to update.
+   * A full update is performed if it is unset.
+   * Valid values are:
+   * * externalId
+   * * source
+   * * uri
+   * * isHirable
+   * * createTime
+   * * updateTime
+   * * resumeHrxml
+   * * personNames
+   * * addresses
+   * * emailAddresses
+   * * phoneNumbers
+   * * personalUris
+   * * additionalContactInfo
+   * * employmentRecords
+   * * educationRecords
+   * * skills
+   * * projects
+   * * publications
+   * * patents
+   * * certifications
+   * * jobApplications
+   * * recruitingNotes
+   * * customAttributes
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to update.
+   * A full update is performed if it is unset.
+   * Valid values are:
+   * * externalId
+   * * source
+   * * uri
+   * * isHirable
+   * * createTime
+   * * updateTime
+   * * resumeHrxml
+   * * personNames
+   * * addresses
+   * * emailAddresses
+   * * phoneNumbers
+   * * personalUris
+   * * additionalContactInfo
+   * * employmentRecords
+   * * educationRecords
+   * * skills
+   * * projects
+   * * publications
+   * * patents
+   * * certifications
+   * * jobApplications
+   * * recruitingNotes
+   * * customAttributes
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateTenantRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateTenantRequest.java new file mode 100644 index 000000000000..ddfe537a588a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateTenantRequest.java @@ -0,0 +1,1082 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Request for updating a specified tenant.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.UpdateTenantRequest} + */ +public final class UpdateTenantRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.UpdateTenantRequest) + UpdateTenantRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateTenantRequest.newBuilder() to construct. + private UpdateTenantRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateTenantRequest() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateTenantRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.talent.v4beta1.Tenant.Builder subBuilder = null; + if (tenant_ != null) { + subBuilder = tenant_.toBuilder(); + } + tenant_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Tenant.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tenant_); + tenant_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateTenantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateTenantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.UpdateTenantRequest.class, + com.google.cloud.talent.v4beta1.UpdateTenantRequest.Builder.class); + } + + public static final int TENANT_FIELD_NUMBER = 1; + private com.google.cloud.talent.v4beta1.Tenant tenant_; + /** + * + * + *
+   * Required.
+   * The tenant resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + public boolean hasTenant() { + return tenant_ != null; + } + /** + * + * + *
+   * Required.
+   * The tenant resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + public com.google.cloud.talent.v4beta1.Tenant getTenant() { + return tenant_ == null ? com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance() : tenant_; + } + /** + * + * + *
+   * Required.
+   * The tenant resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + public com.google.cloud.talent.v4beta1.TenantOrBuilder getTenantOrBuilder() { + return getTenant(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+   * is provided, only the specified fields in
+   * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the tenant fields to be updated. Only
+   * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+   * is provided, only the specified fields in
+   * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the tenant fields to be updated. Only
+   * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+   * is provided, only the specified fields in
+   * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the tenant fields to be updated. Only
+   * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (tenant_ != null) { + output.writeMessage(1, getTenant()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (tenant_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTenant()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.UpdateTenantRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.UpdateTenantRequest other = + (com.google.cloud.talent.v4beta1.UpdateTenantRequest) obj; + + boolean result = true; + result = result && (hasTenant() == other.hasTenant()); + if (hasTenant()) { + result = result && getTenant().equals(other.getTenant()); + } + result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask()) { + result = result && getUpdateMask().equals(other.getUpdateMask()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTenant()) { + hash = (37 * hash) + TENANT_FIELD_NUMBER; + hash = (53 * hash) + getTenant().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.UpdateTenantRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request for updating a specified tenant.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.UpdateTenantRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.UpdateTenantRequest) + com.google.cloud.talent.v4beta1.UpdateTenantRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateTenantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateTenantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.UpdateTenantRequest.class, + com.google.cloud.talent.v4beta1.UpdateTenantRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.UpdateTenantRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (tenantBuilder_ == null) { + tenant_ = null; + } else { + tenant_ = null; + tenantBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateTenantRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateTenantRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.UpdateTenantRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateTenantRequest build() { + com.google.cloud.talent.v4beta1.UpdateTenantRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateTenantRequest buildPartial() { + com.google.cloud.talent.v4beta1.UpdateTenantRequest result = + new com.google.cloud.talent.v4beta1.UpdateTenantRequest(this); + if (tenantBuilder_ == null) { + result.tenant_ = tenant_; + } else { + result.tenant_ = tenantBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.UpdateTenantRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.UpdateTenantRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.UpdateTenantRequest other) { + if (other == com.google.cloud.talent.v4beta1.UpdateTenantRequest.getDefaultInstance()) + return this; + if (other.hasTenant()) { + mergeTenant(other.getTenant()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.UpdateTenantRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.UpdateTenantRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.talent.v4beta1.Tenant tenant_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Tenant, + com.google.cloud.talent.v4beta1.Tenant.Builder, + com.google.cloud.talent.v4beta1.TenantOrBuilder> + tenantBuilder_; + /** + * + * + *
+     * Required.
+     * The tenant resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + public boolean hasTenant() { + return tenantBuilder_ != null || tenant_ != null; + } + /** + * + * + *
+     * Required.
+     * The tenant resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + public com.google.cloud.talent.v4beta1.Tenant getTenant() { + if (tenantBuilder_ == null) { + return tenant_ == null + ? com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance() + : tenant_; + } else { + return tenantBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The tenant resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + public Builder setTenant(com.google.cloud.talent.v4beta1.Tenant value) { + if (tenantBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tenant_ = value; + onChanged(); + } else { + tenantBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The tenant resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + public Builder setTenant(com.google.cloud.talent.v4beta1.Tenant.Builder builderForValue) { + if (tenantBuilder_ == null) { + tenant_ = builderForValue.build(); + onChanged(); + } else { + tenantBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The tenant resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + public Builder mergeTenant(com.google.cloud.talent.v4beta1.Tenant value) { + if (tenantBuilder_ == null) { + if (tenant_ != null) { + tenant_ = + com.google.cloud.talent.v4beta1.Tenant.newBuilder(tenant_) + .mergeFrom(value) + .buildPartial(); + } else { + tenant_ = value; + } + onChanged(); + } else { + tenantBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The tenant resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + public Builder clearTenant() { + if (tenantBuilder_ == null) { + tenant_ = null; + onChanged(); + } else { + tenant_ = null; + tenantBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The tenant resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + public com.google.cloud.talent.v4beta1.Tenant.Builder getTenantBuilder() { + + onChanged(); + return getTenantFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The tenant resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + public com.google.cloud.talent.v4beta1.TenantOrBuilder getTenantOrBuilder() { + if (tenantBuilder_ != null) { + return tenantBuilder_.getMessageOrBuilder(); + } else { + return tenant_ == null + ? com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance() + : tenant_; + } + } + /** + * + * + *
+     * Required.
+     * The tenant resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Tenant, + com.google.cloud.talent.v4beta1.Tenant.Builder, + com.google.cloud.talent.v4beta1.TenantOrBuilder> + getTenantFieldBuilder() { + if (tenantBuilder_ == null) { + tenantBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Tenant, + com.google.cloud.talent.v4beta1.Tenant.Builder, + com.google.cloud.talent.v4beta1.TenantOrBuilder>( + getTenant(), getParentForChildren(), isClean()); + tenant_ = null; + } + return tenantBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+     * is provided, only the specified fields in
+     * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the tenant fields to be updated. Only
+     * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+     * is provided, only the specified fields in
+     * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the tenant fields to be updated. Only
+     * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+     * is provided, only the specified fields in
+     * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the tenant fields to be updated. Only
+     * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+     * is provided, only the specified fields in
+     * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the tenant fields to be updated. Only
+     * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+     * is provided, only the specified fields in
+     * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the tenant fields to be updated. Only
+     * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+     * is provided, only the specified fields in
+     * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the tenant fields to be updated. Only
+     * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+     * is provided, only the specified fields in
+     * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the tenant fields to be updated. Only
+     * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+     * is provided, only the specified fields in
+     * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the tenant fields to be updated. Only
+     * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+     * is provided, only the specified fields in
+     * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the tenant fields to be updated. Only
+     * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.UpdateTenantRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.UpdateTenantRequest) + private static final com.google.cloud.talent.v4beta1.UpdateTenantRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.UpdateTenantRequest(); + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateTenantRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateTenantRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateTenantRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateTenantRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateTenantRequestOrBuilder.java new file mode 100644 index 000000000000..c3abcbb7b37d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateTenantRequestOrBuilder.java @@ -0,0 +1,102 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface UpdateTenantRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.UpdateTenantRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The tenant resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + boolean hasTenant(); + /** + * + * + *
+   * Required.
+   * The tenant resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + com.google.cloud.talent.v4beta1.Tenant getTenant(); + /** + * + * + *
+   * Required.
+   * The tenant resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + com.google.cloud.talent.v4beta1.TenantOrBuilder getTenantOrBuilder(); + + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+   * is provided, only the specified fields in
+   * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the tenant fields to be updated. Only
+   * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+   * is provided, only the specified fields in
+   * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the tenant fields to be updated. Only
+   * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+   * is provided, only the specified fields in
+   * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the tenant fields to be updated. Only
+   * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Visibility.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Visibility.java new file mode 100644 index 000000000000..b33820b92094 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Visibility.java @@ -0,0 +1,175 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * An enum that represents who has view access to the resource.
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.Visibility} + */ +public enum Visibility implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value.
+   * 
+ * + * VISIBILITY_UNSPECIFIED = 0; + */ + VISIBILITY_UNSPECIFIED(0), + /** + * + * + *
+   * The resource is only visible to the GCP account who owns it.
+   * 
+ * + * ACCOUNT_ONLY = 1; + */ + ACCOUNT_ONLY(1), + /** + * + * + *
+   * The resource is visible to the owner and may be visible to other
+   * applications and processes at Google.
+   * 
+ * + * SHARED_WITH_GOOGLE = 2; + */ + SHARED_WITH_GOOGLE(2), + /** + * + * + *
+   * The resource is visible to the owner and may be visible to all other API
+   * clients.
+   * 
+ * + * SHARED_WITH_PUBLIC = 3; + */ + SHARED_WITH_PUBLIC(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value.
+   * 
+ * + * VISIBILITY_UNSPECIFIED = 0; + */ + public static final int VISIBILITY_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * The resource is only visible to the GCP account who owns it.
+   * 
+ * + * ACCOUNT_ONLY = 1; + */ + public static final int ACCOUNT_ONLY_VALUE = 1; + /** + * + * + *
+   * The resource is visible to the owner and may be visible to other
+   * applications and processes at Google.
+   * 
+ * + * SHARED_WITH_GOOGLE = 2; + */ + public static final int SHARED_WITH_GOOGLE_VALUE = 2; + /** + * + * + *
+   * The resource is visible to the owner and may be visible to all other API
+   * clients.
+   * 
+ * + * SHARED_WITH_PUBLIC = 3; + */ + public static final int SHARED_WITH_PUBLIC_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static Visibility valueOf(int value) { + return forNumber(value); + } + + public static Visibility forNumber(int value) { + switch (value) { + case 0: + return VISIBILITY_UNSPECIFIED; + case 1: + return ACCOUNT_ONLY; + case 2: + return SHARED_WITH_GOOGLE; + case 3: + return SHARED_WITH_PUBLIC; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Visibility findValueByNumber(int number) { + return Visibility.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(7); + } + + private static final Visibility[] VALUES = values(); + + public static Visibility valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Visibility(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.Visibility) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/WorkExperienceFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/WorkExperienceFilter.java new file mode 100644 index 000000000000..cf77e43fbb6b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/WorkExperienceFilter.java @@ -0,0 +1,1003 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Work experience filter.
+ * This filter is used to search for profiles with working experience length
+ * between
+ * [min_experience][google.cloud.talent.v4beta1.WorkExperienceFilter.min_experience]
+ * and
+ * [max_experience][google.cloud.talent.v4beta1.WorkExperienceFilter.max_experience].
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.WorkExperienceFilter} + */ +public final class WorkExperienceFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.WorkExperienceFilter) + WorkExperienceFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkExperienceFilter.newBuilder() to construct. + private WorkExperienceFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WorkExperienceFilter() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private WorkExperienceFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (minExperience_ != null) { + subBuilder = minExperience_.toBuilder(); + } + minExperience_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(minExperience_); + minExperience_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (maxExperience_ != null) { + subBuilder = maxExperience_.toBuilder(); + } + maxExperience_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maxExperience_); + maxExperience_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.WorkExperienceFilter.class, + com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder.class); + } + + public static final int MIN_EXPERIENCE_FIELD_NUMBER = 1; + private com.google.protobuf.Duration minExperience_; + /** + * + * + *
+   * Optional.
+   * The minimum duration of the work experience (inclusive).
+   * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + public boolean hasMinExperience() { + return minExperience_ != null; + } + /** + * + * + *
+   * Optional.
+   * The minimum duration of the work experience (inclusive).
+   * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + public com.google.protobuf.Duration getMinExperience() { + return minExperience_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minExperience_; + } + /** + * + * + *
+   * Optional.
+   * The minimum duration of the work experience (inclusive).
+   * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + public com.google.protobuf.DurationOrBuilder getMinExperienceOrBuilder() { + return getMinExperience(); + } + + public static final int MAX_EXPERIENCE_FIELD_NUMBER = 2; + private com.google.protobuf.Duration maxExperience_; + /** + * + * + *
+   * Optional.
+   * The maximum duration of the work experience (exclusive).
+   * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + public boolean hasMaxExperience() { + return maxExperience_ != null; + } + /** + * + * + *
+   * Optional.
+   * The maximum duration of the work experience (exclusive).
+   * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + public com.google.protobuf.Duration getMaxExperience() { + return maxExperience_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxExperience_; + } + /** + * + * + *
+   * Optional.
+   * The maximum duration of the work experience (exclusive).
+   * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + public com.google.protobuf.DurationOrBuilder getMaxExperienceOrBuilder() { + return getMaxExperience(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (minExperience_ != null) { + output.writeMessage(1, getMinExperience()); + } + if (maxExperience_ != null) { + output.writeMessage(2, getMaxExperience()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (minExperience_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMinExperience()); + } + if (maxExperience_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxExperience()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.WorkExperienceFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.WorkExperienceFilter other = + (com.google.cloud.talent.v4beta1.WorkExperienceFilter) obj; + + boolean result = true; + result = result && (hasMinExperience() == other.hasMinExperience()); + if (hasMinExperience()) { + result = result && getMinExperience().equals(other.getMinExperience()); + } + result = result && (hasMaxExperience() == other.hasMaxExperience()); + if (hasMaxExperience()) { + result = result && getMaxExperience().equals(other.getMaxExperience()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMinExperience()) { + hash = (37 * hash) + MIN_EXPERIENCE_FIELD_NUMBER; + hash = (53 * hash) + getMinExperience().hashCode(); + } + if (hasMaxExperience()) { + hash = (37 * hash) + MAX_EXPERIENCE_FIELD_NUMBER; + hash = (53 * hash) + getMaxExperience().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.WorkExperienceFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Work experience filter.
+   * This filter is used to search for profiles with working experience length
+   * between
+   * [min_experience][google.cloud.talent.v4beta1.WorkExperienceFilter.min_experience]
+   * and
+   * [max_experience][google.cloud.talent.v4beta1.WorkExperienceFilter.max_experience].
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.WorkExperienceFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.WorkExperienceFilter) + com.google.cloud.talent.v4beta1.WorkExperienceFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.WorkExperienceFilter.class, + com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.WorkExperienceFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (minExperienceBuilder_ == null) { + minExperience_ = null; + } else { + minExperience_ = null; + minExperienceBuilder_ = null; + } + if (maxExperienceBuilder_ == null) { + maxExperience_ = null; + } else { + maxExperience_ = null; + maxExperienceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.WorkExperienceFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.WorkExperienceFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.WorkExperienceFilter build() { + com.google.cloud.talent.v4beta1.WorkExperienceFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.WorkExperienceFilter buildPartial() { + com.google.cloud.talent.v4beta1.WorkExperienceFilter result = + new com.google.cloud.talent.v4beta1.WorkExperienceFilter(this); + if (minExperienceBuilder_ == null) { + result.minExperience_ = minExperience_; + } else { + result.minExperience_ = minExperienceBuilder_.build(); + } + if (maxExperienceBuilder_ == null) { + result.maxExperience_ = maxExperience_; + } else { + result.maxExperience_ = maxExperienceBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.WorkExperienceFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.WorkExperienceFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.WorkExperienceFilter other) { + if (other == com.google.cloud.talent.v4beta1.WorkExperienceFilter.getDefaultInstance()) + return this; + if (other.hasMinExperience()) { + mergeMinExperience(other.getMinExperience()); + } + if (other.hasMaxExperience()) { + mergeMaxExperience(other.getMaxExperience()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.WorkExperienceFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.WorkExperienceFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Duration minExperience_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + minExperienceBuilder_; + /** + * + * + *
+     * Optional.
+     * The minimum duration of the work experience (inclusive).
+     * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + public boolean hasMinExperience() { + return minExperienceBuilder_ != null || minExperience_ != null; + } + /** + * + * + *
+     * Optional.
+     * The minimum duration of the work experience (inclusive).
+     * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + public com.google.protobuf.Duration getMinExperience() { + if (minExperienceBuilder_ == null) { + return minExperience_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minExperience_; + } else { + return minExperienceBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The minimum duration of the work experience (inclusive).
+     * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + public Builder setMinExperience(com.google.protobuf.Duration value) { + if (minExperienceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + minExperience_ = value; + onChanged(); + } else { + minExperienceBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The minimum duration of the work experience (inclusive).
+     * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + public Builder setMinExperience(com.google.protobuf.Duration.Builder builderForValue) { + if (minExperienceBuilder_ == null) { + minExperience_ = builderForValue.build(); + onChanged(); + } else { + minExperienceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The minimum duration of the work experience (inclusive).
+     * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + public Builder mergeMinExperience(com.google.protobuf.Duration value) { + if (minExperienceBuilder_ == null) { + if (minExperience_ != null) { + minExperience_ = + com.google.protobuf.Duration.newBuilder(minExperience_) + .mergeFrom(value) + .buildPartial(); + } else { + minExperience_ = value; + } + onChanged(); + } else { + minExperienceBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The minimum duration of the work experience (inclusive).
+     * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + public Builder clearMinExperience() { + if (minExperienceBuilder_ == null) { + minExperience_ = null; + onChanged(); + } else { + minExperience_ = null; + minExperienceBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The minimum duration of the work experience (inclusive).
+     * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + public com.google.protobuf.Duration.Builder getMinExperienceBuilder() { + + onChanged(); + return getMinExperienceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The minimum duration of the work experience (inclusive).
+     * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + public com.google.protobuf.DurationOrBuilder getMinExperienceOrBuilder() { + if (minExperienceBuilder_ != null) { + return minExperienceBuilder_.getMessageOrBuilder(); + } else { + return minExperience_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minExperience_; + } + } + /** + * + * + *
+     * Optional.
+     * The minimum duration of the work experience (inclusive).
+     * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getMinExperienceFieldBuilder() { + if (minExperienceBuilder_ == null) { + minExperienceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMinExperience(), getParentForChildren(), isClean()); + minExperience_ = null; + } + return minExperienceBuilder_; + } + + private com.google.protobuf.Duration maxExperience_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + maxExperienceBuilder_; + /** + * + * + *
+     * Optional.
+     * The maximum duration of the work experience (exclusive).
+     * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + public boolean hasMaxExperience() { + return maxExperienceBuilder_ != null || maxExperience_ != null; + } + /** + * + * + *
+     * Optional.
+     * The maximum duration of the work experience (exclusive).
+     * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + public com.google.protobuf.Duration getMaxExperience() { + if (maxExperienceBuilder_ == null) { + return maxExperience_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxExperience_; + } else { + return maxExperienceBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The maximum duration of the work experience (exclusive).
+     * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + public Builder setMaxExperience(com.google.protobuf.Duration value) { + if (maxExperienceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maxExperience_ = value; + onChanged(); + } else { + maxExperienceBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The maximum duration of the work experience (exclusive).
+     * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + public Builder setMaxExperience(com.google.protobuf.Duration.Builder builderForValue) { + if (maxExperienceBuilder_ == null) { + maxExperience_ = builderForValue.build(); + onChanged(); + } else { + maxExperienceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The maximum duration of the work experience (exclusive).
+     * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + public Builder mergeMaxExperience(com.google.protobuf.Duration value) { + if (maxExperienceBuilder_ == null) { + if (maxExperience_ != null) { + maxExperience_ = + com.google.protobuf.Duration.newBuilder(maxExperience_) + .mergeFrom(value) + .buildPartial(); + } else { + maxExperience_ = value; + } + onChanged(); + } else { + maxExperienceBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The maximum duration of the work experience (exclusive).
+     * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + public Builder clearMaxExperience() { + if (maxExperienceBuilder_ == null) { + maxExperience_ = null; + onChanged(); + } else { + maxExperience_ = null; + maxExperienceBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The maximum duration of the work experience (exclusive).
+     * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + public com.google.protobuf.Duration.Builder getMaxExperienceBuilder() { + + onChanged(); + return getMaxExperienceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The maximum duration of the work experience (exclusive).
+     * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + public com.google.protobuf.DurationOrBuilder getMaxExperienceOrBuilder() { + if (maxExperienceBuilder_ != null) { + return maxExperienceBuilder_.getMessageOrBuilder(); + } else { + return maxExperience_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxExperience_; + } + } + /** + * + * + *
+     * Optional.
+     * The maximum duration of the work experience (exclusive).
+     * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getMaxExperienceFieldBuilder() { + if (maxExperienceBuilder_ == null) { + maxExperienceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMaxExperience(), getParentForChildren(), isClean()); + maxExperience_ = null; + } + return maxExperienceBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.WorkExperienceFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.WorkExperienceFilter) + private static final com.google.cloud.talent.v4beta1.WorkExperienceFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.WorkExperienceFilter(); + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkExperienceFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkExperienceFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.WorkExperienceFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/WorkExperienceFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/WorkExperienceFilterOrBuilder.java new file mode 100644 index 000000000000..7efd450e342b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/WorkExperienceFilterOrBuilder.java @@ -0,0 +1,78 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface WorkExperienceFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.WorkExperienceFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The minimum duration of the work experience (inclusive).
+   * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + boolean hasMinExperience(); + /** + * + * + *
+   * Optional.
+   * The minimum duration of the work experience (inclusive).
+   * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + com.google.protobuf.Duration getMinExperience(); + /** + * + * + *
+   * Optional.
+   * The minimum duration of the work experience (inclusive).
+   * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + com.google.protobuf.DurationOrBuilder getMinExperienceOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The maximum duration of the work experience (exclusive).
+   * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + boolean hasMaxExperience(); + /** + * + * + *
+   * Optional.
+   * The maximum duration of the work experience (exclusive).
+   * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + com.google.protobuf.Duration getMaxExperience(); + /** + * + * + *
+   * Optional.
+   * The maximum duration of the work experience (exclusive).
+   * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + com.google.protobuf.DurationOrBuilder getMaxExperienceOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/batch.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/batch.proto new file mode 100644 index 000000000000..fcfe2bed0e45 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/batch.proto @@ -0,0 +1,29 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/job.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "BatchProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/common.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/common.proto new file mode 100644 index 000000000000..acba0e76d1fa --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/common.proto @@ -0,0 +1,904 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/wrappers.proto"; +import "google/type/latlng.proto"; +import "google/type/money.proto"; +import "google/type/postal_address.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "CommonProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// Message representing a period of time between two timestamps. +message TimestampRange { + // Begin of the period. + google.protobuf.Timestamp start_time = 1; + + // End of the period. + google.protobuf.Timestamp end_time = 2; +} + +// An enum that represents the size of the company. +enum CompanySize { + // Default value if the size isn't specified. + COMPANY_SIZE_UNSPECIFIED = 0; + + // The company has less than 50 employees. + MINI = 1; + + // The company has between 50 and 99 employees. + SMALL = 2; + + // The company has between 100 and 499 employees. + SMEDIUM = 3; + + // The company has between 500 and 999 employees. + MEDIUM = 4; + + // The company has between 1,000 and 4,999 employees. + BIG = 5; + + // The company has between 5,000 and 9,999 employees. + BIGGER = 6; + + // The company has 10,000 or more employees. + GIANT = 7; +} + +// An enum that represents employee benefits included with the job. +enum JobBenefit { + // Default value if the type isn't specified. + JOB_BENEFIT_UNSPECIFIED = 0; + + // The job includes access to programs that support child care, such + // as daycare. + CHILD_CARE = 1; + + // The job includes dental services covered by a dental + // insurance plan. + DENTAL = 2; + + // The job offers specific benefits to domestic partners. + DOMESTIC_PARTNER = 3; + + // The job allows for a flexible work schedule. + FLEXIBLE_HOURS = 4; + + // The job includes health services covered by a medical insurance plan. + MEDICAL = 5; + + // The job includes a life insurance plan provided by the employer or + // available for purchase by the employee. + LIFE_INSURANCE = 6; + + // The job allows for a leave of absence to a parent to care for a newborn + // child. + PARENTAL_LEAVE = 7; + + // The job includes a workplace retirement plan provided by the + // employer or available for purchase by the employee. + RETIREMENT_PLAN = 8; + + // The job allows for paid time off due to illness. + SICK_DAYS = 9; + + // The job includes paid time off for vacation. + VACATION = 10; + + // The job includes vision services covered by a vision + // insurance plan. + VISION = 11; +} + +// Educational degree level defined in International Standard Classification +// of Education (ISCED). +enum DegreeType { + // Default value. Represents no degree, or early childhood education. + // Maps to ISCED code 0. + // Ex) Kindergarten + DEGREE_TYPE_UNSPECIFIED = 0; + + // Primary education which is typically the first stage of compulsory + // education. ISCED code 1. + // Ex) Elementary school + PRIMARY_EDUCATION = 1; + + // Lower secondary education; First stage of secondary education building on + // primary education, typically with a more subject-oriented curriculum. + // ISCED code 2. + // Ex) Middle school + LOWER_SECONDARY_EDUCATION = 2; + + // Middle education; Second/final stage of secondary education preparing for + // tertiary education and/or providing skills relevant to employment. + // Usually with an increased range of subject options and streams. ISCED + // code 3. + // Ex) High school + UPPER_SECONDARY_EDUCATION = 3; + + // Adult Remedial Education; Programmes providing learning experiences that + // build on secondary education and prepare for labour market entry and/or + // tertiary education. The content is broader than secondary but not as + // complex as tertiary education. ISCED code 4. + ADULT_REMEDIAL_EDUCATION = 4; + + // Associate's or equivalent; Short first tertiary programmes that are + // typically practically-based, occupationally-specific and prepare for + // labour market entry. These programmes may also provide a pathway to other + // tertiary programmes. ISCED code 5. + ASSOCIATES_OR_EQUIVALENT = 5; + + // Bachelor's or equivalent; Programmes designed to provide intermediate + // academic and/or professional knowledge, skills and competencies leading + // to a first tertiary degree or equivalent qualification. ISCED code 6. + BACHELORS_OR_EQUIVALENT = 6; + + // Master's or equivalent; Programmes designed to provide advanced academic + // and/or professional knowledge, skills and competencies leading to a + // second tertiary degree or equivalent qualification. ISCED code 7. + MASTERS_OR_EQUIVALENT = 7; + + // Doctoral or equivalent; Programmes designed primarily to lead to an + // advanced research qualification, usually concluding with the submission + // and defense of a substantive dissertation of publishable quality based on + // original research. ISCED code 8. + DOCTORAL_OR_EQUIVALENT = 8; +} + +// An enum that represents the employment type of a job. +enum EmploymentType { + // The default value if the employment type isn't specified. + EMPLOYMENT_TYPE_UNSPECIFIED = 0; + + // The job requires working a number of hours that constitute full + // time employment, typically 40 or more hours per week. + FULL_TIME = 1; + + // The job entails working fewer hours than a full time job, + // typically less than 40 hours a week. + PART_TIME = 2; + + // The job is offered as a contracted, as opposed to a salaried employee, + // position. + CONTRACTOR = 3; + + // The job is offered as a contracted position with the understanding + // that it's converted into a full-time position at the end of the + // contract. Jobs of this type are also returned by a search for + // [EmploymentType.CONTRACTOR][google.cloud.talent.v4beta1.EmploymentType.CONTRACTOR] + // jobs. + CONTRACT_TO_HIRE = 4; + + // The job is offered as a temporary employment opportunity, usually + // a short-term engagement. + TEMPORARY = 5; + + // The job is a fixed-term opportunity for students or entry-level job + // seekers to obtain on-the-job training, typically offered as a summer + // position. + INTERN = 6; + + // The is an opportunity for an individual to volunteer, where there's no + // expectation of compensation for the provided services. + VOLUNTEER = 7; + + // The job requires an employee to work on an as-needed basis with a + // flexible schedule. + PER_DIEM = 8; + + // The job involves employing people in remote areas and flying them + // temporarily to the work site instead of relocating employees and their + // families permanently. + FLY_IN_FLY_OUT = 9; + + // The job does not fit any of the other listed types. + OTHER_EMPLOYMENT_TYPE = 10; +} + +// An enum that represents the required experience level required for the job. +enum JobLevel { + // The default value if the level isn't specified. + JOB_LEVEL_UNSPECIFIED = 0; + + // Entry-level individual contributors, typically with less than 2 years of + // experience in a similar role. Includes interns. + ENTRY_LEVEL = 1; + + // Experienced individual contributors, typically with 2+ years of + // experience in a similar role. + EXPERIENCED = 2; + + // Entry- to mid-level managers responsible for managing a team of people. + MANAGER = 3; + + // Senior-level managers responsible for managing teams of managers. + DIRECTOR = 4; + + // Executive-level managers and above, including C-level positions. + EXECUTIVE = 5; +} + +// An enum that represents the categorization or primary focus of specific +// role. This value is different than the "industry" associated with a role, +// which is related to the categorization of the company listing the job. +enum JobCategory { + // The default value if the category isn't specified. + JOB_CATEGORY_UNSPECIFIED = 0; + + // An accounting and finance job, such as an Accountant. + ACCOUNTING_AND_FINANCE = 1; + + // An administrative and office job, such as an Administrative Assistant. + ADMINISTRATIVE_AND_OFFICE = 2; + + // An advertising and marketing job, such as Marketing Manager. + ADVERTISING_AND_MARKETING = 3; + + // An animal care job, such as Veterinarian. + ANIMAL_CARE = 4; + + // An art, fashion, or design job, such as Designer. + ART_FASHION_AND_DESIGN = 5; + + // A business operations job, such as Business Operations Manager. + BUSINESS_OPERATIONS = 6; + + // A cleaning and facilities job, such as Custodial Staff. + CLEANING_AND_FACILITIES = 7; + + // A computer and IT job, such as Systems Administrator. + COMPUTER_AND_IT = 8; + + // A construction job, such as General Laborer. + CONSTRUCTION = 9; + + // A customer service job, such s Cashier. + CUSTOMER_SERVICE = 10; + + // An education job, such as School Teacher. + EDUCATION = 11; + + // An entertainment and travel job, such as Flight Attendant. + ENTERTAINMENT_AND_TRAVEL = 12; + + // A farming or outdoor job, such as Park Ranger. + FARMING_AND_OUTDOORS = 13; + + // A healthcare job, such as Registered Nurse. + HEALTHCARE = 14; + + // A human resources job, such as Human Resources Director. + HUMAN_RESOURCES = 15; + + // An installation, maintenance, or repair job, such as Electrician. + INSTALLATION_MAINTENANCE_AND_REPAIR = 16; + + // A legal job, such as Law Clerk. + LEGAL = 17; + + // A management job, often used in conjunction with another category, + // such as Store Manager. + MANAGEMENT = 18; + + // A manufacturing or warehouse job, such as Assembly Technician. + MANUFACTURING_AND_WAREHOUSE = 19; + + // A media, communications, or writing job, such as Media Relations. + MEDIA_COMMUNICATIONS_AND_WRITING = 20; + + // An oil, gas or mining job, such as Offshore Driller. + OIL_GAS_AND_MINING = 21; + + // A personal care and services job, such as Hair Stylist. + PERSONAL_CARE_AND_SERVICES = 22; + + // A protective services job, such as Security Guard. + PROTECTIVE_SERVICES = 23; + + // A real estate job, such as Buyer's Agent. + REAL_ESTATE = 24; + + // A restaurant and hospitality job, such as Restaurant Server. + RESTAURANT_AND_HOSPITALITY = 25; + + // A sales and/or retail job, such Sales Associate. + SALES_AND_RETAIL = 26; + + // A science and engineering job, such as Lab Technician. + SCIENCE_AND_ENGINEERING = 27; + + // A social services or non-profit job, such as Case Worker. + SOCIAL_SERVICES_AND_NON_PROFIT = 28; + + // A sports, fitness, or recreation job, such as Personal Trainer. + SPORTS_FITNESS_AND_RECREATION = 29; + + // A transportation or logistics job, such as Truck Driver. + TRANSPORTATION_AND_LOGISTICS = 30; +} + +// An enum that represents the job posting region. In most cases, job postings +// don't need to specify a region. If a region is given, jobs are +// eligible for searches in the specified region. +enum PostingRegion { + // If the region is unspecified, the job is only returned if it + // matches the [LocationFilter][google.cloud.talent.v4beta1.LocationFilter]. + POSTING_REGION_UNSPECIFIED = 0; + + // In addition to exact location matching, job posting is returned when the + // [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in the search + // query is in the same administrative area as the returned job posting. For + // example, if a `ADMINISTRATIVE_AREA` job is posted in "CA, USA", it's + // returned if [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] + // has "Mountain View". + // + // Administrative area refers to top-level administrative subdivision of this + // country. For example, US state, IT region, UK constituent nation and + // JP prefecture. + ADMINISTRATIVE_AREA = 1; + + // In addition to exact location matching, job is returned when + // [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in search + // query is in the same country as this job. For example, if a `NATION_WIDE` + // job is posted in "USA", it's returned if + // [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] has 'Mountain + // View'. + NATION = 2; + + // Job allows employees to work remotely (telecommute). + // If [locations][] are provided with this value, the job is + // considered as having a location, but telecommuting is allowed. + TELECOMMUTE = 3; +} + +// An enum that represents who has view access to the resource. +enum Visibility { + // Default value. + VISIBILITY_UNSPECIFIED = 0; + + // The resource is only visible to the GCP account who owns it. + ACCOUNT_ONLY = 1; + + // The resource is visible to the owner and may be visible to other + // applications and processes at Google. + SHARED_WITH_GOOGLE = 2; + + // The resource is visible to the owner and may be visible to all other API + // clients. + SHARED_WITH_PUBLIC = 3; +} + +// Enum that represents the usage of the contact information. +enum ContactInfoUsage { + // Default value. + CONTACT_INFO_USAGE_UNSPECIFIED = 0; + + // Personal use. + PERSONAL = 1; + + // Work use. + WORK = 2; + + // School use. + SCHOOL = 3; +} + +// Input only. +// +// Option for HTML content sanitization on user input fields, for example, job +// description. By setting this option, user can determine whether and how +// sanitization is performed on these fields. +enum HtmlSanitization { + // Default value. + HTML_SANITIZATION_UNSPECIFIED = 0; + + // Disables sanitization on HTML input. + HTML_SANITIZATION_DISABLED = 1; + + // Sanitizes HTML input, only accepts bold, italic, ordered list, and + // unordered list markup tags. + SIMPLE_FORMATTING_ONLY = 2; +} + +// Method for commute. +enum CommuteMethod { + // Commute method isn't specified. + COMMUTE_METHOD_UNSPECIFIED = 0; + + // Commute time is calculated based on driving time. + DRIVING = 1; + + // Commute time is calculated based on public transit including bus, metro, + // subway, etc. + TRANSIT = 2; + + // Commute time is calculated based on walking time. + WALKING = 3; + + // Commute time is calculated based on biking time. + CYCLING = 4; + + // Commute time is calculated based on public transit that is wheelchair + // accessible. + TRANSIT_ACCESSIBLE = 5; +} + +// Output only. +// +// A resource that represents a location with full geographic information. +message Location { + // An enum which represents the type of a location. + enum LocationType { + // Default value if the type isn't specified. + LOCATION_TYPE_UNSPECIFIED = 0; + + // A country level location. + COUNTRY = 1; + + // A state or equivalent level location. + ADMINISTRATIVE_AREA = 2; + + // A county or equivalent level location. + SUB_ADMINISTRATIVE_AREA = 3; + + // A city or equivalent level location. + LOCALITY = 4; + + // A postal code level location. + POSTAL_CODE = 5; + + // A sublocality is a subdivision of a locality, for example a city borough, + // ward, or arrondissement. Sublocalities are usually recognized by a local + // political authority. For example, Manhattan and Brooklyn are recognized + // as boroughs by the City of New York, and are therefore modeled as + // sublocalities. + SUB_LOCALITY = 6; + + // A district or equivalent level location. + SUB_LOCALITY_1 = 7; + + // A smaller district or equivalent level display. + SUB_LOCALITY_2 = 8; + + // A neighborhood level location. + NEIGHBORHOOD = 9; + + // A street address level location. + STREET_ADDRESS = 10; + } + + // The type of a location, which corresponds to the address lines field of + // [PostalAddress][]. For example, "Downtown, Atlanta, GA, USA" has a type of + // [LocationType#NEIGHBORHOOD][], and "Kansas City, KS, USA" has a type of + // [LocationType#LOCALITY][]. + LocationType location_type = 1; + + // Postal address of the location that includes human readable information, + // such as postal delivery and payments addresses. Given a postal address, + // a postal service can deliver items to a premises, P.O. Box, or other + // delivery location. + google.type.PostalAddress postal_address = 2; + + // An object representing a latitude/longitude pair. + google.type.LatLng lat_lng = 3; + + // Radius in miles of the job location. This value is derived from the + // location bounding box in which a circle with the specified radius + // centered from [LatLng][] covers the area associated with the job location. + // For example, currently, "Mountain View, CA, USA" has a radius of + // 6.17 miles. + double radius_miles = 4; +} + +// Input only. +// +// Meta information related to the job searcher or entity +// conducting the job search. This information is used to improve the +// performance of the service. +message RequestMetadata { + // Required if + // [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids] + // is unset or `false`. + // + // The client-defined scope or source of the service call, which typically + // is the domain on + // which the service has been implemented and is currently being run. + // + // For example, if the service is being run by client Foo, Inc., on + // job board www.foo.com and career site www.bar.com, then this field is + // set to "foo.com" for use on the job board, and "bar.com" for use on the + // career site. + // + // Note that any improvements to the model for a particular tenant site rely + // on this field being set correctly to a unique domain. + // + // The maximum number of allowed characters is 255. + string domain = 1; + + // Required if + // [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids] + // is unset or `false`. + // + // A unique session identification string. A session is defined as the + // duration of an end user's interaction with the service over a certain + // period. + // Obfuscate this field for privacy concerns before + // providing it to the service. + // + // Note that any improvements to the model for a particular tenant site rely + // on this field being set correctly to a unique session ID. + // + // The maximum number of allowed characters is 255. + string session_id = 2; + + // Required if + // [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids] + // is unset or `false`. + // + // A unique user identification string, as determined by the client. + // To have the strongest positive impact on search quality + // make sure the client-level is unique. + // Obfuscate this field for privacy concerns before + // providing it to the service. + // + // Note that any improvements to the model for a particular tenant site rely + // on this field being set correctly to a unique user ID. + // + // The maximum number of allowed characters is 255. + string user_id = 3; + + // Optional. + // + // If set to `true`, + // [domain][google.cloud.talent.v4beta1.RequestMetadata.domain], + // [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and + // [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] are + // optional. Only set when any of these fields isn't available for some + // reason. It is highly recommended not to set this field and provide accurate + // [domain][google.cloud.talent.v4beta1.RequestMetadata.domain], + // [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and + // [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] for the best + // service experience. + bool allow_missing_ids = 4; + + // Optional. + // + // The type of device used by the job seeker at the time of the call to the + // service. + DeviceInfo device_info = 5; +} + +// Output only. +// +// Additional information returned to client, such as debugging information. +message ResponseMetadata { + // A unique id associated with this call. + // This id is logged for tracking purposes. + string request_id = 1; +} + +// Device information collected from the job seeker, candidate, or +// other entity conducting the job search. Providing this information improves +// the quality of the search results across devices. +message DeviceInfo { + // An enumeration describing an API access portal and exposure mechanism. + enum DeviceType { + // The device type isn't specified. + DEVICE_TYPE_UNSPECIFIED = 0; + + // A desktop web browser, such as, Chrome, Firefox, Safari, or Internet + // Explorer) + WEB = 1; + + // A mobile device web browser, such as a phone or tablet with a Chrome + // browser. + MOBILE_WEB = 2; + + // An Android device native application. + ANDROID = 3; + + // An iOS device native application. + IOS = 4; + + // A bot, as opposed to a device operated by human beings, such as a web + // crawler. + BOT = 5; + + // Other devices types. + OTHER = 6; + } + + // Optional. + // + // Type of the device. + DeviceType device_type = 1; + + // Optional. + // + // A device-specific ID. The ID must be a unique identifier that + // distinguishes the device from other devices. + string id = 2; +} + +// Custom attribute values that are either filterable or non-filterable. +message CustomAttribute { + // Optional but exactly one of + // [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values] + // or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] + // must be specified. + // + // This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or + // `CASE_INSENSITIVE_MATCH`) search. + // For filterable `string_value`s, a maximum total number of 200 values + // is allowed, with each `string_value` has a byte size of no more than + // 255B. For unfilterable `string_values`, the maximum total byte size of + // unfilterable `string_values` is 50KB. + // + // Empty string isn't allowed. + repeated string string_values = 1; + + // Optional but exactly one of + // [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values] + // or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] + // must be specified. + // + // This field is used to perform number range search. + // (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`. + // + // Currently at most 1 + // [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is + // supported. + repeated int64 long_values = 2; + + // Optional. + // + // If the `filterable` flag is true, custom field values are searchable. + // If false, values are not searchable. + // + // Default is false. + bool filterable = 3; +} + +// Output only. +// +// Spell check result. +message SpellingCorrection { + // Indicates if the query was corrected by the spell checker. + bool corrected = 1; + + // Correction output consisting of the corrected keyword string. + string corrected_text = 2; + + // Corrected output with html tags to highlight the corrected words. + // Corrected words are called out with the "..." html tags. + // + // For example, the user input query is "software enginear", where the second + // word, "enginear," is incorrect. It should be "engineer". When spelling + // correction is enabled, this value is + // "software engineer". + string corrected_html = 3; +} + +// Job compensation details. +message CompensationInfo { + // A compensation entry that represents one component of compensation, such + // as base pay, bonus, or other compensation type. + // + // Annualization: One compensation entry can be annualized if + // - it contains valid + // [amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount] + // or + // [range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range]. + // - and its + // [expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year] + // is set or can be derived. Its annualized range is determined as + // ([amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount] + // or + // [range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range]) + // times + // [expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year]. + message CompensationEntry { + // Optional. + // + // Compensation type. + // + // Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][]. + CompensationType type = 1; + + // Optional. + // + // Frequency of the specified amount. + // + // Default is + // [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT]. + CompensationUnit unit = 2; + + // Optional. + // + // Compensation amount. It could be a fixed amount or a floating range. + oneof compensation_amount { + // Optional. + // + // Compensation amount. + google.type.Money amount = 3; + + // Optional. + // + // Compensation range. + CompensationRange range = 4; + } + + // Optional. + // + // Compensation description. For example, could + // indicate equity terms or provide additional context to an estimated + // bonus. + string description = 5; + + // Optional. + // + // Expected number of units paid each year. If not specified, when + // [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types] + // is FULLTIME, a default value is inferred based on + // [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit]. + // Default values: + // - HOURLY: 2080 + // - DAILY: 260 + // - WEEKLY: 52 + // - MONTHLY: 12 + // - ANNUAL: 1 + google.protobuf.DoubleValue expected_units_per_year = 6; + } + + // Compensation range. + message CompensationRange { + // Optional. + // + // The maximum amount of compensation. If left empty, the value is set + // to a maximal compensation value and the currency code is set to + // match the [currency code][google.type.Money.currency_code] of + // min_compensation. + google.type.Money max_compensation = 2; + + // Optional. + // + // The minimum amount of compensation. If left empty, the value is set + // to zero and the currency code is set to match the + // [currency code][google.type.Money.currency_code] of max_compensation. + google.type.Money min_compensation = 1; + } + + // The type of compensation. + // + // For compensation amounts specified in non-monetary amounts, + // describe the compensation scheme in the + // [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description]. + // + // For example, tipping format is described in + // [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description] + // (for example, "expect 15-20% tips based on customer bill.") and an estimate + // of the tips provided in + // [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount] + // or + // [CompensationEntry.range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range] + // ($10 per hour). + // + // For example, equity is described in + // [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description] + // (for example, "1% - 2% equity vesting over 4 years, 1 year cliff") and + // value estimated in + // [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount] + // or + // [CompensationEntry.range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range]. + // If no value estimate is possible, units are + // [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED] + // and then further clarified in + // [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description] + // field. + enum CompensationType { + // Default value. + COMPENSATION_TYPE_UNSPECIFIED = 0; + + // Base compensation: Refers to the fixed amount of money paid to an + // employee by an employer in return for work performed. Base compensation + // does not include benefits, bonuses or any other potential compensation + // from an employer. + BASE = 1; + + // Bonus. + BONUS = 2; + + // Signing bonus. + SIGNING_BONUS = 3; + + // Equity. + EQUITY = 4; + + // Profit sharing. + PROFIT_SHARING = 5; + + // Commission. + COMMISSIONS = 6; + + // Tips. + TIPS = 7; + + // Other compensation type. + OTHER_COMPENSATION_TYPE = 8; + } + + // Pay frequency. + enum CompensationUnit { + // Default value. + COMPENSATION_UNIT_UNSPECIFIED = 0; + + // Hourly. + HOURLY = 1; + + // Daily. + DAILY = 2; + + // Weekly + WEEKLY = 3; + + // Monthly. + MONTHLY = 4; + + // Yearly. + YEARLY = 5; + + // One time. + ONE_TIME = 6; + + // Other compensation units. + OTHER_COMPENSATION_UNIT = 7; + } + + // Optional. + // + // Job compensation information. + // + // At most one entry can be of type + // [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE], + // which is referred as ** base compensation entry ** for the job. + repeated CompensationEntry entries = 1; + + // Output only. Annualized base compensation range. Computed as + // base compensation entry's [CompensationEntry.compensation][] times + // [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year]. + // + // See + // [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] + // for explanation on compensation annualization. + CompensationRange annualized_base_compensation_range = 2; + + // Output only. Annualized total compensation range. Computed as + // all compensation entries' [CompensationEntry.compensation][] times + // [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year]. + // + // See + // [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] + // for explanation on compensation annualization. + CompensationRange annualized_total_compensation_range = 3; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company.proto new file mode 100644 index 000000000000..e6773b08f216 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company.proto @@ -0,0 +1,130 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/common.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "CompanyResourceProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// A Company resource represents a company in the service. A company is the +// entity that owns job postings, that is, the hiring entity responsible for +// employing applicants for the job position. +message Company { + // Derived details about the company. + message DerivedInfo { + // A structured headquarters location of the company, resolved from + // [Company.hq_location][] if provided. + Location headquarters_location = 1; + } + + // Required during company update. + // + // The resource name for a company. This is generated by the service when a + // company is created. + // + // The format is "projects/{project_id}/companies/{company_id}", for example, + // "projects/api-test-project/companies/foo". + string name = 1; + + // Required. + // + // The display name of the company, for example, "Google, LLC". + string display_name = 2; + + // Required. + // + // Client side company identifier, used to uniquely identify the + // company. + // + // The maximum number of allowed characters is 255. + string external_id = 3; + + // Optional. + // + // The employer's company size. + CompanySize size = 4; + + // Optional. + // + // The street address of the company's main headquarters, which may be + // different from the job location. The service attempts + // to geolocate the provided address, and populates a more specific + // location wherever possible in + // [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location]. + string headquarters_address = 5; + + // Optional. + // + // Set to true if it is the hiring agency that post jobs for other + // employers. + // + // Defaults to false if not provided. + bool hiring_agency = 6; + + // Optional. + // + // Equal Employment Opportunity legal disclaimer text to be + // associated with all jobs, and typically to be displayed in all + // roles. + // + // The maximum number of allowed characters is 500. + string eeo_text = 7; + + // Optional. + // + // The URI representing the company's primary web site or home page, + // for example, "https://www.google.com". + // + // The maximum number of allowed characters is 255. + string website_uri = 8; + + // Optional. + // + // The URI to employer's career site or careers page on the employer's web + // site, for example, "https://careers.google.com". + string career_site_uri = 9; + + // Optional. + // + // A URI that hosts the employer's company logo. + string image_uri = 10; + + // Optional. + // + // A list of keys of filterable + // [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes], + // whose corresponding `string_values` are used in keyword search. Jobs with + // `string_values` under these specified field keys are returned if any + // of the values matches the search keyword. Custom field values with + // parenthesis, brackets and special symbols won't be properly searchable, + // and those keyword queries need to be surrounded by quotes. + repeated string keyword_searchable_job_custom_attributes = 11; + + // Output only. Derived details about the company. + DerivedInfo derived_info = 12; + + // Output only. Indicates whether a company is flagged to be suspended from + // public availability by the service when job content appears suspicious, + // abusive, or spammy. + bool suspended = 13; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company_service.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company_service.proto new file mode 100644 index 000000000000..74a01847b14c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company_service.proto @@ -0,0 +1,179 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/common.proto"; +import "google/cloud/talent/v4beta1/company.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "CompanyServiceProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// A service that handles company management, including CRUD and enumeration. +service CompanyService { + // Creates a new company entity. + rpc CreateCompany(CreateCompanyRequest) returns (Company) { + option (google.api.http) = { + post: "/v4beta1/{parent=projects/*}/companies" + body: "*" + }; + } + + // Retrieves specified company. + rpc GetCompany(GetCompanyRequest) returns (Company) { + option (google.api.http) = { + get: "/v4beta1/{name=projects/*/companies/*}" + }; + } + + // Updates specified company. + rpc UpdateCompany(UpdateCompanyRequest) returns (Company) { + option (google.api.http) = { + patch: "/v4beta1/{company.name=projects/*/companies/*}" + body: "*" + }; + } + + // Deletes specified company. + // Prerequisite: The company has no jobs associated with it. + rpc DeleteCompany(DeleteCompanyRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v4beta1/{name=projects/*/companies/*}" + }; + } + + // Lists all companies associated with the project. + rpc ListCompanies(ListCompaniesRequest) returns (ListCompaniesResponse) { + option (google.api.http) = { + get: "/v4beta1/{parent=projects/*}/companies" + }; + } +} + +// The Request of the CreateCompany method. +message CreateCompanyRequest { + // Required. + // + // Resource name of the project under which the company is created. + // + // The format is "projects/{project_id}", for example, + // "projects/api-test-project". + string parent = 1; + + // Required. + // + // The company to be created. + Company company = 2; +} + +// Request for getting a company by name. +message GetCompanyRequest { + // Required. + // + // The resource name of the company to be retrieved. + // + // The format is "projects/{project_id}/companies/{company_id}", for example, + // "projects/api-test-project/companies/foo". + string name = 1; +} + +// Request for updating a specified company. +message UpdateCompanyRequest { + // Required. + // + // The company resource to replace the current resource in the system. + Company company = 1; + + // Optional but strongly recommended for the best service + // experience. + // + // If + // [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask] + // is provided, only the specified fields in + // [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are + // updated. Otherwise all the fields are updated. + // + // A field mask to specify the company fields to be updated. Only + // top level fields of [Company][google.cloud.talent.v4beta1.Company] are + // supported. + google.protobuf.FieldMask update_mask = 2; +} + +// Request to delete a company. +message DeleteCompanyRequest { + // Required. + // + // The resource name of the company to be deleted. + // + // The format is "projects/{project_id}/companies/{company_id}", for example, + // "projects/api-test-project/companies/foo". + string name = 1; +} + +// List companies for which the client has ACL visibility. +message ListCompaniesRequest { + // Required. + // + // Resource name of the project under which the company is created. + // + // The format is "projects/{project_id}", for example, + // "projects/api-test-project". + string parent = 1; + + // Optional. + // + // The starting indicator from which to return results. + string page_token = 2; + + // Optional. + // + // The maximum number of companies to be returned, at most 100. + // Default is 100 if a non-positive number is provided. + int32 page_size = 3; + + // Optional. + // + // Set to true if the companies requested must have open jobs. + // + // Defaults to false. + // + // If true, at most + // [page_size][google.cloud.talent.v4beta1.ListCompaniesRequest.page_size] of + // companies are fetched, among which only those with open jobs are returned. + bool require_open_jobs = 4; +} + +// Output only. +// +// The List companies response object. +message ListCompaniesResponse { + // Companies for the current client. + repeated Company companies = 1; + + // A token to retrieve the next page of results. + string next_page_token = 2; + + // Additional information for the API invocation, such as the request + // tracking id. + ResponseMetadata metadata = 3; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/completion_service.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/completion_service.proto new file mode 100644 index 000000000000..d151f8f4bcf9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/completion_service.proto @@ -0,0 +1,169 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/common.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "CompletionServiceProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// A service handles auto completion. +service Completion { + // Completes the specified prefix with keyword suggestions. + // Intended for use by a job search auto-complete search box. + rpc CompleteQuery(CompleteQueryRequest) returns (CompleteQueryResponse) { + option (google.api.http) = { + get: "/v4beta1/{name=projects/*}:complete" + }; + } +} + +// Input only. +// +// Auto-complete parameters. +message CompleteQueryRequest { + // Enum to specify the scope of completion. + enum CompletionScope { + // Default value. + COMPLETION_SCOPE_UNSPECIFIED = 0; + + // Suggestions are based only on the data provided by the client. + TENANT = 1; + + // Suggestions are based on all jobs data in the system that's visible to + // the client + PUBLIC = 2; + } + + // Enum to specify auto-completion topics. + enum CompletionType { + // Default value. + COMPLETION_TYPE_UNSPECIFIED = 0; + + // Only suggest job titles. + JOB_TITLE = 1; + + // Only suggest company names. + COMPANY_NAME = 2; + + // Suggest both job titles and company names. + COMBINED = 3; + } + + // Required. + // + // Resource name of project the completion is performed within. + // + // The format is "projects/{project_id}", for example, + // "projects/api-test-project". + string name = 1; + + // Required. + // + // The query used to generate suggestions. + // + // The maximum number of allowed characters is 255. + string query = 2; + + // Optional. + // + // The list of languages of the query. This is + // the BCP-47 language code, such as "en-US" or "sr-Latn". + // For more information, see + // [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). + // + // For + // [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE] + // type, only open jobs with the same + // [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes] + // are returned. + // + // For + // [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME] + // type, only companies having open jobs with the same + // [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes] + // are returned. + // + // For + // [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED] + // type, only open jobs with the same + // [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes] + // or companies having open jobs with the same + // [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes] + // are returned. + // + // The maximum number of allowed characters is 255. + repeated string language_codes = 3; + + // Required. + // + // Completion result count. + // + // The maximum allowed page size is 10. + int32 page_size = 4; + + // Optional. + // + // If provided, restricts completion to specified company. + // + // The format is "projects/{project_id}/companies/{company_id}", for example, + // "projects/api-test-project/companies/foo". + string company_name = 5; + + // Optional. + // + // The scope of the completion. The defaults is + // [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC]. + CompletionScope scope = 6; + + // Optional. + // + // The completion topic. The default is + // [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]. + CompletionType type = 7; +} + +// Output only. +// +// Response of auto-complete query. +message CompleteQueryResponse { + // Output only. + // + // Resource that represents completion results. + message CompletionResult { + // The suggestion for the query. + string suggestion = 1; + + // The completion topic. + CompleteQueryRequest.CompletionType type = 2; + + // The URI of the company image for [CompletionType.COMPANY_NAME][]. + string image_uri = 3; + } + + // Results of the matching job/company candidates. + repeated CompletionResult completion_results = 1; + + // Additional information for the API invocation, such as the request + // tracking id. + ResponseMetadata metadata = 2; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event.proto new file mode 100644 index 000000000000..3287d378b33a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event.proto @@ -0,0 +1,262 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "EventProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// An event issued when an end user interacts with the application that +// implements Cloud Talent Solution. Providing this information improves the +// quality of search and recommendation for the API clients, enabling the +// service to perform optimally. The number of events sent must be consistent +// with other calls, such as job searches, issued to the service by the client. +message ClientEvent { + // Required. + // + // A unique ID generated in the API responses. It can be found in + // [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id]. + string request_id = 1; + + // Required. + // + // A unique identifier, generated by the client application. + string event_id = 2; + + // Required. + // + // The timestamp of the event. + google.protobuf.Timestamp create_time = 4; + + // Required. + // + // The detail information of a specific event type. + oneof event { + // An event issued when a job seeker interacts with the application that + // implements Cloud Talent Solution. + JobEvent job_event = 5; + + // An event issued when a profile searcher interacts with the application + // that implements Cloud Talent Solution. + ProfileEvent profile_event = 6; + } + + // Optional. + // + // Extra information about this event. Used for storing information with no + // matching field in [event][google.cloud.talent.v4beta1.event] payload, for + // example, user application specific context or details. + // + // At most 20 keys are supported. The maximum total size of all keys and + // values is 2 KB. + map extra_info = 7; +} + +// An event issued when a job seeker interacts with the application that +// implements Cloud Talent Solution. +message JobEvent { + // An enumeration of an event attributed to the behavior of the end user, + // such as a job seeker. + enum JobEventType { + // The event is unspecified by other provided values. + JOB_EVENT_TYPE_UNSPECIFIED = 0; + + // The job seeker or other entity interacting with the service has + // had a job rendered in their view, such as in a list of search results in + // a compressed or clipped format. This event is typically associated with + // the viewing of a jobs list on a single page by a job seeker. + IMPRESSION = 1; + + // The job seeker, or other entity interacting with the service, has + // viewed the details of a job, including the full description. This + // event doesn't apply to the viewing a snippet of a job appearing as a + // part of the job search results. Viewing a snippet is associated with an + // [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]). + VIEW = 2; + + // The job seeker or other entity interacting with the service + // performed an action to view a job and was redirected to a different + // website for job. + VIEW_REDIRECT = 3; + + // The job seeker or other entity interacting with the service + // began the process or demonstrated the intention of applying for a job. + APPLICATION_START = 4; + + // The job seeker or other entity interacting with the service + // submitted an application for a job. + APPLICATION_FINISH = 5; + + // The job seeker or other entity interacting with the service + // submitted an application for a job with a single click without + // entering information. If a job seeker performs this action, send only + // this event to the service. Do not also send + // [JobEventType.APPLICATION_START][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_START] + // or + // [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_FINISH] + // events. + APPLICATION_QUICK_SUBMISSION = 6; + + // The job seeker or other entity interacting with the service + // performed an action to apply to a job and was redirected to a different + // website to complete the application. + APPLICATION_REDIRECT = 7; + + // The job seeker or other entity interacting with the service began the + // process or demonstrated the intention of applying for a job from the + // search results page without viewing the details of the job posting. + // If sending this event, JobEventType.VIEW event shouldn't be sent. + APPLICATION_START_FROM_SEARCH = 8; + + // The job seeker, or other entity interacting with the service, performs an + // action with a single click from the search results page to apply to a job + // (without viewing the details of the job posting), and is redirected + // to a different website to complete the application. If a candidate + // performs this action, send only this event to the service. Do not also + // send + // [JobEventType.APPLICATION_START][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_START], + // [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_FINISH] + // or + // [JobEventType.VIEW][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] + // events. + APPLICATION_REDIRECT_FROM_SEARCH = 9; + + // This event should be used when a company submits an application + // on behalf of a job seeker. This event is intended for use by staffing + // agencies attempting to place candidates. + APPLICATION_COMPANY_SUBMIT = 10; + + // The job seeker or other entity interacting with the service demonstrated + // an interest in a job by bookmarking or saving it. + BOOKMARK = 11; + + // The job seeker or other entity interacting with the service was + // sent a notification, such as an email alert or device notification, + // containing one or more jobs listings generated by the service. + NOTIFICATION = 12; + + // The job seeker or other entity interacting with the service was + // employed by the hiring entity (employer). Send this event + // only if the job seeker was hired through an application that was + // initiated by a search conducted through the Cloud Talent Solution + // service. + HIRED = 13; + + // A recruiter or staffing agency submitted an application on behalf of the + // candidate after interacting with the service to identify a suitable job + // posting. + SENT_CV = 14; + + // The entity interacting with the service (for example, the job seeker), + // was granted an initial interview by the hiring entity (employer). This + // event should only be sent if the job seeker was granted an interview as + // part of an application that was initiated by a search conducted through / + // recommendation provided by the Cloud Talent Solution service. + INTERVIEW_GRANTED = 15; + + // The job seeker or other entity interacting with the service showed + // no interest in the job. + NOT_INTERESTED = 16; + } + + // Required. + // + // The type of the event (see + // [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]). + JobEventType type = 1; + + // Required. + // + // The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with + // this event. For example, if this is an + // [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION] + // event, this field contains the identifiers of all jobs shown to the job + // seeker. If this was a + // [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this + // field contains the identifier of the viewed job. + repeated string jobs = 2; +} + +// An event issued when a profile searcher interacts with the application +// that implements Cloud Talent Solution. +message ProfileEvent { + // The enum represents types of client events for a candidate profile. + enum ProfileEventType { + // Default value. + PROFILE_EVENT_TYPE_UNSPECIFIED = 0; + + // The profile is displayed. + IMPRESSION = 1; + + // The profile is viewed. + VIEW = 2; + + // The profile is bookmarked. + BOOKMARK = 3; + + // Comment added to the profile. + COMMENT_ADDED = 4; + + // Email sent regarding the profile. + EMAIL_SENT = 5; + + // The resume of the profile is viewed. + RESUME_VIEWED = 6; + + // The profile is added to a job. + ADD_TO_JOB = 7; + + // The recruiter explicitly highlights that a given profile is interesting + // enough for later review or is a good result for the search. + POSITIVE_REACTION_TO_PROFILE = 8; + + // The recruiter explicitly highlights that a given profile is not + // interesting enough for later review or is not a good result for the + // search. + NEGATIVE_REACTION_TO_PROFILE = 9; + + // The candidate is interesting enough to set up an initial screen with the + // recruiter. This step may be skipped based on the interview process. + SCREEN = 10; + } + + // Required. + // + // Type of event. + ProfileEventType type = 1; + + // Required. + // + // The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated + // with this client event. + repeated string profiles = 2; + + // Optional. + // + // The job ID associated with this client event if there is one. Leave it + // empty if the event isn't associated with a job. + // + // The job ID should be consistent with the + // [JobApplication.job.requisition_id][] in the profile. + string job_id = 3; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event_service.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event_service.proto new file mode 100644 index 000000000000..fe1606c3a96d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event_service.proto @@ -0,0 +1,56 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/event.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "EventServiceProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// A service handles client event report. +service EventService { + // Report events issued when end user interacts with customer's application + // that uses Cloud Talent Solution. You may inspect the created events in + // [self service + // tools](https://console.cloud.google.com/talent-solution/overview). + // [Learn + // more](https://cloud.google.com/talent-solution/docs/management-tools) + // about self service tools. + rpc CreateClientEvent(CreateClientEventRequest) returns (ClientEvent) { + option (google.api.http) = { + post: "/v4beta1/{parent=projects/*}/clientEvents" + body: "*" + }; + } +} + +// The report event request. +message CreateClientEventRequest { + // Parent project name. + string parent = 1; + + // Required. + // + // Events issued when end user interacts with customer's application that + // uses Cloud Talent Solution. + ClientEvent client_event = 2; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/filters.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/filters.proto new file mode 100644 index 000000000000..9d87c51addff --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/filters.proto @@ -0,0 +1,872 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/common.proto"; +import "google/cloud/talent/v4beta1/job.proto"; +import "google/cloud/talent/v4beta1/profile.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/wrappers.proto"; +import "google/type/date.proto"; +import "google/type/latlng.proto"; +import "google/type/timeofday.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "FiltersProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// Input only. +// +// The query required to perform a search query. +message JobQuery { + // Optional. + // + // The query string that matches against the job title, description, and + // location fields. + // + // The maximum number of allowed characters is 255. + string query = 1; + + // Optional. + // + // This filter specifies the company entities to search against. + // + // If a value isn't specified, jobs are searched for against all + // companies. + // + // If multiple values are specified, jobs are searched against the + // companies specified. + // + // The format is "projects/{project_id}/companies/{company_id}", for example, + // "projects/api-test-project/companies/foo". + // + // At most 20 company filters are allowed. + repeated string company_names = 2; + + // Optional. + // + // The location filter specifies geo-regions containing the jobs to + // search against. See + // [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more + // information. + // + // If a location value isn't specified, jobs fitting the other search + // criteria are retrieved regardless of where they're located. + // + // If multiple values are specified, jobs are retrieved from any of the + // specified locations. If different values are specified for the + // [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] + // parameter, the maximum provided distance is used for all locations. + // + // At most 5 location filters are allowed. + repeated LocationFilter location_filters = 3; + + // Optional. + // + // The category filter specifies the categories of jobs to search against. + // See [Category][] for more information. + // + // If a value isn't specified, jobs from any category are searched against. + // + // If multiple values are specified, jobs from any of the specified + // categories are searched against. + repeated JobCategory job_categories = 4; + + // Optional. + // + // Allows filtering jobs by commute time with different travel methods (for + // example, driving or public transit). Note: This only works with [COMMUTE + // MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is + // ignored. + // + // Currently we don't support sorting by commute time. + CommuteFilter commute_filter = 5; + + // Optional. + // + // This filter specifies the exact [company display + // name][Company.display_name] of the jobs to search against. + // + // If a value isn't specified, jobs within the search results are + // associated with any company. + // + // If multiple values are specified, jobs within the search results may be + // associated with any of the specified companies. + // + // At most 20 company display name filters are allowed. + repeated string company_display_names = 6; + + // Optional. + // + // This search filter is applied only to + // [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info]. + // For example, if the filter is specified as "Hourly job with per-hour + // compensation > $15", only jobs meeting these criteria are searched. If a + // filter isn't defined, all open jobs are searched. + CompensationFilter compensation_filter = 7; + + // Optional. + // + // This filter specifies a structured syntax to match against the + // [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes] + // marked as `filterable`. + // + // The syntax for this expression is a subset of SQL syntax. + // + // Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the + // left of the operator is a custom field key and the right of the operator + // is a number or a quoted string. You must escape backslash (\\) and + // quote (\") characters. + // + // Supported functions are `LOWER([field_name])` to + // perform a case insensitive match and `EMPTY([field_name])` to filter on the + // existence of a key. + // + // Boolean expressions (AND/OR/NOT) are supported up to 3 levels of + // nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100 + // comparisons or functions are allowed in the expression. The expression + // must be < 3000 bytes in length. + // + // Sample Query: + // `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND + // driving_years > 10` + string custom_attribute_filter = 8; + + // Optional. + // + // This flag controls the spell-check feature. If false, the + // service attempts to correct a misspelled query, + // for example, "enginee" is corrected to "engineer". + // + // Defaults to false: a spell check is performed. + bool disable_spell_check = 9; + + // Optional. + // + // The employment type filter specifies the employment type of jobs to + // search against, such as + // [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME]. + // + // If a value isn't specified, jobs in the search results includes any + // employment type. + // + // If multiple values are specified, jobs in the search results include + // any of the specified employment types. + repeated EmploymentType employment_types = 10; + + // Optional. + // + // This filter specifies the locale of jobs to search against, + // for example, "en-US". + // + // If a value isn't specified, the search results can contain jobs in any + // locale. + // + // + // Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn". + // For more information, see + // [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). + // + // At most 10 language code filters are allowed. + repeated string language_codes = 11; + + // Optional. + // + // Jobs published within a range specified by this filter are searched + // against. + TimestampRange publish_time_range = 12; + + // Optional. + // + // This filter specifies a list of job names to be excluded during search. + // + // At most 200 excluded job names are allowed. + repeated string excluded_jobs = 13; +} + +// Filters to apply when performing the search query. +message ProfileQuery { + // Optional. + // + // Keywords to match any text fields of profiles. + // + // For example, "software engineer in Palo Alto". + string query = 1; + + // Optional. + // + // The location filter specifies geo-regions containing the profiles to + // search against. + // + // If a location filter isn't specified, profiles fitting the other search + // criteria are retrieved regardless of where they're located. + // + // If + // [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated] + // is specified, the result doesn't contain profiles from that location. + // + // For example, search for profiles with addresses in "New York City". + repeated LocationFilter location_filters = 2; + + // Optional. + // + // Job title filter specifies job titles of profiles to match on. + // + // If a job title isn't specified, profiles with any titles are retrieved. + // + // If multiple values are specified, profiles are retrieved with any of the + // specified job titles. + // + // If + // [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated] + // is specified, the result won't contain profiles with the job titles. + // + // For example, search for profiles with a job title "Product Manager". + repeated JobTitleFilter job_title_filters = 3; + + // Optional. + // + // Employer filter specifies employers of profiles to match on. + // + // If an employer filter isn't specified, profiles with any employers are + // retrieved. + // + // If multiple employer filters are specified, profiles with any matching + // employers are retrieved. + // + // If + // [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated] + // is specified, the result won't contain profiles that match the employers. + // + // For example, search for profiles that have working experience at "Google + // LLC". + repeated EmployerFilter employer_filters = 4; + + // Optional. + // + // Education filter specifies education of profiles to match on. + // + // If an education filter isn't specified, profiles with any education are + // retrieved. + // + // If multiple education filters are specified, profiles that match any + // education filters are retrieved. + // + // If + // [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated] + // is specified, the result won't contain profiles that match the educations. + // + // For example, search for profiles with a master degree. + repeated EducationFilter education_filters = 5; + + // Optional. + // + // Skill filter specifies skill of profiles to match on. + // + // If a skill filter isn't specified, profiles with any skills are retrieved. + // + // If multiple skill filters are specified, profiles that match any skill + // filters are retrieved. + // + // If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated] + // is specified, the result won't contain profiles that match the skills. + // + // For example, search for profiles that have "Java" and "Python" in skill + // list. + repeated SkillFilter skill_filters = 6; + + // Optional. + // + // Work experience filter specifies the total working experience of profiles + // to match on. + // + // If a work experience filter isn't specified, profiles with any + // professional experience are retrieved. + // + // If multiple work experience filters are specified, profiles that match any + // work experience filters are retrieved. + // + // For example, search for profiles with 10 years of work experience. + repeated WorkExperienceFilter work_experience_filter = 7; + + // Optional. + // + // Time filter specifies the create/update timestamp of the profiles to match + // on. + // + // For example, search for profiles created since "2018-1-1". + repeated TimeFilter time_filters = 8; + + // Optional. + // + // The hirable filter specifies the profile's hirable status to match on. + google.protobuf.BoolValue hirable_filter = 9; + + // Optional. + // + // The application date filters specify application date ranges to match on. + repeated ApplicationDateFilter application_date_filters = 10; + + // Optional. + // + // The application outcome reason filters specify the reasons for outcome of + // the job application. + repeated ApplicationOutcomeReasonFilter application_outcome_reason_filters = + 11; + + // Optional. + // + // The application last stage filters specify the last stage of job + // application. + repeated ApplicationLastStageFilter application_last_stage_filters = 12; + + // Optional. + // + // The application job filters specify the job applied for in the application. + repeated ApplicationJobFilter application_job_filters = 13; + + // Optional. + // + // The application status filters specify the status of job application. + repeated ApplicationStatusFilter application_status_filters = 14; + + // Optional. + // + // This filter specifies a structured syntax to match against the + // [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes] + // that are marked as `filterable`. + // + // The syntax for this expression is a subset of Google SQL syntax. + // + // Supported operators are: =, != where the left of the operator is a custom + // field key and the right of the operator is a string (surrounded by quotes) + // value. + // + // Supported functions are LOWER() to + // perform case insensitive match and EMPTY() to filter on the + // existence of a key. + // + // Boolean expressions (AND/OR/NOT) are supported up to 3 levels of + // nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be + // a maximum of 50 comparisons/functions in the expression. The expression + // must be < 2000 characters in length. + // + // Sample Query: + // (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1)) + string custom_field_filter = 15; +} + +// Input only. +// +// Geographic region of the search. +message LocationFilter { + // Specify whether including telecommute jobs. + enum TelecommutePreference { + // Default value if the telecommute preference isn't specified. + TELECOMMUTE_PREFERENCE_UNSPECIFIED = 0; + + // Exclude telecommute jobs. + TELECOMMUTE_EXCLUDED = 1; + + // Allow telecommute jobs. + TELECOMMUTE_ALLOWED = 2; + } + + // Optional. + // + // The address name, such as "Mountain View" or "Bay Area". + string address = 1; + + // Optional. + // + // CLDR region code of the country/region of the address. This is used + // to address ambiguity of the user-input location, for example, "Liverpool" + // against "Liverpool, NY, US" or "Liverpool, UK". + // + // Set this field if all the jobs to search against are from a same region, + // or jobs are world-wide, but the job seeker is from a specific region. + // + // See http://cldr.unicode.org/ and + // http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html + // for details. Example: "CH" for Switzerland. + string region_code = 2; + + // Optional. + // + // The latitude and longitude of the geographic center from which to + // search. This field's ignored if `address` is provided. + google.type.LatLng lat_lng = 3; + + // Optional. + // + // + // The distance_in_miles is applied when the location being searched for is + // identified as a city or smaller. When the location being searched for is a + // state or larger, this field is ignored. + double distance_in_miles = 4; + + // Optional. + // + // Allows the client to return jobs without a + // set location, specifically, telecommuting jobs (telecomuting is considered + // by the service as a special location. + // [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region] + // indicates if a job permits telecommuting. If this field is set to + // [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED], + // telecommuting jobs are searched, and + // [address][google.cloud.talent.v4beta1.LocationFilter.address] and + // [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are ignored. + // If not set or set to + // [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED], + // telecommute job are not searched. + // + // This filter can be used by itself to search exclusively for telecommuting + // jobs, or it can be combined with another location + // filter to search for a combination of job locations, + // such as "Mountain View" or "telecommuting" jobs. However, when used in + // combination with other location filters, telecommuting jobs can be + // treated as less relevant than other jobs in the search response. + TelecommutePreference telecommute_preference = 5; + + // Optional. + // + // Whether to apply negation to the filter so profiles matching the filter + // are excluded. + // + // Currently only supported in profile search. + bool negated = 6; +} + +// Input only. +// +// Filter on job compensation type and amount. +message CompensationFilter { + // Specify the type of filtering. + enum FilterType { + // Filter type unspecified. Position holder, INVALID, should never be used. + FILTER_TYPE_UNSPECIFIED = 0; + + // Filter by `base compensation entry's` unit. A job is a match if and + // only if the job contains a base CompensationEntry and the base + // CompensationEntry's unit matches provided + // [units][google.cloud.talent.v4beta1.CompensationFilter.units]. Populate + // one or more + // [units][google.cloud.talent.v4beta1.CompensationFilter.units]. + // + // See + // [CompensationInfo.CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] + // for definition of base compensation entry. + UNIT_ONLY = 1; + + // Filter by `base compensation entry's` unit and amount / range. A job + // is a match if and only if the job contains a base CompensationEntry, and + // the base entry's unit matches provided [compensation_units][] and amount + // or range overlaps with provided [compensation_range][]. + // + // See + // [CompensationInfo.CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] + // for definition of base compensation entry. + // + // Set exactly one + // [units][google.cloud.talent.v4beta1.CompensationFilter.units] and + // populate [range][google.cloud.talent.v4beta1.CompensationFilter.range]. + UNIT_AND_AMOUNT = 2; + + // Filter by annualized base compensation amount and `base compensation + // entry's` unit. Populate + // [range][google.cloud.talent.v4beta1.CompensationFilter.range] and zero or + // more [units][google.cloud.talent.v4beta1.CompensationFilter.units]. + ANNUALIZED_BASE_AMOUNT = 3; + + // Filter by annualized total compensation amount and `base compensation + // entry's` unit . Populate + // [range][google.cloud.talent.v4beta1.CompensationFilter.range] and zero or + // more [units][google.cloud.talent.v4beta1.CompensationFilter.units]. + ANNUALIZED_TOTAL_AMOUNT = 4; + } + + // Required. + // + // Type of filter. + FilterType type = 1; + + // Required. + // + // Specify desired `base compensation entry's` + // [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit]. + repeated CompensationInfo.CompensationUnit units = 2; + + // Optional. + // + // Compensation range. + CompensationInfo.CompensationRange range = 3; + + // Optional. + // + // Whether to include jobs whose compensation range is unspecified. + bool include_jobs_with_unspecified_compensation_range = 4; +} + +// Input only. +// +// Parameters needed for commute search. +message CommuteFilter { + // The traffic density to use when calculating commute time. + enum RoadTraffic { + // Road traffic situation isn't specified. + ROAD_TRAFFIC_UNSPECIFIED = 0; + + // Optimal commute time without considering any traffic impact. + TRAFFIC_FREE = 1; + + // Commute time calculation takes in account the peak traffic impact. + BUSY_HOUR = 2; + } + + // Required. + // + // The method of transportation for which to calculate the commute time. + CommuteMethod commute_method = 1; + + // Required. + // + // The latitude and longitude of the location from which to calculate the + // commute time. + google.type.LatLng start_coordinates = 2; + + // Required. + // + // The maximum travel time in seconds. The maximum allowed value is `3600s` + // (one hour). Format is `123s`. + google.protobuf.Duration travel_duration = 3; + + // Optional. + // If `true`, jobs without street level addresses may also be returned. + // For city level addresses, the city center is used. For state and coarser + // level addresses, text matching is used. + // If this field is set to `false` or isn't specified, only jobs that include + // street level addresses will be returned by commute search. + bool allow_imprecise_addresses = 4; + + // Optional. + // + // Traffic factor to take into account while searching by commute. + oneof traffic_option { + // Optional. + // + // Specifies the traffic density to use when calculating commute time. + RoadTraffic road_traffic = 5; + + // Optional. + // + // The departure time used to calculate traffic impact, represented as + // [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone. + // + // Currently traffic model is restricted to hour level resolution. + google.type.TimeOfDay departure_time = 6; + } +} + +// Input only. +// +// Job title of the search. +message JobTitleFilter { + // Required. + // + // The job title, for example, "Software engineer", or "Product manager". + string job_title = 1; + + // Optional. + // + // Whether to apply negation to the filter so profiles matching the filter + // are excluded. + bool negated = 2; +} + +// Input only. +// +// Skill filter of the search. +message SkillFilter { + // Required. + // + // The skill name. For example, "java", "j2ee", etc. + string skill = 1; + + // Optional. + // + // Whether to apply negation to the filter so profiles matching the filter + // are excluded. + bool negated = 2; +} + +// Input only. +// +// Employer filter of the search. +message EmployerFilter { + // Enum indicating which set of + // [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records] + // to search against. + enum EmployerFilterMode { + // Default value. + EMPLOYER_FILTER_MODE_UNSPECIFIED = 0; + + // Apply to all employers in + // [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records]. + ALL_EMPLOYMENT_RECORDS = 1; + + // Apply only to current employer in + // [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records]. + CURRENT_EMPLOYMENT_RECORDS_ONLY = 2; + + // Apply only to past (not current) employers in + // [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records]. + PAST_EMPLOYMENT_RECORDS_ONLY = 3; + } + + // Required. + // + // The name of the employer, for example "Google", "Alphabet". + string employer = 1; + + // Optional. + // + // Define set of + // [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search + // against. + // + // Defaults to + // [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS]. + EmployerFilterMode mode = 2; + + // Optional. + // + // Whether to apply negation to the filter so profiles matching the filter + // is excluded. + bool negated = 3; +} + +// Input only. +// +// Education filter of the search. +message EducationFilter { + // Optional. + // + // The school name. For example "MIT", "University of California, Berkeley". + string school = 1; + + // Optional. + // + // The field of study. This is to search against value provided in + // [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study]. + // For example "Computer Science", "Mathematics". + string field_of_study = 2; + + // Optional. + // + // Education degree in ISCED code. Each value in degree covers a specific + // level of education, without any expansion to upper nor lower levels of + // education degree. + DegreeType degree_type = 3; + + // Optional. + // + // Whether to apply negation to the filter so profiles matching the filter + // is excluded. + bool negated = 6; +} + +// Input only. +// +// Work experience filter. +// +// This filter is used to search for profiles with working experience length +// between +// [min_experience][google.cloud.talent.v4beta1.WorkExperienceFilter.min_experience] +// and +// [max_experience][google.cloud.talent.v4beta1.WorkExperienceFilter.max_experience]. +message WorkExperienceFilter { + // Optional. + // + // The minimum duration of the work experience (inclusive). + google.protobuf.Duration min_experience = 1; + + // Optional. + // + // The maximum duration of the work experience (exclusive). + google.protobuf.Duration max_experience = 2; +} + +// Input only. +// +// Application Date Range Filter. +// +// The API matches profiles with +// [JobApplication.application_date][google.cloud.talent.v4beta1.JobApplication.application_date] +// between start date and end date (both boundaries are inclusive). The filter +// is ignored if both +// [start_date][google.cloud.talent.v4beta1.ApplicationDateFilter.start_date] +// and [end_date][google.cloud.talent.v4beta1.ApplicationDateFilter.end_date] +// are missing. +message ApplicationDateFilter { + // Optional. + // + // Start date. If it's missing, The API matches profiles with application date + // not after the end date. + google.type.Date start_date = 1; + + // Optional. + // + // End date. If it's missing, The API matches profiles with application date + // not before the start date. + google.type.Date end_date = 2; +} + +// Input only. +// +// Outcome Reason Filter. +message ApplicationOutcomeReasonFilter { + // Required. + // + // User entered or selected outcome reason. The API does an exact match on the + // [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason] + // in profiles. + string outcome_reason = 1; + + // Optional. + // + // If true, The API excludes all candidates with any + // [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason] + // matching the outcome reason specified in the filter. + bool negated = 2; +} + +// Input only. +// +// Filter on Last Stage of Application. +message ApplicationLastStageFilter { + // Required. + // + // User entered or selected last stage the candidate reached in the + // application. The API does an exact match on the + // [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage] + // in profiles. + string last_stage = 1; + + // Optional. + // If true, The API excludes all candidates with any + // [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage] + // matching the last stage specified in the filter. + bool negated = 2; +} + +// Input only. +// +// Filter on the job information of Application. +message ApplicationJobFilter { + // Optional. + // + // The job resource name in the application. The API does an exact match on + // the [Job.name][google.cloud.talent.v4beta1.Job.name] of + // [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in + // profiles. + string job_name = 1; + + // Optional. + // + // The job requisition id in the application. The API does an exact match on + // the [Job.requisistion_id][] of + // [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in + // profiles. + string job_requisition_id = 2; + + // Optional. + // + // The job title in the application. The API does an exact match on the + // [Job.title][google.cloud.talent.v4beta1.Job.title] of + // [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in + // profiles. + string job_title = 3; + + // Optional. + // + // If true, the API excludes all profiles with any + // [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] + // matching the filters. + bool negated = 4; +} + +// Input only. +// +// Filter on status of Application. +message ApplicationStatusFilter { + // Required. + // + // User entered or selected application status. The API does an exact match + // between the application status specified in this filter and the + // [JobApplication.status][] in profiles. + JobApplication.ApplicationStatus application_status = 1; + + // Optional. + // + // If true, The API excludes all candidates with any [JobApplication.status][] + // matching the status specified in the filter. + bool negated = 2; +} + +// Input only. +// +// Filter on create timestamp or update timestamp of profiles. +message TimeFilter { + // Time fields can be used in TimeFilter. + enum TimeField { + // Default value. + TIME_FIELD_UNSPECIFIED = 0; + + // Earliest profile create time. + CREATE_TIME = 1; + + // Latest profile update time. + UPDATE_TIME = 2; + } + + // Optional. + // + // Start timestamp, matching profiles with the start time. If this field + // missing, The API matches profiles with create / update timestamp before the + // end timestamp. + google.protobuf.Timestamp start_time = 1; + + // Optional. + // + // End timestamp, matching profiles with the end time. If this field + // missing, The API matches profiles with create / update timestamp after the + // start timestamp. + google.protobuf.Timestamp end_time = 2; + + // Optional. + // + // Specifies which time field to filter profiles. + // + // Defaults to + // [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME]. + TimeField time_field = 3; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/histogram.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/histogram.proto new file mode 100644 index 000000000000..22c4f82df8de --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/histogram.proto @@ -0,0 +1,61 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "HistogramProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// Input Only. +// +// The histogram request. +message HistogramQuery { + // An expression specifies a histogram request against matching resources + // (for example, jobs, profiles) for searches. + // + // See + // [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries] + // and + // [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries] + // for details about syntax. + string histogram_query = 1; +} + +// Output only. +// +// Histogram result that matches [HistogramSpec][] specified in searches. +message HistogramQueryResult { + // Requested histogram expression. + string histogram_query = 1; + + // A map from the values of the facet associated with distinct values to the + // number of matching entries with corresponding value. + // + // The key format is: + // * (for string histogram) string values stored in the field. + // * (for named numeric bucket) name specified in `bucket()` function, like + // for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`. + // * (for anonymous numeric bucket) range formatted as `-`, for + // example, `0-1000`, `MIN-0`, and `0-MAX`. + map histogram = 2; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job.proto new file mode 100644 index 000000000000..1cf276d2484f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job.proto @@ -0,0 +1,415 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/common.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "JobResourceProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// A Job resource represents a job posting (also referred to as a "job listing" +// or "job requisition"). A job belongs to a +// [Company][google.cloud.talent.v4beta1.Company], which is the hiring entity +// responsible for the job. +message Job { + // Application related details of a job posting. + message ApplicationInfo { + // Optional but at least one of + // [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris], + // [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or + // [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction] + // must be specified. + // + // Use this field to specify email address(es) to which resumes or + // applications can be sent. + // + // The maximum number of allowed characters for each entry is 255. + repeated string emails = 1; + + // Optional but at least one of + // [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris], + // [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or + // [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction] + // must be specified. + // + // Use this field to provide instructions, such as "Mail your application + // to ...", that a candidate can follow to apply for the job. + // + // This field accepts and sanitizes HTML input, and also accepts + // bold, italic, ordered list, and unordered list markup tags. + // + // The maximum number of allowed characters is 3,000. + string instruction = 2; + + // Optional but at least one of + // [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris], + // [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or + // [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction] + // must be specified. + // + // Use this URI field to direct an applicant to a website, for example to + // link to an online application form. + // + // The maximum number of allowed characters for each entry is 2,000. + repeated string uris = 3; + } + + // Output only. + // + // Derived details about the job posting. + message DerivedInfo { + // Structured locations of the job, resolved from + // [Job.addresses][google.cloud.talent.v4beta1.Job.addresses]. + // + // [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are + // exactly matched to + // [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same + // order. + repeated Location locations = 1; + + // Job categories derived from + // [Job.title][google.cloud.talent.v4beta1.Job.title] and + // [Job.description][google.cloud.talent.v4beta1.Job.description]. + repeated JobCategory job_categories = 3; + } + + // Input only. + // + // Options for job processing. + message ProcessingOptions { + // Optional. + // + // If set to `true`, the service does not attempt to resolve a + // more precise address for the job. + bool disable_street_address_resolution = 1; + + // Optional. + // + // Option for job HTML content sanitization. Applied fields are: + // + // * description + // * applicationInfo.instruction + // * incentives + // * qualifications + // * responsibilities + // + // HTML tags in these fields may be stripped if sanitiazation isn't + // disabled. + // + // Defaults to + // [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent.v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY]. + HtmlSanitization html_sanitization = 2; + } + + // Required during job update. + // + // The resource name for the job. This is generated by the service when a + // job is created. + // + // The format is "projects/{project_id}/jobs/{job_id}", + // for example, "projects/api-test-project/jobs/1234". + // + // Use of this field in job queries and API calls is preferred over the use of + // [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this + // value is unique. + string name = 1; + + // Required. + // + // The resource name of the company listing the job, such as + // "projects/api-test-project/companies/foo". + string company_name = 2; + + // Required. + // + // The requisition ID, also referred to as the posting ID, is assigned by the + // client to identify a job. This field is intended to be used by clients + // for client identification and tracking of postings. A job isn't allowed + // to be created if there is another job with the same + // [company][google.cloud.talent.v4beta1.Job.name], + // [language_code][google.cloud.talent.v4beta1.Job.language_code] and + // [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]. + // + // The maximum number of allowed characters is 255. + string requisition_id = 3; + + // Required. + // + // The title of the job, such as "Software Engineer" + // + // The maximum number of allowed characters is 500. + string title = 4; + + // Required. + // + // The description of the job, which typically includes a multi-paragraph + // description of the company and related information. Separate fields are + // provided on the job object for + // [responsibilities][google.cloud.talent.v4beta1.Job.responsibilities], + // [qualifications][google.cloud.talent.v4beta1.Job.qualifications], and other + // job characteristics. Use of these separate job fields is recommended. + // + // This field accepts and sanitizes HTML input, and also accepts + // bold, italic, ordered list, and unordered list markup tags. + // + // The maximum number of allowed characters is 100,000. + string description = 5; + + // Optional but strongly recommended for the best service experience. + // + // Location(s) where the employer is looking to hire for this job posting. + // + // Specifying the full street address(es) of the hiring location enables + // better API results, especially job searches by commute time. + // + // At most 50 locations are allowed for best search performance. If a job has + // more locations, it is suggested to split it into multiple jobs with unique + // [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g. + // 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same + // [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and + // [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not + // allowed. If the original + // [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be + // preserved, a custom field should be used for storage. It is also suggested + // to group the locations that close to each other in the same job for better + // search experience. + // + // The maximum number of allowed characters is 500. + repeated string addresses = 6; + + // Required. At least one field within + // [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be + // specified. + // + // Job application information. + ApplicationInfo application_info = 7; + + // Optional. + // + // The benefits included with the job. + repeated JobBenefit job_benefits = 8; + + // Optional. + // + // Job compensation information. + CompensationInfo compensation_info = 9; + + // Optional. + // + // A map of fields to hold both filterable and non-filterable custom job + // attributes that are not covered by the provided structured fields. + // + // The keys of the map are strings up to 64 bytes and must match the + // pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or + // KEY_1_LIKE_THIS. + // + // At most 100 filterable and at most 100 unfilterable keys are supported. + // For filterable `string_values`, across all keys at most 200 values are + // allowed, with each string no more than 255 characters. For unfilterable + // `string_values`, the maximum total size of `string_values` across all keys + // is 50KB. + map custom_attributes = 10; + + // Optional. + // + // The desired education degrees for the job, such as Bachelors, Masters. + repeated DegreeType degree_types = 11; + + // Optional. + // + // The department or functional area within the company with the open + // position. + // + // The maximum number of allowed characters is 255. + string department = 12; + + // Optional. + // + // The employment type(s) of a job, for example, + // [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or + // [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME]. + repeated EmploymentType employment_types = 13; + + // Optional. + // + // A description of bonus, commission, and other compensation + // incentives associated with the job not including salary or pay. + // + // The maximum number of allowed characters is 10,000. + string incentives = 14; + + // Optional. + // + // The language of the posting. This field is distinct from + // any requirements for fluency that are associated with the job. + // + // Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn". + // For more information, see + // [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){: + // class="external" target="_blank" }. + // + // If this field is unspecified and + // [Job.description][google.cloud.talent.v4beta1.Job.description] is present, + // detected language code based on + // [Job.description][google.cloud.talent.v4beta1.Job.description] is assigned, + // otherwise defaults to 'en_US'. + string language_code = 15; + + // Optional. + // + // The experience level associated with the job, such as "Entry Level". + JobLevel job_level = 16; + + // Optional. + // + // A promotion value of the job, as determined by the client. + // The value determines the sort order of the jobs returned when searching for + // jobs using the featured jobs search call, with higher promotional values + // being returned first and ties being resolved by relevance sort. Only the + // jobs with a promotionValue >0 are returned in a FEATURED_JOB_SEARCH. + // + // Default value is 0, and negative values are treated as 0. + int32 promotion_value = 17; + + // Optional. + // + // A description of the qualifications required to perform the + // job. The use of this field is recommended + // as an alternative to using the more general + // [description][google.cloud.talent.v4beta1.Job.description] field. + // + // This field accepts and sanitizes HTML input, and also accepts + // bold, italic, ordered list, and unordered list markup tags. + // + // The maximum number of allowed characters is 10,000. + string qualifications = 18; + + // Optional. + // + // A description of job responsibilities. The use of this field is + // recommended as an alternative to using the more general + // [description][google.cloud.talent.v4beta1.Job.description] field. + // + // This field accepts and sanitizes HTML input, and also accepts + // bold, italic, ordered list, and unordered list markup tags. + // + // The maximum number of allowed characters is 10,000. + string responsibilities = 19; + + // Optional. + // + // The job [PostingRegion][google.cloud.talent.v4beta1.PostingRegion] (for + // example, state, country) throughout which the job is available. If this + // field is set, a + // [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in a search + // query within the job region finds this job posting if an exact location + // match isn't specified. If this field is set to + // [PostingRegion.NATION][google.cloud.talent.v4beta1.PostingRegion.NATION] or + // [PostingRegion.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA], + // setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to + // the same location level as this field is strongly recommended. + PostingRegion posting_region = 20; + + // Optional. + // + // The visibility of the job. + // + // Defaults to + // [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY] + // if not specified. + Visibility visibility = 21; + + // Optional. + // + // The start timestamp of the job in UTC time zone. Typically this field + // is used for contracting engagements. Invalid timestamps are ignored. + google.protobuf.Timestamp job_start_time = 22; + + // Optional. + // + // The end timestamp of the job. Typically this field is used for contracting + // engagements. Invalid timestamps are ignored. + google.protobuf.Timestamp job_end_time = 23; + + // Optional. + // + // The timestamp this job posting was most recently published. The default + // value is the time the request arrives at the server. Invalid timestamps are + // ignored. + google.protobuf.Timestamp posting_publish_time = 24; + + // Optional but strongly recommended for the best service + // experience. + // + // The expiration timestamp of the job. After this timestamp, the + // job is marked as expired, and it no longer appears in search results. The + // expired job can't be deleted or listed by the [DeleteJob][] and + // [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or + // updated with the [UpdateJob][] API. An expired job can be updated and + // opened again by using a future expiration timestamp. Updating an expired + // job fails if there is another existing open job with same + // [company][google.cloud.talent.v4beta1.Job.name][], + // [language_code][google.cloud.talent.v4beta1.Job.language_code] and + // [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]. + // + // The expired jobs are retained in our system for 90 days. However, the + // overall expired job count cannot exceed 3 times the maximum of open jobs + // count over the past week, otherwise jobs with earlier expire time are + // cleaned first. Expired jobs are no longer accessible after they are cleaned + // out. + // + // Invalid timestamps are ignored, and treated as expire time not provided. + // + // Timestamp before the instant request is made is considered valid, the job + // will be treated as expired immediately. + // + // If this value isn't provided at the time of job creation or is invalid, + // the job posting expires after 30 days from the job's creation time. For + // example, if the job was created on 2017/01/01 13:00AM UTC with an + // unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC. + // + // If this value isn't provided on job update, it depends on the field masks + // set by + // [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]. + // If the field masks include [expiry_time][], or the masks are empty meaning + // that every field is updated, the job posting expires after 30 days from the + // job's last update time. Otherwise the expiration date isn't updated. + google.protobuf.Timestamp posting_expire_time = 25; + + // Output only. The timestamp when this job posting was created. + google.protobuf.Timestamp posting_create_time = 26; + + // Output only. The timestamp when this job posting was last updated. + google.protobuf.Timestamp posting_update_time = 27; + + // Output only. Display name of the company listing the job. + string company_display_name = 28; + + // Output only. Derived details about the job posting. + DerivedInfo derived_info = 29; + + // Optional. + // + // Options for job processing. + ProcessingOptions processing_options = 30; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job_service.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job_service.proto new file mode 100644 index 000000000000..6a8b691f267d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job_service.proto @@ -0,0 +1,836 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/batch.proto"; +import "google/cloud/talent/v4beta1/common.proto"; +import "google/cloud/talent/v4beta1/filters.proto"; +import "google/cloud/talent/v4beta1/histogram.proto"; +import "google/cloud/talent/v4beta1/job.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "JobServiceProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// A service handles job management, including job CRUD, enumeration and search. +service JobService { + // Creates a new job. + // + // Typically, the job becomes searchable within 10 seconds, but it may take + // up to 5 minutes. + rpc CreateJob(CreateJobRequest) returns (Job) { + option (google.api.http) = { + post: "/v4beta1/{parent=projects/*}/jobs" + body: "*" + }; + } + + // Retrieves the specified job, whose status is OPEN or recently EXPIRED + // within the last 90 days. + rpc GetJob(GetJobRequest) returns (Job) { + option (google.api.http) = { + get: "/v4beta1/{name=projects/*/jobs/*}" + }; + } + + // Updates specified job. + // + // Typically, updated contents become visible in search results within 10 + // seconds, but it may take up to 5 minutes. + rpc UpdateJob(UpdateJobRequest) returns (Job) { + option (google.api.http) = { + patch: "/v4beta1/{job.name=projects/*/jobs/*}" + body: "*" + }; + } + + // Deletes the specified job. + // + // Typically, the job becomes unsearchable within 10 seconds, but it may take + // up to 5 minutes. + rpc DeleteJob(DeleteJobRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v4beta1/{name=projects/*/jobs/*}" + }; + } + + // Lists jobs by filter. + rpc ListJobs(ListJobsRequest) returns (ListJobsResponse) { + option (google.api.http) = { + get: "/v4beta1/{parent=projects/*}/jobs" + }; + } + + // Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter. + rpc BatchDeleteJobs(BatchDeleteJobsRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v4beta1/{parent=projects/*}/jobs:batchDelete" + body: "*" + }; + } + + // Searches for jobs using the provided + // [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. + // + // This call constrains the + // [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs present in + // the database, and only returns jobs that the caller has permission to + // search against. + rpc SearchJobs(SearchJobsRequest) returns (SearchJobsResponse) { + option (google.api.http) = { + post: "/v4beta1/{parent=projects/*}/jobs:search" + body: "*" + }; + } + + // Searches for jobs using the provided + // [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. + // + // This API call is intended for the use case of targeting passive job + // seekers (for example, job seekers who have signed up to receive email + // alerts about potential job opportunities), and has different algorithmic + // adjustments that are targeted to passive job seekers. + // + // This call constrains the + // [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs present in + // the database, and only returns jobs the caller has permission to search + // against. + rpc SearchJobsForAlert(SearchJobsRequest) returns (SearchJobsResponse) { + option (google.api.http) = { + post: "/v4beta1/{parent=projects/*}/jobs:searchForAlert" + body: "*" + }; + } +} + +// Input only. +// +// Create job request. +message CreateJobRequest { + // Required. + // + // The resource name of the project under which the job is created. + // + // The format is "projects/{project_id}", for example, + // "projects/api-test-project". + string parent = 1; + + // Required. + // + // The Job to be created. + Job job = 2; +} + +// Input only. +// +// Get job request. +message GetJobRequest { + // Required. + // + // The resource name of the job to retrieve. + // + // The format is "projects/{project_id}/jobs/{job_id}", + // for example, "projects/api-test-project/jobs/1234". + string name = 1; +} + +// Input only. +// +// Update job request. +message UpdateJobRequest { + // Required. + // + // The Job to be updated. + Job job = 1; + + // Optional but strongly recommended to be provided for the best service + // experience. + // + // If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask] + // is provided, only the specified fields in + // [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated. + // Otherwise all the fields are updated. + // + // A field mask to restrict the fields that are updated. Only + // top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported. + google.protobuf.FieldMask update_mask = 2; +} + +// Input only. +// +// Delete job request. +message DeleteJobRequest { + // Required. + // + // The resource name of the job to be deleted. + // + // The format is "projects/{project_id}/jobs/{job_id}", + // for example, "projects/api-test-project/jobs/1234". + string name = 1; +} + +// Input only. +// +// Batch delete jobs request. +message BatchDeleteJobsRequest { + // Required. + // + // The resource name of the project under which the job is created. + // + // The format is "projects/{project_id}", for example, + // "projects/api-test-project". + string parent = 1; + + // Required. + // + // The filter string specifies the jobs to be deleted. + // + // Supported operator: =, AND + // + // The fields eligible for filtering are: + // + // * `companyName` (Required) + // * `requisitionId` (Required) + // + // Sample Query: companyName = "projects/api-test-project/companies/123" AND + // requisitionId = "req-1" + string filter = 2; +} + +// Input only. +// +// List jobs request. +message ListJobsRequest { + // Required. + // + // The resource name of the project under which the job is created. + // + // The format is "projects/{project_id}", for example, + // "projects/api-test-project". + string parent = 1; + + // Required. + // + // The filter string specifies the jobs to be enumerated. + // + // Supported operator: =, AND + // + // The fields eligible for filtering are: + // + // * `companyName` (Required) + // * `requisitionId` (Optional) + // * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to + // OPEN if no value is specified. + // + // Sample Query: + // + // * companyName = "projects/api-test-project/companies/123" + // * companyName = "projects/api-test-project/companies/123" AND requisitionId + // = "req-1" + // * companyName = "projects/api-test-project/companies/123" AND status = + // "EXPIRED" + string filter = 2; + + // Optional. + // + // The starting point of a query result. + string page_token = 3; + + // Optional. + // + // The maximum number of jobs to be returned per page of results. + // + // If [job_view][google.cloud.talent.v4beta1.ListJobsRequest.job_view] is set + // to + // [JobView.JOB_VIEW_ID_ONLY][google.cloud.talent.v4beta1.JobView.JOB_VIEW_ID_ONLY], + // the maximum allowed page size is 1000. Otherwise, the maximum allowed page + // size is 100. + // + // Default is 100 if empty or a number < 1 is specified. + int32 page_size = 4; + + // Optional. + // + // The desired job attributes returned for jobs in the + // search response. Defaults to + // [JobView.JOB_VIEW_FULL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL] + // if no value is specified. + JobView job_view = 5; +} + +// An enum that specifies the job attributes that are returned in the +// [MatchingJob.Job][] in +// [SearchJobsResponse][google.cloud.talent.v4beta1.SearchJobsResponse] or +// [Job][google.cloud.talent.v4beta1.Job] objects in +// [ListJobsResponse][google.cloud.talent.v4beta1.ListJobsResponse]. +enum JobView { + // Default value. + JOB_VIEW_UNSPECIFIED = 0; + + // A ID only view of job, with following attributes: + // [Job.name][google.cloud.talent.v4beta1.Job.name], + // [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id], + // [Job.language_code][google.cloud.talent.v4beta1.Job.language_code]. + JOB_VIEW_ID_ONLY = 1; + + // A minimal view of the job, with the following attributes: + // [Job.name][google.cloud.talent.v4beta1.Job.name], + // [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id], + // [Job.job_title][], + // [Job.company_name][google.cloud.talent.v4beta1.Job.company_name], + // [Job.DerivedInfo.locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations], + // [Job.language_code][google.cloud.talent.v4beta1.Job.language_code]. + JOB_VIEW_MINIMAL = 2; + + // A small view of the job, with the following attributes in the search + // results: [Job.name][google.cloud.talent.v4beta1.Job.name], + // [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id], + // [Job.job_title][], + // [Job.company_name][google.cloud.talent.v4beta1.Job.company_name], + // [Job.DerivedInfo.locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations], + // [Job.visibility][google.cloud.talent.v4beta1.Job.visibility], + // [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], + // [Job.description][google.cloud.talent.v4beta1.Job.description]. + JOB_VIEW_SMALL = 3; + + // All available attributes are included in the search results. + JOB_VIEW_FULL = 4; +} + +// Output only. +// +// List jobs response. +message ListJobsResponse { + // The Jobs for a given company. + // + // The maximum number of items returned is based on the limit field + // provided in the request. + repeated Job jobs = 1; + + // A token to retrieve the next page of results. + string next_page_token = 2; + + // Additional information for the API invocation, such as the request + // tracking id. + ResponseMetadata metadata = 3; +} + +// Input only. +// +// The Request body of the `SearchJobs` call. +message SearchJobsRequest { + // Input only. + // + // Custom ranking information for + // [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. + message CustomRankingInfo { + // The importance level for + // [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression]. + enum ImportanceLevel { + // Default value if the importance level isn't specified. + IMPORTANCE_LEVEL_UNSPECIFIED = 0; + + // The given ranking expression is of None importance, existing relevance + // score (determined by API algorithm) dominates job's final ranking + // position. + NONE = 1; + + // The given ranking expression is of Low importance in terms of job's + // final ranking position compared to existing relevance + // score (determined by API algorithm). + LOW = 2; + + // The given ranking expression is of Mild importance in terms of job's + // final ranking position compared to existing relevance + // score (determined by API algorithm). + MILD = 3; + + // The given ranking expression is of Medium importance in terms of job's + // final ranking position compared to existing relevance + // score (determined by API algorithm). + MEDIUM = 4; + + // The given ranking expression is of High importance in terms of job's + // final ranking position compared to existing relevance + // score (determined by API algorithm). + HIGH = 5; + + // The given ranking expression is of Extreme importance, and dominates + // job's final ranking position with existing relevance + // score (determined by API algorithm) ignored. + EXTREME = 6; + } + + // Required. + // + // Controls over how important the score of + // [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression] + // gets applied to job's final ranking position. + // + // An error is thrown if not specified. + ImportanceLevel importance_level = 1; + + // Required. + // + // Controls over how job documents get ranked on top of existing relevance + // score (determined by API algorithm). The product of ranking expression + // and relevance score is used to determine job's final ranking position. + // + // The syntax for this expression is a subset of Google SQL syntax. + // + // Supported operators are: +, -, *, /, where the left and right side of + // the operator is either a numeric + // [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes] + // key, integer/double value or an expression that can be evaluated to a + // number. + // + // Parenthesis are supported to adjust calculation precedence. The + // expression must be < 100 characters in length. + // + // Sample ranking expression + // (year + 25) * 0.25 - (freshness / 0.5) + string ranking_expression = 2; + } + + // A string-represented enumeration of the job search mode. The service + // operate differently for different modes of service. + enum SearchMode { + // The mode of the search method isn't specified. + SEARCH_MODE_UNSPECIFIED = 0; + + // The job search matches against all jobs, and featured jobs + // (jobs with promotionValue > 0) are not specially handled. + JOB_SEARCH = 1; + + // The job search matches only against featured jobs (jobs with a + // promotionValue > 0). This method doesn't return any jobs having a + // promotionValue <= 0. The search results order is determined by the + // promotionValue (jobs with a higher promotionValue are returned higher up + // in the search results), with relevance being used as a tiebreaker. + FEATURED_JOB_SEARCH = 2; + } + + // Controls whether highly similar jobs are returned next to each other in + // the search results. Jobs are identified as highly similar based on + // their titles, job categories, and locations. Highly similar results are + // clustered so that only one representative job of the cluster is + // displayed to the job seeker higher up in the results, with the other jobs + // being displayed lower down in the results. + enum DiversificationLevel { + // The diversification level isn't specified. + DIVERSIFICATION_LEVEL_UNSPECIFIED = 0; + + // Disables diversification. Jobs that would normally be pushed to the last + // page would not have their positions altered. This may result in highly + // similar jobs appearing in sequence in the search results. + DISABLED = 1; + + // Default diversifying behavior. The result list is ordered so that + // highly similar results are pushed to the end of the last page of search + // results. + SIMPLE = 2; + } + + // Required. + // + // The resource name of the project to search within. + // + // The format is "projects/{project_id}", for example, + // "projects/api-test-project". + string parent = 1; + + // Optional. + // + // Mode of a search. + // + // Defaults to + // [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH]. + SearchMode search_mode = 2; + + // Required. + // + // The meta information collected about the job searcher, used to improve the + // search quality of the service.. The identifiers, (such as `user_id`) are + // provided by users, and must be unique and consistent. + RequestMetadata request_metadata = 3; + + // Optional. + // + // Query used to search against jobs, such as keyword, location filters, etc. + JobQuery job_query = 4; + + // Optional. + // + // Controls whether to broaden the search when it produces sparse results. + // Broadened queries append results to the end of the matching results + // list. + // + // Defaults to false. + bool enable_broadening = 5; + + // Optional. + // + // Controls if the search job request requires the return of a precise + // count of the first 300 results. Setting this to `true` ensures + // consistency in the number of results per page. Best practice is to set this + // value to true if a client allows users to jump directly to a + // non-sequential search results page. + // + // Enabling this flag may adversely impact performance. + // + // Defaults to false. + bool require_precise_result_size = 6; + + // Optional. + // + // An expression specifies a histogram request against matching jobs. + // + // Expression syntax is an aggregation function call with histogram facets and + // other options. + // + // Available aggregation function calls are: + // * `count(string_histogram_facet)`: Count the number of matching entities, + // for each distinct attribute value. + // * `count(numeric_histogram_facet, list of buckets)`: Count the number of + // matching entities within each bucket. + // + // Data types: + // + // * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+. + // * String: string like "any string with backslash escape for quote(\")." + // * Number: whole number and floating point number like 10, -1 and -0.01. + // * List: list of elements with comma(,) separator surrounded by square + // brackets, for example, [1, 2, 3] and ["one", "two", "three"]. + // + // Built-in constants: + // + // * MIN (minimum number similar to java Double.MIN_VALUE) + // * MAX (maximum number similar to java Double.MAX_VALUE) + // + // Built-in functions: + // + // * bucket(start, end[, label]): bucket built-in function creates a bucket + // with range of [start, end). Note that the end is exclusive, for example, + // bucket(1, MAX, "positive number") or bucket(1, 10). + // + // Job histogram facets: + // + // * company_id: histogram by [Job.distributor_company_id][]. + // * company_display_name: histogram by + // [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name]. + // * employment_type: histogram by + // [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types], + // for example, "FULL_TIME", "PART_TIME". + // * company_size: histogram by + // [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example, + // "SMALL", "MEDIUM", "BIG". + // * publish_time_in_month: histogram by the [Job.publish_time][] in months. + // Must specify list of numeric buckets in spec. + // * publish_time_in_year: histogram by the [Job.publish_time][] in years. + // Must specify list of numeric buckets in spec. + // * degree_type: histogram by the [Job.degree_type][], for example, + // "Bachelors", "Masters". + // * job_level: histogram by the + // [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example, + // "Entry Level". + // * country: histogram by the country code of jobs, for example, "US", "FR". + // * admin1: histogram by the admin1 code of jobs, which is a global + // placeholder referring to the state, province, or the particular term a + // country uses to define the geographic structure below the country level, + // for example, "CA", "IL". + // * city: histogram by a combination of the "city name, admin1 code". For + // example, "Mountain View, CA", "New York, NY". + // * admin1_country: histogram by a combination of the "admin1 code, country", + // for example, "CA, US", "IL, US". + // * city_coordinate: histogram by the city center's GPS coordinates (latitude + // and longitude), for example, 37.4038522,-122.0987765. Since the coordinates + // of a city center can change, customers may need to refresh them + // periodically. + // * locale: histogram by the + // [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for + // example, "en-US", "fr-FR". + // * language: histogram by the language subtag of the + // [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for + // example, "en", "fr". + // * category: histogram by the + // [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example, + // "COMPUTER_AND_IT", "HEALTHCARE". + // * base_compensation_unit: histogram by the [CompensationUnit][] of base + // salary, for example, "WEEKLY", "MONTHLY". + // * base_compensation: histogram by the base salary. Must specify list of + // numeric buckets to group results by. + // * annualized_base_compensation: histogram by the base annualized salary. + // Must specify list of numeric buckets to group results by. + // * annualized_total_compensation: histogram by the total annualized salary. + // Must specify list of numeric buckets to group results by. + // * string_custom_attribute: histogram by string + // [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]. + // Values can be accessed via square bracket notations like + // string_custom_attribute["key1"]. + // * numeric_custom_attribute: histogram by numeric + // [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]. + // Values can be accessed via square bracket notations like + // numeric_custom_attribute["key1"]. Must specify list of numeric buckets to + // group results by. + // + // Example expressions: + // * count(admin1) + // * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000), + // bucket(100000, MAX)]) + // * count(string_custom_attribute["some-string-custom-attribute"]) + // * count(numeric_custom_attribute["some-numeric-custom-attribute"], + // [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"]) + repeated HistogramQuery histogram_queries = 7; + + // Optional. + // + // The desired job attributes returned for jobs in the + // search response. Defaults to [JobView.SMALL][] if no value is specified. + JobView job_view = 8; + + // Optional. + // + // An integer that specifies the current offset (that is, starting result + // location, amongst the jobs deemed by the API as relevant) in search + // results. This field is only considered if + // [page_token][google.cloud.talent.v4beta1.SearchJobsRequest.page_token] is + // unset. + // + // For example, 0 means to return results starting from the first matching + // job, and 10 means to return from the 11th job. This can be used for + // pagination, (for example, pageSize = 10 and offset = 10 means to return + // from the second page). + int32 offset = 9; + + // Optional. + // + // A limit on the number of jobs returned in the search results. + // Increasing this value above the default value of 10 can increase search + // response time. The value can be between 1 and 100. + int32 page_size = 10; + + // Optional. + // + // The token specifying the current offset within + // search results. See + // [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token] + // for an explanation of how to obtain the next set of query results. + string page_token = 11; + + // Optional. + // + // The criteria determining how search results are sorted. Default is + // "relevance desc". + // + // Supported options are: + // + // * "relevance desc": By relevance descending, as determined by the API + // algorithms. Relevance thresholding of query results is only available + // with this ordering. + // * "posting`_`publish`_`time desc": By + // [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time] + // descending. + // * "posting`_`update`_`time desc": By + // [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time] + // descending. + // * "title": By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending. + // * "title desc": By [Job.title][google.cloud.talent.v4beta1.Job.title] + // descending. + // * "annualized`_`base`_`compensation": By job's + // [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range] + // ascending. Jobs whose annualized base compensation is unspecified are put + // at the end of search results. + // * "annualized`_`base`_`compensation desc": By job's + // [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range] + // descending. Jobs whose annualized base compensation is unspecified are put + // at the end of search results. + // * "annualized`_`total`_`compensation": By job's + // [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range] + // ascending. Jobs whose annualized base compensation is unspecified are put + // at the end of search results. + // * "annualized`_`total`_`compensation desc": By job's + // [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range] + // descending. Jobs whose annualized base compensation is unspecified are put + // at the end of search results. + // * "custom`_`ranking desc": By the relevance score adjusted to the + // [SearchJobsRequest.custom_ranking_info.ranking_expression][] with weight + // factor assigned by + // [SearchJobsRequest.custom_ranking_info.importance_level][] in descending + // order. + // * "location`_`distance": By the distance between the location on jobs and + // locations specified in the + // [SearchJobsRequest.job_query.location_filters][]. + // When this order is selected, the + // [SearchJobsRequest.job_query.location_filters][] must not be empty. When + // a job has multiple locations, the location closest to one of the locations + // specified in the location filter will be used to calculate location + // distance. Distance is calculated by the distance between two lat/long + // coordinates, with a precision of 10e-4 degrees (11.3 meters). + // Jobs that don't have locations specified will be ranked below jobs having + // locations. + // Diversification strategy is still applied unless explicitly disabled in + // [SearchJobsRequest.diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level]. + string order_by = 12; + + // Optional. + // + // Controls whether highly similar jobs are returned next to each other in + // the search results. Jobs are identified as highly similar based on + // their titles, job categories, and locations. Highly similar results are + // clustered so that only one representative job of the cluster is + // displayed to the job seeker higher up in the results, with the other jobs + // being displayed lower down in the results. + // + // Defaults to + // [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE] + // if no value is specified. + DiversificationLevel diversification_level = 13; + + // Optional. + // + // Controls over how job documents get ranked on top of existing relevance + // score (determined by API algorithm). + CustomRankingInfo custom_ranking_info = 14; + + // Optional. + // + // Controls whether to disable exact keyword match on [Job.job_title][], + // [Job.description][google.cloud.talent.v4beta1.Job.description], + // [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name], + // [Job.locations][0], + // [Job.qualifications][google.cloud.talent.v4beta1.Job.qualifications]. When + // disable keyword match is turned off, a keyword match returns jobs that do + // not match given category filters when there are matching keywords. For + // example, for the query "program manager," a result is returned even if the + // job posting has the title "software developer," which doesn't fall into + // "program manager" ontology, but does have "program manager" appearing in + // its description. + // + // For queries like "cloud" that don't contain title or + // location specific ontology, jobs with "cloud" keyword matches are returned + // regardless of this flag's value. + // + // Please use [Company.keyword_searchable_custom_fields][] or + // [Company.keyword_searchable_custom_attributes][] if company specific + // globally matched custom field/attribute string values is needed. Enabling + // keyword match improves recall of subsequent search requests. + // + // Defaults to false. + bool disable_keyword_match = 16; +} + +// Output only. +// +// Response for SearchJob method. +message SearchJobsResponse { + // Output only. + // + // Job entry with metadata inside + // [SearchJobsResponse][google.cloud.talent.v4beta1.SearchJobsResponse]. + message MatchingJob { + // Job resource that matches the specified + // [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. + Job job = 1; + + // A summary of the job with core information that's displayed on the search + // results listing page. + string job_summary = 2; + + // Contains snippets of text from the [Job.job_title][] field most + // closely matching a search query's keywords, if available. The matching + // query keywords are enclosed in HTML bold tags. + string job_title_snippet = 3; + + // Contains snippets of text from the + // [Job.description][google.cloud.talent.v4beta1.Job.description] and + // similar fields that most closely match a search query's keywords, if + // available. All HTML tags in the original fields are stripped when + // returned in this field, and matching query keywords are enclosed in HTML + // bold tags. + string search_text_snippet = 4; + + // Commute information which is generated based on specified + // [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter]. + CommuteInfo commute_info = 5; + } + + // Output only. + // + // Commute details related to this job. + message CommuteInfo { + // Location used as the destination in the commute calculation. + Location job_location = 1; + + // The number of seconds required to travel to the job location from the + // query location. A duration of 0 seconds indicates that the job isn't + // reachable within the requested duration, but was returned as part of an + // expanded query. + google.protobuf.Duration travel_duration = 2; + } + + // The Job entities that match the specified + // [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. + repeated MatchingJob matching_jobs = 1; + + // The histogram results that match with specified + // [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries]. + repeated HistogramQueryResult histogram_query_results = 2; + + // The token that specifies the starting position of the next page of results. + // This field is empty if there are no more results. + string next_page_token = 3; + + // The location filters that the service applied to the specified query. If + // any filters are lat-lng based, the [JobLocation.location_type][] is + // [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][]. + repeated Location location_filters = 4; + + // An estimation of the number of jobs that match the specified query. + // + // This number isn't guaranteed to be accurate. For accurate results, + // see [enable_precise_result_size][]. + int32 estimated_total_size = 5; + + // The precise result count, which is available only if the client set + // [enable_precise_result_size][] to `true`, or if the response + // is the last page of results. Otherwise, the value is `-1`. + int32 total_size = 6; + + // Additional information for the API invocation, such as the request + // tracking id. + ResponseMetadata metadata = 7; + + // If query broadening is enabled, we may append additional results from the + // broadened query. This number indicates how many of the jobs returned in the + // jobs field are from the broadened query. These results are always at the + // end of the jobs list. In particular, a value of 0, or if the field isn't + // set, all the jobs in the jobs list are from the original + // (without broadening) query. If this field is non-zero, subsequent requests + // with offset after this result set should contain all broadened results. + int32 broadened_query_jobs_count = 8; + + // The spell checking result, and correction. + SpellingCorrection spell_correction = 9; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile.proto new file mode 100644 index 000000000000..a3c19f58a0ca --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile.proto @@ -0,0 +1,1149 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/common.proto"; +import "google/cloud/talent/v4beta1/job.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/wrappers.proto"; +import "google/type/date.proto"; +import "google/type/postal_address.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "ProfileResourceProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// Cloud Profile Discovery API definition + +// A resource that represents the profile for a job candidate (also referred to +// as a "single-source profile"). A profile belongs to a +// [Tenant][google.cloud.talent.v4beta1.Tenant], which is an isolated instance +// of the customer that owns the profile. +message Profile { + // Required during profile update. + // + // Resource name assigned to a profile by the API. + // + // The format is + // "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", + // for example, "projects/api-test-project/tenants/foo/profiles/bar". + string name = 1; + + // Optional. + // + // Profile's id in client system if available. + // + // The maximum number of bytes allowed is 100. + string external_id = 2; + + // Optional. + // + // The source description indicating where the profile is acquired. + // + // For example, if a candidate profile is acquired from a resume, the user can + // input "resume" here to indicate the source. + // + // The maximum number of bytes allowed is 100. + string source = 3; + + // Optional. + // + // The URI set by clients that links to this profile's client-side copy. + // + // The maximum number of bytes allowed is 4000. + string uri = 4; + + // Optional. + // + // The cluster id of the profile to associate with other profile(s) for the + // same candidate. + // + // A random UUID is assigned if + // [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't provided. To + // ensure global uniqueness, customized + // [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't supported. + // If [group_id][google.cloud.talent.v4beta1.Profile.group_id] is set, there + // must be at least one other profile with the same system generated + // [group_id][google.cloud.talent.v4beta1.Profile.group_id], otherwise an + // error is thrown. + // + // This is used to link multiple profiles to the same candidate. For example, + // a client has a candidate with two profiles, where one was created recently + // and the other one was created 5 years ago. These two profiles may be very + // different. The clients can create the first profile and get a generated + // [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it + // when the second profile is created, indicating these two profiles are + // referring to the same candidate. + string group_id = 5; + + // Optional. + // + // Indicates the hirable status of the candidate. + google.protobuf.BoolValue is_hirable = 6; + + // Optional. + // + // The timestamp when the profile was first created at this source. + google.protobuf.Timestamp create_time = 7; + + // Optional. + // + // The timestamp when the profile was last updated at this source. + google.protobuf.Timestamp update_time = 8; + + // Optional. + // + // The profile contents in HR-XML format. + // See http://schemas.liquid-technologies.com/hr-xml/2007-04-15/ for more + // information about Human Resources XML. + // + // Users can create a profile with only + // [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] field. For + // example, the API parses the + // [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] and + // creates a profile with all structured fields populated, for example. + // [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord], + // [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], etc. An + // error is thrown if the + // [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] can't be + // parsed. + // + // If the [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] is + // provided during profile creation or update, any other structured data + // provided in the profile is ignored. The API populates these fields by + // parsing the HR-XML. + string resume_hrxml = 10; + + // Optional. + // + // The names of the candidate this profile references. + // + // Currently only one person name is supported. + repeated PersonName person_names = 11; + + // Optional. + // + // The candidate's postal addresses. + repeated Address addresses = 12; + + // Optional. + // + // The candidate's email addresses. + repeated Email email_addresses = 13; + + // Optional. + // + // The candidate's phone number(s). + repeated Phone phone_numbers = 14; + + // Optional. + // + // The candidate's personal URIs. + repeated PersonalUri personal_uris = 15; + + // Optional. + // + // Available contact information besides + // [addresses][google.cloud.talent.v4beta1.Profile.addresses], + // [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses], + // [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and + // [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For + // example, Hang-out, Skype. + repeated AdditionalContactInfo additional_contact_info = 16; + + // Optional. + // + // The employment history records of the candidate. It's highly recommended + // to input this information as accurately as possible to help improve search + // quality. Here are some recommendations: + // + // * Specify the start and end dates of the employment records. + // * List different employment types separately, no matter how minor the + // change is. + // For example, only job title is changed from "software engineer" to "senior + // software engineer". + // * Provide + // [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current] + // for the current employment if possible. If not, it's inferred from user + // inputs. + repeated EmploymentRecord employment_records = 17; + + // Optional. + // + // The education history record of the candidate. It's highly recommended to + // input this information as accurately as possible to help improve search + // quality. Here are some recommendations: + // + // * Specify the start and end dates of the education records. + // * List each education type separately, no matter how minor the change is. + // For example, the profile contains the education experience from the same + // school but different degrees. + // * Provide + // [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current] + // for the current education if possible. If not, it's inferred from user + // inputs. + repeated EducationRecord education_records = 18; + + // Optional. + // + // The skill set of the candidate. It's highly recommended to provide as + // much information as possible to help improve the search quality. + repeated Skill skills = 19; + + // Optional. + // + // The individual or collaborative activities which the candidate has + // participated in, for example, open-source projects, class assignments that + // aren't listed in + // [employment_records][google.cloud.talent.v4beta1.Profile.employment_records]. + repeated Activity activities = 20; + + // Optional. + // + // The publications published by the candidate. + repeated Publication publications = 21; + + // Optional. + // + // The patents acquired by the candidate. + repeated Patent patents = 22; + + // Optional. + // + // The certifications acquired by the candidate. + repeated Certification certifications = 23; + + // Optional. + // + // The job applications of the candidate. + repeated JobApplication job_applications = 24; + + // Optional. + // + // The recruiting notes added for the candidate. + // + // For example, the recruiter can add some unstructured comments for this + // candidate like "this candidate also has experiences in volunteer work". + repeated RecruitingNote recruiting_notes = 25; + + // Optional. + // + // A map of fields to hold both filterable and non-filterable custom profile + // attributes that aren't covered by the provided structured fields. See + // [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more + // details. + // + // At most 100 filterable and at most 100 unfilterable keys are supported. If + // limit is exceeded, an error is thrown. + // + // Numeric custom attributes: each key can only map to one numeric value, + // otherwise an error is thrown. + // + // String custom attributes: each key can map up to 50 string values. For + // filterable string value, each value has a byte size of no more than 256B. + // For unfilterable string values, the maximum byte size of a single key is + // 64B. An error is thrown for any request exceeding the limit. + // The maximum total byte size is 10KB. + // + // Currently filterable numeric custom attributes are not supported, and + // they automatically set to unfilterable. + map custom_attributes = 26; + + // Output only. Indicates if the profile is fully processed and searchable. + bool processed = 27; + + // Output only. Keyword snippet shows how the search result is related to a + // search query. + string keyword_snippet = 28; +} + +// Resource that represents the name of a person. +message PersonName { + // Resource that represents a person's structured name. + message PersonStructuredName { + // Optional. + // + // Given/first name. + // + // It's derived from + // [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] + // if not provided. + // + // Number of characters allowed is 100. + string given_name = 1; + + // Optional. + // + // Middle initial. + // + // It's derived from + // [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] + // if not provided. + // + // Number of characters allowed is 20. + string middle_initial = 2; + + // Optional. + // + // Family/last name. + // + // It's derived from + // [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] + // if not provided. + // + // Number of characters allowed is 100. + string family_name = 3; + + // Optional. + // + // Suffixes. + // + // Number of characters allowed is 20. + repeated string suffixes = 4; + + // Optional. + // + // Prefixes. + // + // Number of characters allowed is 20. + repeated string prefixes = 5; + } + + // The name of a person. It can be one of [formatted_name][] or + // [structured_name][]. + oneof person_name { + // Optional. + // + // A string represents a person's full name. For example, "Dr. John Smith". + // + // Number of characters allowed is 100. + string formatted_name = 1; + + // Optional. + // + // A person's name in a structured way (last name, first name, suffix, etc.) + PersonStructuredName structured_name = 2; + } + + // Optional. + // + // Preferred name for the person. + string preferred_name = 3; +} + +// Resource that represents a address. +message Address { + // Optional. + // + // The usage of the address. For example, SCHOOL, WORK, PERSONAL. + ContactInfoUsage usage = 1; + + // The address of a person. It can be one of [unstructured_address][] or + // [structured_address][]. + oneof address { + // Optional. + // + // Unstructured address. + // + // For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043", + // "Sunnyvale, California". + // + // Number of characters allowed is 100. + string unstructured_address = 2; + + // Optional. + // + // Structured address that contains street address, city, state, country, + // etc. + google.type.PostalAddress structured_address = 3; + } + + // Optional. + // + // Indicates if it's the person's current address. + google.protobuf.BoolValue is_current = 4; +} + +// Resource that represents a person's email address. +message Email { + // Optional. + // + // The usage of the email address. For example, SCHOOL, WORK, PERSONAL. + ContactInfoUsage usage = 1; + + // Optional. + // + // Email address. + // + // Number of characters allowed is 4,000. + string email_address = 2; +} + +// Resource that represents a person's telephone number. +message Phone { + // Enum that represents the type of the telephone. + enum PhoneType { + // Default value. + PHONE_TYPE_UNSPECIFIED = 0; + + // A landline. + LANDLINE = 1; + + // A mobile. + MOBILE = 2; + + // A fax. + FAX = 3; + + // A pager. + PAGER = 4; + + // A TTY (test telephone) or TDD (telecommunication device for the deaf). + TTY_OR_TDD = 5; + + // A voicemail. + VOICEMAIL = 6; + + // A virtual telephone number is a number that can be routed to another + // number and managed by the user via Web, SMS, IVR, etc. It is associated + // with a particular person, and may be routed to either a MOBILE or + // LANDLINE number. The phone usage (see ContactInfoUsage above) should be + // set to PERSONAL for these phone types. Some more information can be + // found here: http://en.wikipedia.org/wiki/Personal_Numbers + VIRTUAL = 7; + + // Voice over IP numbers. This includes TSoIP (Telephony Service over IP). + VOIP = 8; + + // In some regions (e.g. the USA), it is impossible to distinguish between + // fixed-line and mobile numbers by looking at the phone number itself. + MOBILE_OR_LANDLINE = 9; + } + + // Optional. + // + // The usage of the phone. For example, SCHOOL, WORK, PERSONAL. + ContactInfoUsage usage = 1; + + // Optional. + // + // The phone type. For example, LANDLINE, MOBILE, FAX. + PhoneType type = 2; + + // Optional. + // + // Phone number. + // + // Any phone formats are supported and only exact matches are performed on + // searches. For example, if a phone number in profile is provided in the + // format of "(xxx)xxx-xxxx", in profile searches the same phone format + // has to be provided. + // + // Number of characters allowed is 20. + string number = 3; + + // Optional. + // + // When this number is available. Any descriptive string is expected. + // + // Number of characters allowed is 100. + string when_available = 4; +} + +// Resource that represents a valid URI for a personal use. +message PersonalUri { + // Optional. + // + // The personal URI. + // + // Number of characters allowed is 4,000. + string uri = 1; +} + +// Resource that represents contact information other than phone, email, +// URI and addresses. +message AdditionalContactInfo { + // Optional. + // + // The usage of this contact method. For example, SCHOOL, WORK, PERSONAL. + ContactInfoUsage usage = 1; + + // Optional. + // + // The name of the contact method. + // + // For example, "hangout", "skype". + // + // Number of characters allowed is 100. + string name = 2; + + // Optional. + // + // The contact id. + // + // Number of characters allowed is 100. + string contact_id = 3; +} + +// Resource that represents an employment record of a candidate. +message EmploymentRecord { + // Optional. + // + // Start date of the employment. + // + // It can be a partial date (only year, or only year and month), but must be + // valid. Otherwise an error is thrown. + // + // Examples: + // {"year": 2017, "month": 2, "day": 28} is valid. + // {"year": 2020, "month": 1, "date": 31} is valid. + // {"year": 2018, "month": 12} is valid (partial date). + // {"year": 2018} is valid (partial date). + // {"year": 2015, "day": 21} is not valid (month is missing but day is + // presented). + // {"year": 2018, "month": 13} is not valid (invalid month). + // {"year": 2017, "month": 1, "day": 32} is not valid (invalid day). + google.type.Date start_date = 1; + + // Optional. + // + // End date of the employment. + google.type.Date end_date = 2; + + // Optional. + // + // The name of the employer company/organization. + // + // For example, "Google", "Alphabet", etc. + // + // Number of characters allowed is 100. + string employer_name = 3; + + // Optional. + // + // The division name of the employment. + // + // For example, division, department, client, etc. + // + // Number of characters allowed is 100. + string division_name = 4; + + // Optional. + // + // The physical address of the employer. + Address address = 5; + + // Optional. + // + // The job title of the employment. + // + // For example, "Software Engineer", "Data Scientist", etc. + // + // Number of characters allowed is 100. + string job_title = 6; + + // Optional. + // + // The description of job content. + // + // Number of characters allowed is 100,000. + string job_description = 7; + + // Optional. + // + // If it's a supervised position. + google.protobuf.BoolValue is_supervised_position = 8; + + // Optional. + // + // If this employment is self-employed. + google.protobuf.BoolValue is_self_employed = 9; + + // Optional. + // + // If this employment is current. + google.protobuf.BoolValue is_current = 10; + + // Output only. The job title snippet shows how the + // [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is + // related to a search query. It's empty if the + // [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't + // related to the search query. + string job_title_snippet = 11; + + // Output only. The job description snippet shows how the + // [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description] + // is related to a search query. It's empty if the + // [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description] + // isn't related to the search query. + string job_description_snippet = 12; + + // Output only. The employer name snippet shows how the + // [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name] + // is related to a search query. It's empty if the + // [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name] + // isn't related to the search query. + string employer_name_snippet = 13; +} + +// Resource that represents an education record of a candidate. +message EducationRecord { + // Optional. + // + // The start date of the education. + google.type.Date start_date = 1; + + // Optional. + // + // The end date of the education. + google.type.Date end_date = 2; + + // Optional. + // + // The expected graduation date if currently pursuing a degree. + google.type.Date expected_graduation_date = 3; + + // Optional. + // + // The name of the school or institution. + // + // For example, "Stanford University", "UC Berkeley", etc. + // + // Number of characters allowed is 100. + string school_name = 4; + + // Optional. + // + // The physical address of the education institution. + Address address = 5; + + // The degree information. It can be one of [degree_description][] or + // [structured_degree][]. + oneof degree { + // Optional. + // + // The full description of the degree. + // + // For example, "Master of Science in Computer Science", "B.S in Math". + // + // Number of characters allowed is 100. + string degree_description = 6; + + // Optional. + // + // The structured notation of the degree. + Degree structured_degree = 7; + } + + // Optional. + // + // The description of the education. + // + // Number of characters allowed is 100,000. + string description = 8; + + // Optional. + // + // If this education is current. + google.protobuf.BoolValue is_current = 9; + + // Output only. The school name snippet shows how the + // [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is + // related to a search query in search result. It's empty if the + // [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] + // isn't related to the search query. + string school_name_snippet = 10; + + // Output only. The job description snippet shows how the + // [degree][google.cloud.talent.v4beta1.degree] is related to a search query + // in search result. It's empty if the + // [degree][google.cloud.talent.v4beta1.degree] isn't related to the search + // query. + string degree_snippet = 11; +} + +// Resource that represents a degree pursuing or acquired by a candidate. +message Degree { + // Optional. + // + // ISCED degree type. + DegreeType degree_type = 1; + + // Optional. + // + // Full Degree name. + // + // For example, "B.S.", "Master of Arts", etc. + // + // Number of characters allowed is 100. + string degree_name = 2; + + // Optional. + // + // Fields of study for the degree. + // + // For example, "Computer science", "engineering". + // + // Number of characters allowed is 100. + repeated string fields_of_study = 3; +} + +// Resource that represents a skill of a candidate. +message Skill { + // Enum that represents the skill proficiency level. + enum SkillProficiencyLevel { + // Default value. + SKILL_PROFICIENCY_LEVEL_UNSPECIFIED = 0; + + // Have a common knowledge or an understanding of basic techniques and + // concepts. + FUNDAMENTAL_AWARENESS = 1; + + // Have the level of experience gained in a classroom and/or experimental + // scenarios or as a trainee on-the-job. + NOVICE = 2; + + // Be able to successfully complete tasks in this skill as requested. Help + // from an expert may be required from time to time, but can usually perform + // skill independently. + INTERMEDIATE = 3; + + // Can perform the actions associated with this skill without assistance. + ADVANCED = 4; + + // Known as an expert in this area. + EXPERT = 5; + } + + // Optional. + // + // Skill display name. + // + // For example, "Java", "Python". + // + // Number of characters allowed is 100. + string display_name = 1; + + // Optional. + // + // The last time this skill was used. + google.type.Date last_used_date = 2; + + // Optional. + // + // Skill proficiency level which indicates how proficient the candidate is at + // this skill. + SkillProficiencyLevel level = 3; + + // Optional. + // + // A paragraph describes context of this skill. + // + // Number of characters allowed is 100,000. + string context = 4; + + // Output only. Skill name snippet shows how the + // [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related + // to a search query. It's empty if the + // [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't + // related to the search query. + string skill_name_snippet = 5; +} + +// Resource that represents an individual or collaborative activity participated +// in by a candidate, for example, an open-source project, a class assignment, +// etc. +message Activity { + // Optional. + // + // Activity display name. + // + // Number of characters allowed is 100. + string display_name = 1; + + // Optional. + // + // Activity description. + // + // Number of characters allowed is 100,000. + string description = 2; + + // Optional. + // + // Activity URI. + // + // Number of characters allowed is 4,000. + string uri = 3; + + // Optional. + // + // The first creation date of the activity. + google.type.Date create_date = 4; + + // Optional. + // + // The last update date of the activity. + google.type.Date update_date = 5; + + // Optional. + // + // A list of team members involved in this activity. + // + // Number of characters allowed is 100. + repeated string team_members = 6; + + // Optional. + // + // A list of skills used in this activity. + repeated Skill skills_used = 7; + + // Output only. Activity name snippet shows how the + // [display_name][google.cloud.talent.v4beta1.Activity.display_name] is + // related to a search query. It's empty if the + // [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't + // related to the search query. + string activity_name_snippet = 8; + + // Output only. Activity description snippet shows how the + // [description][google.cloud.talent.v4beta1.Activity.description] is related + // to a search query. It's empty if the + // [description][google.cloud.talent.v4beta1.Activity.description] isn't + // related to the search query. + string activity_description_snippet = 9; + + // Output only. Skill used snippet shows how the corresponding + // [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related + // to a search query. It's empty if the corresponding + // [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not + // related to the search query. + repeated string skills_used_snippet = 10; +} + +// Resource that represents a publication resource of a candidate. +message Publication { + // Optional. + // + // A list of author names. + // + // Number of characters allowed is 100. + repeated string authors = 1; + + // Optional. + // + // The title of the publication. + // + // Number of characters allowed is 100. + string title = 2; + + // Optional. + // + // The description of the publication. + // + // Number of characters allowed is 100,000. + string description = 3; + + // Optional. + // + // The journal name of the publication. + // + // Number of characters allowed is 100. + string journal = 4; + + // Optional. + // + // Volume number. + // + // Number of characters allowed is 100. + string volume = 5; + + // Optional. + // + // The publisher of the journal. + // + // Number of characters allowed is 100. + string publisher = 6; + + // Optional. + // + // The publication date. + google.type.Date publication_date = 7; + + // Optional. + // + // The publication type. + // + // Number of characters allowed is 100. + string publication_type = 8; + + // Optional. + // + // ISBN number. + // + // Number of characters allowed is 100. + string isbn = 9; +} + +// Resource that represents the patent acquired by a candidate. +message Patent { + // Optional. + // + // Name of the patent. + // + // Number of characters allowed is 100. + string display_name = 1; + + // Optional. + // + // A list of inventors' names. + // + // Number of characters allowed for each is 100. + repeated string inventors = 2; + + // Optional. + // + // The status of the patent. + // + // Number of characters allowed is 100. + string patent_status = 3; + + // Optional. + // + // The date the last time the status of the patent was checked. + google.type.Date patent_status_date = 4; + + // Optional. + // + // The date that the patent was filed. + google.type.Date patent_filing_date = 5; + + // Optional. + // + // The name of the patent office. + // + // Number of characters allowed is 100. + string patent_office = 6; + + // Optional. + // + // The number of the patent. + // + // Number of characters allowed is 100. + string patent_number = 7; + + // Optional. + // + // The description of the patent. + // + // Number of characters allowed is 100,000. + string patent_description = 8; + + // Optional. + // + // The skills used in this patent. + repeated Skill skills_used = 9; +} + +// Resource that represents a job application record of a candidate. +message JobApplication { + // Enum that represents the application status. + enum ApplicationStatus { + // Default value. + APPLICATION_STATUS_UNSPECIFIED = 0; + + // The offer is extended. + OFFER_EXTENDED = 1; + + // The offer is rejected by candidate. + REJECTED_BY_CANDIDATE = 2; + + // The application is active. + ACTIVE = 3; + + // The candidate is rejected by employer. + REJECTED_BY_EMPLOYER = 4; + + // The candidate is hired and hasn't started the new job. + HIRED_PENDING_DATE = 5; + + // The candidate is hired started. + HIRED_STARTED = 6; + + // The candidate is a prospect candidate. + PROSPECTED = 7; + } + + // Optional. + // + // The information of job which the candidate applied for. + // + // If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the + // corresponding [Job][google.cloud.talent.v4beta1.Job] must be created. + // + // Otherwise, only + // [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id], + // [Job.title][google.cloud.talent.v4beta1.Job.title], + // [Job.description][google.cloud.talent.v4beta1.Job.description] and + // [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here + // are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job] + // entity is created in this case. + Job job = 1; + + // Optional. + // + // The job application id. + // + // Number of characters allowed is 100. + string application_id = 2; + + // Optional. + // + // The application date. + google.type.Date application_date = 3; + + // Optional. + // + // The last stage the candidate reached in the application progress. + // For example, "new", "phone screen", "interview". + string last_stage = 4; + + // Optional. + // + // The application state. + ApplicationStatus state = 5; + + // Optional. + // + // The average interview score. + double average_interview_score = 6; + + // Optional. + // + // The scale id of the interview score. + // + // Number of characters allowed is 100. + string interview_score_scale_id = 7; + + // Optional. + // + // The number of interviews. + int32 number_of_interviews = 8; + + // Optional. + // + // If the candidate is referred by a employee. + google.protobuf.BoolValue is_employee_referred = 9; + + // Optional. + // + // The last update timestamp. + google.protobuf.Timestamp update_time = 10; + + // Optional. + // + // The outcome reason for the job application. + // + // Number of characters allowed is 100. + string outcome_reason = 11; + + // Optional. + // + // Outcome positiveness shows how positive the outcome is. + // + // Currently only -1, 0 and 1 are accepted, where -1 means not positive, 0 + // means neutral and 1 means positive. An error is thrown if other value is + // set. + double outcome_positiveness = 12; + + // Output only. Indicates whether this job application is a match to + // application related filters. This value is only applicable in profile + // search response. + google.protobuf.BoolValue is_match = 13; + + // Output only. Job title snippet shows how the job title is related to a + // search query. It's empty if the job title isn't related to the search + // query. + string job_title_snippet = 14; +} + +// Resource that represents a license or certification. +message Certification { + // Optional. + // + // Name of license or certification. + // + // Number of characters allowed is 100. + string display_name = 1; + + // Optional. + // + // Acquirement date or effective date of license or certification. + google.type.Date acquire_date = 2; + + // Optional. + // + // Expiration date of license of certification. + google.type.Date expire_date = 3; + + // Optional. + // + // Authority of license, such as government. + // + // Number of characters allowed is 100. + string authority = 4; + + // Optional. + // + // Description of license or certification. + // + // Number of characters allowed is 100,000. + string description = 5; +} + +// RecruitingNote represents a note/comment regarding the recruiting for a +// candidate. For example, "This candidate is a potential match for a frontend +// engineer at SF". +message RecruitingNote { + // Optional. + // + // The content of note. + // + // Number of characters allowed is 4,000. + string note = 1; + + // Optional. + // + // The person who wrote the notes. + // + // Number of characters allowed is 100. + string commenter = 2; + + // Optional. + // + // The create date of the note. + google.type.Date create_date = 3; + + // Optional. + // + // The note type. + // + // Number of characters allowed is 100. + string type = 4; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile_service.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile_service.proto new file mode 100644 index 000000000000..aa6f5c5440b5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile_service.proto @@ -0,0 +1,458 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/common.proto"; +import "google/cloud/talent/v4beta1/filters.proto"; +import "google/cloud/talent/v4beta1/histogram.proto"; +import "google/cloud/talent/v4beta1/profile.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "ProfileServiceProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// A service that handles profile management, including profile CRUD, +// enumeration and search. +service ProfileService { + // Lists profiles by filter. The order is unspecified. + rpc ListProfiles(ListProfilesRequest) returns (ListProfilesResponse) { + option (google.api.http) = { + get: "/v4beta1/{parent=projects/*/tenants/*}/profiles" + }; + } + + // Creates and returns a new profile. + rpc CreateProfile(CreateProfileRequest) returns (Profile) { + option (google.api.http) = { + post: "/v4beta1/{parent=projects/*/tenants/*}/profiles" + body: "*" + }; + } + + // Gets the specified profile. + rpc GetProfile(GetProfileRequest) returns (Profile) { + option (google.api.http) = { + get: "/v4beta1/{name=projects/*/tenants/*/profiles/*}" + }; + } + + // Updates the specified profile and returns the updated result. + rpc UpdateProfile(UpdateProfileRequest) returns (Profile) { + option (google.api.http) = { + patch: "/v4beta1/{profile.name=projects/*/tenants/*/profiles/*}" + body: "*" + }; + } + + // Deletes the specified profile. + rpc DeleteProfile(DeleteProfileRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v4beta1/{name=projects/*/tenants/*/profiles/*}" + }; + } + + // Searches for profiles within a tenant. + // + // For example, search by raw queries "software engineer in Mountain View" or + // search by structured filters (location filter, education filter, etc.). + // + // See + // [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest] + // for more information. + rpc SearchProfiles(SearchProfilesRequest) returns (SearchProfilesResponse) { + option (google.api.http) = { + post: "/v4beta1/{parent=projects/*/tenants/*}:search" + body: "*" + }; + } +} + +// List profiles request. +message ListProfilesRequest { + // Required. + // + // The resource name of the tenant under which the job is created. + // + // The format is "projects/{project_id}/tenants/{tenant_id}", for example, + // "projects/api-test-project/tenants/foo". + string parent = 1; + + // Optional. + // + // The token that specifies the current offset (that is, starting result). + // + // Please set the value to + // [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token] + // to continue the list. + string page_token = 2; + + // Optional. + // + // The maximum number of profiles to be returned, at most 100. + // + // Default is 100 unless a positive number smaller than 100 is specified. + int32 page_size = 3; + + // Optional. + // + // A field mask to specify the profile fields to be listed in response. + // All fields are listed if it is unset. + // + // Valid values are: + // + // * name + google.protobuf.FieldMask field_mask = 4; +} + +// The List profiles response object. +message ListProfilesResponse { + // Profiles for the specific tenant. + repeated Profile profiles = 1; + + // A token to retrieve the next page of results. This is empty if there are no + // more results. + string next_page_token = 2; +} + +// Create profile request. +message CreateProfileRequest { + // Required. + // + // The name of the tenant this profile belongs to. + // + // The format is "projects/{project_id}/tenants/{tenant_id}", for example, + // "projects/api-test-project/tenants/foo". + string parent = 1; + + // Required. + // + // The profile to be created. + Profile profile = 2; +} + +// Get profile request. +message GetProfileRequest { + // Required. + // + // Resource name of the profile to get. + // + // The format is + // "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", + // for example, "projects/api-test-project/tenants/foo/profiles/bar". + string name = 1; +} + +// Update profile request +message UpdateProfileRequest { + // Required. + // + // Profile to be updated. + Profile profile = 1; + + // Optional. + // + // A field mask to specify the profile fields to update. + // + // A full update is performed if it is unset. + // + // Valid values are: + // + // * externalId + // * source + // * uri + // * isHirable + // * createTime + // * updateTime + // * resumeHrxml + // * personNames + // * addresses + // * emailAddresses + // * phoneNumbers + // * personalUris + // * additionalContactInfo + // * employmentRecords + // * educationRecords + // * skills + // * projects + // * publications + // * patents + // * certifications + // * jobApplications + // * recruitingNotes + // * customAttributes + google.protobuf.FieldMask update_mask = 2; +} + +// Delete profile request. +message DeleteProfileRequest { + // Required. + // + // Resource name of the profile to be deleted. + // + // The format is + // "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", + // for example, "projects/api-test-project/tenants/foo/profiles/bar". + string name = 1; +} + +// The request body of the `SearchProfiles` call. +message SearchProfilesRequest { + // Required. + // + // The resource name of the tenant to search within. + // + // The format is "projects/{project_id}/tenants/{tenant_id}", for example, + // "projects/api-test-project/tenants/foo". + string parent = 1; + + // Required. + // + // The meta information collected about the profile search user. This is used + // to improve the search quality of the service. These values are provided by + // users, and must be precise and consistent. + RequestMetadata request_metadata = 2; + + // Optional. + // + // Search query to execute. See + // [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details. + ProfileQuery profile_query = 3; + + // Optional. + // + // A limit on the number of profiles returned in the search results. + // A value above the default value 10 can increase search response time. + // + // The maximum value allowed is 100. Otherwise an error is thrown. + int32 page_size = 4; + + // Optional. + // + // The pageToken, similar to offset enables users of the API to paginate + // through the search results. To retrieve the first page of results, set the + // pageToken to empty. The search response includes a + // [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token] + // field that can be used to populate the pageToken field for the next page of + // results. Using pageToken instead of offset increases the performance of the + // API, especially compared to larger offset values. + string page_token = 5; + + // Optional. + // + // An integer that specifies the current offset (that is, starting result) in + // search results. This field is only considered if + // [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token] + // is unset. + // + // The maximum allowed value is 5000. Otherwise an error is thrown. + // + // For example, 0 means to search from the first profile, and 10 means to + // search from the 11th profile. This can be used for pagination, for example + // pageSize = 10 and offset = 10 means to search from the second page. + int32 offset = 6; + + // Optional. + // + // This flag controls the spell-check feature. If `false`, the + // service attempts to correct a misspelled query. + // + // For example, "enginee" is corrected to "engineer". + bool disable_spell_check = 7; + + // Optional. + // + // The criteria that determines how search results are sorted. + // Defaults is "relevance desc" if no value is specified. + // + // Supported options are: + // + // * "relevance desc": By descending relevance, as determined by the API + // algorithms. + // * "update_date desc": Sort by [Profile.update_date][] in descending order + // (recently updated profiles first). + // * "create_date desc": Sort by [Profile.create_date][] in descending order + // (recently created profiles first). + // * "first_name": Sort by [PersonStrcuturedName.given_name][] in ascending + // order. + // * "first_name desc": Sort by [PersonStrcuturedName.given_name][] in + // descending order. + // * "last_name": Sort by [PersonStrcuturedName.family_name][] in ascending + // order. + // * "last_name desc": Sort by [PersonStrcuturedName.family_name][] in + // ascending order. + string order_by = 8; + + // Optional. + // + // When sort by field is based on alphabetical order, sort values case + // sensitively (based on ASCII) when the value is set to true. Default value + // is case in-sensitive sort (false). + bool case_sensitive_sort = 9; + + // Optional. + // + // A list of expressions specifies histogram requests against matching + // profiles for + // [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest]. + // + // The expression syntax looks like a function definition with optional + // parameters. + // + // Function syntax: function_name(histogram_facet[, list of buckets]) + // + // Data types: + // + // * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+. + // * String: string like "any string with backslash escape for quote(\")." + // * Number: whole number and floating point number like 10, -1 and -0.01. + // * List: list of elements with comma(,) separator surrounded by square + // brackets. For example, [1, 2, 3] and ["one", "two", "three"]. + // + // Built-in constants: + // + // * MIN (minimum number similar to java Double.MIN_VALUE) + // * MAX (maximum number similar to java Double.MAX_VALUE) + // + // Built-in functions: + // + // * bucket(start, end[, label]) + // Bucket build-in function creates a bucket with range of [start, end). Note + // that the end is exclusive. + // For example, bucket(1, MAX, "positive number") or bucket(1, 10). + // + // Histogram Facets: + // + // * admin1: Admin1 is a global placeholder for referring to state, province, + // or the particular term a country uses to define the geographic structure + // below the country level. Examples include states codes such as "CA", "IL", + // "NY", and provinces, such as "BC". + // * locality: Locality is a global placeholder for referring to city, town, + // or the particular term a country uses to define the geographic structure + // below the admin1 level. Examples include city names such as + // "Mountain View" and "New York". + // * extended_locality: Extended locality is concatenated version of admin1 + // and locality with comma separator. For example, "Mountain View, CA" and + // "New York, NY". + // * postal_code: Postal code of profile which follows locale code. + // * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US, + // JP, GB. + // * job_title: Normalized job titles specified in EmploymentHistory. + // * company_name: Normalized company name of profiles to match on. + // * institution: The school name. For example, "MIT", + // "University of California, Berkeley" + // * degree: Highest education degree in ISCED code. Each value in degree + // covers specific level of education, without any expansion to upper nor + // lower levels of education degree. + // * experience_in_months: experience in months. 0 means 0 month to 1 month + // (exclusive). + // * application_date: The application date specifies application start dates. + // See + // [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] + // for more details. + // * application_outcome_reason: The application outcome reason specifies the + // outcome reasons of job application. + // See + // [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter] + // for more details. + // * application_last_stage: The application last stage specifies the last + // stage of job application. + // See + // [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter] + // for more details. + // * application_job_title: The application job title specifies the job + // applied for in the application. + // See + // [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter] + // for more details. + // * application_status: The application status specifies the status of job + // application. + // See + // [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter] + // for more details. + // * hirable_status: Hirable status specifies the profile's hirable status. + // * string_custom_attribute: String custom attributes. Values can be accessed + // via square bracket notation like string_custom_attribute["key1"]. + // * numeric_custom_attribute: Numeric custom attributes. Values can be + // accessed via square bracket notation like numeric_custom_attribute["key1"]. + // + // Example expressions: + // + // * count(admin1) + // * count(experience_in_months, [bucket(0, 12, "1 year"), + // bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")]) + // * count(string_custom_attribute["assigned_recruiter"]) + // * count(numeric_custom_attribute["favorite_number"], + // [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")]) + repeated HistogramQuery histogram_queries = 10; +} + +// Response of SearchProfiles method. +message SearchProfilesResponse { + // An estimation of the number of profiles that match the specified query. + // + // This number isn't guaranteed to be accurate. + int64 estimated_total_size = 1; + + // The spell checking result, and correction. + SpellingCorrection spell_correction = 2; + + // Additional information for the API invocation, such as the request + // tracking id. + ResponseMetadata metadata = 3; + + // A token to retrieve the next page of results. This is empty if there are no + // more results. + string next_page_token = 4; + + // The histogram results that match with specified + // [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]. + repeated HistogramQueryResult histogram_query_results = 5; + + // The profile entities that match the specified + // [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest]. + repeated SummarizedProfile summarized_profiles = 6; +} + +// Output only. +// +// Profile entry with metadata inside +// [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse]. +message SummarizedProfile { + // A list of profiles that are linked by [Profile.cluster_id][]. + repeated Profile profiles = 1; + + // A profile summary shows the profile summary and how the profile matches the + // search query. + // + // In profile summary, the profiles with the same [Profile.cluster_id][] are + // merged together. Among profiles, same education/employment records may be + // slightly different but they are merged into one with best efforts. + // + // For example, in one profile the school name is "UC Berkeley" and the field + // study is "Computer Science" and in another one the school name is + // "University of California at Berkeley" and the field study is "CS". The API + // merges these two inputs into one and selects one value for each field. For + // example, the school name in summary is set to "University of California at + // Berkeley" and the field of study is set to "Computer Science". + Profile summary = 2; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/resume_service.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/resume_service.proto new file mode 100644 index 000000000000..76530577671c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/resume_service.proto @@ -0,0 +1,142 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/profile.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "ResumeServiceProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// A service that handles resume parsing. +service ResumeService { + // Parses a resume into a [Profile][google.cloud.talent.v4beta1.Profile]. The + // API attempts to fill out the following profile fields if present within the + // resume: + // + // * personNames + // * addresses + // * emailAddress + // * phoneNumbers + // * personalUris + // * employmentRecords + // * educationRecords + // * skills + // + // Note that some attributes in these fields may not be populated if they're + // not present within the resume or unrecognizable by the resume parser. + // + // This API does not save the resume or profile. To create a profile from this + // resume, clients need to call the CreateProfile method again with the + // profile returned. + // + // The following list of formats are supported: + // + // * PDF + // * TXT + // * DOC + // * RTF + // * DOCX + // * PNG (only when [ParseResumeRequest.enable_ocr][] is set to `true`, + // otherwise an error is thrown) + rpc ParseResume(ParseResumeRequest) returns (ParseResumeResponse) { + option (google.api.http) = { + post: "/v4beta1/{parent=projects/*}/resumes:parse" + body: "*" + }; + } +} + +// Parse resume request. +message ParseResumeRequest { + // Required. + // + // The resource name of the project. + // + // The format is "projects/{project_id}", for example, + // "projects/api-test-project". + string parent = 1; + + // Required. + // + // The bytes of the resume file in common format, for example, PDF, TXT. + // UTF-8 encoding is required if the resume is text-based, otherwise an error + // is thrown. + bytes resume = 2; + + // Optional. + // + // The region code indicating where the resume is from. Values + // are as per the ISO-3166-2 format. For example, US, FR, DE. + // + // This value is optional, but providing this value improves the resume + // parsing quality and performance. + // + // An error is thrown if the regionCode is invalid. + string region_code = 3; + + // Optional. + // + // The language code of contents in the resume. + // + // Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn". + // For more information, see + // [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){: + // class="external" target="_blank" }. + string language_code = 4; + + // Optional. + // + // Options that change how the resume parse is performed. + ParseResumeOptions options = 5; +} + +// Options that change how the resume parse is performed. +message ParseResumeOptions { + // Optional. + // + // Controls whether Optical Character Recognition (OCR) is enabled. + // + // OCR is used to decipher pictorial resumes, or resumes that have some + // element of pictorial detail (for example, contact information placed within + // an image in a pdf). Note that the API call has a higher latency if OCR is + // enabled. + bool enable_ocr = 1; + + // Optional. + // + // Controls whether detected skills are included in the parsed profile from + // sections of the resume other than just skills sections. + // + // Normally, returned skills are limited to those taken from a resume section + // intended to list skills. When enabled, this feature causes detected + // skills in other sections to also be included in the returned profile. + bool enable_full_skill_detection = 2; +} + +// Parse resume response. +message ParseResumeResponse { + // The profile parsed from resume. + Profile profile = 1; + + // Raw text from resume. + string raw_text = 2; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/tenant.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/tenant.proto new file mode 100644 index 000000000000..f2f2ee496aa2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/tenant.proto @@ -0,0 +1,73 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/common.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "TenantResourceProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// A Tenant resource represents a tenant in the service. A tenant is a group or +// entity that shares common access with specific privileges for resources like +// profiles. Customer may create multiple tenants to provide data isolation for +// different groups. +message Tenant { + // Enum that represents how user data owned by the tenant is used. + enum DataUsageType { + // Default value. + DATA_USAGE_TYPE_UNSPECIFIED = 0; + + // Data owned by this tenant is used to improve search/recommendation + // quality across tenants. + AGGREGATED = 1; + + // Data owned by this tenant is used to improve search/recommendation + // quality for this tenant only. + ISOLATED = 2; + } + + // Required during tenant update. + // + // The resource name for a tenant. This is generated by the service when a + // tenant is created. + // + // The format is "projects/{project_id}/tenants/{tenant_id}", for example, + // "projects/api-test-project/tenants/foo". + string name = 1; + + // Required. + // + // Client side tenant identifier, used to uniquely identify the tenant. + // + // The maximum number of allowed characters is 255. + string external_id = 2; + + // Optional. + // + // Indicates whether data owned by this tenant may be used to provide product + // improvements across other tenants. + // + // Defaults behavior is + // [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED] + // if it's unset. + DataUsageType usage_type = 3; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/tenant_service.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/tenant_service.proto new file mode 100644 index 000000000000..18de6cd094c3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/tenant_service.proto @@ -0,0 +1,167 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/common.proto"; +import "google/cloud/talent/v4beta1/tenant.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "TenantServiceProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// A service that handles tenant management, including CRUD and enumeration. +service TenantService { + // Creates a new tenant entity. + rpc CreateTenant(CreateTenantRequest) returns (Tenant) { + option (google.api.http) = { + post: "/v4beta1/{parent=projects/*}/tenants" + body: "*" + }; + } + + // Retrieves specified tenant. + rpc GetTenant(GetTenantRequest) returns (Tenant) { + option (google.api.http) = { + get: "/v4beta1/{name=projects/*/tenants/*}" + }; + } + + // Updates specified tenant. + rpc UpdateTenant(UpdateTenantRequest) returns (Tenant) { + option (google.api.http) = { + patch: "/v4beta1/{tenant.name=projects/*/tenants/*}" + body: "*" + }; + } + + // Deletes specified tenant. + rpc DeleteTenant(DeleteTenantRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v4beta1/{name=projects/*/tenants/*}" + }; + } + + // Lists all tenants associated with the project. + rpc ListTenants(ListTenantsRequest) returns (ListTenantsResponse) { + option (google.api.http) = { + get: "/v4beta1/{parent=projects/*}/tenants" + }; + } +} + +// The Request of the CreateTenant method. +message CreateTenantRequest { + // Required. + // + // Resource name of the project under which the tenant is created. + // + // The format is "projects/{project_id}", for example, + // "projects/api-test-project". + string parent = 1; + + // Required. + // + // The tenant to be created. + Tenant tenant = 2; +} + +// Request for getting a tenant by name. +message GetTenantRequest { + // Required. + // + // The resource name of the tenant to be retrieved. + // + // The format is "projects/{project_id}/tenants/{tenant_id}", for example, + // "projects/api-test-project/tenants/foo". + string name = 1; +} + +// Request for updating a specified tenant. +message UpdateTenantRequest { + // Required. + // + // The tenant resource to replace the current resource in the system. + Tenant tenant = 1; + + // Optional but strongly recommended for the best service + // experience. + // + // If + // [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask] + // is provided, only the specified fields in + // [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are + // updated. Otherwise all the fields are updated. + // + // A field mask to specify the tenant fields to be updated. Only + // top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are + // supported. + google.protobuf.FieldMask update_mask = 2; +} + +// Request to delete a tenant. +message DeleteTenantRequest { + // Required. + // + // The resource name of the tenant to be deleted. + // + // The format is "projects/{project_id}/tenants/{tenant_id}", for example, + // "projects/api-test-project/tenants/foo". + string name = 1; +} + +// List tenants for which the client has ACL visibility. +message ListTenantsRequest { + // Required. + // + // Resource name of the project under which the tenant is created. + // + // The format is "projects/{project_id}", for example, + // "projects/api-test-project". + string parent = 1; + + // Optional. + // + // The starting indicator from which to return results. + string page_token = 2; + + // Optional. + // + // The maximum number of tenants to be returned, at most 100. + // Default is 100 if a non-positive number is provided. + int32 page_size = 3; +} + +// Output only. +// +// The List tenants response object. +message ListTenantsResponse { + // Tenants for the current client. + repeated Tenant tenants = 1; + + // A token to retrieve the next page of results. + string next_page_token = 2; + + // Additional information for the API invocation, such as the request + // tracking id. + ResponseMetadata metadata = 3; +} diff --git a/google-cloud-bom/pom.xml b/google-cloud-bom/pom.xml index bad21c38538a..f4f29438e5de 100644 --- a/google-cloud-bom/pom.xml +++ b/google-cloud-bom/pom.xml @@ -960,6 +960,21 @@ google-cloud-iamcredentials 0.10.1-alpha-SNAPSHOT + + com.google.api.grpc + proto-google-cloud-talent-v4beta1 + 0.0.1-beta-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-talent-v4beta1 + 0.0.1-beta-SNAPSHOT + + + com.google.cloud + google-cloud-talent + 0.0.1-beta-SNAPSHOT + diff --git a/google-cloud-clients/google-cloud-talent/README.md b/google-cloud-clients/google-cloud-talent/README.md new file mode 100644 index 000000000000..534bcbecefb4 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/README.md @@ -0,0 +1,100 @@ +Google Cloud Java Client for Cloud Talent Solution +=================================================== + +Java idiomatic client for [Cloud Talent Solution][product-overview]. + +[![Kokoro CI](http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/master.svg)](http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/master.html) +[![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-talent.svg)](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-talent.svg) +[![Codacy Badge](https://api.codacy.com/project/badge/grade/9da006ad7c3a4fe1abd142e77c003917)](https://www.codacy.com/app/mziccard/google-cloud-java) + +- [Product Documentation][product-docs] +- [Client Library Documentation][lib-docs] + +> Note: This client is a work-in-progress, and may occasionally +> make backwards-incompatible changes. + +Quickstart +---------- + +[//]: # ({x-version-update-start:google-cloud-talent:released}) +If you are using Maven, add this to your pom.xml file +```xml + + com.google.cloud + google-cloud-talent + 0.1.0-beta + +``` +If you are using Gradle, add this to your dependencies +```Groovy +compile 'com.google.cloud:google-cloud-talent:0.1.0-beta' +``` +If you are using SBT, add this to your dependencies +```Scala +libraryDependencies += "com.google.cloud" % "google-cloud-talent" % "0.1.0-beta" +``` +[//]: # ({x-version-update-end}) + +Authentication +-------------- + +See the [Authentication](https://github.com/GoogleCloudPlatform/google-cloud-java#authentication) section in the base directory's README. + +About Cloud Talent Solution +---------------------------- + +[Cloud Talent Solution][product-overview] + +See the [Cloud Talent Solution client library docs][lib-docs] to learn how to use this Cloud Talent Solution Client Library. + +Getting Started +--------------- +#### Prerequisites +You will need a [Google Developers Console](https://console.developers.google.com/) project with the Cloud Talent Solution API enabled. [Follow these instructions](https://cloud.google.com/resource-manager/docs/creating-managing-projects) to get your project set up. You will also need to set up the local development environment by [installing the Google Cloud SDK](https://cloud.google.com/sdk/) and running the following commands in command line: `gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. + +#### Installation and setup +You'll need to obtain the `google-cloud-talent` library. See the [Quickstart](#quickstart) section to add `google-cloud-talent` as a dependency in your code. + +Troubleshooting +--------------- + +To get help, follow the instructions in the [shared Troubleshooting document](https://github.com/googleapis/google-cloud-common/blob/master/troubleshooting/readme.md#troubleshooting). + +Transport +--------- +Cloud Talent Solution uses gRPC for the transport layer. + +Java Versions +------------- + +Java 7 or above is required for using this client. + +Versioning +---------- + +This library follows [Semantic Versioning](http://semver.org/). + +It is currently in major version zero (``0.y.z``), which means that anything may change at any time and the public API should not be considered stable. + +Contributing +------------ + +Contributions to this library are always welcome and highly encouraged. + +See `google-cloud`'s [CONTRIBUTING] documentation and the [shared documentation](https://github.com/googleapis/google-cloud-common/blob/master/contributing/readme.md#how-to-contribute-to-gcloud) for more information on how to get started. + +Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more information. + +License +------- + +Apache 2.0 - See [LICENSE] for more information. + + +[CONTRIBUTING]:https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/CONTRIBUTING.md +[code-of-conduct]:https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/CODE_OF_CONDUCT.md#contributor-code-of-conduct +[LICENSE]: https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/LICENSE +[cloud-platform]: https://cloud.google.com/ +[product-overview]: https://cloud.google.com/solutions/talent-solution/ +[product-docs]: https://cloud.google.com/talent-solution/docs/ +[lib-docs]: https://googleapis.github.io/google-cloud-java/google-cloud-clients/apidocs/index.html?com/google/cloud/talent/v4beta1/package-summary.html \ No newline at end of file diff --git a/google-cloud-clients/google-cloud-talent/pom.xml b/google-cloud-clients/google-cloud-talent/pom.xml new file mode 100644 index 000000000000..0f6dddd4d22f --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/pom.xml @@ -0,0 +1,87 @@ + + + 4.0.0 + google-cloud-talent + 0.0.1-beta-SNAPSHOT + jar + Google Cloud Talent Solution + https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-talent + + Java idiomatic client for Google Cloud Talent Solution. + + + com.google.cloud + google-cloud-clients + 0.83.1-alpha-SNAPSHOT + + + google-cloud-talent + + + + ${project.groupId} + google-cloud-core + + + ${project.groupId} + google-cloud-core-grpc + + + com.google.api.grpc + proto-google-cloud-talent-v4beta1 + + + com.google.api.grpc + grpc-google-cloud-talent-v4beta1 + + + io.grpc + grpc-netty-shaded + + + io.grpc + grpc-stub + + + io.grpc + grpc-auth + + + ${project.groupId} + google-cloud-core + test-jar + test + + + junit + junit + test + + + org.easymock + easymock + test + + + org.objenesis + objenesis + test + + + com.google.truth + truth + test + + + com.google.api.grpc + grpc-google-iam-v1 + test + + + com.google.api + gax-grpc + testlib + test + + + \ No newline at end of file diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceClient.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceClient.java new file mode 100644 index 000000000000..1ab9b9204e93 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceClient.java @@ -0,0 +1,770 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.stub.CompanyServiceStub; +import com.google.cloud.talent.v4beta1.stub.CompanyServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND SERVICE +/** + * Service Description: A service that handles company management, including CRUD and enumeration. + * + *

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

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

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

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

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

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

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

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

To customize credentials: + * + *

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

Sample code: + * + *


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

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

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

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

Sample code: + * + *


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

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

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

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

Sample code: + * + *


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

Sample code: + * + *


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

Sample code: + * + *


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

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

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

Sample code: + * + *


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

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

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

Sample code: + * + *


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

Sample code: + * + *


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

Sample code: + * + *


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

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

Sample code: + * + *


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

Sample code: + * + *


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

Sample code: + * + *


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

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

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

Sample code: + * + *


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

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

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

Sample code: + * + *


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

Sample code: + * + *


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

Sample code: + * + *


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

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

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

Sample code: + * + *


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

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

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

Sample code: + * + *


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

Sample code: + * + *


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

Sample code: + * + *


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

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

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

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

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

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

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

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

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

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

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

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

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

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

To customize credentials: + * + *

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

Sample code: + * + *


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

Sample code: + * + *


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

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

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

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

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

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

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

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

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

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

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

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

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

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

To customize credentials: + * + *

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

Sample code: + * + *


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

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

Sample code: + * + *


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

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

Sample code: + * + *


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

Sample code: + * + *


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

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

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

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

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

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

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

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

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

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

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

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

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

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

To customize credentials: + * + *

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

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

Sample code: + * + *


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

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

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

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

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

Sample code: + * + *


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

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

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

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

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

Sample code: + * + *


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

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

Sample code: + * + *


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

Sample code: + * + *


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

The resource name of the job to retrieve. + *

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

Sample code: + * + *


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

The resource name of the job to retrieve. + *

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

Sample code: + * + *


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

Sample code: + * + *


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

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

Sample code: + * + *


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

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

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

Sample code: + * + *


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

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

Sample code: + * + *


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

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

Sample code: + * + *


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

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

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

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

Sample code: + * + *


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

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

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

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

Sample code: + * + *


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

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

Sample code: + * + *


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

Sample code: + * + *


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

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

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

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

Supported operator: =, AND + *

The fields eligible for filtering are: + *

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

Sample Query: + *

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

Sample code: + * + *


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

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

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

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

Supported operator: =, AND + *

The fields eligible for filtering are: + *

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

Sample Query: + *

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

Sample code: + * + *


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

Sample code: + * + *


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

Sample code: + * + *


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

Sample code: + * + *


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

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

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

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

Supported operator: =, AND + *

The fields eligible for filtering are: + *

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

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

Sample code: + * + *


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

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

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

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

Supported operator: =, AND + *

The fields eligible for filtering are: + *

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

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

Sample code: + * + *


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

Sample code: + * + *


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

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

Sample code: + * + *


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

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

Sample code: + * + *


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

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

Sample code: + * + *


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

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

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

Sample code: + * + *


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

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

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

Sample code: + * + *


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

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

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

Sample code: + * + *


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

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

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

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

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

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

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

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

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

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

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

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

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

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

To customize credentials: + * + *

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

Sample code: + * + *


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

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

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

Sample code: + * + *


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

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

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

Sample code: + * + *


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

Sample code: + * + *


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

Sample code: + * + *


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

Sample code: + * + *


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

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

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

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

Sample code: + * + *


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

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

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

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

Sample code: + * + *


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

Sample code: + * + *


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

Sample code: + * + *


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

Resource name of the profile to get. + *

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

Sample code: + * + *


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

Resource name of the profile to get. + *

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

Sample code: + * + *


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

Sample code: + * + *


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

Sample code: + * + *


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

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

Sample code: + * + *


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

Sample code: + * + *


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

Sample code: + * + *


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

Resource name of the profile to be deleted. + *

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

Sample code: + * + *


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

Resource name of the profile to be deleted. + *

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

Sample code: + * + *


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

Sample code: + * + *


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

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

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

Sample code: + * + *


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

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

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

Sample code: + * + *


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

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

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

Sample code: + * + *


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

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

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

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

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

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

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

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

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

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

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

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

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

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

To customize credentials: + * + *

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

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

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

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

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

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

Sample code: + * + *


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

The resource name of the project. + *

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

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

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

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

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

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

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

Sample code: + * + *


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

The resource name of the project. + *

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

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

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

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

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

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

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

Sample code: + * + *


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

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

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

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

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

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

Sample code: + * + *


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

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

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

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

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

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

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

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

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

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

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

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

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

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

To customize credentials: + * + *

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

Sample code: + * + *


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

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

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

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

Sample code: + * + *


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

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

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

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

Sample code: + * + *


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

Sample code: + * + *


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

Sample code: + * + *


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

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

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

Sample code: + * + *


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

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

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

Sample code: + * + *


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

Sample code: + * + *


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

Sample code: + * + *


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

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

Sample code: + * + *


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

Sample code: + * + *


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

Sample code: + * + *


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

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

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

Sample code: + * + *


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

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

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

Sample code: + * + *


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

Sample code: + * + *


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

Sample code: + * + *


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

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

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

Sample code: + * + *


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

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

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

Sample code: + * + *


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

Sample code: + * + *


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

Sample code: + * + *


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

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

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

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

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

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

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

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

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

Sample for CompanyServiceClient: + * + *

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

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

Sample for CompletionClient: + * + *

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

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

Sample for EventServiceClient: + * + *

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

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

Sample for JobServiceClient: + * + *

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

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

Sample for ProfileServiceClient: + * + *

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

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

Sample for ResumeServiceClient: + * + *

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

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

Sample for TenantServiceClient: + * + *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createTenant. */ + public UnaryCallSettings.Builder createTenantSettings() { + return createTenantSettings; + } + + /** Returns the builder for the settings used for calls to getTenant. */ + public UnaryCallSettings.Builder getTenantSettings() { + return getTenantSettings; + } + + /** Returns the builder for the settings used for calls to updateTenant. */ + public UnaryCallSettings.Builder updateTenantSettings() { + return updateTenantSettings; + } + + /** Returns the builder for the settings used for calls to deleteTenant. */ + public UnaryCallSettings.Builder deleteTenantSettings() { + return deleteTenantSettings; + } + + /** Returns the builder for the settings used for calls to listTenants. */ + public PagedCallSettings.Builder< + ListTenantsRequest, ListTenantsResponse, ListTenantsPagedResponse> + listTenantsSettings() { + return listTenantsSettings; + } + + @Override + public TenantServiceStubSettings build() throws IOException { + return new TenantServiceStubSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompanyServiceClientTest.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompanyServiceClientTest.java new file mode 100644 index 000000000000..0506cc723ac5 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompanyServiceClientTest.java @@ -0,0 +1,367 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import static com.google.cloud.talent.v4beta1.CompanyServiceClient.ListCompaniesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class CompanyServiceClientTest { + private static MockCompanyService mockCompanyService; + private static MockCompletion mockCompletion; + private static MockEventService mockEventService; + private static MockJobService mockJobService; + private static MockProfileService mockProfileService; + private static MockResumeService mockResumeService; + private static MockTenantService mockTenantService; + private static MockServiceHelper serviceHelper; + private CompanyServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockCompanyService = new MockCompanyService(); + mockCompletion = new MockCompletion(); + mockEventService = new MockEventService(); + mockJobService = new MockJobService(); + mockProfileService = new MockProfileService(); + mockResumeService = new MockResumeService(); + mockTenantService = new MockTenantService(); + serviceHelper = + new MockServiceHelper( + "in-process-1", + Arrays.asList( + mockCompanyService, + mockCompletion, + mockEventService, + mockJobService, + mockProfileService, + mockResumeService, + mockTenantService)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + CompanyServiceSettings settings = + CompanyServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CompanyServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void createCompanyTest() { + CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]"); + String displayName = "displayName1615086568"; + String externalId = "externalId-1153075697"; + String headquartersAddress = "headquartersAddress-1879520036"; + boolean hiringAgency = false; + String eeoText = "eeoText-1652097123"; + String websiteUri = "websiteUri-2118185016"; + String careerSiteUri = "careerSiteUri1223331861"; + String imageUri = "imageUri-877823864"; + boolean suspended = false; + Company expectedResponse = + Company.newBuilder() + .setName(name.toString()) + .setDisplayName(displayName) + .setExternalId(externalId) + .setHeadquartersAddress(headquartersAddress) + .setHiringAgency(hiringAgency) + .setEeoText(eeoText) + .setWebsiteUri(websiteUri) + .setCareerSiteUri(careerSiteUri) + .setImageUri(imageUri) + .setSuspended(suspended) + .build(); + mockCompanyService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + Company company = Company.newBuilder().build(); + + Company actualResponse = client.createCompany(parent, company); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCompanyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateCompanyRequest actualRequest = (CreateCompanyRequest) actualRequests.get(0); + + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertEquals(company, actualRequest.getCompany()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void createCompanyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCompanyService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + Company company = Company.newBuilder().build(); + + client.createCompany(parent, company); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void getCompanyTest() { + CompanyName name2 = CompanyName.of("[PROJECT]", "[COMPANY]"); + String displayName = "displayName1615086568"; + String externalId = "externalId-1153075697"; + String headquartersAddress = "headquartersAddress-1879520036"; + boolean hiringAgency = false; + String eeoText = "eeoText-1652097123"; + String websiteUri = "websiteUri-2118185016"; + String careerSiteUri = "careerSiteUri1223331861"; + String imageUri = "imageUri-877823864"; + boolean suspended = false; + Company expectedResponse = + Company.newBuilder() + .setName(name2.toString()) + .setDisplayName(displayName) + .setExternalId(externalId) + .setHeadquartersAddress(headquartersAddress) + .setHiringAgency(hiringAgency) + .setEeoText(eeoText) + .setWebsiteUri(websiteUri) + .setCareerSiteUri(careerSiteUri) + .setImageUri(imageUri) + .setSuspended(suspended) + .build(); + mockCompanyService.addResponse(expectedResponse); + + CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]"); + + Company actualResponse = client.getCompany(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCompanyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCompanyRequest actualRequest = (GetCompanyRequest) actualRequests.get(0); + + Assert.assertEquals(name, CompanyName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getCompanyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCompanyService.addException(exception); + + try { + CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]"); + + client.getCompany(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void updateCompanyTest() { + CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]"); + String displayName = "displayName1615086568"; + String externalId = "externalId-1153075697"; + String headquartersAddress = "headquartersAddress-1879520036"; + boolean hiringAgency = false; + String eeoText = "eeoText-1652097123"; + String websiteUri = "websiteUri-2118185016"; + String careerSiteUri = "careerSiteUri1223331861"; + String imageUri = "imageUri-877823864"; + boolean suspended = false; + Company expectedResponse = + Company.newBuilder() + .setName(name.toString()) + .setDisplayName(displayName) + .setExternalId(externalId) + .setHeadquartersAddress(headquartersAddress) + .setHiringAgency(hiringAgency) + .setEeoText(eeoText) + .setWebsiteUri(websiteUri) + .setCareerSiteUri(careerSiteUri) + .setImageUri(imageUri) + .setSuspended(suspended) + .build(); + mockCompanyService.addResponse(expectedResponse); + + Company company = Company.newBuilder().build(); + + Company actualResponse = client.updateCompany(company); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCompanyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateCompanyRequest actualRequest = (UpdateCompanyRequest) actualRequests.get(0); + + Assert.assertEquals(company, actualRequest.getCompany()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void updateCompanyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCompanyService.addException(exception); + + try { + Company company = Company.newBuilder().build(); + + client.updateCompany(company); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void deleteCompanyTest() { + Empty expectedResponse = Empty.newBuilder().build(); + mockCompanyService.addResponse(expectedResponse); + + CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]"); + + client.deleteCompany(name); + + List actualRequests = mockCompanyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteCompanyRequest actualRequest = (DeleteCompanyRequest) actualRequests.get(0); + + Assert.assertEquals(name, CompanyName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void deleteCompanyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCompanyService.addException(exception); + + try { + CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]"); + + client.deleteCompany(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void listCompaniesTest() { + String nextPageToken = ""; + Company companiesElement = Company.newBuilder().build(); + List companies = Arrays.asList(companiesElement); + ListCompaniesResponse expectedResponse = + ListCompaniesResponse.newBuilder() + .setNextPageToken(nextPageToken) + .addAllCompanies(companies) + .build(); + mockCompanyService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListCompaniesPagedResponse pagedListResponse = client.listCompanies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCompaniesList().get(0), resources.get(0)); + + List actualRequests = mockCompanyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListCompaniesRequest actualRequest = (ListCompaniesRequest) actualRequests.get(0); + + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void listCompaniesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCompanyService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + + client.listCompanies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompletionClientTest.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompletionClientTest.java new file mode 100644 index 000000000000..41881e8e74f6 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompletionClientTest.java @@ -0,0 +1,86 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import java.io.IOException; +import java.util.Arrays; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Before; +import org.junit.BeforeClass; + +@javax.annotation.Generated("by GAPIC") +public class CompletionClientTest { + private static MockCompanyService mockCompanyService; + private static MockCompletion mockCompletion; + private static MockEventService mockEventService; + private static MockJobService mockJobService; + private static MockProfileService mockProfileService; + private static MockResumeService mockResumeService; + private static MockTenantService mockTenantService; + private static MockServiceHelper serviceHelper; + private CompletionClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockCompanyService = new MockCompanyService(); + mockCompletion = new MockCompletion(); + mockEventService = new MockEventService(); + mockJobService = new MockJobService(); + mockProfileService = new MockProfileService(); + mockResumeService = new MockResumeService(); + mockTenantService = new MockTenantService(); + serviceHelper = + new MockServiceHelper( + "in-process-1", + Arrays.asList( + mockCompanyService, + mockCompletion, + mockEventService, + mockJobService, + mockProfileService, + mockResumeService, + mockTenantService)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + CompletionSettings settings = + CompletionSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CompletionClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/EventServiceClientTest.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/EventServiceClientTest.java new file mode 100644 index 000000000000..10e7f20c526a --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/EventServiceClientTest.java @@ -0,0 +1,139 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class EventServiceClientTest { + private static MockCompanyService mockCompanyService; + private static MockCompletion mockCompletion; + private static MockEventService mockEventService; + private static MockJobService mockJobService; + private static MockProfileService mockProfileService; + private static MockResumeService mockResumeService; + private static MockTenantService mockTenantService; + private static MockServiceHelper serviceHelper; + private EventServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockCompanyService = new MockCompanyService(); + mockCompletion = new MockCompletion(); + mockEventService = new MockEventService(); + mockJobService = new MockJobService(); + mockProfileService = new MockProfileService(); + mockResumeService = new MockResumeService(); + mockTenantService = new MockTenantService(); + serviceHelper = + new MockServiceHelper( + "in-process-1", + Arrays.asList( + mockCompanyService, + mockCompletion, + mockEventService, + mockJobService, + mockProfileService, + mockResumeService, + mockTenantService)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + EventServiceSettings settings = + EventServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = EventServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void createClientEventTest() { + String requestId = "requestId37109963"; + String eventId = "eventId278118624"; + ClientEvent expectedResponse = + ClientEvent.newBuilder().setRequestId(requestId).setEventId(eventId).build(); + mockEventService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + ClientEvent clientEvent = ClientEvent.newBuilder().build(); + + ClientEvent actualResponse = client.createClientEvent(parent, clientEvent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEventService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateClientEventRequest actualRequest = (CreateClientEventRequest) actualRequests.get(0); + + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertEquals(clientEvent, actualRequest.getClientEvent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void createClientEventExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockEventService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + ClientEvent clientEvent = ClientEvent.newBuilder().build(); + + client.createClientEvent(parent, clientEvent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/JobServiceClientTest.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/JobServiceClientTest.java new file mode 100644 index 000000000000..485ad0618398 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/JobServiceClientTest.java @@ -0,0 +1,419 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import static com.google.cloud.talent.v4beta1.JobServiceClient.ListJobsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class JobServiceClientTest { + private static MockCompanyService mockCompanyService; + private static MockCompletion mockCompletion; + private static MockEventService mockEventService; + private static MockJobService mockJobService; + private static MockProfileService mockProfileService; + private static MockResumeService mockResumeService; + private static MockTenantService mockTenantService; + private static MockServiceHelper serviceHelper; + private JobServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockCompanyService = new MockCompanyService(); + mockCompletion = new MockCompletion(); + mockEventService = new MockEventService(); + mockJobService = new MockJobService(); + mockProfileService = new MockProfileService(); + mockResumeService = new MockResumeService(); + mockTenantService = new MockTenantService(); + serviceHelper = + new MockServiceHelper( + "in-process-1", + Arrays.asList( + mockCompanyService, + mockCompletion, + mockEventService, + mockJobService, + mockProfileService, + mockResumeService, + mockTenantService)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + JobServiceSettings settings = + JobServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = JobServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void createJobTest() { + JobName name = JobName.of("[PROJECT]", "[JOBS]"); + String companyName = "companyName1429880077"; + String requisitionId = "requisitionId980224926"; + String title = "title110371416"; + String description = "description-1724546052"; + String department = "department848184146"; + String incentives = "incentives-1262874520"; + String languageCode = "languageCode-412800396"; + int promotionValue = 353413845; + String qualifications = "qualifications1903501412"; + String responsibilities = "responsibilities-926952660"; + String companyDisplayName = "companyDisplayName1982424170"; + Job expectedResponse = + Job.newBuilder() + .setName(name.toString()) + .setCompanyName(companyName) + .setRequisitionId(requisitionId) + .setTitle(title) + .setDescription(description) + .setDepartment(department) + .setIncentives(incentives) + .setLanguageCode(languageCode) + .setPromotionValue(promotionValue) + .setQualifications(qualifications) + .setResponsibilities(responsibilities) + .setCompanyDisplayName(companyDisplayName) + .build(); + mockJobService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + Job job = Job.newBuilder().build(); + + Job actualResponse = client.createJob(parent, job); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockJobService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateJobRequest actualRequest = (CreateJobRequest) actualRequests.get(0); + + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertEquals(job, actualRequest.getJob()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void createJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockJobService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + Job job = Job.newBuilder().build(); + + client.createJob(parent, job); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void getJobTest() { + JobName name2 = JobName.of("[PROJECT]", "[JOBS]"); + String companyName = "companyName1429880077"; + String requisitionId = "requisitionId980224926"; + String title = "title110371416"; + String description = "description-1724546052"; + String department = "department848184146"; + String incentives = "incentives-1262874520"; + String languageCode = "languageCode-412800396"; + int promotionValue = 353413845; + String qualifications = "qualifications1903501412"; + String responsibilities = "responsibilities-926952660"; + String companyDisplayName = "companyDisplayName1982424170"; + Job expectedResponse = + Job.newBuilder() + .setName(name2.toString()) + .setCompanyName(companyName) + .setRequisitionId(requisitionId) + .setTitle(title) + .setDescription(description) + .setDepartment(department) + .setIncentives(incentives) + .setLanguageCode(languageCode) + .setPromotionValue(promotionValue) + .setQualifications(qualifications) + .setResponsibilities(responsibilities) + .setCompanyDisplayName(companyDisplayName) + .build(); + mockJobService.addResponse(expectedResponse); + + JobName name = JobName.of("[PROJECT]", "[JOBS]"); + + Job actualResponse = client.getJob(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockJobService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetJobRequest actualRequest = (GetJobRequest) actualRequests.get(0); + + Assert.assertEquals(name, JobName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockJobService.addException(exception); + + try { + JobName name = JobName.of("[PROJECT]", "[JOBS]"); + + client.getJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void updateJobTest() { + JobName name = JobName.of("[PROJECT]", "[JOBS]"); + String companyName = "companyName1429880077"; + String requisitionId = "requisitionId980224926"; + String title = "title110371416"; + String description = "description-1724546052"; + String department = "department848184146"; + String incentives = "incentives-1262874520"; + String languageCode = "languageCode-412800396"; + int promotionValue = 353413845; + String qualifications = "qualifications1903501412"; + String responsibilities = "responsibilities-926952660"; + String companyDisplayName = "companyDisplayName1982424170"; + Job expectedResponse = + Job.newBuilder() + .setName(name.toString()) + .setCompanyName(companyName) + .setRequisitionId(requisitionId) + .setTitle(title) + .setDescription(description) + .setDepartment(department) + .setIncentives(incentives) + .setLanguageCode(languageCode) + .setPromotionValue(promotionValue) + .setQualifications(qualifications) + .setResponsibilities(responsibilities) + .setCompanyDisplayName(companyDisplayName) + .build(); + mockJobService.addResponse(expectedResponse); + + Job job = Job.newBuilder().build(); + + Job actualResponse = client.updateJob(job); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockJobService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateJobRequest actualRequest = (UpdateJobRequest) actualRequests.get(0); + + Assert.assertEquals(job, actualRequest.getJob()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void updateJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockJobService.addException(exception); + + try { + Job job = Job.newBuilder().build(); + + client.updateJob(job); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void deleteJobTest() { + Empty expectedResponse = Empty.newBuilder().build(); + mockJobService.addResponse(expectedResponse); + + JobName name = JobName.of("[PROJECT]", "[JOBS]"); + + client.deleteJob(name); + + List actualRequests = mockJobService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteJobRequest actualRequest = (DeleteJobRequest) actualRequests.get(0); + + Assert.assertEquals(name, JobName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void deleteJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockJobService.addException(exception); + + try { + JobName name = JobName.of("[PROJECT]", "[JOBS]"); + + client.deleteJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void listJobsTest() { + String nextPageToken = ""; + Job jobsElement = Job.newBuilder().build(); + List jobs = Arrays.asList(jobsElement); + ListJobsResponse expectedResponse = + ListJobsResponse.newBuilder().setNextPageToken(nextPageToken).addAllJobs(jobs).build(); + mockJobService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + String filter = "filter-1274492040"; + + ListJobsPagedResponse pagedListResponse = client.listJobs(parent, filter); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getJobsList().get(0), resources.get(0)); + + List actualRequests = mockJobService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListJobsRequest actualRequest = (ListJobsRequest) actualRequests.get(0); + + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertEquals(filter, actualRequest.getFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void listJobsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockJobService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + String filter = "filter-1274492040"; + + client.listJobs(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void batchDeleteJobsTest() { + Empty expectedResponse = Empty.newBuilder().build(); + mockJobService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + String filter = "filter-1274492040"; + + client.batchDeleteJobs(parent, filter); + + List actualRequests = mockJobService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchDeleteJobsRequest actualRequest = (BatchDeleteJobsRequest) actualRequests.get(0); + + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertEquals(filter, actualRequest.getFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void batchDeleteJobsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockJobService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + String filter = "filter-1274492040"; + + client.batchDeleteJobs(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompanyService.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompanyService.java new file mode 100644 index 000000000000..486157eb0444 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompanyService.java @@ -0,0 +1,57 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockCompanyService implements MockGrpcService { + private final MockCompanyServiceImpl serviceImpl; + + public MockCompanyService() { + serviceImpl = new MockCompanyServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompanyServiceImpl.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompanyServiceImpl.java new file mode 100644 index 000000000000..2aa65fade100 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompanyServiceImpl.java @@ -0,0 +1,132 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.talent.v4beta1.CompanyServiceGrpc.CompanyServiceImplBase; +import com.google.protobuf.Empty; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockCompanyServiceImpl extends CompanyServiceImplBase { + private ArrayList requests; + private Queue responses; + + public MockCompanyServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createCompany( + CreateCompanyRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Company) { + requests.add(request); + responseObserver.onNext((Company) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void getCompany(GetCompanyRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Company) { + requests.add(request); + responseObserver.onNext((Company) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void updateCompany( + UpdateCompanyRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Company) { + requests.add(request); + responseObserver.onNext((Company) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void deleteCompany(DeleteCompanyRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext((Empty) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void listCompanies( + ListCompaniesRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ListCompaniesResponse) { + requests.add(request); + responseObserver.onNext((ListCompaniesResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompletion.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompletion.java new file mode 100644 index 000000000000..fb932934b36e --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompletion.java @@ -0,0 +1,57 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockCompletion implements MockGrpcService { + private final MockCompletionImpl serviceImpl; + + public MockCompletion() { + serviceImpl = new MockCompletionImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompletionImpl.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompletionImpl.java new file mode 100644 index 000000000000..dd9ce13c6689 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompletionImpl.java @@ -0,0 +1,73 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.talent.v4beta1.CompletionGrpc.CompletionImplBase; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockCompletionImpl extends CompletionImplBase { + private ArrayList requests; + private Queue responses; + + public MockCompletionImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void completeQuery( + CompleteQueryRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof CompleteQueryResponse) { + requests.add(request); + responseObserver.onNext((CompleteQueryResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockEventService.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockEventService.java new file mode 100644 index 000000000000..d3ff2ae24c03 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockEventService.java @@ -0,0 +1,57 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockEventService implements MockGrpcService { + private final MockEventServiceImpl serviceImpl; + + public MockEventService() { + serviceImpl = new MockEventServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockEventServiceImpl.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockEventServiceImpl.java new file mode 100644 index 000000000000..33edc4e1bbb0 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockEventServiceImpl.java @@ -0,0 +1,73 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.talent.v4beta1.EventServiceGrpc.EventServiceImplBase; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockEventServiceImpl extends EventServiceImplBase { + private ArrayList requests; + private Queue responses; + + public MockEventServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createClientEvent( + CreateClientEventRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ClientEvent) { + requests.add(request); + responseObserver.onNext((ClientEvent) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockJobService.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockJobService.java new file mode 100644 index 000000000000..b2627ec50436 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockJobService.java @@ -0,0 +1,57 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockJobService implements MockGrpcService { + private final MockJobServiceImpl serviceImpl; + + public MockJobService() { + serviceImpl = new MockJobServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockJobServiceImpl.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockJobServiceImpl.java new file mode 100644 index 000000000000..8bde932a8deb --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockJobServiceImpl.java @@ -0,0 +1,174 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.talent.v4beta1.JobServiceGrpc.JobServiceImplBase; +import com.google.protobuf.Empty; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockJobServiceImpl extends JobServiceImplBase { + private ArrayList requests; + private Queue responses; + + public MockJobServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createJob(CreateJobRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Job) { + requests.add(request); + responseObserver.onNext((Job) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void getJob(GetJobRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Job) { + requests.add(request); + responseObserver.onNext((Job) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void updateJob(UpdateJobRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Job) { + requests.add(request); + responseObserver.onNext((Job) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void deleteJob(DeleteJobRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext((Empty) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void listJobs(ListJobsRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ListJobsResponse) { + requests.add(request); + responseObserver.onNext((ListJobsResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void batchDeleteJobs( + BatchDeleteJobsRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext((Empty) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void searchJobs( + SearchJobsRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof SearchJobsResponse) { + requests.add(request); + responseObserver.onNext((SearchJobsResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void searchJobsForAlert( + SearchJobsRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof SearchJobsResponse) { + requests.add(request); + responseObserver.onNext((SearchJobsResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockProfileService.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockProfileService.java new file mode 100644 index 000000000000..ac7562ebe9b4 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockProfileService.java @@ -0,0 +1,57 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockProfileService implements MockGrpcService { + private final MockProfileServiceImpl serviceImpl; + + public MockProfileService() { + serviceImpl = new MockProfileServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockProfileServiceImpl.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockProfileServiceImpl.java new file mode 100644 index 000000000000..9f29331ef48e --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockProfileServiceImpl.java @@ -0,0 +1,147 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.talent.v4beta1.ProfileServiceGrpc.ProfileServiceImplBase; +import com.google.protobuf.Empty; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockProfileServiceImpl extends ProfileServiceImplBase { + private ArrayList requests; + private Queue responses; + + public MockProfileServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listProfiles( + ListProfilesRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ListProfilesResponse) { + requests.add(request); + responseObserver.onNext((ListProfilesResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void createProfile( + CreateProfileRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Profile) { + requests.add(request); + responseObserver.onNext((Profile) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void getProfile(GetProfileRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Profile) { + requests.add(request); + responseObserver.onNext((Profile) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void updateProfile( + UpdateProfileRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Profile) { + requests.add(request); + responseObserver.onNext((Profile) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void deleteProfile(DeleteProfileRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext((Empty) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void searchProfiles( + SearchProfilesRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof SearchProfilesResponse) { + requests.add(request); + responseObserver.onNext((SearchProfilesResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockResumeService.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockResumeService.java new file mode 100644 index 000000000000..98b0befccbe7 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockResumeService.java @@ -0,0 +1,57 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockResumeService implements MockGrpcService { + private final MockResumeServiceImpl serviceImpl; + + public MockResumeService() { + serviceImpl = new MockResumeServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockResumeServiceImpl.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockResumeServiceImpl.java new file mode 100644 index 000000000000..a4e5c340b825 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockResumeServiceImpl.java @@ -0,0 +1,73 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.talent.v4beta1.ResumeServiceGrpc.ResumeServiceImplBase; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockResumeServiceImpl extends ResumeServiceImplBase { + private ArrayList requests; + private Queue responses; + + public MockResumeServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void parseResume( + ParseResumeRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ParseResumeResponse) { + requests.add(request); + responseObserver.onNext((ParseResumeResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockTenantService.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockTenantService.java new file mode 100644 index 000000000000..cd1ee604db7f --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockTenantService.java @@ -0,0 +1,57 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockTenantService implements MockGrpcService { + private final MockTenantServiceImpl serviceImpl; + + public MockTenantService() { + serviceImpl = new MockTenantServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockTenantServiceImpl.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockTenantServiceImpl.java new file mode 100644 index 000000000000..90afb0cad258 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockTenantServiceImpl.java @@ -0,0 +1,130 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.talent.v4beta1.TenantServiceGrpc.TenantServiceImplBase; +import com.google.protobuf.Empty; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockTenantServiceImpl extends TenantServiceImplBase { + private ArrayList requests; + private Queue responses; + + public MockTenantServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createTenant(CreateTenantRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Tenant) { + requests.add(request); + responseObserver.onNext((Tenant) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void getTenant(GetTenantRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Tenant) { + requests.add(request); + responseObserver.onNext((Tenant) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void updateTenant(UpdateTenantRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Tenant) { + requests.add(request); + responseObserver.onNext((Tenant) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void deleteTenant(DeleteTenantRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext((Empty) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void listTenants( + ListTenantsRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ListTenantsResponse) { + requests.add(request); + responseObserver.onNext((ListTenantsResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ProfileServiceClientTest.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ProfileServiceClientTest.java new file mode 100644 index 000000000000..a57b9f9d8e43 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ProfileServiceClientTest.java @@ -0,0 +1,355 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import static com.google.cloud.talent.v4beta1.ProfileServiceClient.ListProfilesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class ProfileServiceClientTest { + private static MockCompanyService mockCompanyService; + private static MockCompletion mockCompletion; + private static MockEventService mockEventService; + private static MockJobService mockJobService; + private static MockProfileService mockProfileService; + private static MockResumeService mockResumeService; + private static MockTenantService mockTenantService; + private static MockServiceHelper serviceHelper; + private ProfileServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockCompanyService = new MockCompanyService(); + mockCompletion = new MockCompletion(); + mockEventService = new MockEventService(); + mockJobService = new MockJobService(); + mockProfileService = new MockProfileService(); + mockResumeService = new MockResumeService(); + mockTenantService = new MockTenantService(); + serviceHelper = + new MockServiceHelper( + "in-process-1", + Arrays.asList( + mockCompanyService, + mockCompletion, + mockEventService, + mockJobService, + mockProfileService, + mockResumeService, + mockTenantService)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + ProfileServiceSettings settings = + ProfileServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ProfileServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void listProfilesTest() { + String nextPageToken = ""; + Profile profilesElement = Profile.newBuilder().build(); + List profiles = Arrays.asList(profilesElement); + ListProfilesResponse expectedResponse = + ListProfilesResponse.newBuilder() + .setNextPageToken(nextPageToken) + .addAllProfiles(profiles) + .build(); + mockProfileService.addResponse(expectedResponse); + + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + + ListProfilesPagedResponse pagedListResponse = client.listProfiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getProfilesList().get(0), resources.get(0)); + + List actualRequests = mockProfileService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListProfilesRequest actualRequest = (ListProfilesRequest) actualRequests.get(0); + + Assert.assertEquals(parent, TenantName.parse(actualRequest.getParent())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void listProfilesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockProfileService.addException(exception); + + try { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + + client.listProfiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void createProfileTest() { + ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]"); + String externalId = "externalId-1153075697"; + String source = "source-896505829"; + String uri = "uri116076"; + String groupId = "groupId506361563"; + String resumeHrxml = "resumeHrxml1834730555"; + boolean processed = true; + String keywordSnippet = "keywordSnippet1325317319"; + Profile expectedResponse = + Profile.newBuilder() + .setName(name.toString()) + .setExternalId(externalId) + .setSource(source) + .setUri(uri) + .setGroupId(groupId) + .setResumeHrxml(resumeHrxml) + .setProcessed(processed) + .setKeywordSnippet(keywordSnippet) + .build(); + mockProfileService.addResponse(expectedResponse); + + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + Profile profile = Profile.newBuilder().build(); + + Profile actualResponse = client.createProfile(parent, profile); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockProfileService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateProfileRequest actualRequest = (CreateProfileRequest) actualRequests.get(0); + + Assert.assertEquals(parent, TenantName.parse(actualRequest.getParent())); + Assert.assertEquals(profile, actualRequest.getProfile()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void createProfileExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockProfileService.addException(exception); + + try { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + Profile profile = Profile.newBuilder().build(); + + client.createProfile(parent, profile); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void getProfileTest() { + ProfileName name2 = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]"); + String externalId = "externalId-1153075697"; + String source = "source-896505829"; + String uri = "uri116076"; + String groupId = "groupId506361563"; + String resumeHrxml = "resumeHrxml1834730555"; + boolean processed = true; + String keywordSnippet = "keywordSnippet1325317319"; + Profile expectedResponse = + Profile.newBuilder() + .setName(name2.toString()) + .setExternalId(externalId) + .setSource(source) + .setUri(uri) + .setGroupId(groupId) + .setResumeHrxml(resumeHrxml) + .setProcessed(processed) + .setKeywordSnippet(keywordSnippet) + .build(); + mockProfileService.addResponse(expectedResponse); + + ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]"); + + Profile actualResponse = client.getProfile(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockProfileService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetProfileRequest actualRequest = (GetProfileRequest) actualRequests.get(0); + + Assert.assertEquals(name, ProfileName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getProfileExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockProfileService.addException(exception); + + try { + ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]"); + + client.getProfile(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void updateProfileTest() { + ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]"); + String externalId = "externalId-1153075697"; + String source = "source-896505829"; + String uri = "uri116076"; + String groupId = "groupId506361563"; + String resumeHrxml = "resumeHrxml1834730555"; + boolean processed = true; + String keywordSnippet = "keywordSnippet1325317319"; + Profile expectedResponse = + Profile.newBuilder() + .setName(name.toString()) + .setExternalId(externalId) + .setSource(source) + .setUri(uri) + .setGroupId(groupId) + .setResumeHrxml(resumeHrxml) + .setProcessed(processed) + .setKeywordSnippet(keywordSnippet) + .build(); + mockProfileService.addResponse(expectedResponse); + + Profile profile = Profile.newBuilder().build(); + + Profile actualResponse = client.updateProfile(profile); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockProfileService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateProfileRequest actualRequest = (UpdateProfileRequest) actualRequests.get(0); + + Assert.assertEquals(profile, actualRequest.getProfile()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void updateProfileExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockProfileService.addException(exception); + + try { + Profile profile = Profile.newBuilder().build(); + + client.updateProfile(profile); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void deleteProfileTest() { + Empty expectedResponse = Empty.newBuilder().build(); + mockProfileService.addResponse(expectedResponse); + + ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]"); + + client.deleteProfile(name); + + List actualRequests = mockProfileService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteProfileRequest actualRequest = (DeleteProfileRequest) actualRequests.get(0); + + Assert.assertEquals(name, ProfileName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void deleteProfileExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockProfileService.addException(exception); + + try { + ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]"); + + client.deleteProfile(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ResumeServiceClientTest.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ResumeServiceClientTest.java new file mode 100644 index 000000000000..4cfe84007cf1 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ResumeServiceClientTest.java @@ -0,0 +1,139 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.protobuf.ByteString; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class ResumeServiceClientTest { + private static MockCompanyService mockCompanyService; + private static MockCompletion mockCompletion; + private static MockEventService mockEventService; + private static MockJobService mockJobService; + private static MockProfileService mockProfileService; + private static MockResumeService mockResumeService; + private static MockTenantService mockTenantService; + private static MockServiceHelper serviceHelper; + private ResumeServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockCompanyService = new MockCompanyService(); + mockCompletion = new MockCompletion(); + mockEventService = new MockEventService(); + mockJobService = new MockJobService(); + mockProfileService = new MockProfileService(); + mockResumeService = new MockResumeService(); + mockTenantService = new MockTenantService(); + serviceHelper = + new MockServiceHelper( + "in-process-1", + Arrays.asList( + mockCompanyService, + mockCompletion, + mockEventService, + mockJobService, + mockProfileService, + mockResumeService, + mockTenantService)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + ResumeServiceSettings settings = + ResumeServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ResumeServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void parseResumeTest() { + String rawText = "rawText503586532"; + ParseResumeResponse expectedResponse = + ParseResumeResponse.newBuilder().setRawText(rawText).build(); + mockResumeService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + ByteString resume = ByteString.copyFromUtf8("45"); + + ParseResumeResponse actualResponse = client.parseResume(parent, resume); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockResumeService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ParseResumeRequest actualRequest = (ParseResumeRequest) actualRequests.get(0); + + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertEquals(resume, actualRequest.getResume()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void parseResumeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockResumeService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + ByteString resume = ByteString.copyFromUtf8("45"); + + client.parseResume(parent, resume); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/TenantServiceClientTest.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/TenantServiceClientTest.java new file mode 100644 index 000000000000..e364a4be2411 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/TenantServiceClientTest.java @@ -0,0 +1,310 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import static com.google.cloud.talent.v4beta1.TenantServiceClient.ListTenantsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class TenantServiceClientTest { + private static MockCompanyService mockCompanyService; + private static MockCompletion mockCompletion; + private static MockEventService mockEventService; + private static MockJobService mockJobService; + private static MockProfileService mockProfileService; + private static MockResumeService mockResumeService; + private static MockTenantService mockTenantService; + private static MockServiceHelper serviceHelper; + private TenantServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockCompanyService = new MockCompanyService(); + mockCompletion = new MockCompletion(); + mockEventService = new MockEventService(); + mockJobService = new MockJobService(); + mockProfileService = new MockProfileService(); + mockResumeService = new MockResumeService(); + mockTenantService = new MockTenantService(); + serviceHelper = + new MockServiceHelper( + "in-process-1", + Arrays.asList( + mockCompanyService, + mockCompletion, + mockEventService, + mockJobService, + mockProfileService, + mockResumeService, + mockTenantService)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + TenantServiceSettings settings = + TenantServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TenantServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void createTenantTest() { + TenantName name = TenantName.of("[PROJECT]", "[TENANT]"); + String externalId = "externalId-1153075697"; + Tenant expectedResponse = + Tenant.newBuilder().setName(name.toString()).setExternalId(externalId).build(); + mockTenantService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + Tenant tenant = Tenant.newBuilder().build(); + + Tenant actualResponse = client.createTenant(parent, tenant); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTenantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateTenantRequest actualRequest = (CreateTenantRequest) actualRequests.get(0); + + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertEquals(tenant, actualRequest.getTenant()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void createTenantExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockTenantService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + Tenant tenant = Tenant.newBuilder().build(); + + client.createTenant(parent, tenant); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void getTenantTest() { + TenantName name2 = TenantName.of("[PROJECT]", "[TENANT]"); + String externalId = "externalId-1153075697"; + Tenant expectedResponse = + Tenant.newBuilder().setName(name2.toString()).setExternalId(externalId).build(); + mockTenantService.addResponse(expectedResponse); + + TenantName name = TenantName.of("[PROJECT]", "[TENANT]"); + + Tenant actualResponse = client.getTenant(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTenantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTenantRequest actualRequest = (GetTenantRequest) actualRequests.get(0); + + Assert.assertEquals(name, TenantName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getTenantExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockTenantService.addException(exception); + + try { + TenantName name = TenantName.of("[PROJECT]", "[TENANT]"); + + client.getTenant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void updateTenantTest() { + TenantName name = TenantName.of("[PROJECT]", "[TENANT]"); + String externalId = "externalId-1153075697"; + Tenant expectedResponse = + Tenant.newBuilder().setName(name.toString()).setExternalId(externalId).build(); + mockTenantService.addResponse(expectedResponse); + + Tenant tenant = Tenant.newBuilder().build(); + + Tenant actualResponse = client.updateTenant(tenant); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTenantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateTenantRequest actualRequest = (UpdateTenantRequest) actualRequests.get(0); + + Assert.assertEquals(tenant, actualRequest.getTenant()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void updateTenantExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockTenantService.addException(exception); + + try { + Tenant tenant = Tenant.newBuilder().build(); + + client.updateTenant(tenant); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void deleteTenantTest() { + Empty expectedResponse = Empty.newBuilder().build(); + mockTenantService.addResponse(expectedResponse); + + TenantName name = TenantName.of("[PROJECT]", "[TENANT]"); + + client.deleteTenant(name); + + List actualRequests = mockTenantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteTenantRequest actualRequest = (DeleteTenantRequest) actualRequests.get(0); + + Assert.assertEquals(name, TenantName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void deleteTenantExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockTenantService.addException(exception); + + try { + TenantName name = TenantName.of("[PROJECT]", "[TENANT]"); + + client.deleteTenant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void listTenantsTest() { + String nextPageToken = ""; + Tenant tenantsElement = Tenant.newBuilder().build(); + List tenants = Arrays.asList(tenantsElement); + ListTenantsResponse expectedResponse = + ListTenantsResponse.newBuilder() + .setNextPageToken(nextPageToken) + .addAllTenants(tenants) + .build(); + mockTenantService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListTenantsPagedResponse pagedListResponse = client.listTenants(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTenantsList().get(0), resources.get(0)); + + List actualRequests = mockTenantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTenantsRequest actualRequest = (ListTenantsRequest) actualRequests.get(0); + + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void listTenantsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockTenantService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + + client.listTenants(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/synth.py b/google-cloud-clients/google-cloud-talent/synth.py new file mode 100644 index 000000000000..4e7f3014f927 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/synth.py @@ -0,0 +1,40 @@ +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +"""This script is used to synthesize generated parts of this library.""" + +import synthtool as s +import synthtool.gcp as gcp +import synthtool.languages.java as java + +gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +versions = ['v4beta1'] +service = 'talent' + +for version in versions: + library = gapic.java_library( + service=service, + version=version, + config_path=f'/google/cloud/talent/artman_talent_v4beta1.yaml', + artman_output_name='') + + s.copy(library / f'gapic-google-cloud-{service}-{version}/src', 'src') + s.copy(library / f'grpc-google-cloud-{service}-{version}/src', f'../../google-api-grpc/grpc-google-cloud-{service}-{version}/src') + s.copy(library / f'proto-google-cloud-{service}-{version}/src', f'../../google-api-grpc/proto-google-cloud-{service}-{version}/src') + + java.format_code('./src') + java.format_code(f'../../google-api-grpc/grpc-google-cloud-{service}-{version}/src') + java.format_code(f'../../google-api-grpc/proto-google-cloud-{service}-{version}/src') \ No newline at end of file diff --git a/google-cloud-clients/pom.xml b/google-cloud-clients/pom.xml index 6329f703ed28..4ab56ff7a62e 100644 --- a/google-cloud-clients/pom.xml +++ b/google-cloud-clients/pom.xml @@ -453,6 +453,7 @@ google-cloud-spanner google-cloud-speech google-cloud-storage + google-cloud-talent google-cloud-tasks google-cloud-texttospeech google-cloud-trace @@ -784,7 +785,7 @@ Stub packages - com.google.cloud.asset.v1beta1.stub:com.google.cloud.automl.v1beta1.stub:com.google.cloud.bigquerydatatransfer.v1.stub:com.google.cloud.bigquerystorage.v1beta1.stub:com.google.cloud.bigtable-admin.v2.stub:com.google.cloud.bigtable.v2.stub:com.google.cloud.container.v1.stub:com.google.cloud.containeranalysis.v1beta1.stub:com.google.cloud.dataproc.v1.stub:com.google.cloud.dataproc.v1beta2.stub:com.google.cloud.dialogflow.v2.stub:com.google.cloud.dialogflow.v2beta1.stub:com.google.cloud.dlp.v2.stub:com.google.cloud.error-reporting.v1beta1.stub:com.google.cloud.firestore.v1.stub:com.google.cloud.firestore.v1beta1.stub:com.google.cloud.iamcredentials.v1.stub:com.google.cloud.iot.v1.stub:com.google.cloud.kms.v1.stub:com.google.cloud.language.v1.stub:com.google.cloud.language.v1beta2.stub:com.google.cloud.logging.v2.stub:com.google.cloud.monitoring.v3.stub:com.google.cloud.os-login.v1.stub:com.google.cloud.pubsub.v1.stub:com.google.cloud.redis.v1.stub:com.google.cloud.redis.v1beta1.stub:com.google.cloud.scheduler.v1beta1.stub:com.google.cloud.securitycenter.v1beta1.stub:com.google.cloud.spanner-admin-database.v1.stub:com.google.cloud.spanner-admin-instance.v1.stub:com.google.cloud.spanner.v1.stub:com.google.cloud.speech.v1.stub:com.google.cloud.speech.v1beta1.stub:com.google.cloud.speech.v1p1beta1.stub:com.google.cloud.tasks.v2beta2.stub:com.google.cloud.tasks.v2beta3.stub:com.google.cloud.texttospeech.v1.stub:com.google.cloud.texttospeech.v1beta1.stub:com.google.cloud.trace.v1.stub:com.google.cloud.trace.v2.stub:com.google.cloud.video-intelligence.v1.stub:com.google.cloud.video-intelligence.v1beta1.stub:com.google.cloud.video-intelligence.v1beta2.stub:com.google.cloud.video-intelligence.v1p1beta1.stub:com.google.cloud.video-intelligence.v1p2beta1.stub:com.google.cloud.vision.v1.stub:com.google.cloud.vision.v1p1beta1.stub:com.google.cloud.vision.v1p2beta1.stub:com.google.cloud.vision.v1p3beta1.stub:com.google.cloud.vision.v1p4beta1.stub:com.google.cloud.websecurityscanner.v1alpha.stub + com.google.cloud.asset.v1beta1.stub:com.google.cloud.automl.v1beta1.stub:com.google.cloud.bigquerydatatransfer.v1.stub:com.google.cloud.bigquerystorage.v1beta1.stub:com.google.cloud.bigtable-admin.v2.stub:com.google.cloud.bigtable.v2.stub:com.google.cloud.container.v1.stub:com.google.cloud.containeranalysis.v1beta1.stub:com.google.cloud.dataproc.v1.stub:com.google.cloud.dataproc.v1beta2.stub:com.google.cloud.dialogflow.v2.stub:com.google.cloud.dialogflow.v2beta1.stub:com.google.cloud.dlp.v2.stub:com.google.cloud.error-reporting.v1beta1.stub:com.google.cloud.firestore.v1.stub:com.google.cloud.firestore.v1beta1.stub:com.google.cloud.iamcredentials.v1.stub:com.google.cloud.iot.v1.stub:com.google.cloud.kms.v1.stub:com.google.cloud.language.v1.stub:com.google.cloud.language.v1beta2.stub:com.google.cloud.logging.v2.stub:com.google.cloud.monitoring.v3.stub:com.google.cloud.os-login.v1.stub:com.google.cloud.pubsub.v1.stub:com.google.cloud.redis.v1.stub:com.google.cloud.redis.v1beta1.stub:com.google.cloud.scheduler.v1.stub:com.google.cloud.scheduler.v1beta1.stub:com.google.cloud.securitycenter.v1.stub:com.google.cloud.securitycenter.v1beta1.stub:com.google.cloud.spanner-admin-database.v1.stub:com.google.cloud.spanner-admin-instance.v1.stub:com.google.cloud.spanner.v1.stub:com.google.cloud.speech.v1.stub:com.google.cloud.speech.v1beta1.stub:com.google.cloud.speech.v1p1beta1.stub:com.google.cloud.talent.v4beta1.stub:com.google.cloud.tasks.v2beta2.stub:com.google.cloud.tasks.v2beta3.stub:com.google.cloud.texttospeech.v1.stub:com.google.cloud.texttospeech.v1beta1.stub:com.google.cloud.trace.v1.stub:com.google.cloud.trace.v2.stub:com.google.cloud.video-intelligence.v1.stub:com.google.cloud.video-intelligence.v1beta1.stub:com.google.cloud.video-intelligence.v1beta2.stub:com.google.cloud.video-intelligence.v1p1beta1.stub:com.google.cloud.video-intelligence.v1p2beta1.stub:com.google.cloud.video-intelligence.v1p3beta1.stub:com.google.cloud.vision.v1.stub:com.google.cloud.vision.v1p1beta1.stub:com.google.cloud.vision.v1p2beta1.stub:com.google.cloud.vision.v1p3beta1.stub:com.google.cloud.vision.v1p4beta1.stub:com.google.cloud.websecurityscanner.v1alpha.stub Deprecated packages diff --git a/versions.txt b/versions.txt index 22870c7dd649..081f21b9178d 100644 --- a/versions.txt +++ b/versions.txt @@ -53,6 +53,7 @@ google-cloud-securitycenter:0.83.0-alpha:0.83.1-alpha-SNAPSHOT google-cloud-spanner:1.10.0:1.10.1-SNAPSHOT google-cloud-speech:0.83.0-beta:0.83.1-beta-SNAPSHOT google-cloud-storage:1.65.0:1.65.1-SNAPSHOT +google-cloud-talent:0.0.0-beta:0.0.1-beta-SNAPSHOT google-cloud-tasks:0.83.0-beta:0.83.1-beta-SNAPSHOT google-cloud-testing:0.83.0-alpha:0.83.1-alpha-SNAPSHOT google-cloud-texttospeech:0.83.0-beta:0.83.1-beta-SNAPSHOT @@ -76,8 +77,8 @@ grpc-google-cloud-dialogflow-v2:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-dialogflow-v2beta1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-dlp-v2:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-error-reporting-v1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-firestore-v1beta1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-firestore-v1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-firestore-v1beta1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-iamcredentials-v1:0.10.0-alpha:0.10.1-alpha-SNAPSHOT grpc-google-cloud-iot-v1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-kms-v1:0.48.0:0.48.1-SNAPSHOT @@ -89,16 +90,17 @@ grpc-google-cloud-os-login-v1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-pubsub-v1:1.47.0:1.47.1-SNAPSHOT grpc-google-cloud-redis-v1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-redis-v1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-scheduler-v1beta1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-scheduler-v1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-securitycenter-v1beta1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-scheduler-v1beta1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-securitycenter-v1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-securitycenter-v1beta1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-spanner-admin-database-v1:1.10.0:1.10.1-SNAPSHOT grpc-google-cloud-spanner-admin-instance-v1:1.10.0:1.10.1-SNAPSHOT grpc-google-cloud-spanner-v1:1.10.0:1.10.1-SNAPSHOT grpc-google-cloud-speech-v1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-speech-v1beta1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-speech-v1p1beta1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-talent-v4beta1:0.0.0-beta:0.0.1-beta-SNAPSHOT grpc-google-cloud-tasks-v2beta2:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-tasks-v2beta3:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-texttospeech-v1:0.48.0:0.48.1-SNAPSHOT @@ -132,8 +134,8 @@ proto-google-cloud-dialogflow-v2:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-dialogflow-v2beta1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-dlp-v2:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-error-reporting-v1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-firestore-v1beta1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-firestore-v1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-firestore-v1beta1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-iamcredentials-v1:0.10.0-alpha:0.10.1-alpha-SNAPSHOT proto-google-cloud-iot-v1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-kms-v1:0.48.0:0.48.1-SNAPSHOT @@ -145,16 +147,17 @@ proto-google-cloud-os-login-v1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-pubsub-v1:1.47.0:1.47.1-SNAPSHOT proto-google-cloud-redis-v1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-redis-v1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-scheduler-v1beta1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-scheduler-v1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-securitycenter-v1beta1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-scheduler-v1beta1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-securitycenter-v1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-securitycenter-v1beta1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-spanner-admin-database-v1:1.10.0:1.10.1-SNAPSHOT proto-google-cloud-spanner-admin-instance-v1:1.10.0:1.10.1-SNAPSHOT proto-google-cloud-spanner-v1:1.10.0:1.10.1-SNAPSHOT proto-google-cloud-speech-v1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-speech-v1beta1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-speech-v1p1beta1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-talent-v4beta1:0.0.0-beta:0.0.1-beta-SNAPSHOT proto-google-cloud-tasks-v2beta2:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-tasks-v2beta3:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-texttospeech-v1:0.48.0:0.48.1-SNAPSHOT From e9ed7b0fba36cbe562cba08500bb4ae4a451040b Mon Sep 17 00:00:00 2001 From: dietervdw-spotify <36199260+dietervdw-spotify@users.noreply.github.com> Date: Tue, 19 Mar 2019 19:40:12 +0100 Subject: [PATCH 08/20] Add MDC support in Logback appender (#4477) --- .../logging/logback/LoggingAppender.java | 5 ++++ .../logging/logback/LoggingAppenderTest.java | 30 +++++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/src/main/java/com/google/cloud/logging/logback/LoggingAppender.java b/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/src/main/java/com/google/cloud/logging/logback/LoggingAppender.java index 547ca81da6fa..23d5e4183fdf 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/src/main/java/com/google/cloud/logging/logback/LoggingAppender.java +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/src/main/java/com/google/cloud/logging/logback/LoggingAppender.java @@ -36,6 +36,7 @@ import java.util.Collections; import java.util.HashSet; import java.util.List; +import java.util.Map; import java.util.Set; /** @@ -232,6 +233,10 @@ private LogEntry logEntryFor(ILoggingEvent e) { .addLabel(LEVEL_NAME_KEY, level.toString()) .addLabel(LEVEL_VALUE_KEY, String.valueOf(level.toInt())); + for (Map.Entry entry : e.getMDCPropertyMap().entrySet()) { + builder.addLabel(entry.getKey(), entry.getValue()); + } + if (loggingEnhancers != null) { for (LoggingEnhancer enhancer : loggingEnhancers) { enhancer.enhanceLogEntry(builder); diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/src/test/java/com/google/cloud/logging/logback/LoggingAppenderTest.java b/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/src/test/java/com/google/cloud/logging/logback/LoggingAppenderTest.java index ed43475e3897..5855c80177d7 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/src/test/java/com/google/cloud/logging/logback/LoggingAppenderTest.java +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/src/test/java/com/google/cloud/logging/logback/LoggingAppenderTest.java @@ -181,6 +181,36 @@ public void testDefaultWriteOptionsHasExpectedDefaults() { // assertThat(resourceArg.getValue()).isEqualTo(defaultWriteOptions[1]); } + @Test + public void testMdcValuesAreConvertedToLabels() { + LogEntry logEntry = + LogEntry.newBuilder(StringPayload.of("this is a test")) + .setTimestamp(100000L) + .setSeverity(Severity.INFO) + .setLabels( + new ImmutableMap.Builder() + .put("levelName", "INFO") + .put("levelValue", String.valueOf(20000L)) + .put("mdc1", "value1") + .put("mdc2", "value2") + .build()) + .build(); + logging.setFlushSeverity(Severity.ERROR); + Capture> capturedArgument = Capture.newInstance(); + logging.write(capture(capturedArgument), (WriteOption) anyObject(), (WriteOption) anyObject()); + expectLastCall().once(); + replay(logging); + Timestamp timestamp = Timestamp.ofTimeSecondsAndNanos(100000, 0); + LoggingEvent loggingEvent = createLoggingEvent(Level.INFO, timestamp.getSeconds()); + loggingEvent.setMDCPropertyMap(ImmutableMap.of("mdc1", "value1", "mdc2", "value2")); + loggingAppender.start(); + // info event does not get logged + loggingAppender.doAppend(loggingEvent); + verify(logging); + assertThat(capturedArgument.getValue().iterator().hasNext()).isTrue(); + assertThat(capturedArgument.getValue().iterator().next()).isEqualTo(logEntry); + } + private LoggingEvent createLoggingEvent(Level level, long timestamp) { LoggingEvent loggingEvent = new LoggingEvent(); loggingEvent.setMessage("this is a test"); From 242a655231295afd3da1fbaf36cc56031eb7adcd Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Tue, 19 Mar 2019 11:46:52 -0700 Subject: [PATCH 09/20] Firestore: Update CustomClassMapper (#4675) * Firestore: Update CustomClassMapper * Adding Unit tests * Lint fix --- .../cloud/firestore/CustomClassMapper.java | 74 +++++++++++-------- .../firestore/DocumentReferenceTest.java | 66 +++++++++++++++++ .../cloud/firestore/LocalFirestoreHelper.java | 34 +++++++++ 3 files changed, 144 insertions(+), 30 deletions(-) diff --git a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/CustomClassMapper.java b/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/CustomClassMapper.java index 1ba2de65328f..fc9f009e8581 100644 --- a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/CustomClassMapper.java +++ b/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/CustomClassMapper.java @@ -72,7 +72,7 @@ private static void hardAssert(boolean assertion, String message) { * @param object The representation of the JSON data * @return JSON representation containing only standard library Java types */ - public static Object convertToPlainJavaTypes(Object object) { + static Object convertToPlainJavaTypes(Object object) { return serialize(object); } @@ -92,11 +92,11 @@ public static Map convertToPlainJavaTypes(Map update) * @param clazz The class of the object to convert to * @return The POJO object. */ - public static T convertToCustomClass(Object object, Class clazz) { + static T convertToCustomClass(Object object, Class clazz) { return deserializeToClass(object, clazz, ErrorPath.EMPTY); } - protected static Object serialize(T o) { + static Object serialize(T o) { return serialize(o, ErrorPath.EMPTY); } @@ -112,22 +112,21 @@ private static Object serialize(T o, ErrorPath path) { if (o == null) { return null; } else if (o instanceof Number) { - if (o instanceof Float) { - return ((Float) o).doubleValue(); - } else if (o instanceof Short) { - throw serializeError(path, "Shorts are not supported, please use int or long"); - } else if (o instanceof Byte) { - throw serializeError(path, "Bytes are not supported, please use int or long"); - } else { - // Long, Integer, Double + if (o instanceof Long || o instanceof Integer || o instanceof Double || o instanceof Float) { return o; + } else { + throw serializeError( + path, + String.format( + "Numbers of type %s are not supported, please use an int, long, float or double", + o.getClass().getSimpleName())); } } else if (o instanceof String) { return o; } else if (o instanceof Boolean) { return o; } else if (o instanceof Character) { - throw serializeError(path, "Characters are not supported, please use Strings."); + throw serializeError(path, "Characters are not supported, please use Strings"); } else if (o instanceof Map) { Map result = new HashMap<>(); for (Map.Entry entry : ((Map) o).entrySet()) { @@ -155,7 +154,13 @@ private static Object serialize(T o, ErrorPath path) { } else if (o.getClass().isArray()) { throw serializeError(path, "Serializing Arrays is not supported, please use Lists instead"); } else if (o instanceof Enum) { - return ((Enum) o).name(); + String enumName = ((Enum) o).name(); + try { + Field enumField = o.getClass().getField(enumName); + return BeanMapper.propertyName(enumField); + } catch (NoSuchFieldException ex) { + return enumName; + } } else if (o instanceof Date || o instanceof Timestamp || o instanceof GeoPoint @@ -212,7 +217,7 @@ private static T deserializeToClass(Object o, Class clazz, ErrorPath path || Number.class.isAssignableFrom(clazz) || Boolean.class.isAssignableFrom(clazz) || Character.class.isAssignableFrom(clazz)) { - return (T) deserializeToPrimitive(o, clazz, path); + return deserializeToPrimitive(o, clazz, path); } else if (String.class.isAssignableFrom(clazz)) { return (T) convertString(o, path); } else if (Date.class.isAssignableFrom(clazz)) { @@ -306,14 +311,10 @@ private static T deserializeToPrimitive(Object o, Class clazz, ErrorPath return (T) convertLong(o, path); } else if (Float.class.isAssignableFrom(clazz) || float.class.isAssignableFrom(clazz)) { return (T) (Float) convertDouble(o, path).floatValue(); - } else if (Short.class.isAssignableFrom(clazz) || short.class.isAssignableFrom(clazz)) { - throw deserializeError(path, "Deserializing to shorts is not supported"); - } else if (Byte.class.isAssignableFrom(clazz) || byte.class.isAssignableFrom(clazz)) { - throw deserializeError(path, "Deserializing to bytes is not supported"); - } else if (Character.class.isAssignableFrom(clazz) || char.class.isAssignableFrom(clazz)) { - throw deserializeError(path, "Deserializing to chars is not supported"); } else { - throw new IllegalArgumentException("Unknown primitive type: " + clazz); + throw deserializeError( + path, + String.format("Deserializing values to %s is not supported", clazz.getSimpleName())); } } @@ -323,6 +324,19 @@ private static T deserializeToEnum(Object object, Class clazz, ErrorPath String value = (String) object; // We cast to Class without generics here since we can't prove the bound // T extends Enum statically + + // try to use PropertyName if exist + Field[] enumFields = clazz.getFields(); + for (Field field : enumFields) { + if (field.isEnumConstant()) { + String propertyName = BeanMapper.propertyName(field); + if (value.equals(propertyName)) { + value = field.getName(); + break; + } + } + } + try { return (T) Enum.valueOf((Class) clazz, value); } catch (IllegalArgumentException e) { @@ -355,7 +369,7 @@ private static BeanMapper loadOrCreateBeanMapperForClass(Class clazz) @SuppressWarnings("unchecked") private static Map expectMap(Object object, ErrorPath path) { if (object instanceof Map) { - // TODO(dimond): runtime validation of keys? + // TODO: runtime validation of keys? return (Map) object; } else { throw deserializeError( @@ -508,12 +522,12 @@ private static T convertBean(Object o, Class clazz, ErrorPath path) { } } - private static RuntimeException serializeError(ErrorPath path, String reason) { + private static IllegalArgumentException serializeError(ErrorPath path, String reason) { reason = "Could not serialize object. " + reason; if (path.getLength() > 0) { reason = reason + " (found in field '" + path.toString() + "')"; } - return new RuntimeException(reason); + return new IllegalArgumentException(reason); } private static RuntimeException deserializeError(ErrorPath path, String reason) { @@ -539,7 +553,7 @@ private static class BeanMapper { // A list of any properties that were annotated with @ServerTimestamp. private final HashSet serverTimestamps; - public BeanMapper(Class clazz) { + BeanMapper(Class clazz) { this.clazz = clazz; throwOnUnknownProperties = clazz.isAnnotationPresent(ThrowOnExtraProperties.class); warnOnUnknownProperties = !clazz.isAnnotationPresent(IgnoreExtraProperties.class); @@ -614,7 +628,7 @@ public BeanMapper(Class clazz) { // We require that setters with conflicting property names are // overrides from a base class if (currentClass == clazz) { - // TODO(mikelehen): Should we support overloads? + // TODO: Should we support overloads? throw new RuntimeException( "Class " + clazz.getName() @@ -670,11 +684,11 @@ private void addProperty(String property) { } } - public T deserialize(Map values, ErrorPath path) { + T deserialize(Map values, ErrorPath path) { return deserialize(values, Collections.>, Type>emptyMap(), path); } - public T deserialize( + T deserialize( Map values, Map>, Type> types, ErrorPath path) { if (constructor == null) { throw deserializeError( @@ -746,7 +760,7 @@ private Type resolveType(Type type, Map>, Type> types) { } } - public Map serialize(T object, ErrorPath path) { + Map serialize(T object, ErrorPath path) { if (!clazz.isAssignableFrom(object.getClass())) { throw new IllegalArgumentException( "Can't serialize object of class " @@ -992,7 +1006,7 @@ int getLength() { return length; } - public ErrorPath child(String name) { + ErrorPath child(String name) { return new ErrorPath(this, name, length + 1); } diff --git a/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/DocumentReferenceTest.java b/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/DocumentReferenceTest.java index f441f06efd70..f3c7f767459d 100644 --- a/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/DocumentReferenceTest.java +++ b/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/DocumentReferenceTest.java @@ -66,6 +66,7 @@ import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.Timestamp; +import com.google.cloud.firestore.LocalFirestoreHelper.InvalidPOJO; import com.google.cloud.firestore.spi.v1.FirestoreRpc; import com.google.common.collect.ImmutableList; import com.google.firestore.v1.BatchGetDocumentsRequest; @@ -73,12 +74,14 @@ import com.google.firestore.v1.CommitRequest; import com.google.firestore.v1.CommitResponse; import com.google.firestore.v1.Value; +import java.math.BigInteger; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; @@ -166,6 +169,38 @@ public void serializeDocumentReference() throws Exception { assertCommitEquals(commit(set(documentReferenceFields)), commitCapture.getValue()); } + @Test + public void doesNotSerializeAdvancedNumberTypes() { + Map expectedErrorMessages = new HashMap<>(); + + InvalidPOJO pojo = new InvalidPOJO(); + pojo.bigIntegerValue = new BigInteger("0"); + expectedErrorMessages.put( + pojo, + "Could not serialize object. Numbers of type BigInteger are not supported, please use an int, long, float or double (found in field 'bigIntegerValue')"); + + pojo = new InvalidPOJO(); + pojo.byteValue = 0; + expectedErrorMessages.put( + pojo, + "Could not serialize object. Numbers of type Byte are not supported, please use an int, long, float or double (found in field 'byteValue')"); + + pojo = new InvalidPOJO(); + pojo.shortValue = 0; + expectedErrorMessages.put( + pojo, + "Could not serialize object. Numbers of type Short are not supported, please use an int, long, float or double (found in field 'shortValue')"); + + for (Map.Entry testCase : expectedErrorMessages.entrySet()) { + try { + documentReference.set(testCase.getKey()); + fail(); + } catch (IllegalArgumentException e) { + assertEquals(testCase.getValue(), e.getMessage()); + } + } + } + @Test public void deserializeBasicTypes() throws Exception { doAnswer(getAllResponse(ALL_SUPPORTED_TYPES_PROTO)) @@ -264,6 +299,37 @@ public void deserializesDates() throws Exception { assertEquals(TIMESTAMP, snapshot.getData().get("timestampValue")); } + @Test + public void doesNotDeserializeAdvancedNumberTypes() throws Exception { + Map fieldNamesToTypeNames = + map("bigIntegerValue", "BigInteger", "shortValue", "Short", "byteValue", "Byte"); + + for (Entry testCase : fieldNamesToTypeNames.entrySet()) { + String fieldName = testCase.getKey(); + String typeName = testCase.getValue(); + Map response = map(fieldName, Value.newBuilder().setIntegerValue(0).build()); + + doAnswer(getAllResponse(response)) + .when(firestoreMock) + .streamRequest( + getAllCapture.capture(), + streamObserverCapture.capture(), + Matchers.any()); + + DocumentSnapshot snapshot = documentReference.get().get(); + try { + snapshot.toObject(InvalidPOJO.class); + fail(); + } catch (RuntimeException e) { + assertEquals( + String.format( + "Could not deserialize object. Deserializing values to %s is not supported (found in field '%s')", + typeName, fieldName), + e.getMessage()); + } + } + } + @Test public void notFound() throws Exception { final BatchGetDocumentsResponse.Builder getDocumentResponse = diff --git a/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/LocalFirestoreHelper.java b/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/LocalFirestoreHelper.java index 20337f8e6095..c57a8e024fbd 100644 --- a/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/LocalFirestoreHelper.java +++ b/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/LocalFirestoreHelper.java @@ -52,6 +52,7 @@ import com.google.protobuf.Empty; import com.google.protobuf.NullValue; import com.google.type.LatLng; +import java.math.BigInteger; import java.nio.charset.Charset; import java.text.ParseException; import java.text.SimpleDateFormat; @@ -147,6 +148,39 @@ class Inner { } } + public static class InvalidPOJO { + @Nullable BigInteger bigIntegerValue = null; + @Nullable Byte byteValue = null; + @Nullable Short shortValue = null; + + @Nullable + public BigInteger getBigIntegerValue() { + return bigIntegerValue; + } + + public void setBigIntegerValue(@Nullable BigInteger bigIntegerValue) { + this.bigIntegerValue = bigIntegerValue; + } + + @Nullable + public Byte getByteValue() { + return byteValue; + } + + public void setByteValue(@Nullable Byte byteValue) { + this.byteValue = byteValue; + } + + @Nullable + public Short getShortValue() { + return shortValue; + } + + public void setShortValue(@Nullable Short shortValue) { + this.shortValue = shortValue; + } + } + public static Map map(K key, V value, Object... moreKeysAndValues) { Map map = new HashMap<>(); map.put(key, value); From 47662260c80f4fe3051dfb5b9bb8526647462dbb Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Wed, 20 Mar 2019 01:53:31 -0700 Subject: [PATCH 10/20] Regenerate securitycenter client (#4704) --- .../cloud/securitycenter/v1/AssetOuterClass.java | 5 +++-- .../cloud/securitycenter/v1/FindingOuterClass.java | 5 +++-- .../v1/OrganizationSettingsOuterClass.java | 5 +++-- .../securitycenter/v1/SecurityMarksOuterClass.java | 5 +++-- .../cloud/securitycenter/v1/SecuritycenterService.java | 5 +++-- .../cloud/securitycenter/v1/SourceOuterClass.java | 5 +++-- .../proto/google/cloud/securitycenter/v1/asset.proto | 1 + .../proto/google/cloud/securitycenter/v1/finding.proto | 1 + .../securitycenter/v1/organization_settings.proto | 1 + .../cloud/securitycenter/v1/security_marks.proto | 1 + .../securitycenter/v1/securitycenter_service.proto | 1 + .../proto/google/cloud/securitycenter/v1/source.proto | 1 + .../google-cloud-securitycenter/synth.metadata | 10 +++++----- 13 files changed, 29 insertions(+), 17 deletions(-) diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java index 0a1b0c5df296..4365ab2b9774 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java @@ -60,11 +60,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(\t\022\027\n\017resource_owners\030\005 \003(\t\032 \n\tIamPolicy" + "\022\023\n\013policy_blob\030\001 \001(\t\032Q\n\027ResourcePropert" + "iesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.g" - + "oogle.protobuf.Value:\0028\001B\225\001\n\"com.google." + + "oogle.protobuf.Value:\0028\001B\266\001\n\"com.google." + "cloud.securitycenter.v1P\001ZLgoogle.golang" + ".org/genproto/googleapis/cloud/securityc" + "enter/v1;securitycenter\252\002\036Google.Cloud.S" - + "ecurityCenter.V1b\006proto3" + + "ecurityCenter.V1\312\002\036Google\\Cloud\\Security" + + "Center\\V1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java index e0c07e97bbe6..04a2f1869cc8 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java @@ -48,11 +48,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "Timestamp\032O\n\025SourcePropertiesEntry\022\013\n\003ke" + "y\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.protobuf" + ".Value:\0028\001\"8\n\005State\022\025\n\021STATE_UNSPECIFIED" - + "\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020\002B\225\001\n\"com.goo" + + "\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020\002B\266\001\n\"com.goo" + "gle.cloud.securitycenter.v1P\001ZLgoogle.go" + "lang.org/genproto/googleapis/cloud/secur" + "itycenter/v1;securitycenter\252\002\036Google.Clo" - + "ud.SecurityCenter.V1b\006proto3" + + "ud.SecurityCenter.V1\312\002\036Google\\Cloud\\Secu" + + "rityCenter\\V1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java index 0144b7a5839a..66071fa3fd9c 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java @@ -42,11 +42,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".v1.OrganizationSettings.AssetDiscoveryC" + "onfig.InclusionMode\"N\n\rInclusionMode\022\036\n\032" + "INCLUSION_MODE_UNSPECIFIED\020\000\022\020\n\014INCLUDE_" - + "ONLY\020\001\022\013\n\007EXCLUDE\020\002J\004\010\004\020\005J\004\010\005\020\006B\225\001\n\"com." + + "ONLY\020\001\022\013\n\007EXCLUDE\020\002J\004\010\004\020\005J\004\010\005\020\006B\266\001\n\"com." + "google.cloud.securitycenter.v1P\001ZLgoogle" + ".golang.org/genproto/googleapis/cloud/se" + "curitycenter/v1;securitycenter\252\002\036Google." - + "Cloud.SecurityCenter.V1b\006proto3" + + "Cloud.SecurityCenter.V1\312\002\036Google\\Cloud\\S" + + "ecurityCenter\\V1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java index 0a9ad0c57199..c1a6cc560b4c 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java @@ -35,11 +35,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "SecurityMarks\022\014\n\004name\030\001 \001(\t\022G\n\005marks\030\002 \003" + "(\01328.google.cloud.securitycenter.v1.Secu" + "rityMarks.MarksEntry\032,\n\nMarksEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\225\001\n\"com.googl" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\266\001\n\"com.googl" + "e.cloud.securitycenter.v1P\001ZLgoogle.gola" + "ng.org/genproto/googleapis/cloud/securit" + "ycenter/v1;securitycenter\252\002\036Google.Cloud" - + ".SecurityCenter.V1b\006proto3" + + ".SecurityCenter.V1\312\002\036Google\\Cloud\\Securi" + + "tyCenter\\V1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java index f1bc76e24cd5..b9fd2e2b74ec 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java @@ -310,11 +310,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "organizations/*/assets/*/securityMarks}:" + "\016security_marksZ^2L/v1/{security_marks.n" + "ame=organizations/*/sources/*/findings/*" - + "/securityMarks}:\016security_marksB\225\001\n\"com." + + "/securityMarks}:\016security_marksB\266\001\n\"com." + "google.cloud.securitycenter.v1P\001ZLgoogle" + ".golang.org/genproto/googleapis/cloud/se" + "curitycenter/v1;securitycenter\252\002\036Google." - + "Cloud.SecurityCenter.V1b\006proto3" + + "Cloud.SecurityCenter.V1\312\002\036Google\\Cloud\\S" + + "ecurityCenter\\V1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java index f38499291a14..8a8b231908b7 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java @@ -29,11 +29,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "proto\022\036google.cloud.securitycenter.v1\032\034g" + "oogle/api/annotations.proto\"G\n\006Source\022\014\n" + "\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\023\n\013des" - + "cription\030\003 \001(\tJ\004\010\004\020\005B\225\001\n\"com.google.clou" + + "cription\030\003 \001(\tJ\004\010\004\020\005B\266\001\n\"com.google.clou" + "d.securitycenter.v1P\001ZLgoogle.golang.org" + "/genproto/googleapis/cloud/securitycente" + "r/v1;securitycenter\252\002\036Google.Cloud.Secur" - + "ityCenter.V1b\006proto3" + + "ityCenter.V1\312\002\036Google\\Cloud\\SecurityCent" + + "er\\V1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto index 97b5bfb0b94e..8e8bcb2979fa 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto @@ -26,6 +26,7 @@ option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1"; +option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; // Cloud Security Command Center's (Cloud SCC) representation of a Google Cloud // Platform (GCP) resource. diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto index 0c20b85f693d..2a8e75b9c348 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto @@ -26,6 +26,7 @@ option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1"; +option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; // Cloud Security Command Center (Cloud SCC) finding. // diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto index 92c2f9d5b850..05e24e28ac17 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto @@ -23,6 +23,7 @@ option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1"; +option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; // User specified settings that are attached to the Cloud Security Command // Center (Cloud SCC) organization. diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto index 00328a53d552..4ba82d974f03 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto @@ -23,6 +23,7 @@ option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1"; +option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; // User specified security marks that are attached to the parent Cloud Security // Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto index 7a5d2e744505..681956f741f0 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto @@ -36,6 +36,7 @@ option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1"; +option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; // V1 APIs for Security Center service. service SecurityCenter { diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto index 7d835ec05a74..07f4c59b2058 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto @@ -23,6 +23,7 @@ option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1"; +option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; // Cloud Security Command Center's (Cloud SCC) finding source. A finding source // is an entity or a mechanism that can produce a finding. A source is like a diff --git a/google-cloud-clients/google-cloud-securitycenter/synth.metadata b/google-cloud-clients/google-cloud-securitycenter/synth.metadata index 9d1ae46819c9..96d7b1176f39 100644 --- a/google-cloud-clients/google-cloud-securitycenter/synth.metadata +++ b/google-cloud-clients/google-cloud-securitycenter/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-03-14T07:50:15.054260Z", + "updateTime": "2019-03-20T07:51:04.644878Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.17", - "dockerImage": "googleapis/artman@sha256:7231f27272231a884e09edb5953148c85ecd8467780d33c4a35c3e507885715b" + "version": "0.16.18", + "dockerImage": "googleapis/artman@sha256:e8ac9200640e76d54643f370db71a1556bf254f565ce46b45a467bbcbacbdb37" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "d05a746ba27b89374c7407c88c0d5dabfb0afc7c", - "internalRef": "238372434" + "sha": "285b7fb430c19b2939313d79ae4ee5170d01cf35", + "internalRef": "239259121" } } ], From 8379b2c1be657233f817c25e0d3dfc99abf5a550 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Wed, 20 Mar 2019 01:54:16 -0700 Subject: [PATCH 11/20] Regenerate talent client (#4705) --- .../google-cloud-talent/synth.metadata | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 google-cloud-clients/google-cloud-talent/synth.metadata diff --git a/google-cloud-clients/google-cloud-talent/synth.metadata b/google-cloud-clients/google-cloud-talent/synth.metadata new file mode 100644 index 000000000000..b896a580b615 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/synth.metadata @@ -0,0 +1,32 @@ +{ + "updateTime": "2019-03-20T07:53:52.599485Z", + "sources": [ + { + "generator": { + "name": "artman", + "version": "0.16.18", + "dockerImage": "googleapis/artman@sha256:e8ac9200640e76d54643f370db71a1556bf254f565ce46b45a467bbcbacbdb37" + } + }, + { + "git": { + "name": "googleapis", + "remote": "https://github.com/googleapis/googleapis.git", + "sha": "285b7fb430c19b2939313d79ae4ee5170d01cf35", + "internalRef": "239259121" + } + } + ], + "destinations": [ + { + "client": { + "source": "googleapis", + "apiName": "talent", + "apiVersion": "v4beta1", + "language": "java", + "generator": "gapic", + "config": "google/cloud/talent/artman_talent_v4beta1.yaml" + } + } + ] +} \ No newline at end of file From f1d2976e9fb26c440b94b9dfa012e52493132f53 Mon Sep 17 00:00:00 2001 From: Praful Makani Date: Wed, 20 Mar 2019 19:56:43 +0530 Subject: [PATCH 12/20] BigQuery: Added missing partitioned fields to listTables. (#4701) * Add missing partitioned fields to listTables * Fix table delete in finally block * Fix test failing --- .../bigquery/spi/v2/HttpBigQueryRpc.java | 4 ++- .../cloud/bigquery/BigQueryImplTest.java | 29 ++++++++++++++++ .../cloud/bigquery/it/ITBigQueryTest.java | 34 +++++++++++++++++++ 3 files changed, 66 insertions(+), 1 deletion(-) diff --git a/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpc.java b/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpc.java index 21df417ecc41..70ade809b8ee 100644 --- a/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpc.java +++ b/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpc.java @@ -276,7 +276,9 @@ public Table apply(TableList.Tables tablePb) { .setId(tablePb.getId()) .setKind(tablePb.getKind()) .setTableReference(tablePb.getTableReference()) - .setType(tablePb.getType()); + .setType(tablePb.getType()) + .setCreationTime(tablePb.getCreationTime()) + .setTimePartitioning(tablePb.getTimePartitioning()); } })); } catch (IOException ex) { diff --git a/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java b/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java index 8ee3bac25e55..c69eb2532506 100644 --- a/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java +++ b/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java @@ -111,12 +111,25 @@ public class BigQueryImplTest { StandardTableDefinition.of(TABLE_SCHEMA); private static final ModelTableDefinition MODEL_TABLE_DEFINITION = ModelTableDefinition.newBuilder().build(); + private static final Long EXPIRATION_MS = 86400000L; + private static final Long TABLE_CREATION_TIME = 1546275600000L; + private static final TimePartitioning TIME_PARTITIONING = + TimePartitioning.of(TimePartitioning.Type.DAY, EXPIRATION_MS); + private static final StandardTableDefinition TABLE_DEFINITION_WITH_PARTITIONING = + StandardTableDefinition.newBuilder() + .setSchema(TABLE_SCHEMA) + .setTimePartitioning(TIME_PARTITIONING) + .build(); private static final TableInfo TABLE_INFO = TableInfo.of(TABLE_ID, TABLE_DEFINITION); private static final TableInfo OTHER_TABLE_INFO = TableInfo.of(OTHER_TABLE_ID, TABLE_DEFINITION); private static final TableInfo TABLE_INFO_WITH_PROJECT = TableInfo.of(TABLE_ID_WITH_PROJECT, TABLE_DEFINITION); private static final TableInfo MODEL_TABLE_INFO_WITH_PROJECT = TableInfo.of(TABLE_ID_WITH_PROJECT, MODEL_TABLE_DEFINITION); + private static final TableInfo TABLE_INFO_WITH_PARTITIONS = + TableInfo.newBuilder(TABLE_ID, TABLE_DEFINITION_WITH_PARTITIONING) + .setCreationTime(TABLE_CREATION_TIME) + .build(); private static final LoadJobConfiguration LOAD_JOB_CONFIGURATION = LoadJobConfiguration.of(TABLE_ID, "URI"); private static final LoadJobConfiguration LOAD_JOB_CONFIGURATION_WITH_PROJECT = @@ -721,6 +734,22 @@ public void testListTables() { assertArrayEquals(tableList.toArray(), Iterables.toArray(page.getValues(), Table.class)); } + @Test + public void testListTablesReturnedParameters() { + bigquery = options.getService(); + ImmutableList tableList = + ImmutableList.of( + new Table(bigquery, new TableInfo.BuilderImpl(TABLE_INFO_WITH_PARTITIONS))); + Tuple> result = + Tuple.of(CURSOR, Iterables.transform(tableList, TableInfo.TO_PB_FUNCTION)); + EasyMock.expect(bigqueryRpcMock.listTables(PROJECT, DATASET, TABLE_LIST_OPTIONS)) + .andReturn(result); + EasyMock.replay(bigqueryRpcMock); + Page
page = bigquery.listTables(DATASET, TABLE_LIST_PAGE_SIZE, TABLE_LIST_PAGE_TOKEN); + assertEquals(CURSOR, page.getNextPageToken()); + assertArrayEquals(tableList.toArray(), Iterables.toArray(page.getValues(), Table.class)); + } + @Test public void testListTablesFromDatasetId() { bigquery = options.getService(); diff --git a/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java index c7fe1ee35c75..e852cfc8a276 100644 --- a/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java +++ b/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java @@ -111,6 +111,7 @@ public class ITBigQueryTest { private static final byte[] BYTES = {0xD, 0xE, 0xA, 0xD}; private static final String BYTES_BASE64 = BaseEncoding.base64().encode(BYTES); + private static final Long EXPIRATION_MS = 86400000L; private static final Logger LOG = Logger.getLogger(ITBigQueryTest.class.getName()); private static final String DATASET = RemoteBigQueryHelper.generateDatasetName(); private static final String DESCRIPTION = "Test dataset"; @@ -607,6 +608,39 @@ public void testListTables() { assertTrue(createdTable.delete()); } + @Test + public void testListTablesWithPartitioning() { + String tableName = "test_list_tables_partitioning"; + TimePartitioning timePartitioning = TimePartitioning.of(Type.DAY, EXPIRATION_MS); + StandardTableDefinition tableDefinition = + StandardTableDefinition.newBuilder() + .setSchema(TABLE_SCHEMA) + .setTimePartitioning(timePartitioning) + .build(); + TableInfo tableInfo = TableInfo.of(TableId.of(DATASET, tableName), tableDefinition); + Table createdPartitioningTable = bigquery.create(tableInfo); + assertNotNull(createdPartitioningTable); + try { + Page
tables = bigquery.listTables(DATASET); + boolean found = false; + Iterator
tableIterator = tables.getValues().iterator(); + while (tableIterator.hasNext() && !found) { + StandardTableDefinition standardTableDefinition = tableIterator.next().getDefinition(); + if (standardTableDefinition.getTimePartitioning() != null + && standardTableDefinition.getTimePartitioning().getType().equals(Type.DAY) + && standardTableDefinition + .getTimePartitioning() + .getExpirationMs() + .equals(EXPIRATION_MS)) { + found = true; + } + } + assertTrue(found); + } finally { + createdPartitioningTable.delete(); + } + } + @Test public void testUpdateTable() { String tableName = "test_update_table"; From e3e812b42322a1587cc5a648035dd5dbd39743b9 Mon Sep 17 00:00:00 2001 From: Dino Oliva Date: Wed, 20 Mar 2019 07:28:12 -0700 Subject: [PATCH 13/20] OpenCensus Support for Cloud Pub/Sub (#4240) * Adds OpenCensus context propagation to Publisher and Subscriber. * Updates OpenCensus attribute keys so that they will be propagated by CPS. * Addresses reviewer comments by fixing build files and using only defined annotations. * Updates build dependencies and copyright date. * Fixes typo. * Removes encoding of OpenCensus tags. Will re-enable once text encoding spec has been finalized (https://github.com/census-instrumentation/opencensus-specs/issues/65). * Updates encoding of SpanContext to use W3C specified encoding; Also preserves sampling decision from the publisher in the subscriber. * Adds unit test for OpenCensusUtil. * Adds unit test for OpenCensusUtil. * Updates OpenCensus integration to use a generic MessageTransform. * Removes now-unused private constant. * Update pom.xml * Marking setTransform as BetaApi * Fixes for formatting issues. --- .../google-cloud-pubsub/pom.xml | 6 + .../cloud/pubsub/v1/OpenCensusUtil.java | 175 ++++++++++++++++++ .../com/google/cloud/pubsub/v1/Publisher.java | 23 +++ .../cloud/pubsub/v1/OpenCensusUtilTest.java | 139 ++++++++++++++ 4 files changed, 343 insertions(+) create mode 100644 google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenCensusUtil.java create mode 100644 google-cloud-clients/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java diff --git a/google-cloud-clients/google-cloud-pubsub/pom.xml b/google-cloud-clients/google-cloud-pubsub/pom.xml index bb1935fbcaca..9b904e790482 100644 --- a/google-cloud-clients/google-cloud-pubsub/pom.xml +++ b/google-cloud-clients/google-cloud-pubsub/pom.xml @@ -78,6 +78,12 @@ grpc-google-iam-v1 test + + io.opencensus + opencensus-impl + ${opencensus.version} + test + com.google.api diff --git a/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenCensusUtil.java b/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenCensusUtil.java new file mode 100644 index 000000000000..018c63452640 --- /dev/null +++ b/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenCensusUtil.java @@ -0,0 +1,175 @@ +/* Copyright 2019 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import com.google.api.core.ApiFunction; +import com.google.common.annotations.VisibleForTesting; +import com.google.errorprone.annotations.MustBeClosed; +import com.google.pubsub.v1.PubsubMessage; +import io.opencensus.common.Scope; +import io.opencensus.tags.TagContext; +import io.opencensus.tags.Tagger; +import io.opencensus.tags.Tags; +import io.opencensus.tags.propagation.TagContextBinarySerializer; +import io.opencensus.trace.Link; +import io.opencensus.trace.SpanContext; +import io.opencensus.trace.Tracer; +import io.opencensus.trace.Tracing; +import io.opencensus.trace.propagation.SpanContextParseException; +import io.opencensus.trace.propagation.TextFormat; +import io.opencensus.trace.propagation.TextFormat.Getter; +import io.opencensus.trace.propagation.TextFormat.Setter; +import io.opencensus.trace.samplers.Samplers; +import java.util.logging.Level; +import java.util.logging.Logger; + +/** + * Utilities for propagating OpenCensus {@link TagContext} and {@link SpanContext} from publishers + * to subscribers. + */ +public class OpenCensusUtil { + private static final Logger logger = Logger.getLogger(OpenCensusUtil.class.getName()); + + public static final String TAG_CONTEXT_KEY = "googclient_OpenCensusTagContextKey"; + public static final String TRACE_CONTEXT_KEY = "googclient_OpenCensusTraceContextKey"; + @VisibleForTesting static final String MESSAGE_RECEIVER_SPAN_NAME = "OpenCensusMessageReceiver"; + private static final String TRACEPARENT_KEY = "traceparent"; + + private static final Tagger tagger = Tags.getTagger(); + private static final TagContextBinarySerializer serializer = + Tags.getTagPropagationComponent().getBinarySerializer(); + + private static final Tracer tracer = Tracing.getTracer(); + private static final TextFormat traceContextTextFormat = + Tracing.getPropagationComponent().getTraceContextFormat(); + + /** + * Propagates active OpenCensus trace and tag contexts from the Publisher by adding them as + * attributes to the {@link PubsubMessage}. + */ + public static final ApiFunction OPEN_CENSUS_MESSAGE_TRANSFORM = + new ApiFunction() { + @Override + public PubsubMessage apply(PubsubMessage message) { + PubsubMessage.Builder builder = PubsubMessage.newBuilder(message); + String encodedSpanContext = encodeSpanContext(tracer.getCurrentSpan().getContext()); + String encodedTagContext = encodeTagContext(tagger.getCurrentTagContext()); + if (encodedSpanContext.isEmpty() && encodedTagContext.isEmpty()) { + return message; + } + if (!encodedSpanContext.isEmpty()) { + builder.putAttributes(TRACE_CONTEXT_KEY, encodedSpanContext); + } + if (!encodedTagContext.isEmpty()) { + builder.putAttributes(TAG_CONTEXT_KEY, encodedTagContext); + } + return builder.build(); + } + }; + + private static final Setter setter = + new Setter() { + @Override + public void put(StringBuilder carrier, String key, String value) { + if (key.equals(TRACEPARENT_KEY)) { + carrier.append(value); + } + } + }; + + private static final Getter getter = + new Getter() { + @Override + public String get(String carrier, String key) { + return key.equals(TRACEPARENT_KEY) ? carrier : null; + } + }; + + @VisibleForTesting + static String encodeSpanContext(SpanContext ctxt) { + StringBuilder builder = new StringBuilder(); + traceContextTextFormat.inject(ctxt, builder, setter); + return builder.toString(); + } + + // TODO: update this code once the text encoding of tags has been resolved + // (https://github.com/census-instrumentation/opencensus-specs/issues/65). + private static String encodeTagContext(TagContext tags) { + return ""; + } + + // TODO: update this code once the text encoding of tags has been resolved + // (https://github.com/census-instrumentation/opencensus-specs/issues/65). + private static Scope createScopedTagContext(String encodedTags) { + return tagger.withTagContext(tagger.getCurrentTagContext()); + } + + @VisibleForTesting + @MustBeClosed + static Scope createScopedSpan(String name) { + return tracer + .spanBuilderWithExplicitParent(name, tracer.getCurrentSpan()) + .setRecordEvents(true) + // Note: we preserve the sampling decision from the publisher. + .setSampler(Samplers.alwaysSample()) + .startScopedSpan(); + } + + private static void addParentLink(String encodedParentSpanContext) { + try { + SpanContext ctxt = traceContextTextFormat.extract(encodedParentSpanContext, getter); + tracer.getCurrentSpan().addLink(Link.fromSpanContext(ctxt, Link.Type.PARENT_LINKED_SPAN)); + } catch (SpanContextParseException exn) { + logger.log(Level.INFO, "OpenCensus: Trace Context Deserialization Exception: " + exn); + } + } + + /** + * Wrapper class for {@link MessageReceiver} that decodes any received trace and tag contexts and + * puts them in scope. + */ + public static class OpenCensusMessageReceiver implements MessageReceiver { + private final MessageReceiver receiver; + + public OpenCensusMessageReceiver(MessageReceiver receiver) { + this.receiver = receiver; + } + + @Override + public void receiveMessage(PubsubMessage message, AckReplyConsumer consumer) { + String encodedTagContext = message.getAttributesOrDefault(TAG_CONTEXT_KEY, ""); + if (encodedTagContext.isEmpty()) { + addTraceScope(message, consumer); + return; + } + try (Scope statsScope = createScopedTagContext(encodedTagContext)) { + addTraceScope(message, consumer); + } + } + + private void addTraceScope(PubsubMessage message, AckReplyConsumer consumer) { + String encodedSpanContext = message.getAttributesOrDefault(TRACE_CONTEXT_KEY, ""); + if (encodedSpanContext.isEmpty()) { + receiver.receiveMessage(message, consumer); + return; + } + try (Scope spanScope = createScopedSpan(MESSAGE_RECEIVER_SPAN_NAME)) { + addParentLink(encodedSpanContext); + receiver.receiveMessage(message, consumer); + } + } + } +} diff --git a/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 557a483073de..ea2475cb3fdf 100644 --- a/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -16,6 +16,7 @@ package com.google.cloud.pubsub.v1; +import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutureCallback; import com.google.api.core.ApiFutures; @@ -95,6 +96,7 @@ public class Publisher { private final List closeables; private final MessageWaiter messagesWaiter; private ScheduledFuture currentAlarmFuture; + private final ApiFunction messageTransform; /** The maximum number of messages in one request. Defined by the API. */ public static long getApiMaxRequestElementCount() { @@ -110,6 +112,7 @@ private Publisher(Builder builder) throws IOException { topicName = builder.topicName; this.batchingSettings = builder.batchingSettings; + this.messageTransform = builder.messageTransform; messagesBatch = new LinkedList<>(); messagesBatchLock = new ReentrantLock(); @@ -192,6 +195,7 @@ public ApiFuture publish(PubsubMessage message) { throw new IllegalStateException("Cannot publish on a shut-down publisher."); } + message = messageTransform.apply(message); final int messageSize = message.getSerializedSize(); OutstandingBatch batchToSend = null; SettableApiFuture publishResult = SettableApiFuture.create(); @@ -528,6 +532,14 @@ public static final class Builder { CredentialsProvider credentialsProvider = TopicAdminSettings.defaultCredentialsProviderBuilder().build(); + ApiFunction messageTransform = + new ApiFunction() { + @Override + public PubsubMessage apply(PubsubMessage input) { + return input; + } + }; + private Builder(String topic) { this.topicName = Preconditions.checkNotNull(topic); } @@ -610,6 +622,17 @@ public Builder setExecutorProvider(ExecutorProvider executorProvider) { return this; } + /** + * Gives the ability to set an {@link ApiFunction} that will transform the {@link PubsubMessage} + * before it is sent + */ + @BetaApi + public Builder setTransform(ApiFunction messageTransform) { + this.messageTransform = + Preconditions.checkNotNull(messageTransform, "The messageTransform cannnot be null."); + return this; + } + public Publisher build() throws IOException { return new Publisher(this); } diff --git a/google-cloud-clients/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java b/google-cloud-clients/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java new file mode 100644 index 000000000000..6f74d5917c76 --- /dev/null +++ b/google-cloud-clients/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java @@ -0,0 +1,139 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import static com.google.cloud.pubsub.v1.OpenCensusUtil.MESSAGE_RECEIVER_SPAN_NAME; +import static com.google.cloud.pubsub.v1.OpenCensusUtil.OPEN_CENSUS_MESSAGE_TRANSFORM; +import static com.google.cloud.pubsub.v1.OpenCensusUtil.TAG_CONTEXT_KEY; +import static com.google.cloud.pubsub.v1.OpenCensusUtil.TRACE_CONTEXT_KEY; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotEquals; + +import com.google.protobuf.ByteString; +import com.google.pubsub.v1.PubsubMessage; +import io.opencensus.common.Scope; +import io.opencensus.tags.TagContext; +import io.opencensus.tags.TagKey; +import io.opencensus.tags.TagValue; +import io.opencensus.tags.Tagger; +import io.opencensus.tags.Tags; +import io.opencensus.trace.Link; +import io.opencensus.trace.SpanContext; +import io.opencensus.trace.Tracer; +import io.opencensus.trace.Tracing; +import io.opencensus.trace.export.RunningSpanStore; +import io.opencensus.trace.export.RunningSpanStore.Filter; +import io.opencensus.trace.export.SpanData; +import java.util.Collection; +import java.util.List; +import org.junit.Test; + +/** Tests for {@link OpenCensusUtil}. */ +public class OpenCensusUtilTest { + private static final Tagger tagger = Tags.getTagger(); + private static final Tracer tracer = Tracing.getTracer(); + private static final TagKey TEST_TAG_KEY = TagKey.create("TEST_TAG_KEY"); + private static final TagValue TEST_TAG_VAL = TagValue.create("TEST_TAG_VAL"); + private static final String TEST_PARENT_LINK_NAME = "TEST_PARENT_LINK"; + + // Verifies that trace contexts propagated as an attribute are set as the parent link in the + // message receiver and that the tag context is not change (for now). + @Test + public void testOpenCensusMessageReceiver() throws Exception { + PubsubMessage message; + SpanContext publisherContext; + try (Scope traceScope = OpenCensusUtil.createScopedSpan(TEST_PARENT_LINK_NAME); + Scope tagScope = createScopeTags()) { + message = OPEN_CENSUS_MESSAGE_TRANSFORM.apply(generatePubsubMessage(500)); + publisherContext = tracer.getCurrentSpan().getContext(); + } + MessageReceiver receiver = + new OpenCensusUtil.OpenCensusMessageReceiver( + new TestMessageReceiver(publisherContext, tagger.getCurrentTagContext())); + receiver.receiveMessage(message, new NoOpAckReplyConsumer()); + } + + // Verifies that the current span context is added as an attribute and that (for now) the tag + // context is not added as an attribute. + @Test + public void testOpenCensusMessageTransformer() { + try (Scope traceScope = OpenCensusUtil.createScopedSpan("PublisherTestRoot"); + Scope tagScope = createScopeTags()) { + PubsubMessage originalMessage = generatePubsubMessage(500); + assertEquals("", originalMessage.getAttributesOrDefault(TRACE_CONTEXT_KEY, "")); + assertEquals("", originalMessage.getAttributesOrDefault(TAG_CONTEXT_KEY, "")); + + PubsubMessage attributedMessage = OPEN_CENSUS_MESSAGE_TRANSFORM.apply(originalMessage); + String encodedSpanContext = + OpenCensusUtil.encodeSpanContext(tracer.getCurrentSpan().getContext()); + assertNotEquals("", encodedSpanContext); + assertEquals( + encodedSpanContext, attributedMessage.getAttributesOrDefault(TRACE_CONTEXT_KEY, "")); + assertEquals("", attributedMessage.getAttributesOrDefault(TAG_CONTEXT_KEY, "")); + } + } + + private static PubsubMessage generatePubsubMessage(int size) { + byte[] bytes = new byte[size]; + for (int i = 0; i < size; i++) { + bytes[i] = (byte) (120 + i % 20); + } + return PubsubMessage.newBuilder().setData(ByteString.copyFrom(bytes)).build(); + } + + private static Scope createScopeTags() { + return tagger.currentBuilder().put(TEST_TAG_KEY, TEST_TAG_VAL).buildScoped(); + } + + private static final class NoOpAckReplyConsumer implements AckReplyConsumer { + @Override + public void ack() {} + + @Override + public void nack() {} + } + + private static final class TestMessageReceiver implements MessageReceiver { + private static final RunningSpanStore runningSpanStore = + Tracing.getExportComponent().getRunningSpanStore(); + private static final Filter RECEIVER_FILTER = Filter.create(MESSAGE_RECEIVER_SPAN_NAME, 0); + + SpanContext parentLinkedSpan; + TagContext originalTagContext; + + private TestMessageReceiver(SpanContext parentLinkedSpan, TagContext originalTagContext) { + this.parentLinkedSpan = parentLinkedSpan; + this.originalTagContext = originalTagContext; + } + + @Override + public void receiveMessage(PubsubMessage message, AckReplyConsumer consumer) { + assertEquals(originalTagContext, tagger.getCurrentTagContext()); + Collection spanDatas = runningSpanStore.getRunningSpans(RECEIVER_FILTER); + assertEquals(spanDatas.size(), 1); + for (SpanData spanData : spanDatas) { + List links = spanData.getLinks().getLinks(); + assertEquals(links.size(), 1); + Link link = links.get(0); + assertEquals(Link.Type.PARENT_LINKED_SPAN, link.getType()); + assertEquals(parentLinkedSpan.getTraceId(), link.getTraceId()); + assertEquals(parentLinkedSpan.getSpanId(), link.getSpanId()); + } + consumer.ack(); + } + } +} From 71e85198495a39f4524afa2669434b5075c17c3d Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Thu, 21 Mar 2019 12:59:23 -0400 Subject: [PATCH 14/20] Release v0.84.0 (#4713) --- README.md | 8 +- .../grpc-google-cloud-asset-v1beta1/pom.xml | 4 +- .../grpc-google-cloud-automl-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-bigtable-v2/pom.xml | 4 +- .../grpc-google-cloud-container-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-dataproc-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-dialogflow-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-dlp-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-firestore-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-iot-v1/pom.xml | 4 +- .../grpc-google-cloud-kms-v1/pom.xml | 4 +- .../grpc-google-cloud-language-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-logging-v2/pom.xml | 4 +- .../grpc-google-cloud-monitoring-v3/pom.xml | 4 +- .../grpc-google-cloud-os-login-v1/pom.xml | 4 +- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 +- .../grpc-google-cloud-redis-v1/pom.xml | 4 +- .../grpc-google-cloud-redis-v1beta1/pom.xml | 4 +- .../grpc-google-cloud-scheduler-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-spanner-v1/pom.xml | 4 +- .../grpc-google-cloud-speech-v1/pom.xml | 4 +- .../grpc-google-cloud-speech-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-talent-v4beta1/pom.xml | 4 +- .../grpc-google-cloud-tasks-v2beta2/pom.xml | 4 +- .../grpc-google-cloud-tasks-v2beta3/pom.xml | 4 +- .../grpc-google-cloud-texttospeech-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-trace-v1/pom.xml | 4 +- .../grpc-google-cloud-trace-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-vision-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- google-api-grpc/pom.xml | 228 ++++++------ .../proto-google-cloud-asset-v1beta1/pom.xml | 4 +- .../proto-google-cloud-automl-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-bigtable-v2/pom.xml | 4 +- .../proto-google-cloud-container-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-dataproc-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-datastore-v1/pom.xml | 4 +- .../proto-google-cloud-dialogflow-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-dlp-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-firestore-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-iot-v1/pom.xml | 4 +- .../proto-google-cloud-kms-v1/pom.xml | 4 +- .../proto-google-cloud-language-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-logging-v2/pom.xml | 4 +- .../proto-google-cloud-monitoring-v3/pom.xml | 4 +- .../proto-google-cloud-os-login-v1/pom.xml | 4 +- .../proto-google-cloud-pubsub-v1/pom.xml | 4 +- .../proto-google-cloud-redis-v1/pom.xml | 4 +- .../proto-google-cloud-redis-v1beta1/pom.xml | 4 +- .../proto-google-cloud-scheduler-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-spanner-v1/pom.xml | 4 +- .../proto-google-cloud-speech-v1/pom.xml | 4 +- .../proto-google-cloud-speech-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-talent-v4beta1/pom.xml | 4 +- .../proto-google-cloud-tasks-v2beta2/pom.xml | 4 +- .../proto-google-cloud-tasks-v2beta3/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-trace-v1/pom.xml | 4 +- .../proto-google-cloud-trace-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-vision-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- google-cloud-bom/README.md | 2 +- google-cloud-bom/pom.xml | 314 ++++++++-------- .../google-cloud-asset/README.md | 6 +- .../google-cloud-asset/pom.xml | 4 +- .../google-cloud-automl/README.md | 6 +- .../google-cloud-automl/pom.xml | 4 +- .../google-cloud-bigquery/README.md | 6 +- .../google-cloud-bigquery/pom.xml | 4 +- .../README.md | 6 +- .../google-cloud-bigquerydatatransfer/pom.xml | 4 +- .../google-cloud-bigquerystorage/README.md | 6 +- .../google-cloud-bigquerystorage/pom.xml | 4 +- .../google-cloud-bigtable/README.md | 6 +- .../google-cloud-bigtable/pom.xml | 4 +- .../google-cloud-compute/README.md | 6 +- .../google-cloud-compute/pom.xml | 4 +- .../google-cloud-container/README.md | 6 +- .../google-cloud-container/pom.xml | 4 +- .../google-cloud-containeranalysis/README.md | 6 +- .../google-cloud-containeranalysis/pom.xml | 4 +- .../google-cloud-contrib/README.md | 6 +- .../google-cloud-logging-logback/README.md | 6 +- .../google-cloud-logging-logback/pom.xml | 4 +- .../google-cloud-nio-examples/README.md | 4 +- .../google-cloud-nio-examples/pom.xml | 4 +- .../google-cloud-nio/README.md | 6 +- .../google-cloud-nio/pom.xml | 4 +- .../google-cloud-contrib/pom.xml | 4 +- .../google-cloud-core-grpc/pom.xml | 4 +- .../google-cloud-core-http/pom.xml | 4 +- .../google-cloud-core/README.md | 6 +- .../google-cloud-core/pom.xml | 4 +- .../google-cloud-dataproc/README.md | 6 +- .../google-cloud-dataproc/pom.xml | 4 +- .../google-cloud-datastore/README.md | 6 +- .../google-cloud-datastore/pom.xml | 4 +- .../google-cloud-dialogflow/README.md | 6 +- .../google-cloud-dialogflow/pom.xml | 4 +- .../google-cloud-dlp/README.md | 6 +- google-cloud-clients/google-cloud-dlp/pom.xml | 4 +- .../google-cloud-dns/README.md | 6 +- google-cloud-clients/google-cloud-dns/pom.xml | 4 +- .../google-cloud-errorreporting/README.md | 6 +- .../google-cloud-errorreporting/pom.xml | 4 +- .../google-cloud-firestore/README.md | 6 +- .../google-cloud-firestore/pom.xml | 4 +- .../google-cloud-iamcredentials/README.md | 6 +- .../google-cloud-iamcredentials/pom.xml | 4 +- .../google-cloud-iot/README.md | 6 +- google-cloud-clients/google-cloud-iot/pom.xml | 4 +- .../google-cloud-kms/README.md | 6 +- google-cloud-clients/google-cloud-kms/pom.xml | 4 +- .../google-cloud-language/README.md | 6 +- .../google-cloud-language/pom.xml | 4 +- .../google-cloud-logging/README.md | 6 +- .../google-cloud-logging/pom.xml | 4 +- .../google-cloud-monitoring/README.md | 6 +- .../google-cloud-monitoring/pom.xml | 4 +- .../google-cloud-notification/README.md | 6 +- .../google-cloud-notification/pom.xml | 4 +- .../google-cloud-os-login/README.md | 6 +- .../google-cloud-os-login/pom.xml | 4 +- .../google-cloud-pubsub/README.md | 6 +- .../google-cloud-pubsub/pom.xml | 4 +- .../google-cloud-redis/README.md | 6 +- .../google-cloud-redis/pom.xml | 4 +- .../google-cloud-resourcemanager/README.md | 6 +- .../google-cloud-resourcemanager/pom.xml | 4 +- .../google-cloud-scheduler/README.md | 6 +- .../google-cloud-scheduler/pom.xml | 4 +- .../google-cloud-securitycenter/README.md | 6 +- .../google-cloud-securitycenter/pom.xml | 4 +- .../google-cloud-spanner/README.md | 6 +- .../google-cloud-spanner/pom.xml | 4 +- .../google-cloud-speech/README.md | 6 +- .../google-cloud-speech/pom.xml | 4 +- .../google-cloud-storage/README.md | 6 +- .../google-cloud-storage/pom.xml | 4 +- .../google-cloud-talent/pom.xml | 4 +- .../google-cloud-tasks/README.md | 6 +- .../google-cloud-tasks/pom.xml | 4 +- .../google-cloud-texttospeech/README.md | 6 +- .../google-cloud-texttospeech/pom.xml | 4 +- .../google-cloud-trace/README.md | 6 +- .../google-cloud-trace/pom.xml | 4 +- .../google-cloud-translate/README.md | 6 +- .../google-cloud-translate/pom.xml | 4 +- .../google-cloud-video-intelligence/README.md | 6 +- .../google-cloud-video-intelligence/pom.xml | 4 +- .../google-cloud-vision/README.md | 6 +- .../google-cloud-vision/pom.xml | 4 +- .../google-cloud-websecurityscanner/README.md | 6 +- .../google-cloud-websecurityscanner/pom.xml | 4 +- google-cloud-clients/pom.xml | 6 +- google-cloud-examples/README.md | 6 +- google-cloud-examples/pom.xml | 4 +- .../google-cloud-appengineflexcompat/pom.xml | 4 +- .../google-cloud-appengineflexcustom/pom.xml | 4 +- .../google-cloud-appengineflexjava/pom.xml | 4 +- .../google-cloud-appenginejava8/pom.xml | 4 +- .../google-cloud-bigtable-emulator/README.md | 10 +- .../google-cloud-bigtable-emulator/pom.xml | 6 +- .../google-cloud-gcloud-maven-plugin/pom.xml | 4 +- .../google-cloud-managedtest/pom.xml | 4 +- google-cloud-testing/pom.xml | 6 +- .../google-cloud-compat-checker/pom.xml | 4 +- google-cloud-util/pom.xml | 2 +- versions.txt | 350 +++++++++--------- 223 files changed, 936 insertions(+), 936 deletions(-) diff --git a/README.md b/README.md index 7d8cbe72d010..ef11609648fd 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-bom - 0.83.0-alpha + 0.84.0-alpha pom import @@ -85,11 +85,11 @@ If you are using Maven, add this to your pom.xml file [//]: # ({x-version-update-start:google-cloud-storage:released}) If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-storage:1.65.0' +compile 'com.google.cloud:google-cloud-storage:1.66.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "1.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "1.66.0" ``` [//]: # ({x-version-update-end}) @@ -110,7 +110,7 @@ If you are running into problems with version conflicts, the easiest way to solv com.google.cloud google-cloud-bom - 0.83.0-alpha + 0.84.0-alpha pom import diff --git a/google-api-grpc/grpc-google-cloud-asset-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-asset-v1beta1/pom.xml index 2f8ff1a8e69b..13731bff8962 100644 --- a/google-api-grpc/grpc-google-cloud-asset-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-asset-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-asset-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-asset-v1beta1 GRPC library for grpc-google-cloud-asset-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-automl-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-automl-v1beta1/pom.xml index 3edab8befcfd..c68dd5326128 100644 --- a/google-api-grpc/grpc-google-cloud-automl-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-automl-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-automl-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-automl-v1beta1 GRPC library for grpc-google-cloud-automl-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml b/google-api-grpc/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml index 8ad69b0d89b0..418bcc44e558 100644 --- a/google-api-grpc/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-bigquerydatatransfer-v1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-bigquerydatatransfer-v1 GRPC library for grpc-google-cloud-bigquerydatatransfer-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-bigquerystorage-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-bigquerystorage-v1beta1/pom.xml index 661d19352263..5d2ec28ff50a 100644 --- a/google-api-grpc/grpc-google-cloud-bigquerystorage-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-bigquerystorage-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-bigquerystorage-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-bigquerystorage-v1beta1 GRPC library for grpc-google-cloud-bigquerystorage-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-bigtable-admin-v2/pom.xml b/google-api-grpc/grpc-google-cloud-bigtable-admin-v2/pom.xml index db943ed73fbe..2fe1791abad4 100644 --- a/google-api-grpc/grpc-google-cloud-bigtable-admin-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-bigtable-admin-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-bigtable-admin-v2 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-bigtable-admin-v2 GRPC library for grpc-google-cloud-bigtable-admin-v2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-bigtable-v2/pom.xml b/google-api-grpc/grpc-google-cloud-bigtable-v2/pom.xml index 178c0fd8d2eb..c834fcd2e0a6 100644 --- a/google-api-grpc/grpc-google-cloud-bigtable-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-bigtable-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-bigtable-v2 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-bigtable-v2 GRPC library for grpc-google-cloud-bigtable-v2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-container-v1/pom.xml b/google-api-grpc/grpc-google-cloud-container-v1/pom.xml index 6cd6cc8e61fa..154a77a53392 100644 --- a/google-api-grpc/grpc-google-cloud-container-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-container-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-container-v1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-container-v1 GRPC library for grpc-google-cloud-container-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-containeranalysis-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-containeranalysis-v1beta1/pom.xml index 8d13712144ee..b3afa833e15a 100644 --- a/google-api-grpc/grpc-google-cloud-containeranalysis-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-containeranalysis-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-containeranalysis-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-containeranalysis-v1beta1 GRPC library for grpc-google-cloud-containeranalysis-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-dataproc-v1/pom.xml b/google-api-grpc/grpc-google-cloud-dataproc-v1/pom.xml index fbdf897a821a..55541e140c43 100644 --- a/google-api-grpc/grpc-google-cloud-dataproc-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dataproc-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dataproc-v1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-dataproc-v1beta2/pom.xml b/google-api-grpc/grpc-google-cloud-dataproc-v1beta2/pom.xml index 6ebbcdb4e3de..b3f42b890156 100644 --- a/google-api-grpc/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dataproc-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-dialogflow-v2/pom.xml b/google-api-grpc/grpc-google-cloud-dialogflow-v2/pom.xml index 297916f58bba..b55ee0180c72 100644 --- a/google-api-grpc/grpc-google-cloud-dialogflow-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dialogflow-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dialogflow-v2 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-dialogflow-v2 GRPC library for grpc-google-cloud-dialogflow-v2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/pom.xml b/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/pom.xml index 2ab7f7b14c47..9d13866eb426 100644 --- a/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dialogflow-v2beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-dialogflow-v2beta1 GRPC library for grpc-google-cloud-dialogflow-v2beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-dlp-v2/pom.xml b/google-api-grpc/grpc-google-cloud-dlp-v2/pom.xml index 60f5b3c2e8ac..2e00f303ee5c 100644 --- a/google-api-grpc/grpc-google-cloud-dlp-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dlp-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dlp-v2 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-dlp-v2 GRPC library for grpc-google-cloud-dlp-v2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-error-reporting-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-error-reporting-v1beta1/pom.xml index 95bc4a9ba286..0fdd8a9b638d 100644 --- a/google-api-grpc/grpc-google-cloud-error-reporting-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-error-reporting-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-error-reporting-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-error-reporting-v1beta1 GRPC library for grpc-google-cloud-error-reporting-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-firestore-v1/pom.xml b/google-api-grpc/grpc-google-cloud-firestore-v1/pom.xml index 668dbffd77f7..528b220edeec 100644 --- a/google-api-grpc/grpc-google-cloud-firestore-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-firestore-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-firestore-v1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-firestore-v1 GRPC library for grpc-google-cloud-firestore-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-firestore-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-firestore-v1beta1/pom.xml index c8f5728633c7..a5b69a7d2731 100644 --- a/google-api-grpc/grpc-google-cloud-firestore-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-firestore-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-firestore-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-firestore-v1beta1 GRPC library for grpc-google-cloud-firestore-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-iamcredentials-v1/pom.xml b/google-api-grpc/grpc-google-cloud-iamcredentials-v1/pom.xml index 9de6ad76cec3..825b06719962 100644 --- a/google-api-grpc/grpc-google-cloud-iamcredentials-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-iamcredentials-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-iamcredentials-v1 - 0.10.1-alpha-SNAPSHOT + 0.11.0-alpha grpc-google-cloud-iamcredentials-v1 GRPC library for grpc-google-cloud-iamcredentials-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-iot-v1/pom.xml b/google-api-grpc/grpc-google-cloud-iot-v1/pom.xml index ea8f9c31a865..d244220118e1 100644 --- a/google-api-grpc/grpc-google-cloud-iot-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-iot-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-iot-v1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-iot-v1 GRPC library for grpc-google-cloud-iot-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-kms-v1/pom.xml b/google-api-grpc/grpc-google-cloud-kms-v1/pom.xml index 961768ed0f1a..eef2e453f711 100644 --- a/google-api-grpc/grpc-google-cloud-kms-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-kms-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-kms-v1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-kms-v1 GRPC library for grpc-google-cloud-kms-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-language-v1/pom.xml b/google-api-grpc/grpc-google-cloud-language-v1/pom.xml index 46266bb8367b..286c46431a24 100644 --- a/google-api-grpc/grpc-google-cloud-language-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-language-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-language-v1 - 1.47.1-SNAPSHOT + 1.48.0 grpc-google-cloud-language-v1 GRPC library for grpc-google-cloud-language-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-language-v1beta2/pom.xml b/google-api-grpc/grpc-google-cloud-language-v1beta2/pom.xml index 6cd584578477..4d0fceaafc62 100644 --- a/google-api-grpc/grpc-google-cloud-language-v1beta2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-language-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-language-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-language-v1beta2 GRPC library for grpc-google-cloud-language-v1beta2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-logging-v2/pom.xml b/google-api-grpc/grpc-google-cloud-logging-v2/pom.xml index 3ae9892ddc83..43972d89f7ad 100644 --- a/google-api-grpc/grpc-google-cloud-logging-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-logging-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-logging-v2 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-logging-v2 GRPC library for grpc-google-cloud-logging-v2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-monitoring-v3/pom.xml b/google-api-grpc/grpc-google-cloud-monitoring-v3/pom.xml index 00a7cfaf1e48..1fa68e1c2bbf 100644 --- a/google-api-grpc/grpc-google-cloud-monitoring-v3/pom.xml +++ b/google-api-grpc/grpc-google-cloud-monitoring-v3/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-monitoring-v3 - 1.47.1-SNAPSHOT + 1.48.0 grpc-google-cloud-monitoring-v3 GRPC library for grpc-google-cloud-monitoring-v3 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-os-login-v1/pom.xml b/google-api-grpc/grpc-google-cloud-os-login-v1/pom.xml index c969f7552c0f..f618eb88941f 100644 --- a/google-api-grpc/grpc-google-cloud-os-login-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-os-login-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-os-login-v1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-os-login-v1 GRPC library for grpc-google-cloud-os-login-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-pubsub-v1/pom.xml b/google-api-grpc/grpc-google-cloud-pubsub-v1/pom.xml index e97e39c9a96b..ec273e5b682d 100644 --- a/google-api-grpc/grpc-google-cloud-pubsub-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.47.1-SNAPSHOT + 1.48.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml b/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml index ce7c3ad5486c..4fc592e5f5cf 100644 --- a/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-redis-v1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-redis-v1 GRPC library for grpc-google-cloud-redis-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-redis-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-redis-v1beta1/pom.xml index faf7d391681d..20c18e6007ae 100644 --- a/google-api-grpc/grpc-google-cloud-redis-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-redis-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-redis-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-redis-v1beta1 GRPC library for grpc-google-cloud-redis-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-scheduler-v1/pom.xml b/google-api-grpc/grpc-google-cloud-scheduler-v1/pom.xml index 4330d35ad64b..b7ffa95b6ba1 100644 --- a/google-api-grpc/grpc-google-cloud-scheduler-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-scheduler-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-scheduler-v1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-scheduler-v1 GRPC library for grpc-google-cloud-scheduler-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-scheduler-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-scheduler-v1beta1/pom.xml index 7da525823bae..34dfe9288201 100644 --- a/google-api-grpc/grpc-google-cloud-scheduler-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-scheduler-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-scheduler-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-scheduler-v1beta1 GRPC library for grpc-google-cloud-scheduler-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-securitycenter-v1/pom.xml b/google-api-grpc/grpc-google-cloud-securitycenter-v1/pom.xml index c4e1cdcd4091..9e48dd7bfa2b 100644 --- a/google-api-grpc/grpc-google-cloud-securitycenter-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-securitycenter-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-securitycenter-v1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-securitycenter-v1 GRPC library for grpc-google-cloud-securitycenter-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-securitycenter-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-securitycenter-v1beta1/pom.xml index 49a334e89bf3..41c41813d582 100644 --- a/google-api-grpc/grpc-google-cloud-securitycenter-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-securitycenter-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-securitycenter-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-securitycenter-v1beta1 GRPC library for grpc-google-cloud-securitycenter-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-spanner-admin-database-v1/pom.xml b/google-api-grpc/grpc-google-cloud-spanner-admin-database-v1/pom.xml index 7f629327b1f0..a2dc21babb04 100644 --- a/google-api-grpc/grpc-google-cloud-spanner-admin-database-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-spanner-admin-database-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-spanner-admin-database-v1 - 1.10.1-SNAPSHOT + 1.11.0 grpc-google-cloud-spanner-admin-database-v1 GRPC library for grpc-google-cloud-spanner-admin-database-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-spanner-admin-instance-v1/pom.xml b/google-api-grpc/grpc-google-cloud-spanner-admin-instance-v1/pom.xml index 737e4e95c847..f1ab400c8f02 100644 --- a/google-api-grpc/grpc-google-cloud-spanner-admin-instance-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-spanner-admin-instance-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-spanner-admin-instance-v1 - 1.10.1-SNAPSHOT + 1.11.0 grpc-google-cloud-spanner-admin-instance-v1 GRPC library for grpc-google-cloud-spanner-admin-instance-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-spanner-v1/pom.xml b/google-api-grpc/grpc-google-cloud-spanner-v1/pom.xml index ac8d895a6863..3ba0f0d6d184 100644 --- a/google-api-grpc/grpc-google-cloud-spanner-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-spanner-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-spanner-v1 - 1.10.1-SNAPSHOT + 1.11.0 grpc-google-cloud-spanner-v1 GRPC library for grpc-google-cloud-spanner-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-speech-v1/pom.xml b/google-api-grpc/grpc-google-cloud-speech-v1/pom.xml index 5faab62b16a2..244774590cd6 100644 --- a/google-api-grpc/grpc-google-cloud-speech-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-speech-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-speech-v1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-speech-v1 GRPC library for grpc-google-cloud-speech-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-speech-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-speech-v1beta1/pom.xml index 7fc317b9e820..b4bc0eb246da 100644 --- a/google-api-grpc/grpc-google-cloud-speech-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-speech-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-speech-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-speech-v1beta1 GRPC library for grpc-google-cloud-speech-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-speech-v1p1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-speech-v1p1beta1/pom.xml index 07057fbfc700..c16eaca99aac 100644 --- a/google-api-grpc/grpc-google-cloud-speech-v1p1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-speech-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-speech-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-speech-v1p1beta1 GRPC library for grpc-google-cloud-speech-v1p1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-talent-v4beta1/pom.xml b/google-api-grpc/grpc-google-cloud-talent-v4beta1/pom.xml index 3f5aa22be136..c30f53c5cbe0 100644 --- a/google-api-grpc/grpc-google-cloud-talent-v4beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-talent-v4beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-talent-v4beta1 - 0.0.1-beta-SNAPSHOT + 0.1.0-beta grpc-google-cloud-talent-v4beta1 GRPC library for grpc-google-cloud-talent-v4beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-tasks-v2beta2/pom.xml b/google-api-grpc/grpc-google-cloud-tasks-v2beta2/pom.xml index 221804e528ac..d6a629f44423 100644 --- a/google-api-grpc/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-tasks-v2beta2 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-tasks-v2beta3/pom.xml b/google-api-grpc/grpc-google-cloud-tasks-v2beta3/pom.xml index 1f9e2daddf44..f96d30287a1b 100644 --- a/google-api-grpc/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/google-api-grpc/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-tasks-v2beta3 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-texttospeech-v1/pom.xml b/google-api-grpc/grpc-google-cloud-texttospeech-v1/pom.xml index e0a44ab64dba..da9f94f1bb59 100644 --- a/google-api-grpc/grpc-google-cloud-texttospeech-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-texttospeech-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-texttospeech-v1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-texttospeech-v1 GRPC library for grpc-google-cloud-texttospeech-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-texttospeech-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-texttospeech-v1beta1/pom.xml index 29120b187974..7290233fc809 100644 --- a/google-api-grpc/grpc-google-cloud-texttospeech-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-texttospeech-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-texttospeech-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-texttospeech-v1beta1 GRPC library for grpc-google-cloud-texttospeech-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-trace-v1/pom.xml b/google-api-grpc/grpc-google-cloud-trace-v1/pom.xml index 11f99d327ac5..6455bec1303a 100644 --- a/google-api-grpc/grpc-google-cloud-trace-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-trace-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-trace-v1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-trace-v1 GRPC library for grpc-google-cloud-trace-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-trace-v2/pom.xml b/google-api-grpc/grpc-google-cloud-trace-v2/pom.xml index 026afd61babb..3d28b0d31ef6 100644 --- a/google-api-grpc/grpc-google-cloud-trace-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-trace-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-trace-v2 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-trace-v2 GRPC library for grpc-google-cloud-trace-v2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1/pom.xml index 28c86ba497c1..699cd8293711 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-video-intelligence-v1 GRPC library for grpc-google-cloud-video-intelligence-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta1/pom.xml index db1f1fc8d9a6..bd81fd01241f 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-video-intelligence-v1beta1 GRPC library for grpc-google-cloud-video-intelligence-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta2/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta2/pom.xml index 25afcea6c813..e70ce7617d3a 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-video-intelligence-v1beta2 GRPC library for grpc-google-cloud-video-intelligence-v1beta2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml index 34fe1c9f4618..6b3426fee33b 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-video-intelligence-v1p1beta1 GRPC library for grpc-google-cloud-video-intelligence-v1p1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml index 245abd6af3b4..b56ddcb6a1f4 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1p2beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-video-intelligence-v1p2beta1 GRPC library for grpc-google-cloud-video-intelligence-v1p2beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml index ad3c2dd09cb1..4c90a29e9fdc 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1p3beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-video-intelligence-v1p3beta1 GRPC library for grpc-google-cloud-video-intelligence-v1p3beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-vision-v1/pom.xml b/google-api-grpc/grpc-google-cloud-vision-v1/pom.xml index 0e5a23c5a4e2..3aef059ea94b 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-vision-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-vision-v1 - 1.47.1-SNAPSHOT + 1.48.0 grpc-google-cloud-vision-v1 GRPC library for grpc-google-cloud-vision-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-vision-v1p1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-vision-v1p1beta1/pom.xml index 4ed8d668b1d6..38f938aabd1e 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1p1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-vision-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-vision-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-vision-v1p1beta1 GRPC library for grpc-google-cloud-vision-v1p1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-vision-v1p2beta1/pom.xml b/google-api-grpc/grpc-google-cloud-vision-v1p2beta1/pom.xml index 59f5f9426c07..c8316134a0d2 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1p2beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-vision-v1p2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-vision-v1p2beta1 - 1.47.1-SNAPSHOT + 1.48.0 grpc-google-cloud-vision-v1p2beta1 GRPC library for grpc-google-cloud-vision-v1p2beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-vision-v1p3beta1/pom.xml b/google-api-grpc/grpc-google-cloud-vision-v1p3beta1/pom.xml index 832983fd275d..d48617b43c8a 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1p3beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-vision-v1p3beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-vision-v1p3beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-vision-v1p3beta1 GRPC library for grpc-google-cloud-vision-v1p3beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-vision-v1p4beta1/pom.xml b/google-api-grpc/grpc-google-cloud-vision-v1p4beta1/pom.xml index ca6590beeeed..357ca9a6c707 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1p4beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-vision-v1p4beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-vision-v1p4beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-vision-v1p4beta1 GRPC library for grpc-google-cloud-vision-v1p4beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml b/google-api-grpc/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml index ba0a7440df31..c56fa761c2ae 100644 --- a/google-api-grpc/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml +++ b/google-api-grpc/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-websecurityscanner-v1alpha - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-websecurityscanner-v1alpha GRPC library for grpc-google-cloud-websecurityscanner-v1alpha com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/pom.xml b/google-api-grpc/pom.xml index e30114d2aa84..6171619f5f59 100644 --- a/google-api-grpc/pom.xml +++ b/google-api-grpc/pom.xml @@ -4,7 +4,7 @@ com.google.api.grpc google-api-grpc pom - 0.48.1-SNAPSHOT + 0.49.0 Google Cloud API gRPC https://github.com/googleapis/google-cloud-java/tree/master/google-api-grpc @@ -142,567 +142,567 @@ com.google.api.grpc proto-google-cloud-asset-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-asset-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-automl-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-bigtable-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-bigtable-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-bigtable-admin-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-bigtable-admin-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-bigquerystorage-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-bigquerystorage-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-container-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-container-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-containeranalysis-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-datastore-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-dlp-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-dlp-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-dialogflow-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-firestore-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-firestore-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-firestore-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-firestore-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-kms-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-kms-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-language-v1 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc grpc-google-cloud-language-v1 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-logging-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-logging-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-monitoring-v3 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc grpc-google-cloud-monitoring-v3 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc proto-google-cloud-os-login-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-os-login-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc proto-google-cloud-redis-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-redis-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-redis-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-redis-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-scheduler-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-scheduler-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-scheduler-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-scheduler-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-spanner-v1 - 1.10.1-SNAPSHOT + 1.11.0 com.google.api.grpc grpc-google-cloud-spanner-v1 - 1.10.1-SNAPSHOT + 1.11.0 com.google.api.grpc proto-google-cloud-spanner-admin-database-v1 - 1.10.1-SNAPSHOT + 1.11.0 com.google.api.grpc grpc-google-cloud-spanner-admin-database-v1 - 1.10.1-SNAPSHOT + 1.11.0 com.google.api.grpc proto-google-cloud-spanner-admin-instance-v1 - 1.10.1-SNAPSHOT + 1.11.0 com.google.api.grpc grpc-google-cloud-spanner-admin-instance-v1 - 1.10.1-SNAPSHOT + 1.11.0 com.google.api.grpc proto-google-cloud-speech-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-speech-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-speech-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-speech-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-texttospeech-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-texttospeech-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-trace-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-trace-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-trace-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-trace-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-vision-v1 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc grpc-google-cloud-vision-v1 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc proto-google-cloud-vision-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-vision-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-vision-v1p2beta1 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc grpc-google-cloud-vision-v1p2beta1 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc proto-google-cloud-vision-v1p3beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-vision-v1p3beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-vision-v1p4beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-vision-v1p4beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p2beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p2beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p3beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p3beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-iot-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-iot-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-securitycenter-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-iamcredentials-v1 - 0.10.1-alpha-SNAPSHOT + 0.11.0-alpha com.google.api.grpc grpc-google-cloud-iamcredentials-v1 - 0.10.1-alpha-SNAPSHOT + 0.11.0-alpha com.google.api.grpc proto-google-cloud-talent-v4beta1 - 0.0.1-beta-SNAPSHOT + 0.1.0-beta com.google.api.grpc grpc-google-cloud-talent-v4beta1 - 0.0.1-beta-SNAPSHOT + 0.1.0-beta diff --git a/google-api-grpc/proto-google-cloud-asset-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-asset-v1beta1/pom.xml index c087e1262960..b98303369d3e 100644 --- a/google-api-grpc/proto-google-cloud-asset-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-asset-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-asset-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-asset-v1beta1 PROTO library for proto-google-cloud-asset-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-automl-v1beta1/pom.xml index 3aed1a15d76c..83a98a0e5a63 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-automl-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-automl-v1beta1 PROTO library for proto-google-cloud-automl-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/pom.xml b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/pom.xml index 9b315fb05677..4128b85d0b8a 100644 --- a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-bigquerydatatransfer-v1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-bigquerydatatransfer-v1 PROTO library for proto-google-cloud-bigquerydatatransfer-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-bigquerystorage-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-bigquerystorage-v1beta1/pom.xml index 863b36f2f68b..d5d7aa8e9e8a 100644 --- a/google-api-grpc/proto-google-cloud-bigquerystorage-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-bigquerystorage-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-bigquerystorage-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-bigquerystorage-v1beta1 PROTO library for proto-google-cloud-bigquerystorage-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/pom.xml b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/pom.xml index afd60c9a1d98..abb683c11f44 100644 --- a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-bigtable-admin-v2 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-bigtable-admin-v2 PROTO library for proto-google-cloud-bigtable-admin-v2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-bigtable-v2/pom.xml b/google-api-grpc/proto-google-cloud-bigtable-v2/pom.xml index f87417dde929..25b0c1ed832a 100644 --- a/google-api-grpc/proto-google-cloud-bigtable-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-bigtable-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-bigtable-v2 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-bigtable-v2 PROTO library for proto-google-cloud-bigtable-v2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-container-v1/pom.xml b/google-api-grpc/proto-google-cloud-container-v1/pom.xml index 9912dbb364bc..00231b9f4c99 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-container-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-container-v1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-container-v1 PROTO library for proto-google-cloud-container-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-containeranalysis-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-containeranalysis-v1beta1/pom.xml index 76aa7a30abb5..de5f1eb3bdcc 100644 --- a/google-api-grpc/proto-google-cloud-containeranalysis-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-containeranalysis-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-containeranalysis-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-containeranalysis-v1beta1 PROTO library for proto-google-cloud-containeranalysis-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1/pom.xml b/google-api-grpc/proto-google-cloud-dataproc-v1/pom.xml index 164eefeff848..3f9dcc00b742 100644 --- a/google-api-grpc/proto-google-cloud-dataproc-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-dataproc-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dataproc-v1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/pom.xml b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/pom.xml index 9d6e577c0a52..07a4ad18b86e 100644 --- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dataproc-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-datastore-v1/pom.xml b/google-api-grpc/proto-google-cloud-datastore-v1/pom.xml index 3fc45d306546..2fd1d573c10d 100644 --- a/google-api-grpc/proto-google-cloud-datastore-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-datastore-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-datastore-v1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-datastore-v1 PROTO library for proto-google-cloud-datastore-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/pom.xml b/google-api-grpc/proto-google-cloud-dialogflow-v2/pom.xml index c40320c3315e..5321d8626b2d 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dialogflow-v2 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-dialogflow-v2 PROTO library for proto-google-cloud-dialogflow-v2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/pom.xml b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/pom.xml index 7fb1c8e877f3..bdaf6ad6c004 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dialogflow-v2beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-dialogflow-v2beta1 PROTO library for proto-google-cloud-dialogflow-v2beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/pom.xml b/google-api-grpc/proto-google-cloud-dlp-v2/pom.xml index 97f2f7e9c09d..234137ced034 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-dlp-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dlp-v2 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-dlp-v2 PROTO library for proto-google-cloud-dlp-v2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-error-reporting-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-error-reporting-v1beta1/pom.xml index 0899d6e30337..8a78d62a390d 100644 --- a/google-api-grpc/proto-google-cloud-error-reporting-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-error-reporting-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-error-reporting-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-error-reporting-v1beta1 PROTO library for proto-google-cloud-error-reporting-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/pom.xml b/google-api-grpc/proto-google-cloud-firestore-v1/pom.xml index 3543177245b6..14ae4a7dd538 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-firestore-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-firestore-v1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-firestore-v1 PROTO library for proto-google-cloud-firestore-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-firestore-v1beta1/pom.xml index 16ee70fc6c90..b17cd14bf309 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-firestore-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-firestore-v1beta1 PROTO library for proto-google-cloud-firestore-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-iamcredentials-v1/pom.xml b/google-api-grpc/proto-google-cloud-iamcredentials-v1/pom.xml index 9062e046a62b..3eaa8a305036 100644 --- a/google-api-grpc/proto-google-cloud-iamcredentials-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-iamcredentials-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-iamcredentials-v1 - 0.10.1-alpha-SNAPSHOT + 0.11.0-alpha proto-google-cloud-iamcredentials-v1 PROTO library for proto-google-cloud-iamcredentials-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-iot-v1/pom.xml b/google-api-grpc/proto-google-cloud-iot-v1/pom.xml index 1cc1c35dd721..55ec948d15c3 100644 --- a/google-api-grpc/proto-google-cloud-iot-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-iot-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-iot-v1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-iot-v1 PROTO library for proto-google-cloud-iot-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-kms-v1/pom.xml b/google-api-grpc/proto-google-cloud-kms-v1/pom.xml index 6197d9641c04..08443ca925d0 100644 --- a/google-api-grpc/proto-google-cloud-kms-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-kms-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-kms-v1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-kms-v1 PROTO library for proto-google-cloud-kms-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-language-v1/pom.xml b/google-api-grpc/proto-google-cloud-language-v1/pom.xml index 43a63447bdb8..ad7e10a2f2ef 100644 --- a/google-api-grpc/proto-google-cloud-language-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-language-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-language-v1 - 1.47.1-SNAPSHOT + 1.48.0 proto-google-cloud-language-v1 PROTO library for proto-google-cloud-language-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-language-v1beta2/pom.xml b/google-api-grpc/proto-google-cloud-language-v1beta2/pom.xml index 88a98c002065..9608ded6e563 100644 --- a/google-api-grpc/proto-google-cloud-language-v1beta2/pom.xml +++ b/google-api-grpc/proto-google-cloud-language-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-language-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-language-v1beta2 PROTO library for proto-google-cloud-language-v1beta2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-logging-v2/pom.xml b/google-api-grpc/proto-google-cloud-logging-v2/pom.xml index c25573d31664..c3681617f617 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-logging-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-logging-v2 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-logging-v2 PROTO library for proto-google-cloud-logging-v2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/pom.xml b/google-api-grpc/proto-google-cloud-monitoring-v3/pom.xml index 0c789062d9de..81ae2feaba89 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/pom.xml +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-monitoring-v3 - 1.47.1-SNAPSHOT + 1.48.0 proto-google-cloud-monitoring-v3 PROTO library for proto-google-cloud-monitoring-v3 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-os-login-v1/pom.xml b/google-api-grpc/proto-google-cloud-os-login-v1/pom.xml index 74fed5f996b9..0819401b566d 100644 --- a/google-api-grpc/proto-google-cloud-os-login-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-os-login-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-os-login-v1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-os-login-v1 PROTO library for proto-google-cloud-os-login-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-pubsub-v1/pom.xml b/google-api-grpc/proto-google-cloud-pubsub-v1/pom.xml index ec5ce024ae19..0247795ca6ba 100644 --- a/google-api-grpc/proto-google-cloud-pubsub-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.47.1-SNAPSHOT + 1.48.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-redis-v1/pom.xml b/google-api-grpc/proto-google-cloud-redis-v1/pom.xml index aba8c980eb72..482e429409cd 100644 --- a/google-api-grpc/proto-google-cloud-redis-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-redis-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-redis-v1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-redis-v1 PROTO library for proto-google-cloud-redis-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-redis-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-redis-v1beta1/pom.xml index 6ba7cfd08961..fcd5e0278324 100644 --- a/google-api-grpc/proto-google-cloud-redis-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-redis-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-redis-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-redis-v1beta1 PROTO library for proto-google-cloud-redis-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/pom.xml b/google-api-grpc/proto-google-cloud-scheduler-v1/pom.xml index 6de8444001ae..862e3e9cc5dc 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-scheduler-v1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-scheduler-v1 PROTO library for proto-google-cloud-scheduler-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/pom.xml index 8f5e67c93f31..98e82ee1ba1a 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-scheduler-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-scheduler-v1beta1 PROTO library for proto-google-cloud-scheduler-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/pom.xml b/google-api-grpc/proto-google-cloud-securitycenter-v1/pom.xml index 5467154dafea..096ad88dea77 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-securitycenter-v1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-securitycenter-v1 PROTO library for proto-google-cloud-securitycenter-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/pom.xml index 21ac8f034973..21047e5ea350 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-securitycenter-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-securitycenter-v1beta1 PROTO library for proto-google-cloud-securitycenter-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-spanner-admin-database-v1/pom.xml b/google-api-grpc/proto-google-cloud-spanner-admin-database-v1/pom.xml index 549bf3669833..f6c35e23a82b 100644 --- a/google-api-grpc/proto-google-cloud-spanner-admin-database-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-spanner-admin-database-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-spanner-admin-database-v1 - 1.10.1-SNAPSHOT + 1.11.0 proto-google-cloud-spanner-admin-database-v1 PROTO library for proto-google-cloud-spanner-admin-database-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/pom.xml b/google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/pom.xml index 71ae588ef108..393ae76cf8f7 100644 --- a/google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-spanner-admin-instance-v1 - 1.10.1-SNAPSHOT + 1.11.0 proto-google-cloud-spanner-admin-instance-v1 PROTO library for proto-google-cloud-spanner-admin-instance-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-spanner-v1/pom.xml b/google-api-grpc/proto-google-cloud-spanner-v1/pom.xml index 65f566ee5dd3..719be3ee84e1 100644 --- a/google-api-grpc/proto-google-cloud-spanner-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-spanner-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-spanner-v1 - 1.10.1-SNAPSHOT + 1.11.0 proto-google-cloud-spanner-v1 PROTO library for proto-google-cloud-spanner-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-speech-v1/pom.xml b/google-api-grpc/proto-google-cloud-speech-v1/pom.xml index 0750ff2fe43b..51b5fe88e7f5 100644 --- a/google-api-grpc/proto-google-cloud-speech-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-speech-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-speech-v1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-speech-v1 PROTO library for proto-google-cloud-speech-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-speech-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-speech-v1beta1/pom.xml index a043fdf3e468..2ef9a1d8e51a 100644 --- a/google-api-grpc/proto-google-cloud-speech-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-speech-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-speech-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-speech-v1beta1 PROTO library for proto-google-cloud-speech-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-speech-v1p1beta1/pom.xml b/google-api-grpc/proto-google-cloud-speech-v1p1beta1/pom.xml index 9663506c645a..5c770c5d31be 100644 --- a/google-api-grpc/proto-google-cloud-speech-v1p1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-speech-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-speech-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-speech-v1p1beta1 PROTO library for proto-google-cloud-speech-v1p1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/pom.xml b/google-api-grpc/proto-google-cloud-talent-v4beta1/pom.xml index 0063b2d5b067..eeec03290777 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-talent-v4beta1 - 0.0.1-beta-SNAPSHOT + 0.1.0-beta proto-google-cloud-talent-v4beta1 PROTO library for proto-google-cloud-talent-v4beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-tasks-v2beta2/pom.xml b/google-api-grpc/proto-google-cloud-tasks-v2beta2/pom.xml index e7929c84f766..33dc0d9b2d5e 100644 --- a/google-api-grpc/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/google-api-grpc/proto-google-cloud-tasks-v2beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-tasks-v2beta2 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-tasks-v2beta3/pom.xml b/google-api-grpc/proto-google-cloud-tasks-v2beta3/pom.xml index 3d7d85185101..a9b57ba977cb 100644 --- a/google-api-grpc/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/google-api-grpc/proto-google-cloud-tasks-v2beta3/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-tasks-v2beta3 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1/pom.xml b/google-api-grpc/proto-google-cloud-texttospeech-v1/pom.xml index afc78b9905c4..fc0ad6c013f0 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-texttospeech-v1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-texttospeech-v1 PROTO library for proto-google-cloud-texttospeech-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/pom.xml index 4599080ab875..1f545aa69e02 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-texttospeech-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-texttospeech-v1beta1 PROTO library for proto-google-cloud-texttospeech-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-trace-v1/pom.xml b/google-api-grpc/proto-google-cloud-trace-v1/pom.xml index 7670de04bc35..29990ed6f985 100644 --- a/google-api-grpc/proto-google-cloud-trace-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-trace-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-trace-v1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-trace-v1 PROTO library for proto-google-cloud-trace-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-trace-v2/pom.xml b/google-api-grpc/proto-google-cloud-trace-v2/pom.xml index 04b581bf12f1..c1c61181ef37 100644 --- a/google-api-grpc/proto-google-cloud-trace-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-trace-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-trace-v2 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-trace-v2 PROTO library for proto-google-cloud-trace-v2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1/pom.xml index d593b2b45751..b72c7ee08511 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-video-intelligence-v1 PROTO library for proto-google-cloud-video-intelligence-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1beta1/pom.xml index ce0b7d038cb2..6b20ae2ce2b3 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-video-intelligence-v1beta1 PROTO library for proto-google-cloud-video-intelligence-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1beta2/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1beta2/pom.xml index db31ea582ee0..c8c162281ebb 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1beta2/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-video-intelligence-v1beta2 PROTO library for proto-google-cloud-video-intelligence-v1beta2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml index 8084cb091256..244ed39b0f3a 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-video-intelligence-v1p1beta1 PROTO library for proto-google-cloud-video-intelligence-v1p1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml index 8dd10c8ae4ba..1d0ef00d3311 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1p2beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-video-intelligence-v1p2beta1 PROTO library for proto-google-cloud-video-intelligence-v1p2beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml index 91d7ac9a8d72..e990efa5a1d0 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1p3beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-video-intelligence-v1p3beta1 PROTO library for proto-google-cloud-video-intelligence-v1p3beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-vision-v1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1/pom.xml index 5c6a5d1cfe02..676a02e908da 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1 - 1.47.1-SNAPSHOT + 1.48.0 proto-google-cloud-vision-v1 PROTO library for proto-google-cloud-vision-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-vision-v1p1beta1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1p1beta1/pom.xml index 4f5eb5d5f7e4..f8543c6b6447 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1p1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-vision-v1p1beta1 PROTO library for proto-google-cloud-vision-v1p1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-vision-v1p2beta1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1p2beta1/pom.xml index 9022da7adb78..df93d7f3d71b 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1p2beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1p2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1p2beta1 - 1.47.1-SNAPSHOT + 1.48.0 proto-google-cloud-vision-v1p2beta1 PROTO library for proto-google-cloud-vision-v1p2beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-vision-v1p3beta1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1p3beta1/pom.xml index aa8ddb1e1685..7c7ffc483109 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1p3beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1p3beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1p3beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-vision-v1p3beta1 PROTO library for proto-google-cloud-vision-v1p3beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-vision-v1p4beta1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1p4beta1/pom.xml index f7de8dd891a3..c076777f6989 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1p4beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1p4beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1p4beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-vision-v1p4beta1 PROTO library for proto-google-cloud-vision-v1p4beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/pom.xml b/google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/pom.xml index d006f256e944..c64cc0e9635b 100644 --- a/google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/pom.xml +++ b/google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-websecurityscanner-v1alpha - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-websecurityscanner-v1alpha PROTO library for proto-google-cloud-websecurityscanner-v1alpha com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-cloud-bom/README.md b/google-cloud-bom/README.md index d12172f5bae3..3bb5b01cda4e 100644 --- a/google-cloud-bom/README.md +++ b/google-cloud-bom/README.md @@ -13,7 +13,7 @@ To use it in Maven, add the following to your POM: com.google.cloud google-cloud-bom - 0.83.0-alpha + 0.84.0-alpha pom import diff --git a/google-cloud-bom/pom.xml b/google-cloud-bom/pom.xml index f4f29438e5de..59b28e95d077 100644 --- a/google-cloud-bom/pom.xml +++ b/google-cloud-bom/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bom pom - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha Google Cloud Java BOM https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-bom @@ -197,783 +197,783 @@ com.google.cloud google-cloud-asset - 0.83.1-beta-SNAPSHOT + 0.84.0-beta com.google.api.grpc proto-google-cloud-asset-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-asset-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-automl - 0.83.1-beta-SNAPSHOT + 0.84.0-beta com.google.api.grpc proto-google-cloud-automl-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-bigtable - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha com.google.api.grpc proto-google-cloud-bigtable-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-bigtable-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-bigtable-admin-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-bigtable-admin-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-bigtable-emulator - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha com.google.cloud google-cloud-bigquery - 1.65.1-SNAPSHOT + 1.66.0 com.google.cloud google-cloud-bigquerydatatransfer - 0.83.1-beta-SNAPSHOT + 0.84.0-beta com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-bigquerystorage-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-bigquerystorage-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-compute - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha com.google.cloud google-cloud-container - 0.83.1-beta-SNAPSHOT + 0.84.0-beta com.google.api.grpc proto-google-cloud-container-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-container-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-containeranalysis - 0.83.1-beta-SNAPSHOT + 0.84.0-beta com.google.api.grpc proto-google-cloud-containeranalysis-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-contrib - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha com.google.cloud google-cloud-nio - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha com.google.cloud google-cloud-core - 1.65.1-SNAPSHOT + 1.66.0 com.google.cloud google-cloud-core-grpc - 1.65.1-SNAPSHOT + 1.66.0 com.google.cloud google-cloud-core-http - 1.65.1-SNAPSHOT + 1.66.0 com.google.cloud google-cloud-dataproc - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha com.google.api.grpc proto-google-cloud-dataproc-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-datastore - 1.65.1-SNAPSHOT + 1.66.0 com.google.api.grpc proto-google-cloud-datastore-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-dlp - 0.83.1-beta-SNAPSHOT + 0.84.0-beta com.google.api.grpc proto-google-cloud-dlp-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-dlp-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-dialogflow - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-dialogflow-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-dns - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha com.google.cloud google-cloud-errorreporting - 0.83.1-beta-SNAPSHOT + 0.84.0-beta com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-firestore - 0.83.1-beta-SNAPSHOT + 0.84.0-beta com.google.api.grpc proto-google-cloud-firestore-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-firestore-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-firestore-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-firestore-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-kms - 1.1.1-SNAPSHOT + 1.2.0 com.google.api.grpc proto-google-cloud-kms-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-kms-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-language - 1.65.1-SNAPSHOT + 1.66.0 com.google.api.grpc proto-google-cloud-language-v1 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc grpc-google-cloud-language-v1 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-logging - 1.65.1-SNAPSHOT + 1.66.0 com.google.api.grpc proto-google-cloud-logging-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-logging-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-logging-logback - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha com.google.cloud google-cloud-monitoring - 1.65.1-SNAPSHOT + 1.66.0 com.google.api.grpc proto-google-cloud-monitoring-v3 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc grpc-google-cloud-monitoring-v3 - 1.47.1-SNAPSHOT + 1.48.0 com.google.cloud google-cloud-os-login - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha com.google.api.grpc proto-google-cloud-os-login-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-os-login-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-pubsub - 1.65.1-SNAPSHOT + 1.66.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.47.1-SNAPSHOT + 1.48.0 com.google.cloud google-cloud-redis - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha com.google.api.grpc proto-google-cloud-redis-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-redis-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-redis-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-redis-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-resourcemanager - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha com.google.cloud google-cloud-scheduler - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha com.google.api.grpc proto-google-cloud-scheduler-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-scheduler-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-securitycenter - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha com.google.api.grpc grpc-google-cloud-scheduler-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-scheduler-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-securitycenter-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-spanner - 1.10.1-SNAPSHOT + 1.11.0 com.google.api.grpc proto-google-cloud-spanner-v1 - 1.10.1-SNAPSHOT + 1.11.0 com.google.api.grpc grpc-google-cloud-spanner-v1 - 1.10.1-SNAPSHOT + 1.11.0 com.google.api.grpc proto-google-cloud-spanner-admin-database-v1 - 1.10.1-SNAPSHOT + 1.11.0 com.google.api.grpc grpc-google-cloud-spanner-admin-database-v1 - 1.10.1-SNAPSHOT + 1.11.0 com.google.api.grpc proto-google-cloud-spanner-admin-instance-v1 - 1.10.1-SNAPSHOT + 1.11.0 com.google.api.grpc grpc-google-cloud-spanner-admin-instance-v1 - 1.10.1-SNAPSHOT + 1.11.0 com.google.cloud google-cloud-speech - 0.83.1-beta-SNAPSHOT + 0.84.0-beta com.google.api.grpc proto-google-cloud-speech-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-speech-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-speech-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-speech-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-storage - 1.65.1-SNAPSHOT + 1.66.0 com.google.cloud google-cloud-tasks - 0.83.1-beta-SNAPSHOT + 0.84.0-beta com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-texttospeech - 0.83.1-beta-SNAPSHOT + 0.84.0-beta com.google.api.grpc proto-google-cloud-texttospeech-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-texttospeech-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-trace - 0.83.1-beta-SNAPSHOT + 0.84.0-beta com.google.api.grpc proto-google-cloud-trace-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-trace-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-trace-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-trace-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-translate - 1.65.1-SNAPSHOT + 1.66.0 com.google.cloud google-cloud-vision - 1.65.1-SNAPSHOT + 1.66.0 com.google.api.grpc proto-google-cloud-vision-v1 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc grpc-google-cloud-vision-v1 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc proto-google-cloud-vision-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-vision-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-vision-v1p2beta1 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc grpc-google-cloud-vision-v1p2beta1 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc proto-google-cloud-vision-v1p3beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-vision-v1p3beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-vision-v1p4beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-vision-v1p4beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-video-intelligence - 0.83.1-beta-SNAPSHOT + 0.84.0-beta com.google.api.grpc proto-google-cloud-video-intelligence-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p2beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p2beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p3beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p3beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-iot-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-iot-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-iamcredentials-v1 - 0.10.1-alpha-SNAPSHOT + 0.11.0-alpha com.google.api.grpc grpc-google-cloud-iamcredentials-v1 - 0.10.1-alpha-SNAPSHOT + 0.11.0-alpha com.google.cloud google-cloud-iamcredentials - 0.10.1-alpha-SNAPSHOT + 0.11.0-alpha com.google.api.grpc proto-google-cloud-talent-v4beta1 - 0.0.1-beta-SNAPSHOT + 0.1.0-beta com.google.api.grpc grpc-google-cloud-talent-v4beta1 - 0.0.1-beta-SNAPSHOT + 0.1.0-beta com.google.cloud google-cloud-talent - 0.0.1-beta-SNAPSHOT + 0.1.0-beta diff --git a/google-cloud-clients/google-cloud-asset/README.md b/google-cloud-clients/google-cloud-asset/README.md index 77b3cc41102e..24b8ee6a79fb 100644 --- a/google-cloud-clients/google-cloud-asset/README.md +++ b/google-cloud-clients/google-cloud-asset/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-asset - 0.83.0-beta + 0.84.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-asset:0.83.0-beta' +compile 'com.google.cloud:google-cloud-asset:0.84.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "0.83.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "0.84.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-asset/pom.xml b/google-cloud-clients/google-cloud-asset/pom.xml index 231ec0beb85f..64b910b3ee97 100644 --- a/google-cloud-clients/google-cloud-asset/pom.xml +++ b/google-cloud-clients/google-cloud-asset/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-asset - 0.83.1-beta-SNAPSHOT + 0.84.0-beta jar Google Cloud Asset https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-asset @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-asset diff --git a/google-cloud-clients/google-cloud-automl/README.md b/google-cloud-clients/google-cloud-automl/README.md index 0a05d802f633..b96352368159 100644 --- a/google-cloud-clients/google-cloud-automl/README.md +++ b/google-cloud-clients/google-cloud-automl/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-automl - 0.83.0-beta + 0.84.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-automl:0.83.0-beta' +compile 'com.google.cloud:google-cloud-automl:0.84.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "0.83.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "0.84.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-automl/pom.xml b/google-cloud-clients/google-cloud-automl/pom.xml index 265736758520..e8b5f053ea86 100644 --- a/google-cloud-clients/google-cloud-automl/pom.xml +++ b/google-cloud-clients/google-cloud-automl/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-automl - 0.83.1-beta-SNAPSHOT + 0.84.0-beta jar Google Cloud Auto ML https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-automl @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-automl diff --git a/google-cloud-clients/google-cloud-bigquery/README.md b/google-cloud-clients/google-cloud-bigquery/README.md index 7e735ba98bcc..92264301809d 100644 --- a/google-cloud-clients/google-cloud-bigquery/README.md +++ b/google-cloud-clients/google-cloud-bigquery/README.md @@ -18,16 +18,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-bigquery - 1.65.0 + 1.66.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-bigquery:1.65.0' +compile 'com.google.cloud:google-cloud-bigquery:1.66.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "1.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "1.66.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-bigquery/pom.xml b/google-cloud-clients/google-cloud-bigquery/pom.xml index bec297d8ef58..e28ab06a0253 100644 --- a/google-cloud-clients/google-cloud-bigquery/pom.xml +++ b/google-cloud-clients/google-cloud-bigquery/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-bigquery - 1.65.1-SNAPSHOT + 1.66.0 jar Google Cloud BigQuery https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-bigquery @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-bigquery diff --git a/google-cloud-clients/google-cloud-bigquerydatatransfer/README.md b/google-cloud-clients/google-cloud-bigquerydatatransfer/README.md index 0dce526cdde0..68f524c16a45 100644 --- a/google-cloud-clients/google-cloud-bigquerydatatransfer/README.md +++ b/google-cloud-clients/google-cloud-bigquerydatatransfer/README.md @@ -23,16 +23,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-bigquerydatatransfer - 0.83.0-beta + 0.84.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-bigquerydatatransfer:0.83.0-beta' +compile 'com.google.cloud:google-cloud-bigquerydatatransfer:0.84.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "0.83.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "0.84.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-bigquerydatatransfer/pom.xml b/google-cloud-clients/google-cloud-bigquerydatatransfer/pom.xml index d01057066554..65783d9ae89e 100644 --- a/google-cloud-clients/google-cloud-bigquerydatatransfer/pom.xml +++ b/google-cloud-clients/google-cloud-bigquerydatatransfer/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-bigquerydatatransfer - 0.83.1-beta-SNAPSHOT + 0.84.0-beta jar Google Cloud Bigquery Data Transfer https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-bigquerydatatransfer @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-bigquerydatatransfer diff --git a/google-cloud-clients/google-cloud-bigquerystorage/README.md b/google-cloud-clients/google-cloud-bigquerystorage/README.md index 4257c612f049..b47f1700b93e 100644 --- a/google-cloud-clients/google-cloud-bigquerystorage/README.md +++ b/google-cloud-clients/google-cloud-bigquerystorage/README.md @@ -20,16 +20,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-bigquerystorage - 0.83.0-beta + 0.84.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-bigquerystorage:0.83.0-beta' +compile 'com.google.cloud:google-cloud-bigquerystorage:0.84.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerystorage" % "0.83.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerystorage" % "0.84.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-bigquerystorage/pom.xml b/google-cloud-clients/google-cloud-bigquerystorage/pom.xml index 7bced8792cbc..cf0236def3da 100644 --- a/google-cloud-clients/google-cloud-bigquerystorage/pom.xml +++ b/google-cloud-clients/google-cloud-bigquerystorage/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-bigquerystorage - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud Bigquery Storage https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-bigquerystorage @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-bigquerystorage diff --git a/google-cloud-clients/google-cloud-bigtable/README.md b/google-cloud-clients/google-cloud-bigtable/README.md index 825529cb763e..c4e01470c089 100644 --- a/google-cloud-clients/google-cloud-bigtable/README.md +++ b/google-cloud-clients/google-cloud-bigtable/README.md @@ -21,16 +21,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-bigtable - 0.83.0-alpha + 0.84.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-bigtable:0.83.0-alpha' +compile 'com.google.cloud:google-cloud-bigtable:0.84.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigtable" % "0.83.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-bigtable" % "0.84.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-bigtable/pom.xml b/google-cloud-clients/google-cloud-bigtable/pom.xml index f9e34585b780..341c54d0c35b 100644 --- a/google-cloud-clients/google-cloud-bigtable/pom.xml +++ b/google-cloud-clients/google-cloud-bigtable/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-bigtable - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud Bigtable https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-bigtable @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-bigtable diff --git a/google-cloud-clients/google-cloud-compute/README.md b/google-cloud-clients/google-cloud-compute/README.md index aca73bd237ff..46cff3936971 100644 --- a/google-cloud-clients/google-cloud-compute/README.md +++ b/google-cloud-clients/google-cloud-compute/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-compute - 0.83.0-alpha + 0.84.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-compute:0.83.0-alpha' +compile 'com.google.cloud:google-cloud-compute:0.84.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "0.83.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "0.84.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-compute/pom.xml b/google-cloud-clients/google-cloud-compute/pom.xml index 4286c812fc29..34e3a51a6781 100644 --- a/google-cloud-clients/google-cloud-compute/pom.xml +++ b/google-cloud-clients/google-cloud-compute/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-compute - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud Compute https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-compute @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-compute diff --git a/google-cloud-clients/google-cloud-container/README.md b/google-cloud-clients/google-cloud-container/README.md index 545ce0bd6765..0c83c80d1012 100644 --- a/google-cloud-clients/google-cloud-container/README.md +++ b/google-cloud-clients/google-cloud-container/README.md @@ -22,16 +22,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-container - 0.83.0-beta + 0.84.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-container:0.83.0-beta' +compile 'com.google.cloud:google-cloud-container:0.84.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-container" % "0.83.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-container" % "0.84.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-container/pom.xml b/google-cloud-clients/google-cloud-container/pom.xml index 736eaa81aef8..92e921da43d6 100644 --- a/google-cloud-clients/google-cloud-container/pom.xml +++ b/google-cloud-clients/google-cloud-container/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-container - 0.83.1-beta-SNAPSHOT + 0.84.0-beta jar Google Cloud Container https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-container @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-container diff --git a/google-cloud-clients/google-cloud-containeranalysis/README.md b/google-cloud-clients/google-cloud-containeranalysis/README.md index 559aa0bfeb2f..d8fff6f8e427 100644 --- a/google-cloud-clients/google-cloud-containeranalysis/README.md +++ b/google-cloud-clients/google-cloud-containeranalysis/README.md @@ -19,16 +19,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-containeranalysis - 0.83.0-beta + 0.84.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-containeranalysis:0.83.0-beta' +compile 'com.google.cloud:google-cloud-containeranalysis:0.84.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "0.83.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "0.84.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-containeranalysis/pom.xml b/google-cloud-clients/google-cloud-containeranalysis/pom.xml index 09ad34da3e4f..dce78b73dc57 100644 --- a/google-cloud-clients/google-cloud-containeranalysis/pom.xml +++ b/google-cloud-clients/google-cloud-containeranalysis/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-containeranalysis - 0.83.1-beta-SNAPSHOT + 0.84.0-beta jar Google Cloud Container Analysis https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-containeranalysis @@ -15,7 +15,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-containeranalysis diff --git a/google-cloud-clients/google-cloud-contrib/README.md b/google-cloud-clients/google-cloud-contrib/README.md index c2eca9650029..b20f9e7fe620 100644 --- a/google-cloud-clients/google-cloud-contrib/README.md +++ b/google-cloud-clients/google-cloud-contrib/README.md @@ -25,16 +25,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-contrib - 0.83.0-alpha + 0.84.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-contrib:0.83.0-alpha' +compile 'com.google.cloud:google-cloud-contrib:0.84.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contrib" % "0.83.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-contrib" % "0.84.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/README.md b/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/README.md index ee77bfe6e4e0..ba815c51741e 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/README.md +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/README.md @@ -21,16 +21,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-logging-logback - 0.83.0-alpha + 0.84.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-logging-logback:0.83.0-alpha' +compile 'com.google.cloud:google-cloud-logging-logback:0.84.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-logging-logback" % "0.83.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-logging-logback" % "0.84.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/pom.xml b/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/pom.xml index d85dcb275d35..5fa18cac2f28 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/pom.xml +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/pom.xml @@ -5,7 +5,7 @@ 4.0.0 google-cloud-logging-logback - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud Logging Logback Appender https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback @@ -20,7 +20,7 @@ com.google.cloud google-cloud-contrib - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/README.md b/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/README.md index f3c89f0fe389..a1169dbfc1dc 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/README.md +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/README.md @@ -24,12 +24,12 @@ To run this example: [//]: # ({x-version-update-start:google-cloud-nio:current}) ``` - java -cp google-cloud-clients/google-cloud-contrib/google-cloud-nio/target/google-cloud-nio-0.83.1-alpha-SNAPSHOT.jar:google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/target/google-cloud-nio-examples-0.83.1-alpha-SNAPSHOT.jar com.google.cloud.nio.examples.ListFilesystems + java -cp google-cloud-clients/google-cloud-contrib/google-cloud-nio/target/google-cloud-nio-0.84.0-alpha.jar:google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/target/google-cloud-nio-examples-0.84.0-alpha.jar com.google.cloud.nio.examples.ListFilesystems ``` Notice that it lists Google Cloud Storage, which it wouldn't if you ran it without the NIO jar: ``` - java -cp google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/target/google-cloud-nio-examples-0.83.1-alpha-SNAPSHOT.jar com.google.cloud.nio.examples.ListFilesystems + java -cp google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/target/google-cloud-nio-examples-0.84.0-alpha.jar com.google.cloud.nio.examples.ListFilesystems ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/pom.xml b/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/pom.xml index 54b5ce4c9678..150536882e5e 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/pom.xml +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-nio-examples - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud NIO Examples https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples @@ -12,7 +12,7 @@ com.google.cloud google-cloud-contrib - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-nio-examples diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/README.md b/google-cloud-clients/google-cloud-contrib/google-cloud-nio/README.md index ff8d567d1d3c..582fc6c58821 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/README.md +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-nio/README.md @@ -26,16 +26,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-nio - 0.83.0-alpha + 0.84.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-nio:0.83.0-alpha' +compile 'com.google.cloud:google-cloud-nio:0.84.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-nio" % "0.83.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-nio" % "0.84.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/pom.xml b/google-cloud-clients/google-cloud-contrib/google-cloud-nio/pom.xml index 9e53d212c630..f576dc0cfbd9 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/pom.xml +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-nio/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-nio - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud NIO https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-contrib/google-cloud-nio @@ -12,7 +12,7 @@ com.google.cloud google-cloud-contrib - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-nio diff --git a/google-cloud-clients/google-cloud-contrib/pom.xml b/google-cloud-clients/google-cloud-contrib/pom.xml index 6dfc6eccf7d4..145980f493c9 100644 --- a/google-cloud-clients/google-cloud-contrib/pom.xml +++ b/google-cloud-clients/google-cloud-contrib/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-contrib - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha pom Google Cloud Contributions https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-contrib @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-contrib diff --git a/google-cloud-clients/google-cloud-core-grpc/pom.xml b/google-cloud-clients/google-cloud-core-grpc/pom.xml index be975207cd10..ec819e862817 100644 --- a/google-cloud-clients/google-cloud-core-grpc/pom.xml +++ b/google-cloud-clients/google-cloud-core-grpc/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-core-grpc - 1.65.1-SNAPSHOT + 1.66.0 jar Google Cloud Core gRPC https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-core-grpc @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-core-grpc diff --git a/google-cloud-clients/google-cloud-core-http/pom.xml b/google-cloud-clients/google-cloud-core-http/pom.xml index 07756a0a3ca4..fc1ec80819b3 100644 --- a/google-cloud-clients/google-cloud-core-http/pom.xml +++ b/google-cloud-clients/google-cloud-core-http/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-core-http - 1.65.1-SNAPSHOT + 1.66.0 jar Google Cloud Core HTTP https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-core-http @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-core-http diff --git a/google-cloud-clients/google-cloud-core/README.md b/google-cloud-clients/google-cloud-core/README.md index 80d63a0c7073..4ab5644adc86 100644 --- a/google-cloud-clients/google-cloud-core/README.md +++ b/google-cloud-clients/google-cloud-core/README.md @@ -19,16 +19,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-core - 1.65.0 + 1.66.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-core:1.65.0' +compile 'com.google.cloud:google-cloud-core:1.66.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-core" % "1.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-core" % "1.66.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-core/pom.xml b/google-cloud-clients/google-cloud-core/pom.xml index 8bb0aaf1091f..c48a1fecd349 100644 --- a/google-cloud-clients/google-cloud-core/pom.xml +++ b/google-cloud-clients/google-cloud-core/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-core - 1.65.1-SNAPSHOT + 1.66.0 jar Google Cloud Core https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-core @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-core diff --git a/google-cloud-clients/google-cloud-dataproc/README.md b/google-cloud-clients/google-cloud-dataproc/README.md index 5e126bfa782f..3eafb34eb15a 100644 --- a/google-cloud-clients/google-cloud-dataproc/README.md +++ b/google-cloud-clients/google-cloud-dataproc/README.md @@ -22,16 +22,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-dataproc - 0.83.0-alpha + 0.84.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dataproc:0.83.0-alpha' +compile 'com.google.cloud:google-cloud-dataproc:0.84.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "0.83.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "0.84.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-dataproc/pom.xml b/google-cloud-clients/google-cloud-dataproc/pom.xml index c908d02a8567..ba103a0ddc1f 100644 --- a/google-cloud-clients/google-cloud-dataproc/pom.xml +++ b/google-cloud-clients/google-cloud-dataproc/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-dataproc - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud Dataproc https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-dataproc @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-dataproc diff --git a/google-cloud-clients/google-cloud-datastore/README.md b/google-cloud-clients/google-cloud-datastore/README.md index 6b4768878faf..acdb60178399 100644 --- a/google-cloud-clients/google-cloud-datastore/README.md +++ b/google-cloud-clients/google-cloud-datastore/README.md @@ -19,16 +19,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-datastore - 1.65.0 + 1.66.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-datastore:1.65.0' +compile 'com.google.cloud:google-cloud-datastore:1.66.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datastore" % "1.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datastore" % "1.66.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-datastore/pom.xml b/google-cloud-clients/google-cloud-datastore/pom.xml index 01784c766afc..6302770437a3 100644 --- a/google-cloud-clients/google-cloud-datastore/pom.xml +++ b/google-cloud-clients/google-cloud-datastore/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-datastore - 1.65.1-SNAPSHOT + 1.66.0 jar Google Cloud Datastore https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-datastore @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-datastore diff --git a/google-cloud-clients/google-cloud-dialogflow/README.md b/google-cloud-clients/google-cloud-dialogflow/README.md index b928c426e1cf..055141f0df70 100644 --- a/google-cloud-clients/google-cloud-dialogflow/README.md +++ b/google-cloud-clients/google-cloud-dialogflow/README.md @@ -23,16 +23,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-dialogflow - 0.83.0-alpha + 0.84.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dialogflow:0.83.0-alpha' +compile 'com.google.cloud:google-cloud-dialogflow:0.84.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "0.83.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "0.84.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-dialogflow/pom.xml b/google-cloud-clients/google-cloud-dialogflow/pom.xml index 701aba3f0291..244af295c941 100644 --- a/google-cloud-clients/google-cloud-dialogflow/pom.xml +++ b/google-cloud-clients/google-cloud-dialogflow/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-dialogflow - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud Dialog Flow API https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-dialogflow @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-dialogflow diff --git a/google-cloud-clients/google-cloud-dlp/README.md b/google-cloud-clients/google-cloud-dlp/README.md index aaec3d873b04..f794ada7154a 100644 --- a/google-cloud-clients/google-cloud-dlp/README.md +++ b/google-cloud-clients/google-cloud-dlp/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-dlp - 0.83.0-beta + 0.84.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dlp:0.83.0-beta' +compile 'com.google.cloud:google-cloud-dlp:0.84.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "0.83.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "0.84.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-dlp/pom.xml b/google-cloud-clients/google-cloud-dlp/pom.xml index 363c7e571558..7ea81f448d89 100644 --- a/google-cloud-clients/google-cloud-dlp/pom.xml +++ b/google-cloud-clients/google-cloud-dlp/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-dlp - 0.83.1-beta-SNAPSHOT + 0.84.0-beta jar Google Cloud Data Loss Prevention API https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-dlp @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-dlp diff --git a/google-cloud-clients/google-cloud-dns/README.md b/google-cloud-clients/google-cloud-dns/README.md index 0227efc727e7..f33a24466160 100644 --- a/google-cloud-clients/google-cloud-dns/README.md +++ b/google-cloud-clients/google-cloud-dns/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-dns - 0.83.0-alpha + 0.84.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dns:0.83.0-alpha' +compile 'com.google.cloud:google-cloud-dns:0.84.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dns" % "0.83.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-dns" % "0.84.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-dns/pom.xml b/google-cloud-clients/google-cloud-dns/pom.xml index a1fe2123d438..51bc289aa279 100644 --- a/google-cloud-clients/google-cloud-dns/pom.xml +++ b/google-cloud-clients/google-cloud-dns/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-dns - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud DNS https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-dns @@ -14,7 +14,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-dns diff --git a/google-cloud-clients/google-cloud-errorreporting/README.md b/google-cloud-clients/google-cloud-errorreporting/README.md index 4b5d7f7400ca..6275d1f19720 100644 --- a/google-cloud-clients/google-cloud-errorreporting/README.md +++ b/google-cloud-clients/google-cloud-errorreporting/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-errorreporting - 0.83.0-beta + 0.84.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-errorreporting:0.83.0-beta' +compile 'com.google.cloud:google-cloud-errorreporting:0.84.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.83.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.84.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-errorreporting/pom.xml b/google-cloud-clients/google-cloud-errorreporting/pom.xml index 522f04d1d7bd..d1c240fc5a96 100644 --- a/google-cloud-clients/google-cloud-errorreporting/pom.xml +++ b/google-cloud-clients/google-cloud-errorreporting/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-errorreporting - 0.83.1-beta-SNAPSHOT + 0.84.0-beta jar Google Cloud Error Reporting https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-errorreporting @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-errorreporting diff --git a/google-cloud-clients/google-cloud-firestore/README.md b/google-cloud-clients/google-cloud-firestore/README.md index a192a6d999fe..7f24ca8013b3 100644 --- a/google-cloud-clients/google-cloud-firestore/README.md +++ b/google-cloud-clients/google-cloud-firestore/README.md @@ -17,16 +17,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-firestore - 0.83.0-beta + 0.84.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-firestore:0.83.0-beta' +compile 'com.google.cloud:google-cloud-firestore:0.84.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-firestore" % "0.83.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-firestore" % "0.84.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-firestore/pom.xml b/google-cloud-clients/google-cloud-firestore/pom.xml index f527eb4a6b6b..aa7c4c7294d5 100644 --- a/google-cloud-clients/google-cloud-firestore/pom.xml +++ b/google-cloud-clients/google-cloud-firestore/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-firestore - 0.83.1-beta-SNAPSHOT + 0.84.0-beta jar Google Cloud Firestore https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-firestore @@ -15,7 +15,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-firestore diff --git a/google-cloud-clients/google-cloud-iamcredentials/README.md b/google-cloud-clients/google-cloud-iamcredentials/README.md index 94970c7717c5..a329061b2c7f 100644 --- a/google-cloud-clients/google-cloud-iamcredentials/README.md +++ b/google-cloud-clients/google-cloud-iamcredentials/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-iamcredentials - 0.10.0-alpha + 0.11.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-iamcredentials:0.10.0-alpha' +compile 'com.google.cloud:google-cloud-iamcredentials:0.11.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "0.10.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "0.11.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-iamcredentials/pom.xml b/google-cloud-clients/google-cloud-iamcredentials/pom.xml index 5f37a2cd4df9..7eb89d7d2941 100644 --- a/google-cloud-clients/google-cloud-iamcredentials/pom.xml +++ b/google-cloud-clients/google-cloud-iamcredentials/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-iamcredentials - 0.10.1-alpha-SNAPSHOT + 0.11.0-alpha jar Google Cloud Java Client for IAM Service Account Credentials API https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-iamcredentials @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-iamcredentials diff --git a/google-cloud-clients/google-cloud-iot/README.md b/google-cloud-clients/google-cloud-iot/README.md index 0fc8d568093a..67ae9cf755f6 100644 --- a/google-cloud-clients/google-cloud-iot/README.md +++ b/google-cloud-clients/google-cloud-iot/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-iot - 0.83.0-beta + 0.84.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-iot:0.83.0-beta' +compile 'com.google.cloud:google-cloud-iot:0.84.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "0.83.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "0.84.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-iot/pom.xml b/google-cloud-clients/google-cloud-iot/pom.xml index 4fb5f9302de4..daeac61c6b73 100644 --- a/google-cloud-clients/google-cloud-iot/pom.xml +++ b/google-cloud-clients/google-cloud-iot/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-iot - 0.83.1-beta-SNAPSHOT + 0.84.0-beta jar Google Cloud IoT https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-iot @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-iot diff --git a/google-cloud-clients/google-cloud-kms/README.md b/google-cloud-clients/google-cloud-kms/README.md index 3f7267b715cf..73da73347fb8 100644 --- a/google-cloud-clients/google-cloud-kms/README.md +++ b/google-cloud-clients/google-cloud-kms/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-kms - 1.1.0 + 1.2.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-kms:1.1.0' +compile 'com.google.cloud:google-cloud-kms:1.2.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "1.1.0" +libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "1.2.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-kms/pom.xml b/google-cloud-clients/google-cloud-kms/pom.xml index ad6c131badb5..8f2572d20aa9 100644 --- a/google-cloud-clients/google-cloud-kms/pom.xml +++ b/google-cloud-clients/google-cloud-kms/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-kms - 1.1.1-SNAPSHOT + 1.2.0 jar Google Cloud KMS https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-kms @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-kms-v1 diff --git a/google-cloud-clients/google-cloud-language/README.md b/google-cloud-clients/google-cloud-language/README.md index 089bb908848c..de2028a4aacb 100644 --- a/google-cloud-clients/google-cloud-language/README.md +++ b/google-cloud-clients/google-cloud-language/README.md @@ -19,16 +19,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-language - 1.65.0 + 1.66.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-language:1.65.0' +compile 'com.google.cloud:google-cloud-language:1.66.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-language" % "1.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-language" % "1.66.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-language/pom.xml b/google-cloud-clients/google-cloud-language/pom.xml index 33f5a8b4440f..a8410fe3201b 100644 --- a/google-cloud-clients/google-cloud-language/pom.xml +++ b/google-cloud-clients/google-cloud-language/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-language - 1.65.1-SNAPSHOT + 1.66.0 jar Google Cloud Natural Language https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-language @@ -15,7 +15,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-language diff --git a/google-cloud-clients/google-cloud-logging/README.md b/google-cloud-clients/google-cloud-logging/README.md index 8d076c140317..8af27bccefbc 100644 --- a/google-cloud-clients/google-cloud-logging/README.md +++ b/google-cloud-clients/google-cloud-logging/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-logging - 1.65.0 + 1.66.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-logging:1.65.0' +compile 'com.google.cloud:google-cloud-logging:1.66.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-logging" % "1.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-logging" % "1.66.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-logging/pom.xml b/google-cloud-clients/google-cloud-logging/pom.xml index e74c940a537f..74b87e2d8934 100644 --- a/google-cloud-clients/google-cloud-logging/pom.xml +++ b/google-cloud-clients/google-cloud-logging/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-logging - 1.65.1-SNAPSHOT + 1.66.0 jar Google Cloud Logging https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-logging @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-logging diff --git a/google-cloud-clients/google-cloud-monitoring/README.md b/google-cloud-clients/google-cloud-monitoring/README.md index 7b855671e4ed..744198b6e528 100644 --- a/google-cloud-clients/google-cloud-monitoring/README.md +++ b/google-cloud-clients/google-cloud-monitoring/README.md @@ -19,16 +19,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-monitoring - 1.65.0 + 1.66.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-monitoring:1.65.0' +compile 'com.google.cloud:google-cloud-monitoring:1.66.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "1.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "1.66.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-monitoring/pom.xml b/google-cloud-clients/google-cloud-monitoring/pom.xml index 05d48e01f227..7bbf4cfc0eb5 100644 --- a/google-cloud-clients/google-cloud-monitoring/pom.xml +++ b/google-cloud-clients/google-cloud-monitoring/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-monitoring - 1.65.1-SNAPSHOT + 1.66.0 jar Google Cloud Monitoring https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-monitoring @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-monitoring diff --git a/google-cloud-clients/google-cloud-notification/README.md b/google-cloud-clients/google-cloud-notification/README.md index 5c78a69135d8..dc30156cc4fa 100644 --- a/google-cloud-clients/google-cloud-notification/README.md +++ b/google-cloud-clients/google-cloud-notification/README.md @@ -17,16 +17,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-notification - 0.83.0-beta + 0.84.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-notification:0.83.0-beta' +compile 'com.google.cloud:google-cloud-notification:0.84.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-notification" % "0.83.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-notification" % "0.84.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-notification/pom.xml b/google-cloud-clients/google-cloud-notification/pom.xml index b04d810f66a8..7ea12c372bdd 100644 --- a/google-cloud-clients/google-cloud-notification/pom.xml +++ b/google-cloud-clients/google-cloud-notification/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-notification - 0.83.1-beta-SNAPSHOT + 0.84.0-beta jar Google Cloud Pub/Sub Notifications for GCS https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-notification @@ -15,7 +15,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-notification diff --git a/google-cloud-clients/google-cloud-os-login/README.md b/google-cloud-clients/google-cloud-os-login/README.md index cd56a3182bd6..6a2cc0def662 100644 --- a/google-cloud-clients/google-cloud-os-login/README.md +++ b/google-cloud-clients/google-cloud-os-login/README.md @@ -22,16 +22,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-os-login - 0.83.0-alpha + 0.84.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-os-login:0.83.0-alpha' +compile 'com.google.cloud:google-cloud-os-login:0.84.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "0.83.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "0.84.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-os-login/pom.xml b/google-cloud-clients/google-cloud-os-login/pom.xml index 28183ba34d04..078d6ff292f1 100644 --- a/google-cloud-clients/google-cloud-os-login/pom.xml +++ b/google-cloud-clients/google-cloud-os-login/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-os-login - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud OS Login https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-os-login @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-os-login diff --git a/google-cloud-clients/google-cloud-pubsub/README.md b/google-cloud-clients/google-cloud-pubsub/README.md index 7d5920c117e4..07a9dceaeab4 100644 --- a/google-cloud-clients/google-cloud-pubsub/README.md +++ b/google-cloud-clients/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.65.0 + 1.66.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.65.0' +compile 'com.google.cloud:google-cloud-pubsub:1.66.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.66.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-pubsub/pom.xml b/google-cloud-clients/google-cloud-pubsub/pom.xml index 9b904e790482..f7aa44ecfa29 100644 --- a/google-cloud-clients/google-cloud-pubsub/pom.xml +++ b/google-cloud-clients/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.65.1-SNAPSHOT + 1.66.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-pubsub diff --git a/google-cloud-clients/google-cloud-redis/README.md b/google-cloud-clients/google-cloud-redis/README.md index a9d984097c5b..a9c288214ed4 100644 --- a/google-cloud-clients/google-cloud-redis/README.md +++ b/google-cloud-clients/google-cloud-redis/README.md @@ -22,16 +22,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-redis - 0.83.0-alpha + 0.84.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-redis:0.83.0-alpha' +compile 'com.google.cloud:google-cloud-redis:0.84.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "0.83.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "0.84.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-redis/pom.xml b/google-cloud-clients/google-cloud-redis/pom.xml index 7965f3dd8e92..792b4aa92a70 100644 --- a/google-cloud-clients/google-cloud-redis/pom.xml +++ b/google-cloud-clients/google-cloud-redis/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-redis - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud Redis https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-redis @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-redis diff --git a/google-cloud-clients/google-cloud-resourcemanager/README.md b/google-cloud-clients/google-cloud-resourcemanager/README.md index 27f1d1c2639b..99df4ab98d90 100644 --- a/google-cloud-clients/google-cloud-resourcemanager/README.md +++ b/google-cloud-clients/google-cloud-resourcemanager/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-resourcemanager - 0.83.0-alpha + 0.84.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-resourcemanager:0.83.0-alpha' +compile 'com.google.cloud:google-cloud-resourcemanager:0.84.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "0.83.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "0.84.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-resourcemanager/pom.xml b/google-cloud-clients/google-cloud-resourcemanager/pom.xml index 1408f7cea01f..ba6d4164ed49 100644 --- a/google-cloud-clients/google-cloud-resourcemanager/pom.xml +++ b/google-cloud-clients/google-cloud-resourcemanager/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-resourcemanager - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud Resource Manager https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-resourcemanager @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-resourcemanager diff --git a/google-cloud-clients/google-cloud-scheduler/README.md b/google-cloud-clients/google-cloud-scheduler/README.md index 659095d29027..bc864c3b9d48 100644 --- a/google-cloud-clients/google-cloud-scheduler/README.md +++ b/google-cloud-clients/google-cloud-scheduler/README.md @@ -22,16 +22,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-scheduler - 0.83.0-alpha + 0.84.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-scheduler:0.83.0-alpha' +compile 'com.google.cloud:google-cloud-scheduler:0.84.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "0.83.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "0.84.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-scheduler/pom.xml b/google-cloud-clients/google-cloud-scheduler/pom.xml index e161c7bc6706..959359343470 100644 --- a/google-cloud-clients/google-cloud-scheduler/pom.xml +++ b/google-cloud-clients/google-cloud-scheduler/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-scheduler - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud Scheduler https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-scheduler @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-scheduler diff --git a/google-cloud-clients/google-cloud-securitycenter/README.md b/google-cloud-clients/google-cloud-securitycenter/README.md index 21715d86bff1..dfd10ebba5e1 100644 --- a/google-cloud-clients/google-cloud-securitycenter/README.md +++ b/google-cloud-clients/google-cloud-securitycenter/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-securitycenter - 0.83.0-alpha + 0.84.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-securitycenter:0.83.0-alpha' +compile 'com.google.cloud:google-cloud-securitycenter:0.84.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "0.83.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "0.84.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-securitycenter/pom.xml b/google-cloud-clients/google-cloud-securitycenter/pom.xml index c3d1971846fc..a04aebd71d0e 100644 --- a/google-cloud-clients/google-cloud-securitycenter/pom.xml +++ b/google-cloud-clients/google-cloud-securitycenter/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-securitycenter - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud Security Command Center https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-securitycenter @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-securitycenter diff --git a/google-cloud-clients/google-cloud-spanner/README.md b/google-cloud-clients/google-cloud-spanner/README.md index 51ce371a2e75..2d719c293ccf 100644 --- a/google-cloud-clients/google-cloud-spanner/README.md +++ b/google-cloud-clients/google-cloud-spanner/README.md @@ -20,16 +20,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-spanner - 1.10.0 + 1.11.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-spanner:1.10.0' +compile 'com.google.cloud:google-cloud-spanner:1.11.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "1.10.0" +libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "1.11.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-spanner/pom.xml b/google-cloud-clients/google-cloud-spanner/pom.xml index 0f7646f86be1..248f7090a535 100644 --- a/google-cloud-clients/google-cloud-spanner/pom.xml +++ b/google-cloud-clients/google-cloud-spanner/pom.xml @@ -4,7 +4,7 @@ http://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0 google-cloud-spanner - 1.10.1-SNAPSHOT + 1.11.0 jar Google Cloud Spanner https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-spanner @@ -14,7 +14,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-spanner diff --git a/google-cloud-clients/google-cloud-speech/README.md b/google-cloud-clients/google-cloud-speech/README.md index 930aa14c9d8b..ef4b8553a0ca 100644 --- a/google-cloud-clients/google-cloud-speech/README.md +++ b/google-cloud-clients/google-cloud-speech/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-speech - 0.83.0-beta + 0.84.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-speech:0.83.0-beta' +compile 'com.google.cloud:google-cloud-speech:0.84.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "0.83.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "0.84.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-speech/pom.xml b/google-cloud-clients/google-cloud-speech/pom.xml index 13b0184c5a45..fa253a82123a 100644 --- a/google-cloud-clients/google-cloud-speech/pom.xml +++ b/google-cloud-clients/google-cloud-speech/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-speech - 0.83.1-beta-SNAPSHOT + 0.84.0-beta jar Google Cloud Speech https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-speech @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-speech diff --git a/google-cloud-clients/google-cloud-storage/README.md b/google-cloud-clients/google-cloud-storage/README.md index f8ba67aca86c..6cb606af933f 100644 --- a/google-cloud-clients/google-cloud-storage/README.md +++ b/google-cloud-clients/google-cloud-storage/README.md @@ -19,16 +19,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-storage - 1.65.0 + 1.66.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-storage:1.65.0' +compile 'com.google.cloud:google-cloud-storage:1.66.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "1.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "1.66.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-storage/pom.xml b/google-cloud-clients/google-cloud-storage/pom.xml index c5c792ca7862..1f128f3bb358 100644 --- a/google-cloud-clients/google-cloud-storage/pom.xml +++ b/google-cloud-clients/google-cloud-storage/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-storage - 1.65.1-SNAPSHOT + 1.66.0 jar Google Cloud Storage https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-storage @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-storage diff --git a/google-cloud-clients/google-cloud-talent/pom.xml b/google-cloud-clients/google-cloud-talent/pom.xml index 0f6dddd4d22f..5df8009c0773 100644 --- a/google-cloud-clients/google-cloud-talent/pom.xml +++ b/google-cloud-clients/google-cloud-talent/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-talent - 0.0.1-beta-SNAPSHOT + 0.1.0-beta jar Google Cloud Talent Solution https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-talent @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-talent diff --git a/google-cloud-clients/google-cloud-tasks/README.md b/google-cloud-clients/google-cloud-tasks/README.md index e3138406b363..06fef29dc53a 100644 --- a/google-cloud-clients/google-cloud-tasks/README.md +++ b/google-cloud-clients/google-cloud-tasks/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-tasks - 0.83.0-beta + 0.84.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-tasks:0.83.0-beta' +compile 'com.google.cloud:google-cloud-tasks:0.84.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "0.83.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "0.84.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-tasks/pom.xml b/google-cloud-clients/google-cloud-tasks/pom.xml index 60efe14dedcf..2627575579f9 100644 --- a/google-cloud-clients/google-cloud-tasks/pom.xml +++ b/google-cloud-clients/google-cloud-tasks/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-tasks - 0.83.1-beta-SNAPSHOT + 0.84.0-beta jar Google Cloud Tasks https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-tasks @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-tasks-v2beta2 diff --git a/google-cloud-clients/google-cloud-texttospeech/README.md b/google-cloud-clients/google-cloud-texttospeech/README.md index c37561b98eaf..6afbeb0bf804 100644 --- a/google-cloud-clients/google-cloud-texttospeech/README.md +++ b/google-cloud-clients/google-cloud-texttospeech/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-texttospeech - 0.83.0-beta + 0.84.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-texttospeech:0.83.0-beta' +compile 'com.google.cloud:google-cloud-texttospeech:0.84.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "0.83.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "0.84.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-texttospeech/pom.xml b/google-cloud-clients/google-cloud-texttospeech/pom.xml index bc3e48b0a5df..4831f4910dfd 100644 --- a/google-cloud-clients/google-cloud-texttospeech/pom.xml +++ b/google-cloud-clients/google-cloud-texttospeech/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-texttospeech - 0.83.1-beta-SNAPSHOT + 0.84.0-beta jar Google Cloud Text-to-Speech https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-texttospeech @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-texttospeech-v1beta1 diff --git a/google-cloud-clients/google-cloud-trace/README.md b/google-cloud-clients/google-cloud-trace/README.md index d1faf9b8ad9a..77e781bd5104 100644 --- a/google-cloud-clients/google-cloud-trace/README.md +++ b/google-cloud-clients/google-cloud-trace/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-trace - 0.83.0-beta + 0.84.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-trace:0.83.0-beta' +compile 'com.google.cloud:google-cloud-trace:0.84.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "0.83.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "0.84.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-trace/pom.xml b/google-cloud-clients/google-cloud-trace/pom.xml index 7b980c807b41..b2befed7a945 100644 --- a/google-cloud-clients/google-cloud-trace/pom.xml +++ b/google-cloud-clients/google-cloud-trace/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-trace - 0.83.1-beta-SNAPSHOT + 0.84.0-beta jar Google Cloud Trace https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-trace @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-trace diff --git a/google-cloud-clients/google-cloud-translate/README.md b/google-cloud-clients/google-cloud-translate/README.md index e6b5a9efac52..ec961a9b81b2 100644 --- a/google-cloud-clients/google-cloud-translate/README.md +++ b/google-cloud-clients/google-cloud-translate/README.md @@ -19,16 +19,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-translate - 1.65.0 + 1.66.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-translate:1.65.0' +compile 'com.google.cloud:google-cloud-translate:1.66.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "1.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "1.66.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-translate/pom.xml b/google-cloud-clients/google-cloud-translate/pom.xml index c333beccf1e3..8c5bef0dc899 100644 --- a/google-cloud-clients/google-cloud-translate/pom.xml +++ b/google-cloud-clients/google-cloud-translate/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-translate - 1.65.1-SNAPSHOT + 1.66.0 jar Google Cloud Translation https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-translate @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-translate diff --git a/google-cloud-clients/google-cloud-video-intelligence/README.md b/google-cloud-clients/google-cloud-video-intelligence/README.md index ce73e0c0a26a..b24760da1a14 100644 --- a/google-cloud-clients/google-cloud-video-intelligence/README.md +++ b/google-cloud-clients/google-cloud-video-intelligence/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-video-intelligence - 0.83.0-beta + 0.84.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-video-intelligence:0.83.0-beta' +compile 'com.google.cloud:google-cloud-video-intelligence:0.84.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "0.83.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "0.84.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-video-intelligence/pom.xml b/google-cloud-clients/google-cloud-video-intelligence/pom.xml index e7edc3c3ab9b..a72bbc5887f7 100644 --- a/google-cloud-clients/google-cloud-video-intelligence/pom.xml +++ b/google-cloud-clients/google-cloud-video-intelligence/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-video-intelligence - 0.83.1-beta-SNAPSHOT + 0.84.0-beta jar Google Cloud Video Intelligence https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-video-intelligence @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-video-intelligence diff --git a/google-cloud-clients/google-cloud-vision/README.md b/google-cloud-clients/google-cloud-vision/README.md index f2609cee13ac..812eb2a19f6a 100644 --- a/google-cloud-clients/google-cloud-vision/README.md +++ b/google-cloud-clients/google-cloud-vision/README.md @@ -19,16 +19,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-vision - 1.65.0 + 1.66.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-vision:1.65.0' +compile 'com.google.cloud:google-cloud-vision:1.66.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "1.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "1.66.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-vision/pom.xml b/google-cloud-clients/google-cloud-vision/pom.xml index 30b66b8737bc..f6b76debb65e 100644 --- a/google-cloud-clients/google-cloud-vision/pom.xml +++ b/google-cloud-clients/google-cloud-vision/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-vision - 1.65.1-SNAPSHOT + 1.66.0 jar Google Cloud Vision https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-vision @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-vision diff --git a/google-cloud-clients/google-cloud-websecurityscanner/README.md b/google-cloud-clients/google-cloud-websecurityscanner/README.md index ed2b387a4fb9..5af61360b757 100644 --- a/google-cloud-clients/google-cloud-websecurityscanner/README.md +++ b/google-cloud-clients/google-cloud-websecurityscanner/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-websecurityscanner - 0.83.0-alpha + 0.84.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-websecurityscanner:0.83.0-alpha' +compile 'com.google.cloud:google-cloud-websecurityscanner:0.84.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "0.83.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "0.84.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-websecurityscanner/pom.xml b/google-cloud-clients/google-cloud-websecurityscanner/pom.xml index cb40683dc1a3..21ccd4d0f1a7 100644 --- a/google-cloud-clients/google-cloud-websecurityscanner/pom.xml +++ b/google-cloud-clients/google-cloud-websecurityscanner/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-websecurityscanner - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud Web Security Scanner https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-websecurityscanner @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-websecurityscanner diff --git a/google-cloud-clients/pom.xml b/google-cloud-clients/pom.xml index 4ab56ff7a62e..b50333f568a5 100644 --- a/google-cloud-clients/pom.xml +++ b/google-cloud-clients/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-clients pom - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha Google Cloud https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients @@ -152,7 +152,7 @@ UTF-8 github google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha 1.27.0 1.42.0 @@ -247,7 +247,7 @@ com.google.cloud google-cloud-core - 1.65.1-SNAPSHOT + 1.66.0 test-jar diff --git a/google-cloud-examples/README.md b/google-cloud-examples/README.md index 750295b29e77..0d6a4f58b9d8 100644 --- a/google-cloud-examples/README.md +++ b/google-cloud-examples/README.md @@ -21,16 +21,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-examples - 0.83.0-alpha + 0.84.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-examples:0.83.0-alpha' +compile 'com.google.cloud:google-cloud-examples:0.84.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-examples" % "0.83.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-examples" % "0.84.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-examples/pom.xml b/google-cloud-examples/pom.xml index ed63603f2c51..c2cdf8894ca8 100644 --- a/google-cloud-examples/pom.xml +++ b/google-cloud-examples/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-examples - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud Examples https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-examples @@ -18,7 +18,7 @@ com.google.cloud google-cloud-bom - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha pom import diff --git a/google-cloud-testing/google-cloud-appengineflexcompat/pom.xml b/google-cloud-testing/google-cloud-appengineflexcompat/pom.xml index b5f1fb0ce07e..1015aa771093 100644 --- a/google-cloud-testing/google-cloud-appengineflexcompat/pom.xml +++ b/google-cloud-testing/google-cloud-appengineflexcompat/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-appengineflexcompat - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha war google-cloud-testing com.google.cloud - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha diff --git a/google-cloud-testing/google-cloud-appengineflexcustom/pom.xml b/google-cloud-testing/google-cloud-appengineflexcustom/pom.xml index 81ead40d6167..b6e45e212180 100644 --- a/google-cloud-testing/google-cloud-appengineflexcustom/pom.xml +++ b/google-cloud-testing/google-cloud-appengineflexcustom/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-appengineflexcustom - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha war google-cloud-testing com.google.cloud - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha diff --git a/google-cloud-testing/google-cloud-appengineflexjava/pom.xml b/google-cloud-testing/google-cloud-appengineflexjava/pom.xml index c3852305d73f..76ecf99bb840 100644 --- a/google-cloud-testing/google-cloud-appengineflexjava/pom.xml +++ b/google-cloud-testing/google-cloud-appengineflexjava/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-appengineflexjava - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha war google-cloud-testing com.google.cloud - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha diff --git a/google-cloud-testing/google-cloud-appenginejava8/pom.xml b/google-cloud-testing/google-cloud-appenginejava8/pom.xml index 039bb461c16c..3c130d5ee5a4 100644 --- a/google-cloud-testing/google-cloud-appenginejava8/pom.xml +++ b/google-cloud-testing/google-cloud-appenginejava8/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-appenginejava8 - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha war google-cloud-testing com.google.cloud - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha diff --git a/google-cloud-testing/google-cloud-bigtable-emulator/README.md b/google-cloud-testing/google-cloud-bigtable-emulator/README.md index 698b3c6eaf9b..6b8c8ead1976 100644 --- a/google-cloud-testing/google-cloud-bigtable-emulator/README.md +++ b/google-cloud-testing/google-cloud-bigtable-emulator/README.md @@ -19,7 +19,7 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-bom - 0.83.0-alpha + 0.84.0-alpha pom import @@ -48,14 +48,14 @@ If you are using Maven, add this to your pom.xml file If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-bigtable:0.83.0-alpha' -testCompile 'com.google.cloud:google-cloud-bigtable-emulator:0.83.0-alpha' +compile 'com.google.cloud:google-cloud-bigtable:0.84.0-alpha' +testCompile 'com.google.cloud:google-cloud-bigtable-emulator:0.84.0-alpha' testCompile 'junit:junit:4.12' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigtable" % "0.83.0-alpha" -libraryDependencies += "com.google.cloud" % "google-cloud-bigtable-emulator" % "0.83.0-alpha" % Test +libraryDependencies += "com.google.cloud" % "google-cloud-bigtable" % "0.84.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-bigtable-emulator" % "0.84.0-alpha" % Test libraryDependencies += "junit" % "junit" % "4.12" % Test ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-testing/google-cloud-bigtable-emulator/pom.xml b/google-cloud-testing/google-cloud-bigtable-emulator/pom.xml index e7c2e305c214..01035af6efc3 100644 --- a/google-cloud-testing/google-cloud-bigtable-emulator/pom.xml +++ b/google-cloud-testing/google-cloud-bigtable-emulator/pom.xml @@ -6,7 +6,7 @@ com.google.cloud google-cloud-bigtable-emulator - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha Google Cloud Java - Bigtable Emulator https://github.com/googleapis/google-cloud-java @@ -69,7 +69,7 @@ com.google.cloud google-cloud-gcloud-maven-plugin - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha @@ -126,7 +126,7 @@ com.google.cloud google-cloud-bom - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha pom import diff --git a/google-cloud-testing/google-cloud-gcloud-maven-plugin/pom.xml b/google-cloud-testing/google-cloud-gcloud-maven-plugin/pom.xml index 4076cbe3cc18..209029473d0d 100644 --- a/google-cloud-testing/google-cloud-gcloud-maven-plugin/pom.xml +++ b/google-cloud-testing/google-cloud-gcloud-maven-plugin/pom.xml @@ -7,11 +7,11 @@ google-cloud-testing com.google.cloud - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-gcloud-maven-plugin - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha maven-plugin Experimental Maven plugin to interact with the Google Cloud SDK (https://cloud.google.com/sdk/). Currently this plugin is meant to be an internal implementation diff --git a/google-cloud-testing/google-cloud-managedtest/pom.xml b/google-cloud-testing/google-cloud-managedtest/pom.xml index 013429fe51ba..9b98f3428f56 100644 --- a/google-cloud-testing/google-cloud-managedtest/pom.xml +++ b/google-cloud-testing/google-cloud-managedtest/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-managedtest - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar google-cloud-testing com.google.cloud - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha diff --git a/google-cloud-testing/pom.xml b/google-cloud-testing/pom.xml index 61d4336b82e9..cb0601345320 100644 --- a/google-cloud-testing/pom.xml +++ b/google-cloud-testing/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.google.cloud google-cloud-testing - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha pom Google Cloud Testing @@ -32,14 +32,14 @@ com.google.cloud google-cloud-bom - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha pom import com.google.cloud google-cloud-core - 1.65.1-SNAPSHOT + 1.66.0 test-jar diff --git a/google-cloud-util/google-cloud-compat-checker/pom.xml b/google-cloud-util/google-cloud-compat-checker/pom.xml index daa8990e48e4..0eae7b61f6a1 100644 --- a/google-cloud-util/google-cloud-compat-checker/pom.xml +++ b/google-cloud-util/google-cloud-compat-checker/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-compat-checker - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud Java Compatibility Checker https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-util/google-cloud-compat-checker @@ -12,7 +12,7 @@ com.google.cloud google-cloud-util - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-compat-checker diff --git a/google-cloud-util/pom.xml b/google-cloud-util/pom.xml index 1ecbec112f54..2cceda704b06 100644 --- a/google-cloud-util/pom.xml +++ b/google-cloud-util/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-util - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha pom Google Cloud Util https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-util diff --git a/versions.txt b/versions.txt index 081f21b9178d..a7e5776c0957 100644 --- a/versions.txt +++ b/versions.txt @@ -1,178 +1,178 @@ # Format: # module:released-version:current-version -google-api-grpc:0.48.0:0.48.1-SNAPSHOT -google-cloud:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-appengineflexcompat:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-appengineflexcustom:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-appengineflexjava:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-appenginejava8:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-asset:0.83.0-beta:0.83.1-beta-SNAPSHOT -google-cloud-automl:0.83.0-beta:0.83.1-beta-SNAPSHOT -google-cloud-bigquery:1.65.0:1.65.1-SNAPSHOT -google-cloud-bigquerydatatransfer:0.83.0-beta:0.83.1-beta-SNAPSHOT -google-cloud-bigquerystorage:0.83.0-beta:0.83.1-beta-SNAPSHOT -google-cloud-bigtable:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-bigtable-emulator:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-bom:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-clients:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-compat-checker:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-compute:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-container:0.83.0-beta:0.83.1-beta-SNAPSHOT -google-cloud-containeranalysis:0.83.0-beta:0.83.1-beta-SNAPSHOT -google-cloud-contrib:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-core:1.65.0:1.65.1-SNAPSHOT -google-cloud-core-grpc:1.65.0:1.65.1-SNAPSHOT -google-cloud-core-http:1.65.0:1.65.1-SNAPSHOT -google-cloud-dataproc:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-datastore:1.65.0:1.65.1-SNAPSHOT -google-cloud-dialogflow:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-dlp:0.83.0-beta:0.83.1-beta-SNAPSHOT -google-cloud-dns:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-errorreporting:0.83.0-beta:0.83.1-beta-SNAPSHOT -google-cloud-examples:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-firestore:0.83.0-beta:0.83.1-beta-SNAPSHOT -google-cloud-gcloud-maven-plugin:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-iamcredentials:0.10.0-alpha:0.10.1-alpha-SNAPSHOT -google-cloud-iot:0.83.0-beta:0.83.1-beta-SNAPSHOT -google-cloud-kms:1.1.0:1.1.1-SNAPSHOT -google-cloud-language:1.65.0:1.65.1-SNAPSHOT -google-cloud-logging:1.65.0:1.65.1-SNAPSHOT -google-cloud-logging-logback:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-managedtest:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-monitoring:1.65.0:1.65.1-SNAPSHOT -google-cloud-nio:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-nio-examples:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-notification:0.83.0-beta:0.83.1-beta-SNAPSHOT -google-cloud-os-login:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-pubsub:1.65.0:1.65.1-SNAPSHOT -google-cloud-redis:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-resourcemanager:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-scheduler:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-securitycenter:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-spanner:1.10.0:1.10.1-SNAPSHOT -google-cloud-speech:0.83.0-beta:0.83.1-beta-SNAPSHOT -google-cloud-storage:1.65.0:1.65.1-SNAPSHOT -google-cloud-talent:0.0.0-beta:0.0.1-beta-SNAPSHOT -google-cloud-tasks:0.83.0-beta:0.83.1-beta-SNAPSHOT -google-cloud-testing:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-texttospeech:0.83.0-beta:0.83.1-beta-SNAPSHOT -google-cloud-trace:0.83.0-beta:0.83.1-beta-SNAPSHOT -google-cloud-translate:1.65.0:1.65.1-SNAPSHOT -google-cloud-util:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-video-intelligence:0.83.0-beta:0.83.1-beta-SNAPSHOT -google-cloud-vision:1.65.0:1.65.1-SNAPSHOT -google-cloud-websecurityscanner:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -grpc-google-cloud-asset-v1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-automl-v1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-bigquerydatatransfer-v1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-bigquerystorage-v1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-bigtable-admin-v2:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-bigtable-v2:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-container-v1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-containeranalysis-v1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-dataproc-v1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-dataproc-v1beta2:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-dialogflow-v2:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-dialogflow-v2beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-dlp-v2:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-error-reporting-v1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-firestore-v1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-firestore-v1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-iamcredentials-v1:0.10.0-alpha:0.10.1-alpha-SNAPSHOT -grpc-google-cloud-iot-v1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-kms-v1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-language-v1:1.47.0:1.47.1-SNAPSHOT -grpc-google-cloud-language-v1beta2:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-logging-v2:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-monitoring-v3:1.47.0:1.47.1-SNAPSHOT -grpc-google-cloud-os-login-v1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.47.0:1.47.1-SNAPSHOT -grpc-google-cloud-redis-v1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-redis-v1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-scheduler-v1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-scheduler-v1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-securitycenter-v1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-securitycenter-v1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-spanner-admin-database-v1:1.10.0:1.10.1-SNAPSHOT -grpc-google-cloud-spanner-admin-instance-v1:1.10.0:1.10.1-SNAPSHOT -grpc-google-cloud-spanner-v1:1.10.0:1.10.1-SNAPSHOT -grpc-google-cloud-speech-v1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-speech-v1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-speech-v1p1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-talent-v4beta1:0.0.0-beta:0.0.1-beta-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-texttospeech-v1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-texttospeech-v1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-trace-v1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-trace-v2:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-video-intelligence-v1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-video-intelligence-v1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-video-intelligence-v1beta2:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-video-intelligence-v1p1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-video-intelligence-v1p2beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-video-intelligence-v1p3beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-vision-v1:1.47.0:1.47.1-SNAPSHOT -grpc-google-cloud-vision-v1p1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-vision-v1p2beta1:1.47.0:1.47.1-SNAPSHOT -grpc-google-cloud-vision-v1p3beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-vision-v1p4beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-websecurityscanner-v1alpha:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-asset-v1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-automl-v1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-bigquerydatatransfer-v1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-bigquerystorage-v1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-bigtable-admin-v2:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-bigtable-v2:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-container-v1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-containeranalysis-v1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-dataproc-v1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-dataproc-v1beta2:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-datastore-v1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-dialogflow-v2:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-dialogflow-v2beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-dlp-v2:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-error-reporting-v1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-firestore-v1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-firestore-v1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-iamcredentials-v1:0.10.0-alpha:0.10.1-alpha-SNAPSHOT -proto-google-cloud-iot-v1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-kms-v1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-language-v1:1.47.0:1.47.1-SNAPSHOT -proto-google-cloud-language-v1beta2:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-logging-v2:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-monitoring-v3:1.47.0:1.47.1-SNAPSHOT -proto-google-cloud-os-login-v1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.47.0:1.47.1-SNAPSHOT -proto-google-cloud-redis-v1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-redis-v1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-scheduler-v1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-scheduler-v1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-securitycenter-v1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-securitycenter-v1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-spanner-admin-database-v1:1.10.0:1.10.1-SNAPSHOT -proto-google-cloud-spanner-admin-instance-v1:1.10.0:1.10.1-SNAPSHOT -proto-google-cloud-spanner-v1:1.10.0:1.10.1-SNAPSHOT -proto-google-cloud-speech-v1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-speech-v1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-speech-v1p1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-talent-v4beta1:0.0.0-beta:0.0.1-beta-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-texttospeech-v1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-texttospeech-v1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-trace-v1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-trace-v2:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-video-intelligence-v1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-video-intelligence-v1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-video-intelligence-v1beta2:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-video-intelligence-v1p1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-video-intelligence-v1p2beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-video-intelligence-v1p3beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-vision-v1:1.47.0:1.47.1-SNAPSHOT -proto-google-cloud-vision-v1p1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-vision-v1p2beta1:1.47.0:1.47.1-SNAPSHOT -proto-google-cloud-vision-v1p3beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-vision-v1p4beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-websecurityscanner-v1alpha:0.48.0:0.48.1-SNAPSHOT +google-api-grpc:0.49.0:0.49.0 +google-cloud:0.84.0-alpha:0.84.0-alpha +google-cloud-appengineflexcompat:0.84.0-alpha:0.84.0-alpha +google-cloud-appengineflexcustom:0.84.0-alpha:0.84.0-alpha +google-cloud-appengineflexjava:0.84.0-alpha:0.84.0-alpha +google-cloud-appenginejava8:0.84.0-alpha:0.84.0-alpha +google-cloud-asset:0.84.0-beta:0.84.0-beta +google-cloud-automl:0.84.0-beta:0.84.0-beta +google-cloud-bigquery:1.66.0:1.66.0 +google-cloud-bigquerydatatransfer:0.84.0-beta:0.84.0-beta +google-cloud-bigquerystorage:0.84.0-beta:0.84.0-beta +google-cloud-bigtable:0.84.0-alpha:0.84.0-alpha +google-cloud-bigtable-emulator:0.84.0-alpha:0.84.0-alpha +google-cloud-bom:0.84.0-alpha:0.84.0-alpha +google-cloud-clients:0.84.0-alpha:0.84.0-alpha +google-cloud-compat-checker:0.84.0-alpha:0.84.0-alpha +google-cloud-compute:0.84.0-alpha:0.84.0-alpha +google-cloud-container:0.84.0-beta:0.84.0-beta +google-cloud-containeranalysis:0.84.0-beta:0.84.0-beta +google-cloud-contrib:0.84.0-alpha:0.84.0-alpha +google-cloud-core:1.66.0:1.66.0 +google-cloud-core-grpc:1.66.0:1.66.0 +google-cloud-core-http:1.66.0:1.66.0 +google-cloud-dataproc:0.84.0-alpha:0.84.0-alpha +google-cloud-datastore:1.66.0:1.66.0 +google-cloud-dialogflow:0.84.0-alpha:0.84.0-alpha +google-cloud-dlp:0.84.0-beta:0.84.0-beta +google-cloud-dns:0.84.0-alpha:0.84.0-alpha +google-cloud-errorreporting:0.84.0-beta:0.84.0-beta +google-cloud-examples:0.84.0-alpha:0.84.0-alpha +google-cloud-firestore:0.84.0-beta:0.84.0-beta +google-cloud-gcloud-maven-plugin:0.84.0-alpha:0.84.0-alpha +google-cloud-iamcredentials:0.11.0-alpha:0.11.0-alpha +google-cloud-iot:0.84.0-beta:0.84.0-beta +google-cloud-kms:1.2.0:1.2.0 +google-cloud-language:1.66.0:1.66.0 +google-cloud-logging:1.66.0:1.66.0 +google-cloud-logging-logback:0.84.0-alpha:0.84.0-alpha +google-cloud-managedtest:0.84.0-alpha:0.84.0-alpha +google-cloud-monitoring:1.66.0:1.66.0 +google-cloud-nio:0.84.0-alpha:0.84.0-alpha +google-cloud-nio-examples:0.84.0-alpha:0.84.0-alpha +google-cloud-notification:0.84.0-beta:0.84.0-beta +google-cloud-os-login:0.84.0-alpha:0.84.0-alpha +google-cloud-pubsub:1.66.0:1.66.0 +google-cloud-redis:0.84.0-alpha:0.84.0-alpha +google-cloud-resourcemanager:0.84.0-alpha:0.84.0-alpha +google-cloud-scheduler:0.84.0-alpha:0.84.0-alpha +google-cloud-securitycenter:0.84.0-alpha:0.84.0-alpha +google-cloud-spanner:1.11.0:1.11.0 +google-cloud-speech:0.84.0-beta:0.84.0-beta +google-cloud-storage:1.66.0:1.66.0 +google-cloud-talent:0.1.0-beta:0.1.0-beta +google-cloud-tasks:0.84.0-beta:0.84.0-beta +google-cloud-testing:0.84.0-alpha:0.84.0-alpha +google-cloud-texttospeech:0.84.0-beta:0.84.0-beta +google-cloud-trace:0.84.0-beta:0.84.0-beta +google-cloud-translate:1.66.0:1.66.0 +google-cloud-util:0.84.0-alpha:0.84.0-alpha +google-cloud-video-intelligence:0.84.0-beta:0.84.0-beta +google-cloud-vision:1.66.0:1.66.0 +google-cloud-websecurityscanner:0.84.0-alpha:0.84.0-alpha +grpc-google-cloud-asset-v1beta1:0.49.0:0.49.0 +grpc-google-cloud-automl-v1beta1:0.49.0:0.49.0 +grpc-google-cloud-bigquerydatatransfer-v1:0.49.0:0.49.0 +grpc-google-cloud-bigquerystorage-v1beta1:0.49.0:0.49.0 +grpc-google-cloud-bigtable-admin-v2:0.49.0:0.49.0 +grpc-google-cloud-bigtable-v2:0.49.0:0.49.0 +grpc-google-cloud-container-v1:0.49.0:0.49.0 +grpc-google-cloud-containeranalysis-v1beta1:0.49.0:0.49.0 +grpc-google-cloud-dataproc-v1:0.49.0:0.49.0 +grpc-google-cloud-dataproc-v1beta2:0.49.0:0.49.0 +grpc-google-cloud-dialogflow-v2:0.49.0:0.49.0 +grpc-google-cloud-dialogflow-v2beta1:0.49.0:0.49.0 +grpc-google-cloud-dlp-v2:0.49.0:0.49.0 +grpc-google-cloud-error-reporting-v1beta1:0.49.0:0.49.0 +grpc-google-cloud-firestore-v1:0.49.0:0.49.0 +grpc-google-cloud-firestore-v1beta1:0.49.0:0.49.0 +grpc-google-cloud-iamcredentials-v1:0.11.0-alpha:0.11.0-alpha +grpc-google-cloud-iot-v1:0.49.0:0.49.0 +grpc-google-cloud-kms-v1:0.49.0:0.49.0 +grpc-google-cloud-language-v1:1.48.0:1.48.0 +grpc-google-cloud-language-v1beta2:0.49.0:0.49.0 +grpc-google-cloud-logging-v2:0.49.0:0.49.0 +grpc-google-cloud-monitoring-v3:1.48.0:1.48.0 +grpc-google-cloud-os-login-v1:0.49.0:0.49.0 +grpc-google-cloud-pubsub-v1:1.48.0:1.48.0 +grpc-google-cloud-redis-v1:0.49.0:0.49.0 +grpc-google-cloud-redis-v1beta1:0.49.0:0.49.0 +grpc-google-cloud-scheduler-v1:0.49.0:0.49.0 +grpc-google-cloud-scheduler-v1beta1:0.49.0:0.49.0 +grpc-google-cloud-securitycenter-v1:0.49.0:0.49.0 +grpc-google-cloud-securitycenter-v1beta1:0.49.0:0.49.0 +grpc-google-cloud-spanner-admin-database-v1:1.11.0:1.11.0 +grpc-google-cloud-spanner-admin-instance-v1:1.11.0:1.11.0 +grpc-google-cloud-spanner-v1:1.11.0:1.11.0 +grpc-google-cloud-speech-v1:0.49.0:0.49.0 +grpc-google-cloud-speech-v1beta1:0.49.0:0.49.0 +grpc-google-cloud-speech-v1p1beta1:0.49.0:0.49.0 +grpc-google-cloud-talent-v4beta1:0.1.0-beta:0.1.0-beta +grpc-google-cloud-tasks-v2beta2:0.49.0:0.49.0 +grpc-google-cloud-tasks-v2beta3:0.49.0:0.49.0 +grpc-google-cloud-texttospeech-v1:0.49.0:0.49.0 +grpc-google-cloud-texttospeech-v1beta1:0.49.0:0.49.0 +grpc-google-cloud-trace-v1:0.49.0:0.49.0 +grpc-google-cloud-trace-v2:0.49.0:0.49.0 +grpc-google-cloud-video-intelligence-v1:0.49.0:0.49.0 +grpc-google-cloud-video-intelligence-v1beta1:0.49.0:0.49.0 +grpc-google-cloud-video-intelligence-v1beta2:0.49.0:0.49.0 +grpc-google-cloud-video-intelligence-v1p1beta1:0.49.0:0.49.0 +grpc-google-cloud-video-intelligence-v1p2beta1:0.49.0:0.49.0 +grpc-google-cloud-video-intelligence-v1p3beta1:0.49.0:0.49.0 +grpc-google-cloud-vision-v1:1.48.0:1.48.0 +grpc-google-cloud-vision-v1p1beta1:0.49.0:0.49.0 +grpc-google-cloud-vision-v1p2beta1:1.48.0:1.48.0 +grpc-google-cloud-vision-v1p3beta1:0.49.0:0.49.0 +grpc-google-cloud-vision-v1p4beta1:0.49.0:0.49.0 +grpc-google-cloud-websecurityscanner-v1alpha:0.49.0:0.49.0 +proto-google-cloud-asset-v1beta1:0.49.0:0.49.0 +proto-google-cloud-automl-v1beta1:0.49.0:0.49.0 +proto-google-cloud-bigquerydatatransfer-v1:0.49.0:0.49.0 +proto-google-cloud-bigquerystorage-v1beta1:0.49.0:0.49.0 +proto-google-cloud-bigtable-admin-v2:0.49.0:0.49.0 +proto-google-cloud-bigtable-v2:0.49.0:0.49.0 +proto-google-cloud-container-v1:0.49.0:0.49.0 +proto-google-cloud-containeranalysis-v1beta1:0.49.0:0.49.0 +proto-google-cloud-dataproc-v1:0.49.0:0.49.0 +proto-google-cloud-dataproc-v1beta2:0.49.0:0.49.0 +proto-google-cloud-datastore-v1:0.49.0:0.49.0 +proto-google-cloud-dialogflow-v2:0.49.0:0.49.0 +proto-google-cloud-dialogflow-v2beta1:0.49.0:0.49.0 +proto-google-cloud-dlp-v2:0.49.0:0.49.0 +proto-google-cloud-error-reporting-v1beta1:0.49.0:0.49.0 +proto-google-cloud-firestore-v1:0.49.0:0.49.0 +proto-google-cloud-firestore-v1beta1:0.49.0:0.49.0 +proto-google-cloud-iamcredentials-v1:0.11.0-alpha:0.11.0-alpha +proto-google-cloud-iot-v1:0.49.0:0.49.0 +proto-google-cloud-kms-v1:0.49.0:0.49.0 +proto-google-cloud-language-v1:1.48.0:1.48.0 +proto-google-cloud-language-v1beta2:0.49.0:0.49.0 +proto-google-cloud-logging-v2:0.49.0:0.49.0 +proto-google-cloud-monitoring-v3:1.48.0:1.48.0 +proto-google-cloud-os-login-v1:0.49.0:0.49.0 +proto-google-cloud-pubsub-v1:1.48.0:1.48.0 +proto-google-cloud-redis-v1:0.49.0:0.49.0 +proto-google-cloud-redis-v1beta1:0.49.0:0.49.0 +proto-google-cloud-scheduler-v1:0.49.0:0.49.0 +proto-google-cloud-scheduler-v1beta1:0.49.0:0.49.0 +proto-google-cloud-securitycenter-v1:0.49.0:0.49.0 +proto-google-cloud-securitycenter-v1beta1:0.49.0:0.49.0 +proto-google-cloud-spanner-admin-database-v1:1.11.0:1.11.0 +proto-google-cloud-spanner-admin-instance-v1:1.11.0:1.11.0 +proto-google-cloud-spanner-v1:1.11.0:1.11.0 +proto-google-cloud-speech-v1:0.49.0:0.49.0 +proto-google-cloud-speech-v1beta1:0.49.0:0.49.0 +proto-google-cloud-speech-v1p1beta1:0.49.0:0.49.0 +proto-google-cloud-talent-v4beta1:0.1.0-beta:0.1.0-beta +proto-google-cloud-tasks-v2beta2:0.49.0:0.49.0 +proto-google-cloud-tasks-v2beta3:0.49.0:0.49.0 +proto-google-cloud-texttospeech-v1:0.49.0:0.49.0 +proto-google-cloud-texttospeech-v1beta1:0.49.0:0.49.0 +proto-google-cloud-trace-v1:0.49.0:0.49.0 +proto-google-cloud-trace-v2:0.49.0:0.49.0 +proto-google-cloud-video-intelligence-v1:0.49.0:0.49.0 +proto-google-cloud-video-intelligence-v1beta1:0.49.0:0.49.0 +proto-google-cloud-video-intelligence-v1beta2:0.49.0:0.49.0 +proto-google-cloud-video-intelligence-v1p1beta1:0.49.0:0.49.0 +proto-google-cloud-video-intelligence-v1p2beta1:0.49.0:0.49.0 +proto-google-cloud-video-intelligence-v1p3beta1:0.49.0:0.49.0 +proto-google-cloud-vision-v1:1.48.0:1.48.0 +proto-google-cloud-vision-v1p1beta1:0.49.0:0.49.0 +proto-google-cloud-vision-v1p2beta1:1.48.0:1.48.0 +proto-google-cloud-vision-v1p3beta1:0.49.0:0.49.0 +proto-google-cloud-vision-v1p4beta1:0.49.0:0.49.0 +proto-google-cloud-websecurityscanner-v1alpha:0.49.0:0.49.0 From db18d86e826c375f9ea39af72a14d9604143877d Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Thu, 21 Mar 2019 22:00:42 -0400 Subject: [PATCH 15/20] Bump next snapshot (#4715) --- .../grpc-google-cloud-asset-v1beta1/pom.xml | 4 +- .../grpc-google-cloud-automl-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-bigtable-v2/pom.xml | 4 +- .../grpc-google-cloud-container-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-dataproc-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-dialogflow-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-dlp-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-firestore-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-iot-v1/pom.xml | 4 +- .../grpc-google-cloud-kms-v1/pom.xml | 4 +- .../grpc-google-cloud-language-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-logging-v2/pom.xml | 4 +- .../grpc-google-cloud-monitoring-v3/pom.xml | 4 +- .../grpc-google-cloud-os-login-v1/pom.xml | 4 +- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 +- .../grpc-google-cloud-redis-v1/pom.xml | 4 +- .../grpc-google-cloud-redis-v1beta1/pom.xml | 4 +- .../grpc-google-cloud-scheduler-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-spanner-v1/pom.xml | 4 +- .../grpc-google-cloud-speech-v1/pom.xml | 4 +- .../grpc-google-cloud-speech-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-talent-v4beta1/pom.xml | 4 +- .../grpc-google-cloud-tasks-v2beta2/pom.xml | 4 +- .../grpc-google-cloud-tasks-v2beta3/pom.xml | 4 +- .../grpc-google-cloud-texttospeech-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-trace-v1/pom.xml | 4 +- .../grpc-google-cloud-trace-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-vision-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- google-api-grpc/pom.xml | 228 ++++++------ .../proto-google-cloud-asset-v1beta1/pom.xml | 4 +- .../proto-google-cloud-automl-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-bigtable-v2/pom.xml | 4 +- .../proto-google-cloud-container-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-dataproc-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-datastore-v1/pom.xml | 4 +- .../proto-google-cloud-dialogflow-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-dlp-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-firestore-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-iot-v1/pom.xml | 4 +- .../proto-google-cloud-kms-v1/pom.xml | 4 +- .../proto-google-cloud-language-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-logging-v2/pom.xml | 4 +- .../proto-google-cloud-monitoring-v3/pom.xml | 4 +- .../proto-google-cloud-os-login-v1/pom.xml | 4 +- .../proto-google-cloud-pubsub-v1/pom.xml | 4 +- .../proto-google-cloud-redis-v1/pom.xml | 4 +- .../proto-google-cloud-redis-v1beta1/pom.xml | 4 +- .../proto-google-cloud-scheduler-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-spanner-v1/pom.xml | 4 +- .../proto-google-cloud-speech-v1/pom.xml | 4 +- .../proto-google-cloud-speech-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-talent-v4beta1/pom.xml | 4 +- .../proto-google-cloud-tasks-v2beta2/pom.xml | 4 +- .../proto-google-cloud-tasks-v2beta3/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-trace-v1/pom.xml | 4 +- .../proto-google-cloud-trace-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-vision-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- google-cloud-bom/pom.xml | 314 ++++++++-------- .../google-cloud-asset/pom.xml | 4 +- .../google-cloud-automl/pom.xml | 4 +- .../google-cloud-bigquery/pom.xml | 4 +- .../google-cloud-bigquerydatatransfer/pom.xml | 4 +- .../google-cloud-bigquerystorage/pom.xml | 4 +- .../google-cloud-bigtable/pom.xml | 4 +- .../google-cloud-compute/pom.xml | 4 +- .../google-cloud-container/pom.xml | 4 +- .../google-cloud-containeranalysis/pom.xml | 4 +- .../google-cloud-logging-logback/pom.xml | 4 +- .../google-cloud-nio-examples/README.md | 4 +- .../google-cloud-nio-examples/pom.xml | 4 +- .../google-cloud-nio/pom.xml | 4 +- .../google-cloud-contrib/pom.xml | 4 +- .../google-cloud-core-grpc/pom.xml | 4 +- .../google-cloud-core-http/pom.xml | 4 +- .../google-cloud-core/pom.xml | 4 +- .../google-cloud-dataproc/pom.xml | 4 +- .../google-cloud-datastore/pom.xml | 4 +- .../google-cloud-dialogflow/pom.xml | 4 +- google-cloud-clients/google-cloud-dlp/pom.xml | 4 +- google-cloud-clients/google-cloud-dns/pom.xml | 4 +- .../google-cloud-errorreporting/pom.xml | 4 +- .../google-cloud-firestore/pom.xml | 4 +- .../google-cloud-iamcredentials/pom.xml | 4 +- google-cloud-clients/google-cloud-iot/pom.xml | 4 +- google-cloud-clients/google-cloud-kms/pom.xml | 4 +- .../google-cloud-language/pom.xml | 4 +- .../google-cloud-logging/pom.xml | 4 +- .../google-cloud-monitoring/pom.xml | 4 +- .../google-cloud-notification/pom.xml | 4 +- .../google-cloud-os-login/pom.xml | 4 +- .../google-cloud-pubsub/pom.xml | 4 +- .../google-cloud-redis/pom.xml | 4 +- .../google-cloud-resourcemanager/pom.xml | 4 +- .../google-cloud-scheduler/pom.xml | 4 +- .../google-cloud-securitycenter/pom.xml | 4 +- .../google-cloud-spanner/pom.xml | 4 +- .../google-cloud-speech/pom.xml | 4 +- .../google-cloud-storage/pom.xml | 4 +- .../google-cloud-talent/pom.xml | 4 +- .../google-cloud-tasks/pom.xml | 4 +- .../google-cloud-texttospeech/pom.xml | 4 +- .../google-cloud-trace/pom.xml | 4 +- .../google-cloud-translate/pom.xml | 4 +- .../google-cloud-video-intelligence/pom.xml | 4 +- .../google-cloud-vision/pom.xml | 4 +- .../google-cloud-websecurityscanner/pom.xml | 4 +- google-cloud-clients/pom.xml | 6 +- google-cloud-examples/pom.xml | 4 +- .../google-cloud-appengineflexcompat/pom.xml | 4 +- .../google-cloud-appengineflexcustom/pom.xml | 4 +- .../google-cloud-appengineflexjava/pom.xml | 4 +- .../google-cloud-appenginejava8/pom.xml | 4 +- .../google-cloud-bigtable-emulator/pom.xml | 6 +- .../google-cloud-gcloud-maven-plugin/pom.xml | 4 +- .../google-cloud-managedtest/pom.xml | 4 +- google-cloud-testing/pom.xml | 6 +- .../google-cloud-compat-checker/pom.xml | 4 +- google-cloud-util/pom.xml | 2 +- versions.txt | 350 +++++++++--------- 176 files changed, 794 insertions(+), 794 deletions(-) diff --git a/google-api-grpc/grpc-google-cloud-asset-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-asset-v1beta1/pom.xml index 13731bff8962..c6c90611b4ed 100644 --- a/google-api-grpc/grpc-google-cloud-asset-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-asset-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-asset-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-asset-v1beta1 GRPC library for grpc-google-cloud-asset-v1beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-automl-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-automl-v1beta1/pom.xml index c68dd5326128..675c12dffbd8 100644 --- a/google-api-grpc/grpc-google-cloud-automl-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-automl-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-automl-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-automl-v1beta1 GRPC library for grpc-google-cloud-automl-v1beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml b/google-api-grpc/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml index 418bcc44e558..94bf5e667fe2 100644 --- a/google-api-grpc/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-bigquerydatatransfer-v1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-bigquerydatatransfer-v1 GRPC library for grpc-google-cloud-bigquerydatatransfer-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-bigquerystorage-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-bigquerystorage-v1beta1/pom.xml index 5d2ec28ff50a..0833db4774d1 100644 --- a/google-api-grpc/grpc-google-cloud-bigquerystorage-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-bigquerystorage-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-bigquerystorage-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-bigquerystorage-v1beta1 GRPC library for grpc-google-cloud-bigquerystorage-v1beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-bigtable-admin-v2/pom.xml b/google-api-grpc/grpc-google-cloud-bigtable-admin-v2/pom.xml index 2fe1791abad4..d50f354e36e7 100644 --- a/google-api-grpc/grpc-google-cloud-bigtable-admin-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-bigtable-admin-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-bigtable-admin-v2 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-bigtable-admin-v2 GRPC library for grpc-google-cloud-bigtable-admin-v2 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-bigtable-v2/pom.xml b/google-api-grpc/grpc-google-cloud-bigtable-v2/pom.xml index c834fcd2e0a6..a8d9b0815dd5 100644 --- a/google-api-grpc/grpc-google-cloud-bigtable-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-bigtable-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-bigtable-v2 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-bigtable-v2 GRPC library for grpc-google-cloud-bigtable-v2 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-container-v1/pom.xml b/google-api-grpc/grpc-google-cloud-container-v1/pom.xml index 154a77a53392..132c311b1b9d 100644 --- a/google-api-grpc/grpc-google-cloud-container-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-container-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-container-v1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-container-v1 GRPC library for grpc-google-cloud-container-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-containeranalysis-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-containeranalysis-v1beta1/pom.xml index b3afa833e15a..e9db6e799086 100644 --- a/google-api-grpc/grpc-google-cloud-containeranalysis-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-containeranalysis-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-containeranalysis-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-containeranalysis-v1beta1 GRPC library for grpc-google-cloud-containeranalysis-v1beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-dataproc-v1/pom.xml b/google-api-grpc/grpc-google-cloud-dataproc-v1/pom.xml index 55541e140c43..a6b06220a6e4 100644 --- a/google-api-grpc/grpc-google-cloud-dataproc-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dataproc-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dataproc-v1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-dataproc-v1beta2/pom.xml b/google-api-grpc/grpc-google-cloud-dataproc-v1beta2/pom.xml index b3f42b890156..1c42cb60004e 100644 --- a/google-api-grpc/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dataproc-v1beta2 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-dialogflow-v2/pom.xml b/google-api-grpc/grpc-google-cloud-dialogflow-v2/pom.xml index b55ee0180c72..19b556a3bc72 100644 --- a/google-api-grpc/grpc-google-cloud-dialogflow-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dialogflow-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dialogflow-v2 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-dialogflow-v2 GRPC library for grpc-google-cloud-dialogflow-v2 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/pom.xml b/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/pom.xml index 9d13866eb426..a687fc1f0e73 100644 --- a/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dialogflow-v2beta1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-dialogflow-v2beta1 GRPC library for grpc-google-cloud-dialogflow-v2beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-dlp-v2/pom.xml b/google-api-grpc/grpc-google-cloud-dlp-v2/pom.xml index 2e00f303ee5c..2d6259a6a65d 100644 --- a/google-api-grpc/grpc-google-cloud-dlp-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dlp-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dlp-v2 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-dlp-v2 GRPC library for grpc-google-cloud-dlp-v2 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-error-reporting-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-error-reporting-v1beta1/pom.xml index 0fdd8a9b638d..f10357d6f6fc 100644 --- a/google-api-grpc/grpc-google-cloud-error-reporting-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-error-reporting-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-error-reporting-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-error-reporting-v1beta1 GRPC library for grpc-google-cloud-error-reporting-v1beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-firestore-v1/pom.xml b/google-api-grpc/grpc-google-cloud-firestore-v1/pom.xml index 528b220edeec..16b091589677 100644 --- a/google-api-grpc/grpc-google-cloud-firestore-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-firestore-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-firestore-v1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-firestore-v1 GRPC library for grpc-google-cloud-firestore-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-firestore-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-firestore-v1beta1/pom.xml index a5b69a7d2731..276bb43377a5 100644 --- a/google-api-grpc/grpc-google-cloud-firestore-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-firestore-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-firestore-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-firestore-v1beta1 GRPC library for grpc-google-cloud-firestore-v1beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-iamcredentials-v1/pom.xml b/google-api-grpc/grpc-google-cloud-iamcredentials-v1/pom.xml index 825b06719962..d0a4e12c4291 100644 --- a/google-api-grpc/grpc-google-cloud-iamcredentials-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-iamcredentials-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-iamcredentials-v1 - 0.11.0-alpha + 0.11.1-alpha-SNAPSHOT grpc-google-cloud-iamcredentials-v1 GRPC library for grpc-google-cloud-iamcredentials-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-iot-v1/pom.xml b/google-api-grpc/grpc-google-cloud-iot-v1/pom.xml index d244220118e1..af4e2e4fd201 100644 --- a/google-api-grpc/grpc-google-cloud-iot-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-iot-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-iot-v1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-iot-v1 GRPC library for grpc-google-cloud-iot-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-kms-v1/pom.xml b/google-api-grpc/grpc-google-cloud-kms-v1/pom.xml index eef2e453f711..a7891598b530 100644 --- a/google-api-grpc/grpc-google-cloud-kms-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-kms-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-kms-v1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-kms-v1 GRPC library for grpc-google-cloud-kms-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-language-v1/pom.xml b/google-api-grpc/grpc-google-cloud-language-v1/pom.xml index 286c46431a24..abdd9ac6b95f 100644 --- a/google-api-grpc/grpc-google-cloud-language-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-language-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-language-v1 - 1.48.0 + 1.48.1-SNAPSHOT grpc-google-cloud-language-v1 GRPC library for grpc-google-cloud-language-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-language-v1beta2/pom.xml b/google-api-grpc/grpc-google-cloud-language-v1beta2/pom.xml index 4d0fceaafc62..13959aab9960 100644 --- a/google-api-grpc/grpc-google-cloud-language-v1beta2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-language-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-language-v1beta2 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-language-v1beta2 GRPC library for grpc-google-cloud-language-v1beta2 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-logging-v2/pom.xml b/google-api-grpc/grpc-google-cloud-logging-v2/pom.xml index 43972d89f7ad..3ad771b83669 100644 --- a/google-api-grpc/grpc-google-cloud-logging-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-logging-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-logging-v2 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-logging-v2 GRPC library for grpc-google-cloud-logging-v2 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-monitoring-v3/pom.xml b/google-api-grpc/grpc-google-cloud-monitoring-v3/pom.xml index 1fa68e1c2bbf..c1718bf898c5 100644 --- a/google-api-grpc/grpc-google-cloud-monitoring-v3/pom.xml +++ b/google-api-grpc/grpc-google-cloud-monitoring-v3/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-monitoring-v3 - 1.48.0 + 1.48.1-SNAPSHOT grpc-google-cloud-monitoring-v3 GRPC library for grpc-google-cloud-monitoring-v3 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-os-login-v1/pom.xml b/google-api-grpc/grpc-google-cloud-os-login-v1/pom.xml index f618eb88941f..654eb29804e8 100644 --- a/google-api-grpc/grpc-google-cloud-os-login-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-os-login-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-os-login-v1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-os-login-v1 GRPC library for grpc-google-cloud-os-login-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-pubsub-v1/pom.xml b/google-api-grpc/grpc-google-cloud-pubsub-v1/pom.xml index ec273e5b682d..3578baa1ac0a 100644 --- a/google-api-grpc/grpc-google-cloud-pubsub-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.48.0 + 1.48.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml b/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml index 4fc592e5f5cf..714966d9b55e 100644 --- a/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-redis-v1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-redis-v1 GRPC library for grpc-google-cloud-redis-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-redis-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-redis-v1beta1/pom.xml index 20c18e6007ae..2e2c722b6e03 100644 --- a/google-api-grpc/grpc-google-cloud-redis-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-redis-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-redis-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-redis-v1beta1 GRPC library for grpc-google-cloud-redis-v1beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-scheduler-v1/pom.xml b/google-api-grpc/grpc-google-cloud-scheduler-v1/pom.xml index b7ffa95b6ba1..6d144e878acd 100644 --- a/google-api-grpc/grpc-google-cloud-scheduler-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-scheduler-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-scheduler-v1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-scheduler-v1 GRPC library for grpc-google-cloud-scheduler-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-scheduler-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-scheduler-v1beta1/pom.xml index 34dfe9288201..e7e1cb0363f6 100644 --- a/google-api-grpc/grpc-google-cloud-scheduler-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-scheduler-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-scheduler-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-scheduler-v1beta1 GRPC library for grpc-google-cloud-scheduler-v1beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-securitycenter-v1/pom.xml b/google-api-grpc/grpc-google-cloud-securitycenter-v1/pom.xml index 9e48dd7bfa2b..d46708448b78 100644 --- a/google-api-grpc/grpc-google-cloud-securitycenter-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-securitycenter-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-securitycenter-v1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-securitycenter-v1 GRPC library for grpc-google-cloud-securitycenter-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-securitycenter-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-securitycenter-v1beta1/pom.xml index 41c41813d582..cadec0aaa667 100644 --- a/google-api-grpc/grpc-google-cloud-securitycenter-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-securitycenter-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-securitycenter-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-securitycenter-v1beta1 GRPC library for grpc-google-cloud-securitycenter-v1beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-spanner-admin-database-v1/pom.xml b/google-api-grpc/grpc-google-cloud-spanner-admin-database-v1/pom.xml index a2dc21babb04..d6e55780655d 100644 --- a/google-api-grpc/grpc-google-cloud-spanner-admin-database-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-spanner-admin-database-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-spanner-admin-database-v1 - 1.11.0 + 1.11.1-SNAPSHOT grpc-google-cloud-spanner-admin-database-v1 GRPC library for grpc-google-cloud-spanner-admin-database-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-spanner-admin-instance-v1/pom.xml b/google-api-grpc/grpc-google-cloud-spanner-admin-instance-v1/pom.xml index f1ab400c8f02..d91da6181fe8 100644 --- a/google-api-grpc/grpc-google-cloud-spanner-admin-instance-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-spanner-admin-instance-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-spanner-admin-instance-v1 - 1.11.0 + 1.11.1-SNAPSHOT grpc-google-cloud-spanner-admin-instance-v1 GRPC library for grpc-google-cloud-spanner-admin-instance-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-spanner-v1/pom.xml b/google-api-grpc/grpc-google-cloud-spanner-v1/pom.xml index 3ba0f0d6d184..878eed5ea4f3 100644 --- a/google-api-grpc/grpc-google-cloud-spanner-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-spanner-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-spanner-v1 - 1.11.0 + 1.11.1-SNAPSHOT grpc-google-cloud-spanner-v1 GRPC library for grpc-google-cloud-spanner-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-speech-v1/pom.xml b/google-api-grpc/grpc-google-cloud-speech-v1/pom.xml index 244774590cd6..dcc253d4ec71 100644 --- a/google-api-grpc/grpc-google-cloud-speech-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-speech-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-speech-v1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-speech-v1 GRPC library for grpc-google-cloud-speech-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-speech-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-speech-v1beta1/pom.xml index b4bc0eb246da..9e3ab314576c 100644 --- a/google-api-grpc/grpc-google-cloud-speech-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-speech-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-speech-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-speech-v1beta1 GRPC library for grpc-google-cloud-speech-v1beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-speech-v1p1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-speech-v1p1beta1/pom.xml index c16eaca99aac..572a8a1111de 100644 --- a/google-api-grpc/grpc-google-cloud-speech-v1p1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-speech-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-speech-v1p1beta1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-speech-v1p1beta1 GRPC library for grpc-google-cloud-speech-v1p1beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-talent-v4beta1/pom.xml b/google-api-grpc/grpc-google-cloud-talent-v4beta1/pom.xml index c30f53c5cbe0..1437e3567cf0 100644 --- a/google-api-grpc/grpc-google-cloud-talent-v4beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-talent-v4beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-talent-v4beta1 - 0.1.0-beta + 0.1.1-beta-SNAPSHOT grpc-google-cloud-talent-v4beta1 GRPC library for grpc-google-cloud-talent-v4beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-tasks-v2beta2/pom.xml b/google-api-grpc/grpc-google-cloud-tasks-v2beta2/pom.xml index d6a629f44423..cc5ac506d1dd 100644 --- a/google-api-grpc/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-tasks-v2beta2 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-tasks-v2beta3/pom.xml b/google-api-grpc/grpc-google-cloud-tasks-v2beta3/pom.xml index f96d30287a1b..2f0c3cea82b7 100644 --- a/google-api-grpc/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/google-api-grpc/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-tasks-v2beta3 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-texttospeech-v1/pom.xml b/google-api-grpc/grpc-google-cloud-texttospeech-v1/pom.xml index da9f94f1bb59..4d6a79c533f8 100644 --- a/google-api-grpc/grpc-google-cloud-texttospeech-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-texttospeech-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-texttospeech-v1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-texttospeech-v1 GRPC library for grpc-google-cloud-texttospeech-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-texttospeech-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-texttospeech-v1beta1/pom.xml index 7290233fc809..8e965afb1cbe 100644 --- a/google-api-grpc/grpc-google-cloud-texttospeech-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-texttospeech-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-texttospeech-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-texttospeech-v1beta1 GRPC library for grpc-google-cloud-texttospeech-v1beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-trace-v1/pom.xml b/google-api-grpc/grpc-google-cloud-trace-v1/pom.xml index 6455bec1303a..cfd6efc6c4e2 100644 --- a/google-api-grpc/grpc-google-cloud-trace-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-trace-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-trace-v1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-trace-v1 GRPC library for grpc-google-cloud-trace-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-trace-v2/pom.xml b/google-api-grpc/grpc-google-cloud-trace-v2/pom.xml index 3d28b0d31ef6..536c7efe7653 100644 --- a/google-api-grpc/grpc-google-cloud-trace-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-trace-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-trace-v2 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-trace-v2 GRPC library for grpc-google-cloud-trace-v2 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1/pom.xml index 699cd8293711..e8a80d9c2564 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-video-intelligence-v1 GRPC library for grpc-google-cloud-video-intelligence-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta1/pom.xml index bd81fd01241f..a73b1b2a0963 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-video-intelligence-v1beta1 GRPC library for grpc-google-cloud-video-intelligence-v1beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta2/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta2/pom.xml index e70ce7617d3a..ff3cb3ad1a0e 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1beta2 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-video-intelligence-v1beta2 GRPC library for grpc-google-cloud-video-intelligence-v1beta2 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml index 6b3426fee33b..32dcbe954681 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1p1beta1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-video-intelligence-v1p1beta1 GRPC library for grpc-google-cloud-video-intelligence-v1p1beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml index b56ddcb6a1f4..82f6e3d944b1 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1p2beta1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-video-intelligence-v1p2beta1 GRPC library for grpc-google-cloud-video-intelligence-v1p2beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml index 4c90a29e9fdc..c1c7d37321db 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1p3beta1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-video-intelligence-v1p3beta1 GRPC library for grpc-google-cloud-video-intelligence-v1p3beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-vision-v1/pom.xml b/google-api-grpc/grpc-google-cloud-vision-v1/pom.xml index 3aef059ea94b..98f7e8964bef 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-vision-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-vision-v1 - 1.48.0 + 1.48.1-SNAPSHOT grpc-google-cloud-vision-v1 GRPC library for grpc-google-cloud-vision-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-vision-v1p1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-vision-v1p1beta1/pom.xml index 38f938aabd1e..3887418e17be 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1p1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-vision-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-vision-v1p1beta1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-vision-v1p1beta1 GRPC library for grpc-google-cloud-vision-v1p1beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-vision-v1p2beta1/pom.xml b/google-api-grpc/grpc-google-cloud-vision-v1p2beta1/pom.xml index c8316134a0d2..74cab6287c9a 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1p2beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-vision-v1p2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-vision-v1p2beta1 - 1.48.0 + 1.48.1-SNAPSHOT grpc-google-cloud-vision-v1p2beta1 GRPC library for grpc-google-cloud-vision-v1p2beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-vision-v1p3beta1/pom.xml b/google-api-grpc/grpc-google-cloud-vision-v1p3beta1/pom.xml index d48617b43c8a..ef6ee8418033 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1p3beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-vision-v1p3beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-vision-v1p3beta1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-vision-v1p3beta1 GRPC library for grpc-google-cloud-vision-v1p3beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-vision-v1p4beta1/pom.xml b/google-api-grpc/grpc-google-cloud-vision-v1p4beta1/pom.xml index 357ca9a6c707..989fe093ec41 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1p4beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-vision-v1p4beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-vision-v1p4beta1 - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-vision-v1p4beta1 GRPC library for grpc-google-cloud-vision-v1p4beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml b/google-api-grpc/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml index c56fa761c2ae..b99928c572ce 100644 --- a/google-api-grpc/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml +++ b/google-api-grpc/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-websecurityscanner-v1alpha - 0.49.0 + 0.49.1-SNAPSHOT grpc-google-cloud-websecurityscanner-v1alpha GRPC library for grpc-google-cloud-websecurityscanner-v1alpha com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/pom.xml b/google-api-grpc/pom.xml index 6171619f5f59..c5cccda72c2e 100644 --- a/google-api-grpc/pom.xml +++ b/google-api-grpc/pom.xml @@ -4,7 +4,7 @@ com.google.api.grpc google-api-grpc pom - 0.49.0 + 0.49.1-SNAPSHOT Google Cloud API gRPC https://github.com/googleapis/google-cloud-java/tree/master/google-api-grpc @@ -142,567 +142,567 @@ com.google.api.grpc proto-google-cloud-asset-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-automl-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-bigtable-v2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigtable-v2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-bigtable-admin-v2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigtable-admin-v2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerystorage-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerystorage-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-container-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-container-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-containeranalysis-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-containeranalysis-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-datastore-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dlp-v2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dlp-v2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dialogflow-v2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dialogflow-v2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-firestore-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-firestore-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-firestore-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-firestore-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-kms-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-kms-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-language-v1 - 1.48.0 + 1.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-language-v1 - 1.48.0 + 1.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-logging-v2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-logging-v2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-monitoring-v3 - 1.48.0 + 1.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-monitoring-v3 - 1.48.0 + 1.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-os-login-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-os-login-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.48.0 + 1.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.48.0 + 1.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-redis-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-redis-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-redis-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-redis-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-scheduler-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-scheduler-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-scheduler-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-scheduler-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-spanner-v1 - 1.11.0 + 1.11.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-spanner-v1 - 1.11.0 + 1.11.1-SNAPSHOT com.google.api.grpc proto-google-cloud-spanner-admin-database-v1 - 1.11.0 + 1.11.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-spanner-admin-database-v1 - 1.11.0 + 1.11.1-SNAPSHOT com.google.api.grpc proto-google-cloud-spanner-admin-instance-v1 - 1.11.0 + 1.11.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-spanner-admin-instance-v1 - 1.11.0 + 1.11.1-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-texttospeech-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-texttospeech-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-texttospeech-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-texttospeech-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-trace-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-trace-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-trace-v2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-trace-v2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1 - 1.48.0 + 1.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1 - 1.48.0 + 1.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p2beta1 - 1.48.0 + 1.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p2beta1 - 1.48.0 + 1.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p3beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p3beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p4beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p4beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1beta2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1p1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1p1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1p2beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1p2beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1p3beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1p3beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-iot-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-iot-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycenter-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-iamcredentials-v1 - 0.11.0-alpha + 0.11.1-alpha-SNAPSHOT com.google.api.grpc grpc-google-cloud-iamcredentials-v1 - 0.11.0-alpha + 0.11.1-alpha-SNAPSHOT com.google.api.grpc proto-google-cloud-talent-v4beta1 - 0.1.0-beta + 0.1.1-beta-SNAPSHOT com.google.api.grpc grpc-google-cloud-talent-v4beta1 - 0.1.0-beta + 0.1.1-beta-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-asset-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-asset-v1beta1/pom.xml index b98303369d3e..f930c2579a05 100644 --- a/google-api-grpc/proto-google-cloud-asset-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-asset-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-asset-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-asset-v1beta1 PROTO library for proto-google-cloud-asset-v1beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-automl-v1beta1/pom.xml index 83a98a0e5a63..acce8b194599 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-automl-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-automl-v1beta1 PROTO library for proto-google-cloud-automl-v1beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/pom.xml b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/pom.xml index 4128b85d0b8a..5931b2f14486 100644 --- a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-bigquerydatatransfer-v1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-bigquerydatatransfer-v1 PROTO library for proto-google-cloud-bigquerydatatransfer-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-bigquerystorage-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-bigquerystorage-v1beta1/pom.xml index d5d7aa8e9e8a..06e9609ee65d 100644 --- a/google-api-grpc/proto-google-cloud-bigquerystorage-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-bigquerystorage-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-bigquerystorage-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-bigquerystorage-v1beta1 PROTO library for proto-google-cloud-bigquerystorage-v1beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/pom.xml b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/pom.xml index abb683c11f44..78183be0e5b8 100644 --- a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-bigtable-admin-v2 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-bigtable-admin-v2 PROTO library for proto-google-cloud-bigtable-admin-v2 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-bigtable-v2/pom.xml b/google-api-grpc/proto-google-cloud-bigtable-v2/pom.xml index 25b0c1ed832a..d3921ba1b9de 100644 --- a/google-api-grpc/proto-google-cloud-bigtable-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-bigtable-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-bigtable-v2 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-bigtable-v2 PROTO library for proto-google-cloud-bigtable-v2 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-container-v1/pom.xml b/google-api-grpc/proto-google-cloud-container-v1/pom.xml index 00231b9f4c99..91d5d970f87a 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-container-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-container-v1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-container-v1 PROTO library for proto-google-cloud-container-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-containeranalysis-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-containeranalysis-v1beta1/pom.xml index de5f1eb3bdcc..57f7406f64c0 100644 --- a/google-api-grpc/proto-google-cloud-containeranalysis-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-containeranalysis-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-containeranalysis-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-containeranalysis-v1beta1 PROTO library for proto-google-cloud-containeranalysis-v1beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1/pom.xml b/google-api-grpc/proto-google-cloud-dataproc-v1/pom.xml index 3f9dcc00b742..1a64690e9cf2 100644 --- a/google-api-grpc/proto-google-cloud-dataproc-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-dataproc-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dataproc-v1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/pom.xml b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/pom.xml index 07a4ad18b86e..e3610b214abe 100644 --- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dataproc-v1beta2 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-datastore-v1/pom.xml b/google-api-grpc/proto-google-cloud-datastore-v1/pom.xml index 2fd1d573c10d..6534e382f85f 100644 --- a/google-api-grpc/proto-google-cloud-datastore-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-datastore-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-datastore-v1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-datastore-v1 PROTO library for proto-google-cloud-datastore-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/pom.xml b/google-api-grpc/proto-google-cloud-dialogflow-v2/pom.xml index 5321d8626b2d..151d10cc74f0 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dialogflow-v2 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-dialogflow-v2 PROTO library for proto-google-cloud-dialogflow-v2 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/pom.xml b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/pom.xml index bdaf6ad6c004..310ff5b479a9 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dialogflow-v2beta1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-dialogflow-v2beta1 PROTO library for proto-google-cloud-dialogflow-v2beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/pom.xml b/google-api-grpc/proto-google-cloud-dlp-v2/pom.xml index 234137ced034..ff81f92b3d5c 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-dlp-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dlp-v2 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-dlp-v2 PROTO library for proto-google-cloud-dlp-v2 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-error-reporting-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-error-reporting-v1beta1/pom.xml index 8a78d62a390d..b51b48c6803e 100644 --- a/google-api-grpc/proto-google-cloud-error-reporting-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-error-reporting-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-error-reporting-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-error-reporting-v1beta1 PROTO library for proto-google-cloud-error-reporting-v1beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/pom.xml b/google-api-grpc/proto-google-cloud-firestore-v1/pom.xml index 14ae4a7dd538..2b4f53b890b6 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-firestore-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-firestore-v1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-firestore-v1 PROTO library for proto-google-cloud-firestore-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-firestore-v1beta1/pom.xml index b17cd14bf309..72c2d853aa6f 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-firestore-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-firestore-v1beta1 PROTO library for proto-google-cloud-firestore-v1beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-iamcredentials-v1/pom.xml b/google-api-grpc/proto-google-cloud-iamcredentials-v1/pom.xml index 3eaa8a305036..0074c19a983a 100644 --- a/google-api-grpc/proto-google-cloud-iamcredentials-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-iamcredentials-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-iamcredentials-v1 - 0.11.0-alpha + 0.11.1-alpha-SNAPSHOT proto-google-cloud-iamcredentials-v1 PROTO library for proto-google-cloud-iamcredentials-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-iot-v1/pom.xml b/google-api-grpc/proto-google-cloud-iot-v1/pom.xml index 55ec948d15c3..3c5867f54f86 100644 --- a/google-api-grpc/proto-google-cloud-iot-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-iot-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-iot-v1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-iot-v1 PROTO library for proto-google-cloud-iot-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-kms-v1/pom.xml b/google-api-grpc/proto-google-cloud-kms-v1/pom.xml index 08443ca925d0..71f821245430 100644 --- a/google-api-grpc/proto-google-cloud-kms-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-kms-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-kms-v1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-kms-v1 PROTO library for proto-google-cloud-kms-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-language-v1/pom.xml b/google-api-grpc/proto-google-cloud-language-v1/pom.xml index ad7e10a2f2ef..e2de972a6378 100644 --- a/google-api-grpc/proto-google-cloud-language-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-language-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-language-v1 - 1.48.0 + 1.48.1-SNAPSHOT proto-google-cloud-language-v1 PROTO library for proto-google-cloud-language-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-language-v1beta2/pom.xml b/google-api-grpc/proto-google-cloud-language-v1beta2/pom.xml index 9608ded6e563..0fcdef695568 100644 --- a/google-api-grpc/proto-google-cloud-language-v1beta2/pom.xml +++ b/google-api-grpc/proto-google-cloud-language-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-language-v1beta2 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-language-v1beta2 PROTO library for proto-google-cloud-language-v1beta2 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-logging-v2/pom.xml b/google-api-grpc/proto-google-cloud-logging-v2/pom.xml index c3681617f617..370dc7b68f55 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-logging-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-logging-v2 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-logging-v2 PROTO library for proto-google-cloud-logging-v2 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/pom.xml b/google-api-grpc/proto-google-cloud-monitoring-v3/pom.xml index 81ae2feaba89..c5f2b7508875 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/pom.xml +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-monitoring-v3 - 1.48.0 + 1.48.1-SNAPSHOT proto-google-cloud-monitoring-v3 PROTO library for proto-google-cloud-monitoring-v3 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-os-login-v1/pom.xml b/google-api-grpc/proto-google-cloud-os-login-v1/pom.xml index 0819401b566d..d1a1ce3649ae 100644 --- a/google-api-grpc/proto-google-cloud-os-login-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-os-login-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-os-login-v1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-os-login-v1 PROTO library for proto-google-cloud-os-login-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-pubsub-v1/pom.xml b/google-api-grpc/proto-google-cloud-pubsub-v1/pom.xml index 0247795ca6ba..c0572f7341fe 100644 --- a/google-api-grpc/proto-google-cloud-pubsub-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.48.0 + 1.48.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-redis-v1/pom.xml b/google-api-grpc/proto-google-cloud-redis-v1/pom.xml index 482e429409cd..7f58547fd943 100644 --- a/google-api-grpc/proto-google-cloud-redis-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-redis-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-redis-v1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-redis-v1 PROTO library for proto-google-cloud-redis-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-redis-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-redis-v1beta1/pom.xml index fcd5e0278324..9530d7339800 100644 --- a/google-api-grpc/proto-google-cloud-redis-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-redis-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-redis-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-redis-v1beta1 PROTO library for proto-google-cloud-redis-v1beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/pom.xml b/google-api-grpc/proto-google-cloud-scheduler-v1/pom.xml index 862e3e9cc5dc..ebf6f187529f 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-scheduler-v1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-scheduler-v1 PROTO library for proto-google-cloud-scheduler-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/pom.xml index 98e82ee1ba1a..9d259431f482 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-scheduler-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-scheduler-v1beta1 PROTO library for proto-google-cloud-scheduler-v1beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/pom.xml b/google-api-grpc/proto-google-cloud-securitycenter-v1/pom.xml index 096ad88dea77..8263f613bfa1 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-securitycenter-v1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-securitycenter-v1 PROTO library for proto-google-cloud-securitycenter-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/pom.xml index 21047e5ea350..91e84123fb1b 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-securitycenter-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-securitycenter-v1beta1 PROTO library for proto-google-cloud-securitycenter-v1beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-spanner-admin-database-v1/pom.xml b/google-api-grpc/proto-google-cloud-spanner-admin-database-v1/pom.xml index f6c35e23a82b..5678339fecca 100644 --- a/google-api-grpc/proto-google-cloud-spanner-admin-database-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-spanner-admin-database-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-spanner-admin-database-v1 - 1.11.0 + 1.11.1-SNAPSHOT proto-google-cloud-spanner-admin-database-v1 PROTO library for proto-google-cloud-spanner-admin-database-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/pom.xml b/google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/pom.xml index 393ae76cf8f7..a5bff071c5fe 100644 --- a/google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-spanner-admin-instance-v1 - 1.11.0 + 1.11.1-SNAPSHOT proto-google-cloud-spanner-admin-instance-v1 PROTO library for proto-google-cloud-spanner-admin-instance-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-spanner-v1/pom.xml b/google-api-grpc/proto-google-cloud-spanner-v1/pom.xml index 719be3ee84e1..48d53f9671a2 100644 --- a/google-api-grpc/proto-google-cloud-spanner-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-spanner-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-spanner-v1 - 1.11.0 + 1.11.1-SNAPSHOT proto-google-cloud-spanner-v1 PROTO library for proto-google-cloud-spanner-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-speech-v1/pom.xml b/google-api-grpc/proto-google-cloud-speech-v1/pom.xml index 51b5fe88e7f5..6b5c4ae4a0f9 100644 --- a/google-api-grpc/proto-google-cloud-speech-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-speech-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-speech-v1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-speech-v1 PROTO library for proto-google-cloud-speech-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-speech-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-speech-v1beta1/pom.xml index 2ef9a1d8e51a..7a37676978ad 100644 --- a/google-api-grpc/proto-google-cloud-speech-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-speech-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-speech-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-speech-v1beta1 PROTO library for proto-google-cloud-speech-v1beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-speech-v1p1beta1/pom.xml b/google-api-grpc/proto-google-cloud-speech-v1p1beta1/pom.xml index 5c770c5d31be..7046eabc2ec5 100644 --- a/google-api-grpc/proto-google-cloud-speech-v1p1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-speech-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-speech-v1p1beta1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-speech-v1p1beta1 PROTO library for proto-google-cloud-speech-v1p1beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/pom.xml b/google-api-grpc/proto-google-cloud-talent-v4beta1/pom.xml index eeec03290777..0dd663bd5b99 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-talent-v4beta1 - 0.1.0-beta + 0.1.1-beta-SNAPSHOT proto-google-cloud-talent-v4beta1 PROTO library for proto-google-cloud-talent-v4beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-tasks-v2beta2/pom.xml b/google-api-grpc/proto-google-cloud-tasks-v2beta2/pom.xml index 33dc0d9b2d5e..5f6a9b1a886f 100644 --- a/google-api-grpc/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/google-api-grpc/proto-google-cloud-tasks-v2beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-tasks-v2beta2 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-tasks-v2beta3/pom.xml b/google-api-grpc/proto-google-cloud-tasks-v2beta3/pom.xml index a9b57ba977cb..cb5bdf2b0c87 100644 --- a/google-api-grpc/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/google-api-grpc/proto-google-cloud-tasks-v2beta3/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-tasks-v2beta3 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1/pom.xml b/google-api-grpc/proto-google-cloud-texttospeech-v1/pom.xml index fc0ad6c013f0..7b4283fb2c99 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-texttospeech-v1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-texttospeech-v1 PROTO library for proto-google-cloud-texttospeech-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/pom.xml index 1f545aa69e02..118252013e37 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-texttospeech-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-texttospeech-v1beta1 PROTO library for proto-google-cloud-texttospeech-v1beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-trace-v1/pom.xml b/google-api-grpc/proto-google-cloud-trace-v1/pom.xml index 29990ed6f985..38526cb2f192 100644 --- a/google-api-grpc/proto-google-cloud-trace-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-trace-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-trace-v1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-trace-v1 PROTO library for proto-google-cloud-trace-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-trace-v2/pom.xml b/google-api-grpc/proto-google-cloud-trace-v2/pom.xml index c1c61181ef37..c7fb9cce3dfc 100644 --- a/google-api-grpc/proto-google-cloud-trace-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-trace-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-trace-v2 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-trace-v2 PROTO library for proto-google-cloud-trace-v2 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1/pom.xml index b72c7ee08511..992390d31fe8 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-video-intelligence-v1 PROTO library for proto-google-cloud-video-intelligence-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1beta1/pom.xml index 6b20ae2ce2b3..0de5855dcdc4 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-video-intelligence-v1beta1 PROTO library for proto-google-cloud-video-intelligence-v1beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1beta2/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1beta2/pom.xml index c8c162281ebb..54b348eb3f72 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1beta2/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1beta2 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-video-intelligence-v1beta2 PROTO library for proto-google-cloud-video-intelligence-v1beta2 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml index 244ed39b0f3a..cf3a2230cd03 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1p1beta1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-video-intelligence-v1p1beta1 PROTO library for proto-google-cloud-video-intelligence-v1p1beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml index 1d0ef00d3311..b060e03a0f62 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1p2beta1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-video-intelligence-v1p2beta1 PROTO library for proto-google-cloud-video-intelligence-v1p2beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml index e990efa5a1d0..225672801683 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1p3beta1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-video-intelligence-v1p3beta1 PROTO library for proto-google-cloud-video-intelligence-v1p3beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-vision-v1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1/pom.xml index 676a02e908da..0cbe976957dc 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1 - 1.48.0 + 1.48.1-SNAPSHOT proto-google-cloud-vision-v1 PROTO library for proto-google-cloud-vision-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-vision-v1p1beta1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1p1beta1/pom.xml index f8543c6b6447..e2629924dcd8 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1p1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1p1beta1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-vision-v1p1beta1 PROTO library for proto-google-cloud-vision-v1p1beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-vision-v1p2beta1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1p2beta1/pom.xml index df93d7f3d71b..46b317902c11 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1p2beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1p2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1p2beta1 - 1.48.0 + 1.48.1-SNAPSHOT proto-google-cloud-vision-v1p2beta1 PROTO library for proto-google-cloud-vision-v1p2beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-vision-v1p3beta1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1p3beta1/pom.xml index 7c7ffc483109..611ef293a5be 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1p3beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1p3beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1p3beta1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-vision-v1p3beta1 PROTO library for proto-google-cloud-vision-v1p3beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-vision-v1p4beta1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1p4beta1/pom.xml index c076777f6989..154af169e792 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1p4beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1p4beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1p4beta1 - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-vision-v1p4beta1 PROTO library for proto-google-cloud-vision-v1p4beta1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/pom.xml b/google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/pom.xml index c64cc0e9635b..178679c531cb 100644 --- a/google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/pom.xml +++ b/google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-websecurityscanner-v1alpha - 0.49.0 + 0.49.1-SNAPSHOT proto-google-cloud-websecurityscanner-v1alpha PROTO library for proto-google-cloud-websecurityscanner-v1alpha com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/google-cloud-bom/pom.xml b/google-cloud-bom/pom.xml index 59b28e95d077..78247cbf4f58 100644 --- a/google-cloud-bom/pom.xml +++ b/google-cloud-bom/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bom pom - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT Google Cloud Java BOM https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-bom @@ -197,783 +197,783 @@ com.google.cloud google-cloud-asset - 0.84.0-beta + 0.84.1-beta-SNAPSHOT com.google.api.grpc proto-google-cloud-asset-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.cloud google-cloud-automl - 0.84.0-beta + 0.84.1-beta-SNAPSHOT com.google.api.grpc proto-google-cloud-automl-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.cloud google-cloud-bigtable - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT com.google.api.grpc proto-google-cloud-bigtable-v2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigtable-v2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-bigtable-admin-v2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigtable-admin-v2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.cloud google-cloud-bigtable-emulator - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT com.google.cloud google-cloud-bigquery - 1.66.0 + 1.66.1-SNAPSHOT com.google.cloud google-cloud-bigquerydatatransfer - 0.84.0-beta + 0.84.1-beta-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerystorage-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerystorage-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.cloud google-cloud-compute - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT com.google.cloud google-cloud-container - 0.84.0-beta + 0.84.1-beta-SNAPSHOT com.google.api.grpc proto-google-cloud-container-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-container-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.cloud google-cloud-containeranalysis - 0.84.0-beta + 0.84.1-beta-SNAPSHOT com.google.api.grpc proto-google-cloud-containeranalysis-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-containeranalysis-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.cloud google-cloud-contrib - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT com.google.cloud google-cloud-nio - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT com.google.cloud google-cloud-core - 1.66.0 + 1.66.1-SNAPSHOT com.google.cloud google-cloud-core-grpc - 1.66.0 + 1.66.1-SNAPSHOT com.google.cloud google-cloud-core-http - 1.66.0 + 1.66.1-SNAPSHOT com.google.cloud google-cloud-dataproc - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.cloud google-cloud-datastore - 1.66.0 + 1.66.1-SNAPSHOT com.google.api.grpc proto-google-cloud-datastore-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.cloud google-cloud-dlp - 0.84.0-beta + 0.84.1-beta-SNAPSHOT com.google.api.grpc proto-google-cloud-dlp-v2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dlp-v2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.cloud google-cloud-dialogflow - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dialogflow-v2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dialogflow-v2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.cloud google-cloud-dns - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT com.google.cloud google-cloud-errorreporting - 0.84.0-beta + 0.84.1-beta-SNAPSHOT com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.cloud google-cloud-firestore - 0.84.0-beta + 0.84.1-beta-SNAPSHOT com.google.api.grpc proto-google-cloud-firestore-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-firestore-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-firestore-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-firestore-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.cloud google-cloud-kms - 1.2.0 + 1.2.1-SNAPSHOT com.google.api.grpc proto-google-cloud-kms-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-kms-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.cloud google-cloud-language - 1.66.0 + 1.66.1-SNAPSHOT com.google.api.grpc proto-google-cloud-language-v1 - 1.48.0 + 1.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-language-v1 - 1.48.0 + 1.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.cloud google-cloud-logging - 1.66.0 + 1.66.1-SNAPSHOT com.google.api.grpc proto-google-cloud-logging-v2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-logging-v2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.cloud google-cloud-logging-logback - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT com.google.cloud google-cloud-monitoring - 1.66.0 + 1.66.1-SNAPSHOT com.google.api.grpc proto-google-cloud-monitoring-v3 - 1.48.0 + 1.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-monitoring-v3 - 1.48.0 + 1.48.1-SNAPSHOT com.google.cloud google-cloud-os-login - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT com.google.api.grpc proto-google-cloud-os-login-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-os-login-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.66.0 + 1.66.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.48.0 + 1.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.48.0 + 1.48.1-SNAPSHOT com.google.cloud google-cloud-redis - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT com.google.api.grpc proto-google-cloud-redis-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-redis-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-redis-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-redis-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.cloud google-cloud-resourcemanager - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT com.google.cloud google-cloud-scheduler - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT com.google.api.grpc proto-google-cloud-scheduler-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-scheduler-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.cloud google-cloud-securitycenter - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT com.google.api.grpc grpc-google-cloud-scheduler-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-scheduler-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycenter-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.cloud google-cloud-spanner - 1.11.0 + 1.11.1-SNAPSHOT com.google.api.grpc proto-google-cloud-spanner-v1 - 1.11.0 + 1.11.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-spanner-v1 - 1.11.0 + 1.11.1-SNAPSHOT com.google.api.grpc proto-google-cloud-spanner-admin-database-v1 - 1.11.0 + 1.11.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-spanner-admin-database-v1 - 1.11.0 + 1.11.1-SNAPSHOT com.google.api.grpc proto-google-cloud-spanner-admin-instance-v1 - 1.11.0 + 1.11.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-spanner-admin-instance-v1 - 1.11.0 + 1.11.1-SNAPSHOT com.google.cloud google-cloud-speech - 0.84.0-beta + 0.84.1-beta-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.cloud google-cloud-storage - 1.66.0 + 1.66.1-SNAPSHOT com.google.cloud google-cloud-tasks - 0.84.0-beta + 0.84.1-beta-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.49.0 + 0.49.1-SNAPSHOT com.google.cloud google-cloud-texttospeech - 0.84.0-beta + 0.84.1-beta-SNAPSHOT com.google.api.grpc proto-google-cloud-texttospeech-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-texttospeech-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-texttospeech-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-texttospeech-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.cloud google-cloud-trace - 0.84.0-beta + 0.84.1-beta-SNAPSHOT com.google.api.grpc proto-google-cloud-trace-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-trace-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-trace-v2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-trace-v2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.cloud google-cloud-translate - 1.66.0 + 1.66.1-SNAPSHOT com.google.cloud google-cloud-vision - 1.66.0 + 1.66.1-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1 - 1.48.0 + 1.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1 - 1.48.0 + 1.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p2beta1 - 1.48.0 + 1.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p2beta1 - 1.48.0 + 1.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p3beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p3beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p4beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p4beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.cloud google-cloud-video-intelligence - 0.84.0-beta + 0.84.1-beta-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1beta2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta2 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1p1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1p1beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1p2beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1p2beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1p3beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1p3beta1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-iot-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-iot-v1 - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.49.0 + 0.49.1-SNAPSHOT com.google.api.grpc proto-google-cloud-iamcredentials-v1 - 0.11.0-alpha + 0.11.1-alpha-SNAPSHOT com.google.api.grpc grpc-google-cloud-iamcredentials-v1 - 0.11.0-alpha + 0.11.1-alpha-SNAPSHOT com.google.cloud google-cloud-iamcredentials - 0.11.0-alpha + 0.11.1-alpha-SNAPSHOT com.google.api.grpc proto-google-cloud-talent-v4beta1 - 0.1.0-beta + 0.1.1-beta-SNAPSHOT com.google.api.grpc grpc-google-cloud-talent-v4beta1 - 0.1.0-beta + 0.1.1-beta-SNAPSHOT com.google.cloud google-cloud-talent - 0.1.0-beta + 0.1.1-beta-SNAPSHOT diff --git a/google-cloud-clients/google-cloud-asset/pom.xml b/google-cloud-clients/google-cloud-asset/pom.xml index 64b910b3ee97..88a97caa9980 100644 --- a/google-cloud-clients/google-cloud-asset/pom.xml +++ b/google-cloud-clients/google-cloud-asset/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-asset - 0.84.0-beta + 0.84.1-beta-SNAPSHOT jar Google Cloud Asset https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-asset @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-asset diff --git a/google-cloud-clients/google-cloud-automl/pom.xml b/google-cloud-clients/google-cloud-automl/pom.xml index e8b5f053ea86..e3f7baf49280 100644 --- a/google-cloud-clients/google-cloud-automl/pom.xml +++ b/google-cloud-clients/google-cloud-automl/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-automl - 0.84.0-beta + 0.84.1-beta-SNAPSHOT jar Google Cloud Auto ML https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-automl @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-automl diff --git a/google-cloud-clients/google-cloud-bigquery/pom.xml b/google-cloud-clients/google-cloud-bigquery/pom.xml index e28ab06a0253..728b30aff4be 100644 --- a/google-cloud-clients/google-cloud-bigquery/pom.xml +++ b/google-cloud-clients/google-cloud-bigquery/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-bigquery - 1.66.0 + 1.66.1-SNAPSHOT jar Google Cloud BigQuery https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-bigquery @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-bigquery diff --git a/google-cloud-clients/google-cloud-bigquerydatatransfer/pom.xml b/google-cloud-clients/google-cloud-bigquerydatatransfer/pom.xml index 65783d9ae89e..5e860eaa8b73 100644 --- a/google-cloud-clients/google-cloud-bigquerydatatransfer/pom.xml +++ b/google-cloud-clients/google-cloud-bigquerydatatransfer/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-bigquerydatatransfer - 0.84.0-beta + 0.84.1-beta-SNAPSHOT jar Google Cloud Bigquery Data Transfer https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-bigquerydatatransfer @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-bigquerydatatransfer diff --git a/google-cloud-clients/google-cloud-bigquerystorage/pom.xml b/google-cloud-clients/google-cloud-bigquerystorage/pom.xml index cf0236def3da..fcc61899a52f 100644 --- a/google-cloud-clients/google-cloud-bigquerystorage/pom.xml +++ b/google-cloud-clients/google-cloud-bigquerystorage/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-bigquerystorage - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT jar Google Cloud Bigquery Storage https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-bigquerystorage @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-bigquerystorage diff --git a/google-cloud-clients/google-cloud-bigtable/pom.xml b/google-cloud-clients/google-cloud-bigtable/pom.xml index 341c54d0c35b..5924639e2e28 100644 --- a/google-cloud-clients/google-cloud-bigtable/pom.xml +++ b/google-cloud-clients/google-cloud-bigtable/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-bigtable - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT jar Google Cloud Bigtable https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-bigtable @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-bigtable diff --git a/google-cloud-clients/google-cloud-compute/pom.xml b/google-cloud-clients/google-cloud-compute/pom.xml index 34e3a51a6781..027e410e6192 100644 --- a/google-cloud-clients/google-cloud-compute/pom.xml +++ b/google-cloud-clients/google-cloud-compute/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-compute - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT jar Google Cloud Compute https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-compute @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-compute diff --git a/google-cloud-clients/google-cloud-container/pom.xml b/google-cloud-clients/google-cloud-container/pom.xml index 92e921da43d6..fcdfe70aadcc 100644 --- a/google-cloud-clients/google-cloud-container/pom.xml +++ b/google-cloud-clients/google-cloud-container/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-container - 0.84.0-beta + 0.84.1-beta-SNAPSHOT jar Google Cloud Container https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-container @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-container diff --git a/google-cloud-clients/google-cloud-containeranalysis/pom.xml b/google-cloud-clients/google-cloud-containeranalysis/pom.xml index dce78b73dc57..152a335ef966 100644 --- a/google-cloud-clients/google-cloud-containeranalysis/pom.xml +++ b/google-cloud-clients/google-cloud-containeranalysis/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-containeranalysis - 0.84.0-beta + 0.84.1-beta-SNAPSHOT jar Google Cloud Container Analysis https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-containeranalysis @@ -15,7 +15,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-containeranalysis diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/pom.xml b/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/pom.xml index 5fa18cac2f28..dc1598e05c87 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/pom.xml +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/pom.xml @@ -5,7 +5,7 @@ 4.0.0 google-cloud-logging-logback - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT jar Google Cloud Logging Logback Appender https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback @@ -20,7 +20,7 @@ com.google.cloud google-cloud-contrib - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/README.md b/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/README.md index a1169dbfc1dc..a090f4508a99 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/README.md +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/README.md @@ -24,12 +24,12 @@ To run this example: [//]: # ({x-version-update-start:google-cloud-nio:current}) ``` - java -cp google-cloud-clients/google-cloud-contrib/google-cloud-nio/target/google-cloud-nio-0.84.0-alpha.jar:google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/target/google-cloud-nio-examples-0.84.0-alpha.jar com.google.cloud.nio.examples.ListFilesystems + java -cp google-cloud-clients/google-cloud-contrib/google-cloud-nio/target/google-cloud-nio-0.84.1-alpha-SNAPSHOT.jar:google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/target/google-cloud-nio-examples-0.84.1-alpha-SNAPSHOT.jar com.google.cloud.nio.examples.ListFilesystems ``` Notice that it lists Google Cloud Storage, which it wouldn't if you ran it without the NIO jar: ``` - java -cp google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/target/google-cloud-nio-examples-0.84.0-alpha.jar com.google.cloud.nio.examples.ListFilesystems + java -cp google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/target/google-cloud-nio-examples-0.84.1-alpha-SNAPSHOT.jar com.google.cloud.nio.examples.ListFilesystems ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/pom.xml b/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/pom.xml index 150536882e5e..79832698e46b 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/pom.xml +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-nio-examples - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT jar Google Cloud NIO Examples https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples @@ -12,7 +12,7 @@ com.google.cloud google-cloud-contrib - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-nio-examples diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/pom.xml b/google-cloud-clients/google-cloud-contrib/google-cloud-nio/pom.xml index f576dc0cfbd9..f412b670a35f 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/pom.xml +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-nio/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-nio - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT jar Google Cloud NIO https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-contrib/google-cloud-nio @@ -12,7 +12,7 @@ com.google.cloud google-cloud-contrib - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-nio diff --git a/google-cloud-clients/google-cloud-contrib/pom.xml b/google-cloud-clients/google-cloud-contrib/pom.xml index 145980f493c9..c3edd633bf26 100644 --- a/google-cloud-clients/google-cloud-contrib/pom.xml +++ b/google-cloud-clients/google-cloud-contrib/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-contrib - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT pom Google Cloud Contributions https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-contrib @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-contrib diff --git a/google-cloud-clients/google-cloud-core-grpc/pom.xml b/google-cloud-clients/google-cloud-core-grpc/pom.xml index ec819e862817..26536116c68f 100644 --- a/google-cloud-clients/google-cloud-core-grpc/pom.xml +++ b/google-cloud-clients/google-cloud-core-grpc/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-core-grpc - 1.66.0 + 1.66.1-SNAPSHOT jar Google Cloud Core gRPC https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-core-grpc @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-core-grpc diff --git a/google-cloud-clients/google-cloud-core-http/pom.xml b/google-cloud-clients/google-cloud-core-http/pom.xml index fc1ec80819b3..6da91ed58508 100644 --- a/google-cloud-clients/google-cloud-core-http/pom.xml +++ b/google-cloud-clients/google-cloud-core-http/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-core-http - 1.66.0 + 1.66.1-SNAPSHOT jar Google Cloud Core HTTP https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-core-http @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-core-http diff --git a/google-cloud-clients/google-cloud-core/pom.xml b/google-cloud-clients/google-cloud-core/pom.xml index c48a1fecd349..1640c9324ed3 100644 --- a/google-cloud-clients/google-cloud-core/pom.xml +++ b/google-cloud-clients/google-cloud-core/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-core - 1.66.0 + 1.66.1-SNAPSHOT jar Google Cloud Core https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-core @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-core diff --git a/google-cloud-clients/google-cloud-dataproc/pom.xml b/google-cloud-clients/google-cloud-dataproc/pom.xml index ba103a0ddc1f..f9429558f5a3 100644 --- a/google-cloud-clients/google-cloud-dataproc/pom.xml +++ b/google-cloud-clients/google-cloud-dataproc/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-dataproc - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-dataproc @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-dataproc diff --git a/google-cloud-clients/google-cloud-datastore/pom.xml b/google-cloud-clients/google-cloud-datastore/pom.xml index 6302770437a3..e90a7d96ffa9 100644 --- a/google-cloud-clients/google-cloud-datastore/pom.xml +++ b/google-cloud-clients/google-cloud-datastore/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-datastore - 1.66.0 + 1.66.1-SNAPSHOT jar Google Cloud Datastore https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-datastore @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-datastore diff --git a/google-cloud-clients/google-cloud-dialogflow/pom.xml b/google-cloud-clients/google-cloud-dialogflow/pom.xml index 244af295c941..b980cb60386e 100644 --- a/google-cloud-clients/google-cloud-dialogflow/pom.xml +++ b/google-cloud-clients/google-cloud-dialogflow/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-dialogflow - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT jar Google Cloud Dialog Flow API https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-dialogflow @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-dialogflow diff --git a/google-cloud-clients/google-cloud-dlp/pom.xml b/google-cloud-clients/google-cloud-dlp/pom.xml index 7ea81f448d89..fed65aaee403 100644 --- a/google-cloud-clients/google-cloud-dlp/pom.xml +++ b/google-cloud-clients/google-cloud-dlp/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-dlp - 0.84.0-beta + 0.84.1-beta-SNAPSHOT jar Google Cloud Data Loss Prevention API https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-dlp @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-dlp diff --git a/google-cloud-clients/google-cloud-dns/pom.xml b/google-cloud-clients/google-cloud-dns/pom.xml index 51bc289aa279..78730a4bcb69 100644 --- a/google-cloud-clients/google-cloud-dns/pom.xml +++ b/google-cloud-clients/google-cloud-dns/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-dns - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT jar Google Cloud DNS https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-dns @@ -14,7 +14,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-dns diff --git a/google-cloud-clients/google-cloud-errorreporting/pom.xml b/google-cloud-clients/google-cloud-errorreporting/pom.xml index d1c240fc5a96..3001c5b4b16d 100644 --- a/google-cloud-clients/google-cloud-errorreporting/pom.xml +++ b/google-cloud-clients/google-cloud-errorreporting/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-errorreporting - 0.84.0-beta + 0.84.1-beta-SNAPSHOT jar Google Cloud Error Reporting https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-errorreporting @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-errorreporting diff --git a/google-cloud-clients/google-cloud-firestore/pom.xml b/google-cloud-clients/google-cloud-firestore/pom.xml index aa7c4c7294d5..03e40ddade22 100644 --- a/google-cloud-clients/google-cloud-firestore/pom.xml +++ b/google-cloud-clients/google-cloud-firestore/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-firestore - 0.84.0-beta + 0.84.1-beta-SNAPSHOT jar Google Cloud Firestore https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-firestore @@ -15,7 +15,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-firestore diff --git a/google-cloud-clients/google-cloud-iamcredentials/pom.xml b/google-cloud-clients/google-cloud-iamcredentials/pom.xml index 7eb89d7d2941..1d298389da50 100644 --- a/google-cloud-clients/google-cloud-iamcredentials/pom.xml +++ b/google-cloud-clients/google-cloud-iamcredentials/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-iamcredentials - 0.11.0-alpha + 0.11.1-alpha-SNAPSHOT jar Google Cloud Java Client for IAM Service Account Credentials API https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-iamcredentials @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-iamcredentials diff --git a/google-cloud-clients/google-cloud-iot/pom.xml b/google-cloud-clients/google-cloud-iot/pom.xml index daeac61c6b73..573d1455fe06 100644 --- a/google-cloud-clients/google-cloud-iot/pom.xml +++ b/google-cloud-clients/google-cloud-iot/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-iot - 0.84.0-beta + 0.84.1-beta-SNAPSHOT jar Google Cloud IoT https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-iot @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-iot diff --git a/google-cloud-clients/google-cloud-kms/pom.xml b/google-cloud-clients/google-cloud-kms/pom.xml index 8f2572d20aa9..81cfe5fb21bd 100644 --- a/google-cloud-clients/google-cloud-kms/pom.xml +++ b/google-cloud-clients/google-cloud-kms/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-kms - 1.2.0 + 1.2.1-SNAPSHOT jar Google Cloud KMS https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-kms @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-kms-v1 diff --git a/google-cloud-clients/google-cloud-language/pom.xml b/google-cloud-clients/google-cloud-language/pom.xml index a8410fe3201b..10e10d724abb 100644 --- a/google-cloud-clients/google-cloud-language/pom.xml +++ b/google-cloud-clients/google-cloud-language/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-language - 1.66.0 + 1.66.1-SNAPSHOT jar Google Cloud Natural Language https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-language @@ -15,7 +15,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-language diff --git a/google-cloud-clients/google-cloud-logging/pom.xml b/google-cloud-clients/google-cloud-logging/pom.xml index 74b87e2d8934..efceecff9a34 100644 --- a/google-cloud-clients/google-cloud-logging/pom.xml +++ b/google-cloud-clients/google-cloud-logging/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-logging - 1.66.0 + 1.66.1-SNAPSHOT jar Google Cloud Logging https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-logging @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-logging diff --git a/google-cloud-clients/google-cloud-monitoring/pom.xml b/google-cloud-clients/google-cloud-monitoring/pom.xml index 7bbf4cfc0eb5..343be81799ce 100644 --- a/google-cloud-clients/google-cloud-monitoring/pom.xml +++ b/google-cloud-clients/google-cloud-monitoring/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-monitoring - 1.66.0 + 1.66.1-SNAPSHOT jar Google Cloud Monitoring https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-monitoring @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-monitoring diff --git a/google-cloud-clients/google-cloud-notification/pom.xml b/google-cloud-clients/google-cloud-notification/pom.xml index 7ea12c372bdd..424e147f2444 100644 --- a/google-cloud-clients/google-cloud-notification/pom.xml +++ b/google-cloud-clients/google-cloud-notification/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-notification - 0.84.0-beta + 0.84.1-beta-SNAPSHOT jar Google Cloud Pub/Sub Notifications for GCS https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-notification @@ -15,7 +15,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-notification diff --git a/google-cloud-clients/google-cloud-os-login/pom.xml b/google-cloud-clients/google-cloud-os-login/pom.xml index 078d6ff292f1..5524d6e3fd6b 100644 --- a/google-cloud-clients/google-cloud-os-login/pom.xml +++ b/google-cloud-clients/google-cloud-os-login/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-os-login - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT jar Google Cloud OS Login https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-os-login @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-os-login diff --git a/google-cloud-clients/google-cloud-pubsub/pom.xml b/google-cloud-clients/google-cloud-pubsub/pom.xml index f7aa44ecfa29..78fbaa28d217 100644 --- a/google-cloud-clients/google-cloud-pubsub/pom.xml +++ b/google-cloud-clients/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.66.0 + 1.66.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/google-cloud-clients/google-cloud-redis/pom.xml b/google-cloud-clients/google-cloud-redis/pom.xml index 792b4aa92a70..4a70bbed8773 100644 --- a/google-cloud-clients/google-cloud-redis/pom.xml +++ b/google-cloud-clients/google-cloud-redis/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-redis - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT jar Google Cloud Redis https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-redis @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-redis diff --git a/google-cloud-clients/google-cloud-resourcemanager/pom.xml b/google-cloud-clients/google-cloud-resourcemanager/pom.xml index ba6d4164ed49..144fc97b7047 100644 --- a/google-cloud-clients/google-cloud-resourcemanager/pom.xml +++ b/google-cloud-clients/google-cloud-resourcemanager/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-resourcemanager - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT jar Google Cloud Resource Manager https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-resourcemanager @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-resourcemanager diff --git a/google-cloud-clients/google-cloud-scheduler/pom.xml b/google-cloud-clients/google-cloud-scheduler/pom.xml index 959359343470..4bff7d876ed1 100644 --- a/google-cloud-clients/google-cloud-scheduler/pom.xml +++ b/google-cloud-clients/google-cloud-scheduler/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-scheduler - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT jar Google Cloud Scheduler https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-scheduler @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-scheduler diff --git a/google-cloud-clients/google-cloud-securitycenter/pom.xml b/google-cloud-clients/google-cloud-securitycenter/pom.xml index a04aebd71d0e..abc3a9437cbe 100644 --- a/google-cloud-clients/google-cloud-securitycenter/pom.xml +++ b/google-cloud-clients/google-cloud-securitycenter/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-securitycenter - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT jar Google Cloud Security Command Center https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-securitycenter @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-securitycenter diff --git a/google-cloud-clients/google-cloud-spanner/pom.xml b/google-cloud-clients/google-cloud-spanner/pom.xml index 248f7090a535..51021434dd61 100644 --- a/google-cloud-clients/google-cloud-spanner/pom.xml +++ b/google-cloud-clients/google-cloud-spanner/pom.xml @@ -4,7 +4,7 @@ http://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0 google-cloud-spanner - 1.11.0 + 1.11.1-SNAPSHOT jar Google Cloud Spanner https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-spanner @@ -14,7 +14,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-spanner diff --git a/google-cloud-clients/google-cloud-speech/pom.xml b/google-cloud-clients/google-cloud-speech/pom.xml index fa253a82123a..fce78c78e653 100644 --- a/google-cloud-clients/google-cloud-speech/pom.xml +++ b/google-cloud-clients/google-cloud-speech/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-speech - 0.84.0-beta + 0.84.1-beta-SNAPSHOT jar Google Cloud Speech https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-speech @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-speech diff --git a/google-cloud-clients/google-cloud-storage/pom.xml b/google-cloud-clients/google-cloud-storage/pom.xml index 1f128f3bb358..e8d463171cfe 100644 --- a/google-cloud-clients/google-cloud-storage/pom.xml +++ b/google-cloud-clients/google-cloud-storage/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-storage - 1.66.0 + 1.66.1-SNAPSHOT jar Google Cloud Storage https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-storage @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-storage diff --git a/google-cloud-clients/google-cloud-talent/pom.xml b/google-cloud-clients/google-cloud-talent/pom.xml index 5df8009c0773..06cafa5c2c80 100644 --- a/google-cloud-clients/google-cloud-talent/pom.xml +++ b/google-cloud-clients/google-cloud-talent/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-talent - 0.1.0-beta + 0.1.1-beta-SNAPSHOT jar Google Cloud Talent Solution https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-talent @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-talent diff --git a/google-cloud-clients/google-cloud-tasks/pom.xml b/google-cloud-clients/google-cloud-tasks/pom.xml index 2627575579f9..8b01365a1980 100644 --- a/google-cloud-clients/google-cloud-tasks/pom.xml +++ b/google-cloud-clients/google-cloud-tasks/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-tasks - 0.84.0-beta + 0.84.1-beta-SNAPSHOT jar Google Cloud Tasks https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-tasks @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-tasks-v2beta2 diff --git a/google-cloud-clients/google-cloud-texttospeech/pom.xml b/google-cloud-clients/google-cloud-texttospeech/pom.xml index 4831f4910dfd..6796bdcd1ad1 100644 --- a/google-cloud-clients/google-cloud-texttospeech/pom.xml +++ b/google-cloud-clients/google-cloud-texttospeech/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-texttospeech - 0.84.0-beta + 0.84.1-beta-SNAPSHOT jar Google Cloud Text-to-Speech https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-texttospeech @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-texttospeech-v1beta1 diff --git a/google-cloud-clients/google-cloud-trace/pom.xml b/google-cloud-clients/google-cloud-trace/pom.xml index b2befed7a945..a32cd226f6a6 100644 --- a/google-cloud-clients/google-cloud-trace/pom.xml +++ b/google-cloud-clients/google-cloud-trace/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-trace - 0.84.0-beta + 0.84.1-beta-SNAPSHOT jar Google Cloud Trace https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-trace @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-trace diff --git a/google-cloud-clients/google-cloud-translate/pom.xml b/google-cloud-clients/google-cloud-translate/pom.xml index 8c5bef0dc899..64643c53baf3 100644 --- a/google-cloud-clients/google-cloud-translate/pom.xml +++ b/google-cloud-clients/google-cloud-translate/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-translate - 1.66.0 + 1.66.1-SNAPSHOT jar Google Cloud Translation https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-translate @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-translate diff --git a/google-cloud-clients/google-cloud-video-intelligence/pom.xml b/google-cloud-clients/google-cloud-video-intelligence/pom.xml index a72bbc5887f7..22ea593c45a1 100644 --- a/google-cloud-clients/google-cloud-video-intelligence/pom.xml +++ b/google-cloud-clients/google-cloud-video-intelligence/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-video-intelligence - 0.84.0-beta + 0.84.1-beta-SNAPSHOT jar Google Cloud Video Intelligence https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-video-intelligence @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-video-intelligence diff --git a/google-cloud-clients/google-cloud-vision/pom.xml b/google-cloud-clients/google-cloud-vision/pom.xml index f6b76debb65e..8a499f1afd09 100644 --- a/google-cloud-clients/google-cloud-vision/pom.xml +++ b/google-cloud-clients/google-cloud-vision/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-vision - 1.66.0 + 1.66.1-SNAPSHOT jar Google Cloud Vision https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-vision @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-vision diff --git a/google-cloud-clients/google-cloud-websecurityscanner/pom.xml b/google-cloud-clients/google-cloud-websecurityscanner/pom.xml index 21ccd4d0f1a7..13c0d791e515 100644 --- a/google-cloud-clients/google-cloud-websecurityscanner/pom.xml +++ b/google-cloud-clients/google-cloud-websecurityscanner/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-websecurityscanner - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT jar Google Cloud Web Security Scanner https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-websecurityscanner @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-websecurityscanner diff --git a/google-cloud-clients/pom.xml b/google-cloud-clients/pom.xml index b50333f568a5..5e005f14279c 100644 --- a/google-cloud-clients/pom.xml +++ b/google-cloud-clients/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-clients pom - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT Google Cloud https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients @@ -152,7 +152,7 @@ UTF-8 github google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT 1.27.0 1.42.0 @@ -247,7 +247,7 @@ com.google.cloud google-cloud-core - 1.66.0 + 1.66.1-SNAPSHOT test-jar diff --git a/google-cloud-examples/pom.xml b/google-cloud-examples/pom.xml index c2cdf8894ca8..b0106871a39c 100644 --- a/google-cloud-examples/pom.xml +++ b/google-cloud-examples/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-examples - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT jar Google Cloud Examples https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-examples @@ -18,7 +18,7 @@ com.google.cloud google-cloud-bom - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT pom import diff --git a/google-cloud-testing/google-cloud-appengineflexcompat/pom.xml b/google-cloud-testing/google-cloud-appengineflexcompat/pom.xml index 1015aa771093..023d72d9dd9f 100644 --- a/google-cloud-testing/google-cloud-appengineflexcompat/pom.xml +++ b/google-cloud-testing/google-cloud-appengineflexcompat/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-appengineflexcompat - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT war google-cloud-testing com.google.cloud - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT diff --git a/google-cloud-testing/google-cloud-appengineflexcustom/pom.xml b/google-cloud-testing/google-cloud-appengineflexcustom/pom.xml index b6e45e212180..c1d41eb20524 100644 --- a/google-cloud-testing/google-cloud-appengineflexcustom/pom.xml +++ b/google-cloud-testing/google-cloud-appengineflexcustom/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-appengineflexcustom - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT war google-cloud-testing com.google.cloud - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT diff --git a/google-cloud-testing/google-cloud-appengineflexjava/pom.xml b/google-cloud-testing/google-cloud-appengineflexjava/pom.xml index 76ecf99bb840..a2d6913a6017 100644 --- a/google-cloud-testing/google-cloud-appengineflexjava/pom.xml +++ b/google-cloud-testing/google-cloud-appengineflexjava/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-appengineflexjava - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT war google-cloud-testing com.google.cloud - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT diff --git a/google-cloud-testing/google-cloud-appenginejava8/pom.xml b/google-cloud-testing/google-cloud-appenginejava8/pom.xml index 3c130d5ee5a4..129551930abc 100644 --- a/google-cloud-testing/google-cloud-appenginejava8/pom.xml +++ b/google-cloud-testing/google-cloud-appenginejava8/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-appenginejava8 - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT war google-cloud-testing com.google.cloud - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT diff --git a/google-cloud-testing/google-cloud-bigtable-emulator/pom.xml b/google-cloud-testing/google-cloud-bigtable-emulator/pom.xml index 01035af6efc3..0f191f723817 100644 --- a/google-cloud-testing/google-cloud-bigtable-emulator/pom.xml +++ b/google-cloud-testing/google-cloud-bigtable-emulator/pom.xml @@ -6,7 +6,7 @@ com.google.cloud google-cloud-bigtable-emulator - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT Google Cloud Java - Bigtable Emulator https://github.com/googleapis/google-cloud-java @@ -69,7 +69,7 @@ com.google.cloud google-cloud-gcloud-maven-plugin - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT @@ -126,7 +126,7 @@ com.google.cloud google-cloud-bom - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT pom import diff --git a/google-cloud-testing/google-cloud-gcloud-maven-plugin/pom.xml b/google-cloud-testing/google-cloud-gcloud-maven-plugin/pom.xml index 209029473d0d..1ae1788c78f9 100644 --- a/google-cloud-testing/google-cloud-gcloud-maven-plugin/pom.xml +++ b/google-cloud-testing/google-cloud-gcloud-maven-plugin/pom.xml @@ -7,11 +7,11 @@ google-cloud-testing com.google.cloud - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-gcloud-maven-plugin - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT maven-plugin Experimental Maven plugin to interact with the Google Cloud SDK (https://cloud.google.com/sdk/). Currently this plugin is meant to be an internal implementation diff --git a/google-cloud-testing/google-cloud-managedtest/pom.xml b/google-cloud-testing/google-cloud-managedtest/pom.xml index 9b98f3428f56..be39e364f0ba 100644 --- a/google-cloud-testing/google-cloud-managedtest/pom.xml +++ b/google-cloud-testing/google-cloud-managedtest/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-managedtest - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT jar google-cloud-testing com.google.cloud - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT diff --git a/google-cloud-testing/pom.xml b/google-cloud-testing/pom.xml index cb0601345320..79d33496041c 100644 --- a/google-cloud-testing/pom.xml +++ b/google-cloud-testing/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.google.cloud google-cloud-testing - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT pom Google Cloud Testing @@ -32,14 +32,14 @@ com.google.cloud google-cloud-bom - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT pom import com.google.cloud google-cloud-core - 1.66.0 + 1.66.1-SNAPSHOT test-jar diff --git a/google-cloud-util/google-cloud-compat-checker/pom.xml b/google-cloud-util/google-cloud-compat-checker/pom.xml index 0eae7b61f6a1..c1550385f4c2 100644 --- a/google-cloud-util/google-cloud-compat-checker/pom.xml +++ b/google-cloud-util/google-cloud-compat-checker/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-compat-checker - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT jar Google Cloud Java Compatibility Checker https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-util/google-cloud-compat-checker @@ -12,7 +12,7 @@ com.google.cloud google-cloud-util - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-compat-checker diff --git a/google-cloud-util/pom.xml b/google-cloud-util/pom.xml index 2cceda704b06..bf9a7b7f0f79 100644 --- a/google-cloud-util/pom.xml +++ b/google-cloud-util/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-util - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT pom Google Cloud Util https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-util diff --git a/versions.txt b/versions.txt index a7e5776c0957..3ac017f7b68c 100644 --- a/versions.txt +++ b/versions.txt @@ -1,178 +1,178 @@ # Format: # module:released-version:current-version -google-api-grpc:0.49.0:0.49.0 -google-cloud:0.84.0-alpha:0.84.0-alpha -google-cloud-appengineflexcompat:0.84.0-alpha:0.84.0-alpha -google-cloud-appengineflexcustom:0.84.0-alpha:0.84.0-alpha -google-cloud-appengineflexjava:0.84.0-alpha:0.84.0-alpha -google-cloud-appenginejava8:0.84.0-alpha:0.84.0-alpha -google-cloud-asset:0.84.0-beta:0.84.0-beta -google-cloud-automl:0.84.0-beta:0.84.0-beta -google-cloud-bigquery:1.66.0:1.66.0 -google-cloud-bigquerydatatransfer:0.84.0-beta:0.84.0-beta -google-cloud-bigquerystorage:0.84.0-beta:0.84.0-beta -google-cloud-bigtable:0.84.0-alpha:0.84.0-alpha -google-cloud-bigtable-emulator:0.84.0-alpha:0.84.0-alpha -google-cloud-bom:0.84.0-alpha:0.84.0-alpha -google-cloud-clients:0.84.0-alpha:0.84.0-alpha -google-cloud-compat-checker:0.84.0-alpha:0.84.0-alpha -google-cloud-compute:0.84.0-alpha:0.84.0-alpha -google-cloud-container:0.84.0-beta:0.84.0-beta -google-cloud-containeranalysis:0.84.0-beta:0.84.0-beta -google-cloud-contrib:0.84.0-alpha:0.84.0-alpha -google-cloud-core:1.66.0:1.66.0 -google-cloud-core-grpc:1.66.0:1.66.0 -google-cloud-core-http:1.66.0:1.66.0 -google-cloud-dataproc:0.84.0-alpha:0.84.0-alpha -google-cloud-datastore:1.66.0:1.66.0 -google-cloud-dialogflow:0.84.0-alpha:0.84.0-alpha -google-cloud-dlp:0.84.0-beta:0.84.0-beta -google-cloud-dns:0.84.0-alpha:0.84.0-alpha -google-cloud-errorreporting:0.84.0-beta:0.84.0-beta -google-cloud-examples:0.84.0-alpha:0.84.0-alpha -google-cloud-firestore:0.84.0-beta:0.84.0-beta -google-cloud-gcloud-maven-plugin:0.84.0-alpha:0.84.0-alpha -google-cloud-iamcredentials:0.11.0-alpha:0.11.0-alpha -google-cloud-iot:0.84.0-beta:0.84.0-beta -google-cloud-kms:1.2.0:1.2.0 -google-cloud-language:1.66.0:1.66.0 -google-cloud-logging:1.66.0:1.66.0 -google-cloud-logging-logback:0.84.0-alpha:0.84.0-alpha -google-cloud-managedtest:0.84.0-alpha:0.84.0-alpha -google-cloud-monitoring:1.66.0:1.66.0 -google-cloud-nio:0.84.0-alpha:0.84.0-alpha -google-cloud-nio-examples:0.84.0-alpha:0.84.0-alpha -google-cloud-notification:0.84.0-beta:0.84.0-beta -google-cloud-os-login:0.84.0-alpha:0.84.0-alpha -google-cloud-pubsub:1.66.0:1.66.0 -google-cloud-redis:0.84.0-alpha:0.84.0-alpha -google-cloud-resourcemanager:0.84.0-alpha:0.84.0-alpha -google-cloud-scheduler:0.84.0-alpha:0.84.0-alpha -google-cloud-securitycenter:0.84.0-alpha:0.84.0-alpha -google-cloud-spanner:1.11.0:1.11.0 -google-cloud-speech:0.84.0-beta:0.84.0-beta -google-cloud-storage:1.66.0:1.66.0 -google-cloud-talent:0.1.0-beta:0.1.0-beta -google-cloud-tasks:0.84.0-beta:0.84.0-beta -google-cloud-testing:0.84.0-alpha:0.84.0-alpha -google-cloud-texttospeech:0.84.0-beta:0.84.0-beta -google-cloud-trace:0.84.0-beta:0.84.0-beta -google-cloud-translate:1.66.0:1.66.0 -google-cloud-util:0.84.0-alpha:0.84.0-alpha -google-cloud-video-intelligence:0.84.0-beta:0.84.0-beta -google-cloud-vision:1.66.0:1.66.0 -google-cloud-websecurityscanner:0.84.0-alpha:0.84.0-alpha -grpc-google-cloud-asset-v1beta1:0.49.0:0.49.0 -grpc-google-cloud-automl-v1beta1:0.49.0:0.49.0 -grpc-google-cloud-bigquerydatatransfer-v1:0.49.0:0.49.0 -grpc-google-cloud-bigquerystorage-v1beta1:0.49.0:0.49.0 -grpc-google-cloud-bigtable-admin-v2:0.49.0:0.49.0 -grpc-google-cloud-bigtable-v2:0.49.0:0.49.0 -grpc-google-cloud-container-v1:0.49.0:0.49.0 -grpc-google-cloud-containeranalysis-v1beta1:0.49.0:0.49.0 -grpc-google-cloud-dataproc-v1:0.49.0:0.49.0 -grpc-google-cloud-dataproc-v1beta2:0.49.0:0.49.0 -grpc-google-cloud-dialogflow-v2:0.49.0:0.49.0 -grpc-google-cloud-dialogflow-v2beta1:0.49.0:0.49.0 -grpc-google-cloud-dlp-v2:0.49.0:0.49.0 -grpc-google-cloud-error-reporting-v1beta1:0.49.0:0.49.0 -grpc-google-cloud-firestore-v1:0.49.0:0.49.0 -grpc-google-cloud-firestore-v1beta1:0.49.0:0.49.0 -grpc-google-cloud-iamcredentials-v1:0.11.0-alpha:0.11.0-alpha -grpc-google-cloud-iot-v1:0.49.0:0.49.0 -grpc-google-cloud-kms-v1:0.49.0:0.49.0 -grpc-google-cloud-language-v1:1.48.0:1.48.0 -grpc-google-cloud-language-v1beta2:0.49.0:0.49.0 -grpc-google-cloud-logging-v2:0.49.0:0.49.0 -grpc-google-cloud-monitoring-v3:1.48.0:1.48.0 -grpc-google-cloud-os-login-v1:0.49.0:0.49.0 -grpc-google-cloud-pubsub-v1:1.48.0:1.48.0 -grpc-google-cloud-redis-v1:0.49.0:0.49.0 -grpc-google-cloud-redis-v1beta1:0.49.0:0.49.0 -grpc-google-cloud-scheduler-v1:0.49.0:0.49.0 -grpc-google-cloud-scheduler-v1beta1:0.49.0:0.49.0 -grpc-google-cloud-securitycenter-v1:0.49.0:0.49.0 -grpc-google-cloud-securitycenter-v1beta1:0.49.0:0.49.0 -grpc-google-cloud-spanner-admin-database-v1:1.11.0:1.11.0 -grpc-google-cloud-spanner-admin-instance-v1:1.11.0:1.11.0 -grpc-google-cloud-spanner-v1:1.11.0:1.11.0 -grpc-google-cloud-speech-v1:0.49.0:0.49.0 -grpc-google-cloud-speech-v1beta1:0.49.0:0.49.0 -grpc-google-cloud-speech-v1p1beta1:0.49.0:0.49.0 -grpc-google-cloud-talent-v4beta1:0.1.0-beta:0.1.0-beta -grpc-google-cloud-tasks-v2beta2:0.49.0:0.49.0 -grpc-google-cloud-tasks-v2beta3:0.49.0:0.49.0 -grpc-google-cloud-texttospeech-v1:0.49.0:0.49.0 -grpc-google-cloud-texttospeech-v1beta1:0.49.0:0.49.0 -grpc-google-cloud-trace-v1:0.49.0:0.49.0 -grpc-google-cloud-trace-v2:0.49.0:0.49.0 -grpc-google-cloud-video-intelligence-v1:0.49.0:0.49.0 -grpc-google-cloud-video-intelligence-v1beta1:0.49.0:0.49.0 -grpc-google-cloud-video-intelligence-v1beta2:0.49.0:0.49.0 -grpc-google-cloud-video-intelligence-v1p1beta1:0.49.0:0.49.0 -grpc-google-cloud-video-intelligence-v1p2beta1:0.49.0:0.49.0 -grpc-google-cloud-video-intelligence-v1p3beta1:0.49.0:0.49.0 -grpc-google-cloud-vision-v1:1.48.0:1.48.0 -grpc-google-cloud-vision-v1p1beta1:0.49.0:0.49.0 -grpc-google-cloud-vision-v1p2beta1:1.48.0:1.48.0 -grpc-google-cloud-vision-v1p3beta1:0.49.0:0.49.0 -grpc-google-cloud-vision-v1p4beta1:0.49.0:0.49.0 -grpc-google-cloud-websecurityscanner-v1alpha:0.49.0:0.49.0 -proto-google-cloud-asset-v1beta1:0.49.0:0.49.0 -proto-google-cloud-automl-v1beta1:0.49.0:0.49.0 -proto-google-cloud-bigquerydatatransfer-v1:0.49.0:0.49.0 -proto-google-cloud-bigquerystorage-v1beta1:0.49.0:0.49.0 -proto-google-cloud-bigtable-admin-v2:0.49.0:0.49.0 -proto-google-cloud-bigtable-v2:0.49.0:0.49.0 -proto-google-cloud-container-v1:0.49.0:0.49.0 -proto-google-cloud-containeranalysis-v1beta1:0.49.0:0.49.0 -proto-google-cloud-dataproc-v1:0.49.0:0.49.0 -proto-google-cloud-dataproc-v1beta2:0.49.0:0.49.0 -proto-google-cloud-datastore-v1:0.49.0:0.49.0 -proto-google-cloud-dialogflow-v2:0.49.0:0.49.0 -proto-google-cloud-dialogflow-v2beta1:0.49.0:0.49.0 -proto-google-cloud-dlp-v2:0.49.0:0.49.0 -proto-google-cloud-error-reporting-v1beta1:0.49.0:0.49.0 -proto-google-cloud-firestore-v1:0.49.0:0.49.0 -proto-google-cloud-firestore-v1beta1:0.49.0:0.49.0 -proto-google-cloud-iamcredentials-v1:0.11.0-alpha:0.11.0-alpha -proto-google-cloud-iot-v1:0.49.0:0.49.0 -proto-google-cloud-kms-v1:0.49.0:0.49.0 -proto-google-cloud-language-v1:1.48.0:1.48.0 -proto-google-cloud-language-v1beta2:0.49.0:0.49.0 -proto-google-cloud-logging-v2:0.49.0:0.49.0 -proto-google-cloud-monitoring-v3:1.48.0:1.48.0 -proto-google-cloud-os-login-v1:0.49.0:0.49.0 -proto-google-cloud-pubsub-v1:1.48.0:1.48.0 -proto-google-cloud-redis-v1:0.49.0:0.49.0 -proto-google-cloud-redis-v1beta1:0.49.0:0.49.0 -proto-google-cloud-scheduler-v1:0.49.0:0.49.0 -proto-google-cloud-scheduler-v1beta1:0.49.0:0.49.0 -proto-google-cloud-securitycenter-v1:0.49.0:0.49.0 -proto-google-cloud-securitycenter-v1beta1:0.49.0:0.49.0 -proto-google-cloud-spanner-admin-database-v1:1.11.0:1.11.0 -proto-google-cloud-spanner-admin-instance-v1:1.11.0:1.11.0 -proto-google-cloud-spanner-v1:1.11.0:1.11.0 -proto-google-cloud-speech-v1:0.49.0:0.49.0 -proto-google-cloud-speech-v1beta1:0.49.0:0.49.0 -proto-google-cloud-speech-v1p1beta1:0.49.0:0.49.0 -proto-google-cloud-talent-v4beta1:0.1.0-beta:0.1.0-beta -proto-google-cloud-tasks-v2beta2:0.49.0:0.49.0 -proto-google-cloud-tasks-v2beta3:0.49.0:0.49.0 -proto-google-cloud-texttospeech-v1:0.49.0:0.49.0 -proto-google-cloud-texttospeech-v1beta1:0.49.0:0.49.0 -proto-google-cloud-trace-v1:0.49.0:0.49.0 -proto-google-cloud-trace-v2:0.49.0:0.49.0 -proto-google-cloud-video-intelligence-v1:0.49.0:0.49.0 -proto-google-cloud-video-intelligence-v1beta1:0.49.0:0.49.0 -proto-google-cloud-video-intelligence-v1beta2:0.49.0:0.49.0 -proto-google-cloud-video-intelligence-v1p1beta1:0.49.0:0.49.0 -proto-google-cloud-video-intelligence-v1p2beta1:0.49.0:0.49.0 -proto-google-cloud-video-intelligence-v1p3beta1:0.49.0:0.49.0 -proto-google-cloud-vision-v1:1.48.0:1.48.0 -proto-google-cloud-vision-v1p1beta1:0.49.0:0.49.0 -proto-google-cloud-vision-v1p2beta1:1.48.0:1.48.0 -proto-google-cloud-vision-v1p3beta1:0.49.0:0.49.0 -proto-google-cloud-vision-v1p4beta1:0.49.0:0.49.0 -proto-google-cloud-websecurityscanner-v1alpha:0.49.0:0.49.0 +google-api-grpc:0.49.0:0.49.1-SNAPSHOT +google-cloud:0.84.0-alpha:0.84.1-alpha-SNAPSHOT +google-cloud-appengineflexcompat:0.84.0-alpha:0.84.1-alpha-SNAPSHOT +google-cloud-appengineflexcustom:0.84.0-alpha:0.84.1-alpha-SNAPSHOT +google-cloud-appengineflexjava:0.84.0-alpha:0.84.1-alpha-SNAPSHOT +google-cloud-appenginejava8:0.84.0-alpha:0.84.1-alpha-SNAPSHOT +google-cloud-asset:0.84.0-beta:0.84.1-beta-SNAPSHOT +google-cloud-automl:0.84.0-beta:0.84.1-beta-SNAPSHOT +google-cloud-bigquery:1.66.0:1.66.1-SNAPSHOT +google-cloud-bigquerydatatransfer:0.84.0-beta:0.84.1-beta-SNAPSHOT +google-cloud-bigquerystorage:0.84.0-beta:0.84.1-beta-SNAPSHOT +google-cloud-bigtable:0.84.0-alpha:0.84.1-alpha-SNAPSHOT +google-cloud-bigtable-emulator:0.84.0-alpha:0.84.1-alpha-SNAPSHOT +google-cloud-bom:0.84.0-alpha:0.84.1-alpha-SNAPSHOT +google-cloud-clients:0.84.0-alpha:0.84.1-alpha-SNAPSHOT +google-cloud-compat-checker:0.84.0-alpha:0.84.1-alpha-SNAPSHOT +google-cloud-compute:0.84.0-alpha:0.84.1-alpha-SNAPSHOT +google-cloud-container:0.84.0-beta:0.84.1-beta-SNAPSHOT +google-cloud-containeranalysis:0.84.0-beta:0.84.1-beta-SNAPSHOT +google-cloud-contrib:0.84.0-alpha:0.84.1-alpha-SNAPSHOT +google-cloud-core:1.66.0:1.66.1-SNAPSHOT +google-cloud-core-grpc:1.66.0:1.66.1-SNAPSHOT +google-cloud-core-http:1.66.0:1.66.1-SNAPSHOT +google-cloud-dataproc:0.84.0-alpha:0.84.1-alpha-SNAPSHOT +google-cloud-datastore:1.66.0:1.66.1-SNAPSHOT +google-cloud-dialogflow:0.84.0-alpha:0.84.1-alpha-SNAPSHOT +google-cloud-dlp:0.84.0-beta:0.84.1-beta-SNAPSHOT +google-cloud-dns:0.84.0-alpha:0.84.1-alpha-SNAPSHOT +google-cloud-errorreporting:0.84.0-beta:0.84.1-beta-SNAPSHOT +google-cloud-examples:0.84.0-alpha:0.84.1-alpha-SNAPSHOT +google-cloud-firestore:0.84.0-beta:0.84.1-beta-SNAPSHOT +google-cloud-gcloud-maven-plugin:0.84.0-alpha:0.84.1-alpha-SNAPSHOT +google-cloud-iamcredentials:0.11.0-alpha:0.11.1-alpha-SNAPSHOT +google-cloud-iot:0.84.0-beta:0.84.1-beta-SNAPSHOT +google-cloud-kms:1.2.0:1.2.1-SNAPSHOT +google-cloud-language:1.66.0:1.66.1-SNAPSHOT +google-cloud-logging:1.66.0:1.66.1-SNAPSHOT +google-cloud-logging-logback:0.84.0-alpha:0.84.1-alpha-SNAPSHOT +google-cloud-managedtest:0.84.0-alpha:0.84.1-alpha-SNAPSHOT +google-cloud-monitoring:1.66.0:1.66.1-SNAPSHOT +google-cloud-nio:0.84.0-alpha:0.84.1-alpha-SNAPSHOT +google-cloud-nio-examples:0.84.0-alpha:0.84.1-alpha-SNAPSHOT +google-cloud-notification:0.84.0-beta:0.84.1-beta-SNAPSHOT +google-cloud-os-login:0.84.0-alpha:0.84.1-alpha-SNAPSHOT +google-cloud-pubsub:1.66.0:1.66.1-SNAPSHOT +google-cloud-redis:0.84.0-alpha:0.84.1-alpha-SNAPSHOT +google-cloud-resourcemanager:0.84.0-alpha:0.84.1-alpha-SNAPSHOT +google-cloud-scheduler:0.84.0-alpha:0.84.1-alpha-SNAPSHOT +google-cloud-securitycenter:0.84.0-alpha:0.84.1-alpha-SNAPSHOT +google-cloud-spanner:1.11.0:1.11.1-SNAPSHOT +google-cloud-speech:0.84.0-beta:0.84.1-beta-SNAPSHOT +google-cloud-storage:1.66.0:1.66.1-SNAPSHOT +google-cloud-talent:0.1.0-beta:0.1.1-beta-SNAPSHOT +google-cloud-tasks:0.84.0-beta:0.84.1-beta-SNAPSHOT +google-cloud-testing:0.84.0-alpha:0.84.1-alpha-SNAPSHOT +google-cloud-texttospeech:0.84.0-beta:0.84.1-beta-SNAPSHOT +google-cloud-trace:0.84.0-beta:0.84.1-beta-SNAPSHOT +google-cloud-translate:1.66.0:1.66.1-SNAPSHOT +google-cloud-util:0.84.0-alpha:0.84.1-alpha-SNAPSHOT +google-cloud-video-intelligence:0.84.0-beta:0.84.1-beta-SNAPSHOT +google-cloud-vision:1.66.0:1.66.1-SNAPSHOT +google-cloud-websecurityscanner:0.84.0-alpha:0.84.1-alpha-SNAPSHOT +grpc-google-cloud-asset-v1beta1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-automl-v1beta1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-bigquerydatatransfer-v1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-bigquerystorage-v1beta1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-bigtable-admin-v2:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-bigtable-v2:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-container-v1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-containeranalysis-v1beta1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-dataproc-v1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-dataproc-v1beta2:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-dialogflow-v2:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-dialogflow-v2beta1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-dlp-v2:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-error-reporting-v1beta1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-firestore-v1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-firestore-v1beta1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-iamcredentials-v1:0.11.0-alpha:0.11.1-alpha-SNAPSHOT +grpc-google-cloud-iot-v1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-kms-v1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-language-v1:1.48.0:1.48.1-SNAPSHOT +grpc-google-cloud-language-v1beta2:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-logging-v2:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-monitoring-v3:1.48.0:1.48.1-SNAPSHOT +grpc-google-cloud-os-login-v1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.48.0:1.48.1-SNAPSHOT +grpc-google-cloud-redis-v1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-redis-v1beta1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-scheduler-v1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-scheduler-v1beta1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-securitycenter-v1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-securitycenter-v1beta1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-spanner-admin-database-v1:1.11.0:1.11.1-SNAPSHOT +grpc-google-cloud-spanner-admin-instance-v1:1.11.0:1.11.1-SNAPSHOT +grpc-google-cloud-spanner-v1:1.11.0:1.11.1-SNAPSHOT +grpc-google-cloud-speech-v1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-speech-v1beta1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-speech-v1p1beta1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-talent-v4beta1:0.1.0-beta:0.1.1-beta-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-texttospeech-v1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-texttospeech-v1beta1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-trace-v1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-trace-v2:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-video-intelligence-v1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-video-intelligence-v1beta1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-video-intelligence-v1beta2:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-video-intelligence-v1p1beta1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-video-intelligence-v1p2beta1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-video-intelligence-v1p3beta1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-vision-v1:1.48.0:1.48.1-SNAPSHOT +grpc-google-cloud-vision-v1p1beta1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-vision-v1p2beta1:1.48.0:1.48.1-SNAPSHOT +grpc-google-cloud-vision-v1p3beta1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-vision-v1p4beta1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-websecurityscanner-v1alpha:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-asset-v1beta1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-automl-v1beta1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-bigquerydatatransfer-v1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-bigquerystorage-v1beta1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-bigtable-admin-v2:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-bigtable-v2:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-container-v1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-containeranalysis-v1beta1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-dataproc-v1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-dataproc-v1beta2:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-datastore-v1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-dialogflow-v2:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-dialogflow-v2beta1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-dlp-v2:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-error-reporting-v1beta1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-firestore-v1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-firestore-v1beta1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-iamcredentials-v1:0.11.0-alpha:0.11.1-alpha-SNAPSHOT +proto-google-cloud-iot-v1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-kms-v1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-language-v1:1.48.0:1.48.1-SNAPSHOT +proto-google-cloud-language-v1beta2:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-logging-v2:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-monitoring-v3:1.48.0:1.48.1-SNAPSHOT +proto-google-cloud-os-login-v1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.48.0:1.48.1-SNAPSHOT +proto-google-cloud-redis-v1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-redis-v1beta1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-scheduler-v1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-scheduler-v1beta1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-securitycenter-v1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-securitycenter-v1beta1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-spanner-admin-database-v1:1.11.0:1.11.1-SNAPSHOT +proto-google-cloud-spanner-admin-instance-v1:1.11.0:1.11.1-SNAPSHOT +proto-google-cloud-spanner-v1:1.11.0:1.11.1-SNAPSHOT +proto-google-cloud-speech-v1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-speech-v1beta1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-speech-v1p1beta1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-talent-v4beta1:0.1.0-beta:0.1.1-beta-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-tasks-v2beta3:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-texttospeech-v1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-texttospeech-v1beta1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-trace-v1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-trace-v2:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-video-intelligence-v1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-video-intelligence-v1beta1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-video-intelligence-v1beta2:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-video-intelligence-v1p1beta1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-video-intelligence-v1p2beta1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-video-intelligence-v1p3beta1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-vision-v1:1.48.0:1.48.1-SNAPSHOT +proto-google-cloud-vision-v1p1beta1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-vision-v1p2beta1:1.48.0:1.48.1-SNAPSHOT +proto-google-cloud-vision-v1p3beta1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-vision-v1p4beta1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-websecurityscanner-v1alpha:0.49.0:0.49.1-SNAPSHOT From 25fde0e5fd6c90b83decb160ecd2f7b32baba333 Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Fri, 22 Mar 2019 07:45:38 -0700 Subject: [PATCH 16/20] Fix comment in grpc-google-cloud-firestore-v1 POM (#4717) Fixing a copy&paste typo --- google-api-grpc/grpc-google-cloud-firestore-v1/pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/google-api-grpc/grpc-google-cloud-firestore-v1/pom.xml b/google-api-grpc/grpc-google-cloud-firestore-v1/pom.xml index 16b091589677..9ad7dc766831 100644 --- a/google-api-grpc/grpc-google-cloud-firestore-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-firestore-v1/pom.xml @@ -3,7 +3,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-firestore-v1 - 0.49.1-SNAPSHOT + 0.49.1-SNAPSHOT grpc-google-cloud-firestore-v1 GRPC library for grpc-google-cloud-firestore-v1 @@ -28,4 +28,4 @@ compile - \ No newline at end of file + From 3a6ba957cca091fcd83a78d28be5789c0d800ef2 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Fri, 22 Mar 2019 07:57:53 -0700 Subject: [PATCH 17/20] Regenerate firestore client (#4719) --- .../v1/BatchGetDocumentsRequest.java | 6 +- .../v1/BatchGetDocumentsResponse.java | 18 +- .../BatchGetDocumentsResponseOrBuilder.java | 3 +- .../firestore/v1/BeginTransactionRequest.java | 6 +- .../v1/BeginTransactionResponse.java | 6 +- .../com/google/firestore/v1/CommonProto.java | 8 +- .../firestore/v1/CreateDocumentRequest.java | 6 +- .../firestore/v1/DeleteDocumentRequest.java | 6 +- .../google/firestore/v1/DocumentChange.java | 18 +- .../google/firestore/v1/DocumentDelete.java | 39 +- .../firestore/v1/DocumentDeleteOrBuilder.java | 6 +- .../com/google/firestore/v1/DocumentMask.java | 71 +- .../firestore/v1/DocumentMaskOrBuilder.java | 20 +- .../google/firestore/v1/DocumentProto.java | 12 +- .../google/firestore/v1/DocumentRemove.java | 37 +- .../firestore/v1/DocumentRemoveOrBuilder.java | 6 +- .../firestore/v1/DocumentTransform.java | 45 +- .../google/firestore/v1/ExistenceFilter.java | 12 +- .../v1/ExistenceFilterOrBuilder.java | 3 +- .../firestore/v1/GetDocumentRequest.java | 6 +- .../v1/ListCollectionIdsRequest.java | 6 +- .../v1/ListCollectionIdsResponse.java | 6 +- .../firestore/v1/ListDocumentsRequest.java | 26 +- .../v1/ListDocumentsRequestOrBuilder.java | 5 +- .../firestore/v1/ListDocumentsResponse.java | 6 +- .../google/firestore/v1/ListenResponse.java | 48 +- .../firestore/v1/ListenResponseOrBuilder.java | 12 +- .../com/google/firestore/v1/QueryProto.java | 46 +- .../google/firestore/v1/RunQueryResponse.java | 26 +- .../v1/RunQueryResponseOrBuilder.java | 5 +- .../google/firestore/v1/StructuredQuery.java | 1290 +++--- .../java/com/google/firestore/v1/Target.java | 12 +- .../google/firestore/v1/TargetOrBuilder.java | 3 +- .../firestore/v1/UpdateDocumentRequest.java | 6 +- .../com/google/firestore/v1/WriteProto.java | 12 +- .../com/google/firestore/v1/WriteRequest.java | 24 +- .../firestore/v1/WriteRequestOrBuilder.java | 6 +- .../com/google/firestore/v1/WriteResult.java | 115 +- .../firestore/v1/WriteResultOrBuilder.java | 25 +- .../proto/google/firestore/v1/common.proto | 13 +- .../proto/google/firestore/v1/document.proto | 5 +- .../proto/google/firestore/v1/firestore.proto | 77 +- .../proto/google/firestore/v1/query.proto | 15 +- .../proto/google/firestore/v1/write.proto | 50 +- .../v1beta1/BatchGetDocumentsRequest.java | 6 +- .../v1beta1/BatchGetDocumentsResponse.java | 18 +- .../BatchGetDocumentsResponseOrBuilder.java | 3 +- .../v1beta1/BeginTransactionRequest.java | 6 +- .../v1beta1/BeginTransactionResponse.java | 6 +- .../firestore/v1beta1/CommitRequest.java | 6 +- .../firestore/v1beta1/CommitResponse.java | 6 +- .../google/firestore/v1beta1/CommonProto.java | 10 +- .../v1beta1/CreateDocumentRequest.java | 6 +- .../v1beta1/DeleteDocumentRequest.java | 6 +- .../firestore/v1beta1/DocumentChange.java | 20 +- .../firestore/v1beta1/DocumentDelete.java | 41 +- .../v1beta1/DocumentDeleteOrBuilder.java | 6 +- .../firestore/v1beta1/DocumentMask.java | 45 +- .../v1beta1/DocumentMaskOrBuilder.java | 12 +- .../firestore/v1beta1/DocumentProto.java | 12 +- .../firestore/v1beta1/DocumentRemove.java | 37 +- .../v1beta1/DocumentRemoveOrBuilder.java | 6 +- .../firestore/v1beta1/DocumentTransform.java | 45 +- .../firestore/v1beta1/ExistenceFilter.java | 12 +- .../v1beta1/ExistenceFilterOrBuilder.java | 3 +- .../firestore/v1beta1/GetDocumentRequest.java | 6 +- .../v1beta1/ListCollectionIdsRequest.java | 6 +- .../v1beta1/ListCollectionIdsResponse.java | 6 +- .../v1beta1/ListDocumentsRequest.java | 26 +- .../ListDocumentsRequestOrBuilder.java | 5 +- .../v1beta1/ListDocumentsResponse.java | 6 +- .../firestore/v1beta1/ListenResponse.java | 54 +- .../v1beta1/ListenResponseOrBuilder.java | 12 +- .../google/firestore/v1beta1/QueryProto.java | 68 +- .../firestore/v1beta1/RollbackRequest.java | 6 +- .../firestore/v1beta1/RunQueryRequest.java | 6 +- .../firestore/v1beta1/RunQueryResponse.java | 26 +- .../v1beta1/RunQueryResponseOrBuilder.java | 5 +- .../firestore/v1beta1/StructuredQuery.java | 3684 ++++++++--------- .../com/google/firestore/v1beta1/Target.java | 16 +- .../firestore/v1beta1/TargetOrBuilder.java | 4 +- .../v1beta1/UpdateDocumentRequest.java | 6 +- .../google/firestore/v1beta1/WriteProto.java | 14 +- .../firestore/v1beta1/WriteRequest.java | 24 +- .../v1beta1/WriteRequestOrBuilder.java | 6 +- .../google/firestore/v1beta1/WriteResult.java | 115 +- .../v1beta1/WriteResultOrBuilder.java | 25 +- .../google/firestore/v1beta1/common.proto | 11 +- .../google/firestore/v1beta1/document.proto | 5 +- .../google/firestore/v1beta1/firestore.proto | 93 +- .../google/firestore/v1beta1/query.proto | 33 +- .../google/firestore/v1beta1/write.proto | 52 +- .../google-cloud-firestore/synth.metadata | 10 +- 93 files changed, 3233 insertions(+), 3582 deletions(-) diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchGetDocumentsRequest.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchGetDocumentsRequest.java index 4c097a0cb5c3..80ede040eaa6 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchGetDocumentsRequest.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchGetDocumentsRequest.java @@ -7,8 +7,7 @@ * * *
- * The request for
- * [Firestore.BatchGetDocuments][google.firestore.v1.Firestore.BatchGetDocuments].
+ * The request for [Firestore.BatchGetDocuments][google.firestore.v1.Firestore.BatchGetDocuments].
  * 
* * Protobuf type {@code google.firestore.v1.BatchGetDocumentsRequest} @@ -724,8 +723,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for
-   * [Firestore.BatchGetDocuments][google.firestore.v1.Firestore.BatchGetDocuments].
+   * The request for [Firestore.BatchGetDocuments][google.firestore.v1.Firestore.BatchGetDocuments].
    * 
* * Protobuf type {@code google.firestore.v1.BatchGetDocumentsRequest} diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchGetDocumentsResponse.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchGetDocumentsResponse.java index 4e7791c9cea3..641fae961f7d 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchGetDocumentsResponse.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchGetDocumentsResponse.java @@ -7,8 +7,7 @@ * * *
- * The streamed response for
- * [Firestore.BatchGetDocuments][google.firestore.v1.Firestore.BatchGetDocuments].
+ * The streamed response for [Firestore.BatchGetDocuments][google.firestore.v1.Firestore.BatchGetDocuments].
  * 
* * Protobuf type {@code google.firestore.v1.BatchGetDocumentsResponse} @@ -273,8 +272,7 @@ public com.google.protobuf.ByteString getMissingBytes() { *
    * The transaction that was started as part of this request.
    * Will only be set in the first response, and only if
-   * [BatchGetDocumentsRequest.new_transaction][google.firestore.v1.BatchGetDocumentsRequest.new_transaction]
-   * was set in the request.
+   * [BatchGetDocumentsRequest.new_transaction][google.firestore.v1.BatchGetDocumentsRequest.new_transaction] was set in the request.
    * 
* * bytes transaction = 3; @@ -547,8 +545,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The streamed response for
-   * [Firestore.BatchGetDocuments][google.firestore.v1.Firestore.BatchGetDocuments].
+   * The streamed response for [Firestore.BatchGetDocuments][google.firestore.v1.Firestore.BatchGetDocuments].
    * 
* * Protobuf type {@code google.firestore.v1.BatchGetDocumentsResponse} @@ -1076,8 +1073,7 @@ public Builder setMissingBytes(com.google.protobuf.ByteString value) { *
      * The transaction that was started as part of this request.
      * Will only be set in the first response, and only if
-     * [BatchGetDocumentsRequest.new_transaction][google.firestore.v1.BatchGetDocumentsRequest.new_transaction]
-     * was set in the request.
+     * [BatchGetDocumentsRequest.new_transaction][google.firestore.v1.BatchGetDocumentsRequest.new_transaction] was set in the request.
      * 
* * bytes transaction = 3; @@ -1091,8 +1087,7 @@ public com.google.protobuf.ByteString getTransaction() { *
      * The transaction that was started as part of this request.
      * Will only be set in the first response, and only if
-     * [BatchGetDocumentsRequest.new_transaction][google.firestore.v1.BatchGetDocumentsRequest.new_transaction]
-     * was set in the request.
+     * [BatchGetDocumentsRequest.new_transaction][google.firestore.v1.BatchGetDocumentsRequest.new_transaction] was set in the request.
      * 
* * bytes transaction = 3; @@ -1112,8 +1107,7 @@ public Builder setTransaction(com.google.protobuf.ByteString value) { *
      * The transaction that was started as part of this request.
      * Will only be set in the first response, and only if
-     * [BatchGetDocumentsRequest.new_transaction][google.firestore.v1.BatchGetDocumentsRequest.new_transaction]
-     * was set in the request.
+     * [BatchGetDocumentsRequest.new_transaction][google.firestore.v1.BatchGetDocumentsRequest.new_transaction] was set in the request.
      * 
* * bytes transaction = 3; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchGetDocumentsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchGetDocumentsResponseOrBuilder.java index 383996dd2d60..7757fe305814 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchGetDocumentsResponseOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchGetDocumentsResponseOrBuilder.java @@ -68,8 +68,7 @@ public interface BatchGetDocumentsResponseOrBuilder *
    * The transaction that was started as part of this request.
    * Will only be set in the first response, and only if
-   * [BatchGetDocumentsRequest.new_transaction][google.firestore.v1.BatchGetDocumentsRequest.new_transaction]
-   * was set in the request.
+   * [BatchGetDocumentsRequest.new_transaction][google.firestore.v1.BatchGetDocumentsRequest.new_transaction] was set in the request.
    * 
* * bytes transaction = 3; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BeginTransactionRequest.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BeginTransactionRequest.java index 9e9e51bff10a..af42d2e00f96 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BeginTransactionRequest.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BeginTransactionRequest.java @@ -7,8 +7,7 @@ * * *
- * The request for
- * [Firestore.BeginTransaction][google.firestore.v1.Firestore.BeginTransaction].
+ * The request for [Firestore.BeginTransaction][google.firestore.v1.Firestore.BeginTransaction].
  * 
* * Protobuf type {@code google.firestore.v1.BeginTransactionRequest} @@ -375,8 +374,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for
-   * [Firestore.BeginTransaction][google.firestore.v1.Firestore.BeginTransaction].
+   * The request for [Firestore.BeginTransaction][google.firestore.v1.Firestore.BeginTransaction].
    * 
* * Protobuf type {@code google.firestore.v1.BeginTransactionRequest} diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BeginTransactionResponse.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BeginTransactionResponse.java index 624502f60bb1..e6e333802284 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BeginTransactionResponse.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BeginTransactionResponse.java @@ -7,8 +7,7 @@ * * *
- * The response for
- * [Firestore.BeginTransaction][google.firestore.v1.Firestore.BeginTransaction].
+ * The response for [Firestore.BeginTransaction][google.firestore.v1.Firestore.BeginTransaction].
  * 
* * Protobuf type {@code google.firestore.v1.BeginTransactionResponse} @@ -269,8 +268,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response for
-   * [Firestore.BeginTransaction][google.firestore.v1.Firestore.BeginTransaction].
+   * The response for [Firestore.BeginTransaction][google.firestore.v1.Firestore.BeginTransaction].
    * 
* * Protobuf type {@code google.firestore.v1.BeginTransactionResponse} diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CommonProto.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CommonProto.java index 84047cf6c4ec..6019b5869a00 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CommonProto.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CommonProto.java @@ -42,8 +42,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n google/firestore/v1/common.proto\022\023goog" - + "le.firestore.v1\032\034google/api/annotations." - + "proto\032\037google/protobuf/timestamp.proto\"#" + + "le.firestore.v1\032\037google/protobuf/timesta" + + "mp.proto\032\034google/api/annotations.proto\"#" + "\n\014DocumentMask\022\023\n\013field_paths\030\001 \003(\t\"e\n\014P" + "recondition\022\020\n\006exists\030\001 \001(\010H\000\0221\n\013update_" + "time\030\002 \001(\0132\032.google.protobuf.TimestampH\000" @@ -72,8 +72,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), }, assigner); internal_static_google_firestore_v1_DocumentMask_descriptor = @@ -116,8 +116,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "ReadTime", "ConsistencySelector", }); - com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CreateDocumentRequest.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CreateDocumentRequest.java index 1f9584a76884..f08298be5c65 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CreateDocumentRequest.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CreateDocumentRequest.java @@ -7,8 +7,7 @@ * * *
- * The request for
- * [Firestore.CreateDocument][google.firestore.v1.Firestore.CreateDocument].
+ * The request for [Firestore.CreateDocument][google.firestore.v1.Firestore.CreateDocument].
  * 
* * Protobuf type {@code google.firestore.v1.CreateDocumentRequest} @@ -568,8 +567,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for
-   * [Firestore.CreateDocument][google.firestore.v1.Firestore.CreateDocument].
+   * The request for [Firestore.CreateDocument][google.firestore.v1.Firestore.CreateDocument].
    * 
* * Protobuf type {@code google.firestore.v1.CreateDocumentRequest} diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DeleteDocumentRequest.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DeleteDocumentRequest.java index 8dd80e7b0a5a..a6d7daf36d7d 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DeleteDocumentRequest.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DeleteDocumentRequest.java @@ -7,8 +7,7 @@ * * *
- * The request for
- * [Firestore.DeleteDocument][google.firestore.v1.Firestore.DeleteDocument].
+ * The request for [Firestore.DeleteDocument][google.firestore.v1.Firestore.DeleteDocument].
  * 
* * Protobuf type {@code google.firestore.v1.DeleteDocumentRequest} @@ -375,8 +374,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for
-   * [Firestore.DeleteDocument][google.firestore.v1.Firestore.DeleteDocument].
+   * The request for [Firestore.DeleteDocument][google.firestore.v1.Firestore.DeleteDocument].
    * 
* * Protobuf type {@code google.firestore.v1.DeleteDocumentRequest} diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentChange.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentChange.java index 879048eadfbe..088e1847cf33 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentChange.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentChange.java @@ -8,11 +8,10 @@ * *
  * A [Document][google.firestore.v1.Document] has changed.
- * May be the result of multiple [writes][google.firestore.v1.Write], including
- * deletes, that ultimately resulted in a new value for the
- * [Document][google.firestore.v1.Document].
- * Multiple [DocumentChange][google.firestore.v1.DocumentChange] messages may be
- * returned for the same logical change, if multiple targets are affected.
+ * May be the result of multiple [writes][google.firestore.v1.Write], including deletes, that
+ * ultimately resulted in a new value for the [Document][google.firestore.v1.Document].
+ * Multiple [DocumentChange][google.firestore.v1.DocumentChange] messages may be returned for the same logical
+ * change, if multiple targets are affected.
  * 
* * Protobuf type {@code google.firestore.v1.DocumentChange} @@ -503,11 +502,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * A [Document][google.firestore.v1.Document] has changed.
-   * May be the result of multiple [writes][google.firestore.v1.Write], including
-   * deletes, that ultimately resulted in a new value for the
-   * [Document][google.firestore.v1.Document].
-   * Multiple [DocumentChange][google.firestore.v1.DocumentChange] messages may be
-   * returned for the same logical change, if multiple targets are affected.
+   * May be the result of multiple [writes][google.firestore.v1.Write], including deletes, that
+   * ultimately resulted in a new value for the [Document][google.firestore.v1.Document].
+   * Multiple [DocumentChange][google.firestore.v1.DocumentChange] messages may be returned for the same logical
+   * change, if multiple targets are affected.
    * 
* * Protobuf type {@code google.firestore.v1.DocumentChange} diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentDelete.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentDelete.java index 4fd4aca746d1..c0a83d86a3ae 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentDelete.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentDelete.java @@ -8,11 +8,10 @@ * *
  * A [Document][google.firestore.v1.Document] has been deleted.
- * May be the result of multiple [writes][google.firestore.v1.Write], including
- * updates, the last of which deleted the
- * [Document][google.firestore.v1.Document].
- * Multiple [DocumentDelete][google.firestore.v1.DocumentDelete] messages may be
- * returned for the same logical delete, if multiple targets are affected.
+ * May be the result of multiple [writes][google.firestore.v1.Write], including updates, the
+ * last of which deleted the [Document][google.firestore.v1.Document].
+ * Multiple [DocumentDelete][google.firestore.v1.DocumentDelete] messages may be returned for the same logical
+ * delete, if multiple targets are affected.
  * 
* * Protobuf type {@code google.firestore.v1.DocumentDelete} @@ -146,8 +145,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The resource name of the [Document][google.firestore.v1.Document] that was
-   * deleted.
+   * The resource name of the [Document][google.firestore.v1.Document] that was deleted.
    * 
* * string document = 1; @@ -167,8 +165,7 @@ public java.lang.String getDocument() { * * *
-   * The resource name of the [Document][google.firestore.v1.Document] that was
-   * deleted.
+   * The resource name of the [Document][google.firestore.v1.Document] that was deleted.
    * 
* * string document = 1; @@ -472,11 +469,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * A [Document][google.firestore.v1.Document] has been deleted.
-   * May be the result of multiple [writes][google.firestore.v1.Write], including
-   * updates, the last of which deleted the
-   * [Document][google.firestore.v1.Document].
-   * Multiple [DocumentDelete][google.firestore.v1.DocumentDelete] messages may be
-   * returned for the same logical delete, if multiple targets are affected.
+   * May be the result of multiple [writes][google.firestore.v1.Write], including updates, the
+   * last of which deleted the [Document][google.firestore.v1.Document].
+   * Multiple [DocumentDelete][google.firestore.v1.DocumentDelete] messages may be returned for the same logical
+   * delete, if multiple targets are affected.
    * 
* * Protobuf type {@code google.firestore.v1.DocumentDelete} @@ -670,8 +666,7 @@ public Builder mergeFrom( * * *
-     * The resource name of the [Document][google.firestore.v1.Document] that was
-     * deleted.
+     * The resource name of the [Document][google.firestore.v1.Document] that was deleted.
      * 
* * string document = 1; @@ -691,8 +686,7 @@ public java.lang.String getDocument() { * * *
-     * The resource name of the [Document][google.firestore.v1.Document] that was
-     * deleted.
+     * The resource name of the [Document][google.firestore.v1.Document] that was deleted.
      * 
* * string document = 1; @@ -712,8 +706,7 @@ public com.google.protobuf.ByteString getDocumentBytes() { * * *
-     * The resource name of the [Document][google.firestore.v1.Document] that was
-     * deleted.
+     * The resource name of the [Document][google.firestore.v1.Document] that was deleted.
      * 
* * string document = 1; @@ -731,8 +724,7 @@ public Builder setDocument(java.lang.String value) { * * *
-     * The resource name of the [Document][google.firestore.v1.Document] that was
-     * deleted.
+     * The resource name of the [Document][google.firestore.v1.Document] that was deleted.
      * 
* * string document = 1; @@ -747,8 +739,7 @@ public Builder clearDocument() { * * *
-     * The resource name of the [Document][google.firestore.v1.Document] that was
-     * deleted.
+     * The resource name of the [Document][google.firestore.v1.Document] that was deleted.
      * 
* * string document = 1; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentDeleteOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentDeleteOrBuilder.java index 071171493d89..a4644be12f4b 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentDeleteOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentDeleteOrBuilder.java @@ -12,8 +12,7 @@ public interface DocumentDeleteOrBuilder * * *
-   * The resource name of the [Document][google.firestore.v1.Document] that was
-   * deleted.
+   * The resource name of the [Document][google.firestore.v1.Document] that was deleted.
    * 
* * string document = 1; @@ -23,8 +22,7 @@ public interface DocumentDeleteOrBuilder * * *
-   * The resource name of the [Document][google.firestore.v1.Document] that was
-   * deleted.
+   * The resource name of the [Document][google.firestore.v1.Document] that was deleted.
    * 
* * string document = 1; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentMask.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentMask.java index 6e7a8fa1c76a..eac18de912d5 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentMask.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentMask.java @@ -11,8 +11,7 @@ * Used to restrict a get or update operation on a document to a subset of its * fields. * This is different from standard field masks, as this is always scoped to a - * [Document][google.firestore.v1.Document], and takes in account the dynamic - * nature of [Value][google.firestore.v1.Value]. + * [Document][google.firestore.v1.Document], and takes in account the dynamic nature of [Value][google.firestore.v1.Value]. * * * Protobuf type {@code google.firestore.v1.DocumentMask} @@ -108,9 +107,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The list of field paths in the mask. See
-   * [Document.fields][google.firestore.v1.Document.fields] for a field path
-   * syntax reference.
+   * The list of field paths in the mask. See [Document.fields][google.firestore.v1.Document.fields] for a field
+   * path syntax reference.
    * 
* * repeated string field_paths = 1; @@ -122,9 +120,8 @@ public com.google.protobuf.ProtocolStringList getFieldPathsList() { * * *
-   * The list of field paths in the mask. See
-   * [Document.fields][google.firestore.v1.Document.fields] for a field path
-   * syntax reference.
+   * The list of field paths in the mask. See [Document.fields][google.firestore.v1.Document.fields] for a field
+   * path syntax reference.
    * 
* * repeated string field_paths = 1; @@ -136,9 +133,8 @@ public int getFieldPathsCount() { * * *
-   * The list of field paths in the mask. See
-   * [Document.fields][google.firestore.v1.Document.fields] for a field path
-   * syntax reference.
+   * The list of field paths in the mask. See [Document.fields][google.firestore.v1.Document.fields] for a field
+   * path syntax reference.
    * 
* * repeated string field_paths = 1; @@ -150,9 +146,8 @@ public java.lang.String getFieldPaths(int index) { * * *
-   * The list of field paths in the mask. See
-   * [Document.fields][google.firestore.v1.Document.fields] for a field path
-   * syntax reference.
+   * The list of field paths in the mask. See [Document.fields][google.firestore.v1.Document.fields] for a field
+   * path syntax reference.
    * 
* * repeated string field_paths = 1; @@ -334,8 +329,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * Used to restrict a get or update operation on a document to a subset of its * fields. * This is different from standard field masks, as this is always scoped to a - * [Document][google.firestore.v1.Document], and takes in account the dynamic - * nature of [Value][google.firestore.v1.Value]. + * [Document][google.firestore.v1.Document], and takes in account the dynamic nature of [Value][google.firestore.v1.Value]. * * * Protobuf type {@code google.firestore.v1.DocumentMask} @@ -513,9 +507,8 @@ private void ensureFieldPathsIsMutable() { * * *
-     * The list of field paths in the mask. See
-     * [Document.fields][google.firestore.v1.Document.fields] for a field path
-     * syntax reference.
+     * The list of field paths in the mask. See [Document.fields][google.firestore.v1.Document.fields] for a field
+     * path syntax reference.
      * 
* * repeated string field_paths = 1; @@ -527,9 +520,8 @@ public com.google.protobuf.ProtocolStringList getFieldPathsList() { * * *
-     * The list of field paths in the mask. See
-     * [Document.fields][google.firestore.v1.Document.fields] for a field path
-     * syntax reference.
+     * The list of field paths in the mask. See [Document.fields][google.firestore.v1.Document.fields] for a field
+     * path syntax reference.
      * 
* * repeated string field_paths = 1; @@ -541,9 +533,8 @@ public int getFieldPathsCount() { * * *
-     * The list of field paths in the mask. See
-     * [Document.fields][google.firestore.v1.Document.fields] for a field path
-     * syntax reference.
+     * The list of field paths in the mask. See [Document.fields][google.firestore.v1.Document.fields] for a field
+     * path syntax reference.
      * 
* * repeated string field_paths = 1; @@ -555,9 +546,8 @@ public java.lang.String getFieldPaths(int index) { * * *
-     * The list of field paths in the mask. See
-     * [Document.fields][google.firestore.v1.Document.fields] for a field path
-     * syntax reference.
+     * The list of field paths in the mask. See [Document.fields][google.firestore.v1.Document.fields] for a field
+     * path syntax reference.
      * 
* * repeated string field_paths = 1; @@ -569,9 +559,8 @@ public com.google.protobuf.ByteString getFieldPathsBytes(int index) { * * *
-     * The list of field paths in the mask. See
-     * [Document.fields][google.firestore.v1.Document.fields] for a field path
-     * syntax reference.
+     * The list of field paths in the mask. See [Document.fields][google.firestore.v1.Document.fields] for a field
+     * path syntax reference.
      * 
* * repeated string field_paths = 1; @@ -589,9 +578,8 @@ public Builder setFieldPaths(int index, java.lang.String value) { * * *
-     * The list of field paths in the mask. See
-     * [Document.fields][google.firestore.v1.Document.fields] for a field path
-     * syntax reference.
+     * The list of field paths in the mask. See [Document.fields][google.firestore.v1.Document.fields] for a field
+     * path syntax reference.
      * 
* * repeated string field_paths = 1; @@ -609,9 +597,8 @@ public Builder addFieldPaths(java.lang.String value) { * * *
-     * The list of field paths in the mask. See
-     * [Document.fields][google.firestore.v1.Document.fields] for a field path
-     * syntax reference.
+     * The list of field paths in the mask. See [Document.fields][google.firestore.v1.Document.fields] for a field
+     * path syntax reference.
      * 
* * repeated string field_paths = 1; @@ -626,9 +613,8 @@ public Builder addAllFieldPaths(java.lang.Iterable values) { * * *
-     * The list of field paths in the mask. See
-     * [Document.fields][google.firestore.v1.Document.fields] for a field path
-     * syntax reference.
+     * The list of field paths in the mask. See [Document.fields][google.firestore.v1.Document.fields] for a field
+     * path syntax reference.
      * 
* * repeated string field_paths = 1; @@ -643,9 +629,8 @@ public Builder clearFieldPaths() { * * *
-     * The list of field paths in the mask. See
-     * [Document.fields][google.firestore.v1.Document.fields] for a field path
-     * syntax reference.
+     * The list of field paths in the mask. See [Document.fields][google.firestore.v1.Document.fields] for a field
+     * path syntax reference.
      * 
* * repeated string field_paths = 1; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentMaskOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentMaskOrBuilder.java index 8680187d9256..11476e48406b 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentMaskOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentMaskOrBuilder.java @@ -12,9 +12,8 @@ public interface DocumentMaskOrBuilder * * *
-   * The list of field paths in the mask. See
-   * [Document.fields][google.firestore.v1.Document.fields] for a field path
-   * syntax reference.
+   * The list of field paths in the mask. See [Document.fields][google.firestore.v1.Document.fields] for a field
+   * path syntax reference.
    * 
* * repeated string field_paths = 1; @@ -24,9 +23,8 @@ public interface DocumentMaskOrBuilder * * *
-   * The list of field paths in the mask. See
-   * [Document.fields][google.firestore.v1.Document.fields] for a field path
-   * syntax reference.
+   * The list of field paths in the mask. See [Document.fields][google.firestore.v1.Document.fields] for a field
+   * path syntax reference.
    * 
* * repeated string field_paths = 1; @@ -36,9 +34,8 @@ public interface DocumentMaskOrBuilder * * *
-   * The list of field paths in the mask. See
-   * [Document.fields][google.firestore.v1.Document.fields] for a field path
-   * syntax reference.
+   * The list of field paths in the mask. See [Document.fields][google.firestore.v1.Document.fields] for a field
+   * path syntax reference.
    * 
* * repeated string field_paths = 1; @@ -48,9 +45,8 @@ public interface DocumentMaskOrBuilder * * *
-   * The list of field paths in the mask. See
-   * [Document.fields][google.firestore.v1.Document.fields] for a field path
-   * syntax reference.
+   * The list of field paths in the mask. See [Document.fields][google.firestore.v1.Document.fields] for a field
+   * path syntax reference.
    * 
* * repeated string field_paths = 1; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentProto.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentProto.java index de16046a0533..62f728027348 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentProto.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentProto.java @@ -46,10 +46,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n\"google/firestore/v1/document.proto\022\023go" - + "ogle.firestore.v1\032\034google/api/annotation" - + "s.proto\032\034google/protobuf/struct.proto\032\037g" - + "oogle/protobuf/timestamp.proto\032\030google/t" - + "ype/latlng.proto\"\200\002\n\010Document\022\014\n\004name\030\001 " + + "ogle.firestore.v1\032\034google/protobuf/struc" + + "t.proto\032\037google/protobuf/timestamp.proto" + + "\032\030google/type/latlng.proto\032\034google/api/a" + + "nnotations.proto\"\200\002\n\010Document\022\014\n\004name\030\001 " + "\001(\t\0229\n\006fields\030\002 \003(\0132).google.firestore.v" + "1.Document.FieldsEntry\022/\n\013create_time\030\003 " + "\001(\0132\032.google.protobuf.Timestamp\022/\n\013updat" @@ -89,10 +89,10 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.type.LatLngProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), }, assigner); internal_static_google_firestore_v1_Document_descriptor = @@ -153,10 +153,10 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Key", "Value", }); - com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.type.LatLngProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentRemove.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentRemove.java index 402a231b650d..f8c8714e7a2a 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentRemove.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentRemove.java @@ -7,14 +7,12 @@ * * *
- * A [Document][google.firestore.v1.Document] has been removed from the view of
- * the targets.
+ * A [Document][google.firestore.v1.Document] has been removed from the view of the targets.
  * Sent if the document is no longer relevant to a target and is out of view.
  * Can be sent instead of a DocumentDelete or a DocumentChange if the server
  * can not send the new value of the document.
- * Multiple [DocumentRemove][google.firestore.v1.DocumentRemove] messages may be
- * returned for the same logical write or delete, if multiple targets are
- * affected.
+ * Multiple [DocumentRemove][google.firestore.v1.DocumentRemove] messages may be returned for the same logical
+ * write or delete, if multiple targets are affected.
  * 
* * Protobuf type {@code google.firestore.v1.DocumentRemove} @@ -148,8 +146,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The resource name of the [Document][google.firestore.v1.Document] that has
-   * gone out of view.
+   * The resource name of the [Document][google.firestore.v1.Document] that has gone out of view.
    * 
* * string document = 1; @@ -169,8 +166,7 @@ public java.lang.String getDocument() { * * *
-   * The resource name of the [Document][google.firestore.v1.Document] that has
-   * gone out of view.
+   * The resource name of the [Document][google.firestore.v1.Document] that has gone out of view.
    * 
* * string document = 1; @@ -473,14 +469,12 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * A [Document][google.firestore.v1.Document] has been removed from the view of
-   * the targets.
+   * A [Document][google.firestore.v1.Document] has been removed from the view of the targets.
    * Sent if the document is no longer relevant to a target and is out of view.
    * Can be sent instead of a DocumentDelete or a DocumentChange if the server
    * can not send the new value of the document.
-   * Multiple [DocumentRemove][google.firestore.v1.DocumentRemove] messages may be
-   * returned for the same logical write or delete, if multiple targets are
-   * affected.
+   * Multiple [DocumentRemove][google.firestore.v1.DocumentRemove] messages may be returned for the same logical
+   * write or delete, if multiple targets are affected.
    * 
* * Protobuf type {@code google.firestore.v1.DocumentRemove} @@ -674,8 +668,7 @@ public Builder mergeFrom( * * *
-     * The resource name of the [Document][google.firestore.v1.Document] that has
-     * gone out of view.
+     * The resource name of the [Document][google.firestore.v1.Document] that has gone out of view.
      * 
* * string document = 1; @@ -695,8 +688,7 @@ public java.lang.String getDocument() { * * *
-     * The resource name of the [Document][google.firestore.v1.Document] that has
-     * gone out of view.
+     * The resource name of the [Document][google.firestore.v1.Document] that has gone out of view.
      * 
* * string document = 1; @@ -716,8 +708,7 @@ public com.google.protobuf.ByteString getDocumentBytes() { * * *
-     * The resource name of the [Document][google.firestore.v1.Document] that has
-     * gone out of view.
+     * The resource name of the [Document][google.firestore.v1.Document] that has gone out of view.
      * 
* * string document = 1; @@ -735,8 +726,7 @@ public Builder setDocument(java.lang.String value) { * * *
-     * The resource name of the [Document][google.firestore.v1.Document] that has
-     * gone out of view.
+     * The resource name of the [Document][google.firestore.v1.Document] that has gone out of view.
      * 
* * string document = 1; @@ -751,8 +741,7 @@ public Builder clearDocument() { * * *
-     * The resource name of the [Document][google.firestore.v1.Document] that has
-     * gone out of view.
+     * The resource name of the [Document][google.firestore.v1.Document] that has gone out of view.
      * 
* * string document = 1; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentRemoveOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentRemoveOrBuilder.java index 182aaad73d83..55e07d9aecff 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentRemoveOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentRemoveOrBuilder.java @@ -12,8 +12,7 @@ public interface DocumentRemoveOrBuilder * * *
-   * The resource name of the [Document][google.firestore.v1.Document] that has
-   * gone out of view.
+   * The resource name of the [Document][google.firestore.v1.Document] that has gone out of view.
    * 
* * string document = 1; @@ -23,8 +22,7 @@ public interface DocumentRemoveOrBuilder * * *
-   * The resource name of the [Document][google.firestore.v1.Document] that has
-   * gone out of view.
+   * The resource name of the [Document][google.firestore.v1.Document] that has gone out of view.
    * 
* * string document = 1; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentTransform.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentTransform.java index 03109eb9bd06..16b9eb8cdeb7 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentTransform.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentTransform.java @@ -118,9 +118,8 @@ public interface FieldTransformOrBuilder * * *
-     * The path of the field. See
-     * [Document.fields][google.firestore.v1.Document.fields] for the field path
-     * syntax reference.
+     * The path of the field. See [Document.fields][google.firestore.v1.Document.fields] for the field path syntax
+     * reference.
      * 
* * string field_path = 1; @@ -130,9 +129,8 @@ public interface FieldTransformOrBuilder * * *
-     * The path of the field. See
-     * [Document.fields][google.firestore.v1.Document.fields] for the field path
-     * syntax reference.
+     * The path of the field. See [Document.fields][google.firestore.v1.Document.fields] for the field path syntax
+     * reference.
      * 
* * string field_path = 1; @@ -811,9 +809,8 @@ public TransformTypeCase getTransformTypeCase() { * * *
-     * The path of the field. See
-     * [Document.fields][google.firestore.v1.Document.fields] for the field path
-     * syntax reference.
+     * The path of the field. See [Document.fields][google.firestore.v1.Document.fields] for the field path syntax
+     * reference.
      * 
* * string field_path = 1; @@ -833,9 +830,8 @@ public java.lang.String getFieldPath() { * * *
-     * The path of the field. See
-     * [Document.fields][google.firestore.v1.Document.fields] for the field path
-     * syntax reference.
+     * The path of the field. See [Document.fields][google.firestore.v1.Document.fields] for the field path syntax
+     * reference.
      * 
* * string field_path = 1; @@ -1768,9 +1764,8 @@ public Builder clearTransformType() { * * *
-       * The path of the field. See
-       * [Document.fields][google.firestore.v1.Document.fields] for the field path
-       * syntax reference.
+       * The path of the field. See [Document.fields][google.firestore.v1.Document.fields] for the field path syntax
+       * reference.
        * 
* * string field_path = 1; @@ -1790,9 +1785,8 @@ public java.lang.String getFieldPath() { * * *
-       * The path of the field. See
-       * [Document.fields][google.firestore.v1.Document.fields] for the field path
-       * syntax reference.
+       * The path of the field. See [Document.fields][google.firestore.v1.Document.fields] for the field path syntax
+       * reference.
        * 
* * string field_path = 1; @@ -1812,9 +1806,8 @@ public com.google.protobuf.ByteString getFieldPathBytes() { * * *
-       * The path of the field. See
-       * [Document.fields][google.firestore.v1.Document.fields] for the field path
-       * syntax reference.
+       * The path of the field. See [Document.fields][google.firestore.v1.Document.fields] for the field path syntax
+       * reference.
        * 
* * string field_path = 1; @@ -1832,9 +1825,8 @@ public Builder setFieldPath(java.lang.String value) { * * *
-       * The path of the field. See
-       * [Document.fields][google.firestore.v1.Document.fields] for the field path
-       * syntax reference.
+       * The path of the field. See [Document.fields][google.firestore.v1.Document.fields] for the field path syntax
+       * reference.
        * 
* * string field_path = 1; @@ -1849,9 +1841,8 @@ public Builder clearFieldPath() { * * *
-       * The path of the field. See
-       * [Document.fields][google.firestore.v1.Document.fields] for the field path
-       * syntax reference.
+       * The path of the field. See [Document.fields][google.firestore.v1.Document.fields] for the field path syntax
+       * reference.
        * 
* * string field_path = 1; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ExistenceFilter.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ExistenceFilter.java index 1b1cc113a336..b0e253af275d 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ExistenceFilter.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ExistenceFilter.java @@ -116,8 +116,7 @@ public int getTargetId() { * * *
-   * The total count of documents that match
-   * [target_id][google.firestore.v1.ExistenceFilter.target_id].
+   * The total count of documents that match [target_id][google.firestore.v1.ExistenceFilter.target_id].
    * If different from the count of documents in the client that match, the
    * client must manually determine which documents no longer match the target.
    * 
@@ -507,8 +506,7 @@ public Builder clearTargetId() { * * *
-     * The total count of documents that match
-     * [target_id][google.firestore.v1.ExistenceFilter.target_id].
+     * The total count of documents that match [target_id][google.firestore.v1.ExistenceFilter.target_id].
      * If different from the count of documents in the client that match, the
      * client must manually determine which documents no longer match the target.
      * 
@@ -522,8 +520,7 @@ public int getCount() { * * *
-     * The total count of documents that match
-     * [target_id][google.firestore.v1.ExistenceFilter.target_id].
+     * The total count of documents that match [target_id][google.firestore.v1.ExistenceFilter.target_id].
      * If different from the count of documents in the client that match, the
      * client must manually determine which documents no longer match the target.
      * 
@@ -540,8 +537,7 @@ public Builder setCount(int value) { * * *
-     * The total count of documents that match
-     * [target_id][google.firestore.v1.ExistenceFilter.target_id].
+     * The total count of documents that match [target_id][google.firestore.v1.ExistenceFilter.target_id].
      * If different from the count of documents in the client that match, the
      * client must manually determine which documents no longer match the target.
      * 
diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ExistenceFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ExistenceFilterOrBuilder.java index 902319ba976e..044aec9816a7 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ExistenceFilterOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ExistenceFilterOrBuilder.java @@ -23,8 +23,7 @@ public interface ExistenceFilterOrBuilder * * *
-   * The total count of documents that match
-   * [target_id][google.firestore.v1.ExistenceFilter.target_id].
+   * The total count of documents that match [target_id][google.firestore.v1.ExistenceFilter.target_id].
    * If different from the count of documents in the client that match, the
    * client must manually determine which documents no longer match the target.
    * 
diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/GetDocumentRequest.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/GetDocumentRequest.java index 86e353ce41dd..3794b9c5ecc8 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/GetDocumentRequest.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/GetDocumentRequest.java @@ -7,8 +7,7 @@ * * *
- * The request for
- * [Firestore.GetDocument][google.firestore.v1.Firestore.GetDocument].
+ * The request for [Firestore.GetDocument][google.firestore.v1.Firestore.GetDocument].
  * 
* * Protobuf type {@code google.firestore.v1.GetDocumentRequest} @@ -541,8 +540,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for
-   * [Firestore.GetDocument][google.firestore.v1.Firestore.GetDocument].
+   * The request for [Firestore.GetDocument][google.firestore.v1.Firestore.GetDocument].
    * 
* * Protobuf type {@code google.firestore.v1.GetDocumentRequest} diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListCollectionIdsRequest.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListCollectionIdsRequest.java index 838900ea8346..45304820307f 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListCollectionIdsRequest.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListCollectionIdsRequest.java @@ -7,8 +7,7 @@ * * *
- * The request for
- * [Firestore.ListCollectionIds][google.firestore.v1.Firestore.ListCollectionIds].
+ * The request for [Firestore.ListCollectionIds][google.firestore.v1.Firestore.ListCollectionIds].
  * 
* * Protobuf type {@code google.firestore.v1.ListCollectionIdsRequest} @@ -397,8 +396,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for
-   * [Firestore.ListCollectionIds][google.firestore.v1.Firestore.ListCollectionIds].
+   * The request for [Firestore.ListCollectionIds][google.firestore.v1.Firestore.ListCollectionIds].
    * 
* * Protobuf type {@code google.firestore.v1.ListCollectionIdsRequest} diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListCollectionIdsResponse.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListCollectionIdsResponse.java index 8077a4e78dc7..4d1d95ed771b 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListCollectionIdsResponse.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListCollectionIdsResponse.java @@ -7,8 +7,7 @@ * * *
- * The response from
- * [Firestore.ListCollectionIds][google.firestore.v1.Firestore.ListCollectionIds].
+ * The response from [Firestore.ListCollectionIds][google.firestore.v1.Firestore.ListCollectionIds].
  * 
* * Protobuf type {@code google.firestore.v1.ListCollectionIdsResponse} @@ -381,8 +380,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response from
-   * [Firestore.ListCollectionIds][google.firestore.v1.Firestore.ListCollectionIds].
+   * The response from [Firestore.ListCollectionIds][google.firestore.v1.Firestore.ListCollectionIds].
    * 
* * Protobuf type {@code google.firestore.v1.ListCollectionIdsResponse} diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListDocumentsRequest.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListDocumentsRequest.java index f205182f9a21..5df0e959d496 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListDocumentsRequest.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListDocumentsRequest.java @@ -7,8 +7,7 @@ * * *
- * The request for
- * [Firestore.ListDocuments][google.firestore.v1.Firestore.ListDocuments].
+ * The request for [Firestore.ListDocuments][google.firestore.v1.Firestore.ListDocuments].
  * 
* * Protobuf type {@code google.firestore.v1.ListDocumentsRequest} @@ -521,9 +520,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { *
    * If the list should show missing documents. A missing document is a
    * document that does not exist but has sub-documents. These documents will
-   * be returned with a key but will not have fields,
-   * [Document.create_time][google.firestore.v1.Document.create_time], or
-   * [Document.update_time][google.firestore.v1.Document.update_time] set.
+   * be returned with a key but will not have fields, [Document.create_time][google.firestore.v1.Document.create_time],
+   * or [Document.update_time][google.firestore.v1.Document.update_time] set.
    * Requests with `show_missing` may not specify `where` or
    * `order_by`.
    * 
@@ -797,8 +795,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for
-   * [Firestore.ListDocuments][google.firestore.v1.Firestore.ListDocuments].
+   * The request for [Firestore.ListDocuments][google.firestore.v1.Firestore.ListDocuments].
    * 
* * Protobuf type {@code google.firestore.v1.ListDocumentsRequest} @@ -1954,9 +1951,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { *
      * If the list should show missing documents. A missing document is a
      * document that does not exist but has sub-documents. These documents will
-     * be returned with a key but will not have fields,
-     * [Document.create_time][google.firestore.v1.Document.create_time], or
-     * [Document.update_time][google.firestore.v1.Document.update_time] set.
+     * be returned with a key but will not have fields, [Document.create_time][google.firestore.v1.Document.create_time],
+     * or [Document.update_time][google.firestore.v1.Document.update_time] set.
      * Requests with `show_missing` may not specify `where` or
      * `order_by`.
      * 
@@ -1972,9 +1968,8 @@ public boolean getShowMissing() { *
      * If the list should show missing documents. A missing document is a
      * document that does not exist but has sub-documents. These documents will
-     * be returned with a key but will not have fields,
-     * [Document.create_time][google.firestore.v1.Document.create_time], or
-     * [Document.update_time][google.firestore.v1.Document.update_time] set.
+     * be returned with a key but will not have fields, [Document.create_time][google.firestore.v1.Document.create_time],
+     * or [Document.update_time][google.firestore.v1.Document.update_time] set.
      * Requests with `show_missing` may not specify `where` or
      * `order_by`.
      * 
@@ -1993,9 +1988,8 @@ public Builder setShowMissing(boolean value) { *
      * If the list should show missing documents. A missing document is a
      * document that does not exist but has sub-documents. These documents will
-     * be returned with a key but will not have fields,
-     * [Document.create_time][google.firestore.v1.Document.create_time], or
-     * [Document.update_time][google.firestore.v1.Document.update_time] set.
+     * be returned with a key but will not have fields, [Document.create_time][google.firestore.v1.Document.create_time],
+     * or [Document.update_time][google.firestore.v1.Document.update_time] set.
      * Requests with `show_missing` may not specify `where` or
      * `order_by`.
      * 
diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListDocumentsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListDocumentsRequestOrBuilder.java index fdf386f57350..7b2561ae5eb4 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListDocumentsRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListDocumentsRequestOrBuilder.java @@ -203,9 +203,8 @@ public interface ListDocumentsRequestOrBuilder *
    * If the list should show missing documents. A missing document is a
    * document that does not exist but has sub-documents. These documents will
-   * be returned with a key but will not have fields,
-   * [Document.create_time][google.firestore.v1.Document.create_time], or
-   * [Document.update_time][google.firestore.v1.Document.update_time] set.
+   * be returned with a key but will not have fields, [Document.create_time][google.firestore.v1.Document.create_time],
+   * or [Document.update_time][google.firestore.v1.Document.update_time] set.
    * Requests with `show_missing` may not specify `where` or
    * `order_by`.
    * 
diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListDocumentsResponse.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListDocumentsResponse.java index 4d1c32185200..e4383afceac1 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListDocumentsResponse.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListDocumentsResponse.java @@ -7,8 +7,7 @@ * * *
- * The response for
- * [Firestore.ListDocuments][google.firestore.v1.Firestore.ListDocuments].
+ * The response for [Firestore.ListDocuments][google.firestore.v1.Firestore.ListDocuments].
  * 
* * Protobuf type {@code google.firestore.v1.ListDocumentsResponse} @@ -389,8 +388,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response for
-   * [Firestore.ListDocuments][google.firestore.v1.Firestore.ListDocuments].
+   * The response for [Firestore.ListDocuments][google.firestore.v1.Firestore.ListDocuments].
    * 
* * Protobuf type {@code google.firestore.v1.ListDocumentsResponse} diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListenResponse.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListenResponse.java index 39359f585128..a5270da5b2aa 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListenResponse.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListenResponse.java @@ -348,8 +348,8 @@ public com.google.firestore.v1.DocumentDeleteOrBuilder getDocumentDeleteOrBuilde * * *
-   * A [Document][google.firestore.v1.Document] has been removed from a target
-   * (because it is no longer relevant to that target).
+   * A [Document][google.firestore.v1.Document] has been removed from a target (because it is no longer
+   * relevant to that target).
    * 
* * .google.firestore.v1.DocumentRemove document_remove = 6; @@ -361,8 +361,8 @@ public boolean hasDocumentRemove() { * * *
-   * A [Document][google.firestore.v1.Document] has been removed from a target
-   * (because it is no longer relevant to that target).
+   * A [Document][google.firestore.v1.Document] has been removed from a target (because it is no longer
+   * relevant to that target).
    * 
* * .google.firestore.v1.DocumentRemove document_remove = 6; @@ -377,8 +377,8 @@ public com.google.firestore.v1.DocumentRemove getDocumentRemove() { * * *
-   * A [Document][google.firestore.v1.Document] has been removed from a target
-   * (because it is no longer relevant to that target).
+   * A [Document][google.firestore.v1.Document] has been removed from a target (because it is no longer
+   * relevant to that target).
    * 
* * .google.firestore.v1.DocumentRemove document_remove = 6; @@ -1525,8 +1525,8 @@ public com.google.firestore.v1.DocumentDeleteOrBuilder getDocumentDeleteOrBuilde * * *
-     * A [Document][google.firestore.v1.Document] has been removed from a target
-     * (because it is no longer relevant to that target).
+     * A [Document][google.firestore.v1.Document] has been removed from a target (because it is no longer
+     * relevant to that target).
      * 
* * .google.firestore.v1.DocumentRemove document_remove = 6; @@ -1538,8 +1538,8 @@ public boolean hasDocumentRemove() { * * *
-     * A [Document][google.firestore.v1.Document] has been removed from a target
-     * (because it is no longer relevant to that target).
+     * A [Document][google.firestore.v1.Document] has been removed from a target (because it is no longer
+     * relevant to that target).
      * 
* * .google.firestore.v1.DocumentRemove document_remove = 6; @@ -1561,8 +1561,8 @@ public com.google.firestore.v1.DocumentRemove getDocumentRemove() { * * *
-     * A [Document][google.firestore.v1.Document] has been removed from a target
-     * (because it is no longer relevant to that target).
+     * A [Document][google.firestore.v1.Document] has been removed from a target (because it is no longer
+     * relevant to that target).
      * 
* * .google.firestore.v1.DocumentRemove document_remove = 6; @@ -1584,8 +1584,8 @@ public Builder setDocumentRemove(com.google.firestore.v1.DocumentRemove value) { * * *
-     * A [Document][google.firestore.v1.Document] has been removed from a target
-     * (because it is no longer relevant to that target).
+     * A [Document][google.firestore.v1.Document] has been removed from a target (because it is no longer
+     * relevant to that target).
      * 
* * .google.firestore.v1.DocumentRemove document_remove = 6; @@ -1605,8 +1605,8 @@ public Builder setDocumentRemove( * * *
-     * A [Document][google.firestore.v1.Document] has been removed from a target
-     * (because it is no longer relevant to that target).
+     * A [Document][google.firestore.v1.Document] has been removed from a target (because it is no longer
+     * relevant to that target).
      * 
* * .google.firestore.v1.DocumentRemove document_remove = 6; @@ -1637,8 +1637,8 @@ public Builder mergeDocumentRemove(com.google.firestore.v1.DocumentRemove value) * * *
-     * A [Document][google.firestore.v1.Document] has been removed from a target
-     * (because it is no longer relevant to that target).
+     * A [Document][google.firestore.v1.Document] has been removed from a target (because it is no longer
+     * relevant to that target).
      * 
* * .google.firestore.v1.DocumentRemove document_remove = 6; @@ -1663,8 +1663,8 @@ public Builder clearDocumentRemove() { * * *
-     * A [Document][google.firestore.v1.Document] has been removed from a target
-     * (because it is no longer relevant to that target).
+     * A [Document][google.firestore.v1.Document] has been removed from a target (because it is no longer
+     * relevant to that target).
      * 
* * .google.firestore.v1.DocumentRemove document_remove = 6; @@ -1676,8 +1676,8 @@ public com.google.firestore.v1.DocumentRemove.Builder getDocumentRemoveBuilder() * * *
-     * A [Document][google.firestore.v1.Document] has been removed from a target
-     * (because it is no longer relevant to that target).
+     * A [Document][google.firestore.v1.Document] has been removed from a target (because it is no longer
+     * relevant to that target).
      * 
* * .google.firestore.v1.DocumentRemove document_remove = 6; @@ -1696,8 +1696,8 @@ public com.google.firestore.v1.DocumentRemoveOrBuilder getDocumentRemoveOrBuilde * * *
-     * A [Document][google.firestore.v1.Document] has been removed from a target
-     * (because it is no longer relevant to that target).
+     * A [Document][google.firestore.v1.Document] has been removed from a target (because it is no longer
+     * relevant to that target).
      * 
* * .google.firestore.v1.DocumentRemove document_remove = 6; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListenResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListenResponseOrBuilder.java index 5d663df25095..3394cb55ed53 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListenResponseOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListenResponseOrBuilder.java @@ -105,8 +105,8 @@ public interface ListenResponseOrBuilder * * *
-   * A [Document][google.firestore.v1.Document] has been removed from a target
-   * (because it is no longer relevant to that target).
+   * A [Document][google.firestore.v1.Document] has been removed from a target (because it is no longer
+   * relevant to that target).
    * 
* * .google.firestore.v1.DocumentRemove document_remove = 6; @@ -116,8 +116,8 @@ public interface ListenResponseOrBuilder * * *
-   * A [Document][google.firestore.v1.Document] has been removed from a target
-   * (because it is no longer relevant to that target).
+   * A [Document][google.firestore.v1.Document] has been removed from a target (because it is no longer
+   * relevant to that target).
    * 
* * .google.firestore.v1.DocumentRemove document_remove = 6; @@ -127,8 +127,8 @@ public interface ListenResponseOrBuilder * * *
-   * A [Document][google.firestore.v1.Document] has been removed from a target
-   * (because it is no longer relevant to that target).
+   * A [Document][google.firestore.v1.Document] has been removed from a target (because it is no longer
+   * relevant to that target).
    * 
* * .google.firestore.v1.DocumentRemove document_remove = 6; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/QueryProto.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/QueryProto.java index bc3c06b1ada8..1b892e9c78fd 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/QueryProto.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/QueryProto.java @@ -36,14 +36,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_firestore_v1_StructuredQuery_UnaryFilter_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_firestore_v1_StructuredQuery_UnaryFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_firestore_v1_StructuredQuery_Order_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_firestore_v1_StructuredQuery_Order_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_firestore_v1_StructuredQuery_FieldReference_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_firestore_v1_StructuredQuery_FieldReference_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_firestore_v1_StructuredQuery_Order_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_firestore_v1_StructuredQuery_Order_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_firestore_v1_StructuredQuery_Projection_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -62,9 +62,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n\037google/firestore/v1/query.proto\022\023googl" - + "e.firestore.v1\032\034google/api/annotations.p" - + "roto\032\"google/firestore/v1/document.proto" - + "\032\036google/protobuf/wrappers.proto\"\332\016\n\017Str" + + "e.firestore.v1\032\"google/firestore/v1/docu" + + "ment.proto\032\036google/protobuf/wrappers.pro" + + "to\032\034google/api/annotations.proto\"\332\016\n\017Str" + "ucturedQuery\022?\n\006select\030\001 \001(\0132/.google.fi" + "restore.v1.StructuredQuery.Projection\022E\n" + "\004from\030\002 \003(\01327.google.firestore.v1.Struct" @@ -103,12 +103,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030\002 \001(\01323.google.firestore.v1.StructuredQ" + "uery.FieldReferenceH\000\"=\n\010Operator\022\030\n\024OPE" + "RATOR_UNSPECIFIED\020\000\022\n\n\006IS_NAN\020\002\022\013\n\007IS_NU" - + "LL\020\003B\016\n\014operand_type\032\216\001\n\005Order\022B\n\005field\030" - + "\001 \001(\01323.google.firestore.v1.StructuredQu" - + "ery.FieldReference\022A\n\tdirection\030\002 \001(\0162.." - + "google.firestore.v1.StructuredQuery.Dire" - + "ction\032$\n\016FieldReference\022\022\n\nfield_path\030\002 " - + "\001(\t\032Q\n\nProjection\022C\n\006fields\030\002 \003(\01323.goog" + + "LL\020\003B\016\n\014operand_type\032$\n\016FieldReference\022\022" + + "\n\nfield_path\030\002 \001(\t\032\216\001\n\005Order\022B\n\005field\030\001 " + + "\001(\01323.google.firestore.v1.StructuredQuer" + + "y.FieldReference\022A\n\tdirection\030\002 \001(\0162..go" + + "ogle.firestore.v1.StructuredQuery.Direct" + + "ion\032Q\n\nProjection\022C\n\006fields\030\002 \003(\01323.goog" + "le.firestore.v1.StructuredQuery.FieldRef" + "erence\"E\n\tDirection\022\031\n\025DIRECTION_UNSPECI" + "FIED\020\000\022\r\n\tASCENDING\020\001\022\016\n\nDESCENDING\020\002\"D\n" @@ -131,9 +131,9 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.firestore.v1.DocumentProto.getDescriptor(), com.google.protobuf.WrappersProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), }, assigner); internal_static_google_firestore_v1_StructuredQuery_descriptor = @@ -184,21 +184,21 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Op", "Field", "OperandType", }); - internal_static_google_firestore_v1_StructuredQuery_Order_descriptor = + internal_static_google_firestore_v1_StructuredQuery_FieldReference_descriptor = internal_static_google_firestore_v1_StructuredQuery_descriptor.getNestedTypes().get(5); - internal_static_google_firestore_v1_StructuredQuery_Order_fieldAccessorTable = + internal_static_google_firestore_v1_StructuredQuery_FieldReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_firestore_v1_StructuredQuery_Order_descriptor, + internal_static_google_firestore_v1_StructuredQuery_FieldReference_descriptor, new java.lang.String[] { - "Field", "Direction", + "FieldPath", }); - internal_static_google_firestore_v1_StructuredQuery_FieldReference_descriptor = + internal_static_google_firestore_v1_StructuredQuery_Order_descriptor = internal_static_google_firestore_v1_StructuredQuery_descriptor.getNestedTypes().get(6); - internal_static_google_firestore_v1_StructuredQuery_FieldReference_fieldAccessorTable = + internal_static_google_firestore_v1_StructuredQuery_Order_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_firestore_v1_StructuredQuery_FieldReference_descriptor, + internal_static_google_firestore_v1_StructuredQuery_Order_descriptor, new java.lang.String[] { - "FieldPath", + "Field", "Direction", }); internal_static_google_firestore_v1_StructuredQuery_Projection_descriptor = internal_static_google_firestore_v1_StructuredQuery_descriptor.getNestedTypes().get(7); @@ -216,9 +216,9 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Values", "Before", }); - com.google.api.AnnotationsProto.getDescriptor(); com.google.firestore.v1.DocumentProto.getDescriptor(); com.google.protobuf.WrappersProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryResponse.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryResponse.java index e21a15ad0d8a..bb1df98c4d6a 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryResponse.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryResponse.java @@ -7,8 +7,7 @@ * * *
- * The response for
- * [Firestore.RunQuery][google.firestore.v1.Firestore.RunQuery].
+ * The response for [Firestore.RunQuery][google.firestore.v1.Firestore.RunQuery].
  * 
* * Protobuf type {@code google.firestore.v1.RunQueryResponse} @@ -134,9 +133,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * The transaction that was started as part of this request.
    * Can only be set in the first response, and only if
-   * [RunQueryRequest.new_transaction][google.firestore.v1.RunQueryRequest.new_transaction]
-   * was set in the request. If set, no other fields will be set in this
-   * response.
+   * [RunQueryRequest.new_transaction][google.firestore.v1.RunQueryRequest.new_transaction] was set in the request.
+   * If set, no other fields will be set in this response.
    * 
* * bytes transaction = 2; @@ -457,8 +455,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response for
-   * [Firestore.RunQuery][google.firestore.v1.Firestore.RunQuery].
+   * The response for [Firestore.RunQuery][google.firestore.v1.Firestore.RunQuery].
    * 
* * Protobuf type {@code google.firestore.v1.RunQueryResponse} @@ -651,9 +648,8 @@ public Builder mergeFrom( *
      * The transaction that was started as part of this request.
      * Can only be set in the first response, and only if
-     * [RunQueryRequest.new_transaction][google.firestore.v1.RunQueryRequest.new_transaction]
-     * was set in the request. If set, no other fields will be set in this
-     * response.
+     * [RunQueryRequest.new_transaction][google.firestore.v1.RunQueryRequest.new_transaction] was set in the request.
+     * If set, no other fields will be set in this response.
      * 
* * bytes transaction = 2; @@ -667,9 +663,8 @@ public com.google.protobuf.ByteString getTransaction() { *
      * The transaction that was started as part of this request.
      * Can only be set in the first response, and only if
-     * [RunQueryRequest.new_transaction][google.firestore.v1.RunQueryRequest.new_transaction]
-     * was set in the request. If set, no other fields will be set in this
-     * response.
+     * [RunQueryRequest.new_transaction][google.firestore.v1.RunQueryRequest.new_transaction] was set in the request.
+     * If set, no other fields will be set in this response.
      * 
* * bytes transaction = 2; @@ -689,9 +684,8 @@ public Builder setTransaction(com.google.protobuf.ByteString value) { *
      * The transaction that was started as part of this request.
      * Can only be set in the first response, and only if
-     * [RunQueryRequest.new_transaction][google.firestore.v1.RunQueryRequest.new_transaction]
-     * was set in the request. If set, no other fields will be set in this
-     * response.
+     * [RunQueryRequest.new_transaction][google.firestore.v1.RunQueryRequest.new_transaction] was set in the request.
+     * If set, no other fields will be set in this response.
      * 
* * bytes transaction = 2; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryResponseOrBuilder.java index 55979ddcf528..2b18df04a319 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryResponseOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryResponseOrBuilder.java @@ -14,9 +14,8 @@ public interface RunQueryResponseOrBuilder *
    * The transaction that was started as part of this request.
    * Can only be set in the first response, and only if
-   * [RunQueryRequest.new_transaction][google.firestore.v1.RunQueryRequest.new_transaction]
-   * was set in the request. If set, no other fields will be set in this
-   * response.
+   * [RunQueryRequest.new_transaction][google.firestore.v1.RunQueryRequest.new_transaction] was set in the request.
+   * If set, no other fields will be set in this response.
    * 
* * bytes transaction = 2; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredQuery.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredQuery.java index 606e72ffb75b..83ee3cfe276b 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredQuery.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredQuery.java @@ -6470,84 +6470,37 @@ public com.google.firestore.v1.StructuredQuery.UnaryFilter getDefaultInstanceFor } } - public interface OrderOrBuilder + public interface FieldReferenceOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.firestore.v1.StructuredQuery.Order) + // @@protoc_insertion_point(interface_extends:google.firestore.v1.StructuredQuery.FieldReference) com.google.protobuf.MessageOrBuilder { - /** - * - * - *
-     * The field to order by.
-     * 
- * - * .google.firestore.v1.StructuredQuery.FieldReference field = 1; - */ - boolean hasField(); - /** - * - * - *
-     * The field to order by.
-     * 
- * - * .google.firestore.v1.StructuredQuery.FieldReference field = 1; - */ - com.google.firestore.v1.StructuredQuery.FieldReference getField(); - /** - * - * - *
-     * The field to order by.
-     * 
- * - * .google.firestore.v1.StructuredQuery.FieldReference field = 1; - */ - com.google.firestore.v1.StructuredQuery.FieldReferenceOrBuilder getFieldOrBuilder(); - - /** - * - * - *
-     * The direction to order by. Defaults to `ASCENDING`.
-     * 
- * - * .google.firestore.v1.StructuredQuery.Direction direction = 2; - */ - int getDirectionValue(); - /** - * - * - *
-     * The direction to order by. Defaults to `ASCENDING`.
-     * 
- * - * .google.firestore.v1.StructuredQuery.Direction direction = 2; - */ - com.google.firestore.v1.StructuredQuery.Direction getDirection(); + /** string field_path = 2; */ + java.lang.String getFieldPath(); + /** string field_path = 2; */ + com.google.protobuf.ByteString getFieldPathBytes(); } /** * * *
-   * An order on a field.
+   * A reference to a field, such as `max(messages.time) as max_time`.
    * 
* - * Protobuf type {@code google.firestore.v1.StructuredQuery.Order} + * Protobuf type {@code google.firestore.v1.StructuredQuery.FieldReference} */ - public static final class Order extends com.google.protobuf.GeneratedMessageV3 + public static final class FieldReference extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.firestore.v1.StructuredQuery.Order) - OrderOrBuilder { + // @@protoc_insertion_point(message_implements:google.firestore.v1.StructuredQuery.FieldReference) + FieldReferenceOrBuilder { private static final long serialVersionUID = 0L; - // Use Order.newBuilder() to construct. - private Order(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use FieldReference.newBuilder() to construct. + private FieldReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Order() { - direction_ = 0; + private FieldReference() { + fieldPath_ = ""; } @java.lang.Override @@ -6555,7 +6508,7 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Order( + private FieldReference( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -6574,28 +6527,11 @@ private Order( case 0: done = true; break; - case 10: - { - com.google.firestore.v1.StructuredQuery.FieldReference.Builder subBuilder = null; - if (field_ != null) { - subBuilder = field_.toBuilder(); - } - field_ = - input.readMessage( - com.google.firestore.v1.StructuredQuery.FieldReference.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(field_); - field_ = subBuilder.buildPartial(); - } - - break; - } - case 16: + case 18: { - int rawValue = input.readEnum(); + java.lang.String s = input.readStringRequireUtf8(); - direction_ = rawValue; + fieldPath_ = s; break; } default: @@ -6619,90 +6555,44 @@ private Order( public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.QueryProto - .internal_static_google_firestore_v1_StructuredQuery_Order_descriptor; + .internal_static_google_firestore_v1_StructuredQuery_FieldReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.firestore.v1.QueryProto - .internal_static_google_firestore_v1_StructuredQuery_Order_fieldAccessorTable + .internal_static_google_firestore_v1_StructuredQuery_FieldReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.firestore.v1.StructuredQuery.Order.class, - com.google.firestore.v1.StructuredQuery.Order.Builder.class); - } - - public static final int FIELD_FIELD_NUMBER = 1; - private com.google.firestore.v1.StructuredQuery.FieldReference field_; - /** - * - * - *
-     * The field to order by.
-     * 
- * - * .google.firestore.v1.StructuredQuery.FieldReference field = 1; - */ - public boolean hasField() { - return field_ != null; - } - /** - * - * - *
-     * The field to order by.
-     * 
- * - * .google.firestore.v1.StructuredQuery.FieldReference field = 1; - */ - public com.google.firestore.v1.StructuredQuery.FieldReference getField() { - return field_ == null - ? com.google.firestore.v1.StructuredQuery.FieldReference.getDefaultInstance() - : field_; - } - /** - * - * - *
-     * The field to order by.
-     * 
- * - * .google.firestore.v1.StructuredQuery.FieldReference field = 1; - */ - public com.google.firestore.v1.StructuredQuery.FieldReferenceOrBuilder getFieldOrBuilder() { - return getField(); + com.google.firestore.v1.StructuredQuery.FieldReference.class, + com.google.firestore.v1.StructuredQuery.FieldReference.Builder.class); } - public static final int DIRECTION_FIELD_NUMBER = 2; - private int direction_; - /** - * - * - *
-     * The direction to order by. Defaults to `ASCENDING`.
-     * 
- * - * .google.firestore.v1.StructuredQuery.Direction direction = 2; - */ - public int getDirectionValue() { - return direction_; + public static final int FIELD_PATH_FIELD_NUMBER = 2; + private volatile java.lang.Object fieldPath_; + /** string field_path = 2; */ + public java.lang.String getFieldPath() { + java.lang.Object ref = fieldPath_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldPath_ = s; + return s; + } } - /** - * - * - *
-     * The direction to order by. Defaults to `ASCENDING`.
-     * 
- * - * .google.firestore.v1.StructuredQuery.Direction direction = 2; - */ - public com.google.firestore.v1.StructuredQuery.Direction getDirection() { - @SuppressWarnings("deprecation") - com.google.firestore.v1.StructuredQuery.Direction result = - com.google.firestore.v1.StructuredQuery.Direction.valueOf(direction_); - return result == null - ? com.google.firestore.v1.StructuredQuery.Direction.UNRECOGNIZED - : result; + /** string field_path = 2; */ + public com.google.protobuf.ByteString getFieldPathBytes() { + java.lang.Object ref = fieldPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } private byte memoizedIsInitialized = -1; @@ -6719,12 +6609,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (field_ != null) { - output.writeMessage(1, getField()); - } - if (direction_ - != com.google.firestore.v1.StructuredQuery.Direction.DIRECTION_UNSPECIFIED.getNumber()) { - output.writeEnum(2, direction_); + if (!getFieldPathBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fieldPath_); } unknownFields.writeTo(output); } @@ -6735,12 +6621,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (field_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getField()); - } - if (direction_ - != com.google.firestore.v1.StructuredQuery.Direction.DIRECTION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, direction_); + if (!getFieldPathBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fieldPath_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -6752,18 +6634,14 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.firestore.v1.StructuredQuery.Order)) { + if (!(obj instanceof com.google.firestore.v1.StructuredQuery.FieldReference)) { return super.equals(obj); } - com.google.firestore.v1.StructuredQuery.Order other = - (com.google.firestore.v1.StructuredQuery.Order) obj; + com.google.firestore.v1.StructuredQuery.FieldReference other = + (com.google.firestore.v1.StructuredQuery.FieldReference) obj; boolean result = true; - result = result && (hasField() == other.hasField()); - if (hasField()) { - result = result && getField().equals(other.getField()); - } - result = result && direction_ == other.direction_; + result = result && getFieldPath().equals(other.getFieldPath()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -6775,82 +6653,78 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasField()) { - hash = (37 * hash) + FIELD_FIELD_NUMBER; - hash = (53 * hash) + getField().hashCode(); - } - hash = (37 * hash) + DIRECTION_FIELD_NUMBER; - hash = (53 * hash) + direction_; + hash = (37 * hash) + FIELD_PATH_FIELD_NUMBER; + hash = (53 * hash) + getFieldPath().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.firestore.v1.StructuredQuery.Order parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.firestore.v1.StructuredQuery.FieldReference parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.firestore.v1.StructuredQuery.Order parseFrom( + public static com.google.firestore.v1.StructuredQuery.FieldReference parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.firestore.v1.StructuredQuery.Order parseFrom( + public static com.google.firestore.v1.StructuredQuery.FieldReference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.firestore.v1.StructuredQuery.Order parseFrom( + public static com.google.firestore.v1.StructuredQuery.FieldReference 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.firestore.v1.StructuredQuery.Order parseFrom(byte[] data) + public static com.google.firestore.v1.StructuredQuery.FieldReference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.firestore.v1.StructuredQuery.Order parseFrom( + public static com.google.firestore.v1.StructuredQuery.FieldReference parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.firestore.v1.StructuredQuery.Order parseFrom(java.io.InputStream input) - throws java.io.IOException { + public static com.google.firestore.v1.StructuredQuery.FieldReference parseFrom( + java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.firestore.v1.StructuredQuery.Order parseFrom( + public static com.google.firestore.v1.StructuredQuery.FieldReference 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.firestore.v1.StructuredQuery.Order parseDelimitedFrom( + public static com.google.firestore.v1.StructuredQuery.FieldReference parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.firestore.v1.StructuredQuery.Order parseDelimitedFrom( + public static com.google.firestore.v1.StructuredQuery.FieldReference 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.firestore.v1.StructuredQuery.Order parseFrom( + public static com.google.firestore.v1.StructuredQuery.FieldReference parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.firestore.v1.StructuredQuery.Order parseFrom( + public static com.google.firestore.v1.StructuredQuery.FieldReference parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -6867,7 +6741,8 @@ public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.firestore.v1.StructuredQuery.Order prototype) { + public static Builder newBuilder( + com.google.firestore.v1.StructuredQuery.FieldReference prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -6886,32 +6761,32 @@ protected Builder newBuilderForType( * * *
-     * An order on a field.
+     * A reference to a field, such as `max(messages.time) as max_time`.
      * 
* - * Protobuf type {@code google.firestore.v1.StructuredQuery.Order} + * Protobuf type {@code google.firestore.v1.StructuredQuery.FieldReference} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.firestore.v1.StructuredQuery.Order) - com.google.firestore.v1.StructuredQuery.OrderOrBuilder { + // @@protoc_insertion_point(builder_implements:google.firestore.v1.StructuredQuery.FieldReference) + com.google.firestore.v1.StructuredQuery.FieldReferenceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.QueryProto - .internal_static_google_firestore_v1_StructuredQuery_Order_descriptor; + .internal_static_google_firestore_v1_StructuredQuery_FieldReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.firestore.v1.QueryProto - .internal_static_google_firestore_v1_StructuredQuery_Order_fieldAccessorTable + .internal_static_google_firestore_v1_StructuredQuery_FieldReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.firestore.v1.StructuredQuery.Order.class, - com.google.firestore.v1.StructuredQuery.Order.Builder.class); + com.google.firestore.v1.StructuredQuery.FieldReference.class, + com.google.firestore.v1.StructuredQuery.FieldReference.Builder.class); } - // Construct using com.google.firestore.v1.StructuredQuery.Order.newBuilder() + // Construct using com.google.firestore.v1.StructuredQuery.FieldReference.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -6928,13 +6803,7 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - if (fieldBuilder_ == null) { - field_ = null; - } else { - field_ = null; - fieldBuilder_ = null; - } - direction_ = 0; + fieldPath_ = ""; return this; } @@ -6942,17 +6811,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.firestore.v1.QueryProto - .internal_static_google_firestore_v1_StructuredQuery_Order_descriptor; + .internal_static_google_firestore_v1_StructuredQuery_FieldReference_descriptor; } @java.lang.Override - public com.google.firestore.v1.StructuredQuery.Order getDefaultInstanceForType() { - return com.google.firestore.v1.StructuredQuery.Order.getDefaultInstance(); + public com.google.firestore.v1.StructuredQuery.FieldReference getDefaultInstanceForType() { + return com.google.firestore.v1.StructuredQuery.FieldReference.getDefaultInstance(); } @java.lang.Override - public com.google.firestore.v1.StructuredQuery.Order build() { - com.google.firestore.v1.StructuredQuery.Order result = buildPartial(); + public com.google.firestore.v1.StructuredQuery.FieldReference build() { + com.google.firestore.v1.StructuredQuery.FieldReference result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -6960,15 +6829,10 @@ public com.google.firestore.v1.StructuredQuery.Order build() { } @java.lang.Override - public com.google.firestore.v1.StructuredQuery.Order buildPartial() { - com.google.firestore.v1.StructuredQuery.Order result = - new com.google.firestore.v1.StructuredQuery.Order(this); - if (fieldBuilder_ == null) { - result.field_ = field_; - } else { - result.field_ = fieldBuilder_.build(); - } - result.direction_ = direction_; + public com.google.firestore.v1.StructuredQuery.FieldReference buildPartial() { + com.google.firestore.v1.StructuredQuery.FieldReference result = + new com.google.firestore.v1.StructuredQuery.FieldReference(this); + result.fieldPath_ = fieldPath_; onBuilt(); return result; } @@ -7010,22 +6874,20 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.firestore.v1.StructuredQuery.Order) { - return mergeFrom((com.google.firestore.v1.StructuredQuery.Order) other); + if (other instanceof com.google.firestore.v1.StructuredQuery.FieldReference) { + return mergeFrom((com.google.firestore.v1.StructuredQuery.FieldReference) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.firestore.v1.StructuredQuery.Order other) { - if (other == com.google.firestore.v1.StructuredQuery.Order.getDefaultInstance()) + public Builder mergeFrom(com.google.firestore.v1.StructuredQuery.FieldReference other) { + if (other == com.google.firestore.v1.StructuredQuery.FieldReference.getDefaultInstance()) return this; - if (other.hasField()) { - mergeField(other.getField()); - } - if (other.direction_ != 0) { - setDirectionValue(other.getDirectionValue()); + if (!other.getFieldPath().isEmpty()) { + fieldPath_ = other.fieldPath_; + onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -7042,11 +6904,12 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.firestore.v1.StructuredQuery.Order parsedMessage = null; + com.google.firestore.v1.StructuredQuery.FieldReference parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.firestore.v1.StructuredQuery.Order) e.getUnfinishedMessage(); + parsedMessage = + (com.google.firestore.v1.StructuredQuery.FieldReference) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -7056,270 +6919,64 @@ public Builder mergeFrom( return this; } - private com.google.firestore.v1.StructuredQuery.FieldReference field_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.firestore.v1.StructuredQuery.FieldReference, - com.google.firestore.v1.StructuredQuery.FieldReference.Builder, - com.google.firestore.v1.StructuredQuery.FieldReferenceOrBuilder> - fieldBuilder_; - /** - * - * - *
-       * The field to order by.
-       * 
- * - * .google.firestore.v1.StructuredQuery.FieldReference field = 1; - */ - public boolean hasField() { - return fieldBuilder_ != null || field_ != null; - } - /** - * - * - *
-       * The field to order by.
-       * 
- * - * .google.firestore.v1.StructuredQuery.FieldReference field = 1; - */ - public com.google.firestore.v1.StructuredQuery.FieldReference getField() { - if (fieldBuilder_ == null) { - return field_ == null - ? com.google.firestore.v1.StructuredQuery.FieldReference.getDefaultInstance() - : field_; + private java.lang.Object fieldPath_ = ""; + /** string field_path = 2; */ + public java.lang.String getFieldPath() { + java.lang.Object ref = fieldPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldPath_ = s; + return s; } else { - return fieldBuilder_.getMessage(); + return (java.lang.String) ref; } } - /** - * - * - *
-       * The field to order by.
-       * 
- * - * .google.firestore.v1.StructuredQuery.FieldReference field = 1; - */ - public Builder setField(com.google.firestore.v1.StructuredQuery.FieldReference value) { - if (fieldBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - field_ = value; - onChanged(); + /** string field_path = 2; */ + public com.google.protobuf.ByteString getFieldPathBytes() { + java.lang.Object ref = fieldPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldPath_ = b; + return b; } else { - fieldBuilder_.setMessage(value); + return (com.google.protobuf.ByteString) ref; } - - return this; } - /** - * - * - *
-       * The field to order by.
-       * 
- * - * .google.firestore.v1.StructuredQuery.FieldReference field = 1; - */ - public Builder setField( - com.google.firestore.v1.StructuredQuery.FieldReference.Builder builderForValue) { - if (fieldBuilder_ == null) { - field_ = builderForValue.build(); - onChanged(); - } else { - fieldBuilder_.setMessage(builderForValue.build()); + /** string field_path = 2; */ + public Builder setFieldPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + fieldPath_ = value; + onChanged(); return this; } - /** - * - * - *
-       * The field to order by.
-       * 
- * - * .google.firestore.v1.StructuredQuery.FieldReference field = 1; - */ - public Builder mergeField(com.google.firestore.v1.StructuredQuery.FieldReference value) { - if (fieldBuilder_ == null) { - if (field_ != null) { - field_ = - com.google.firestore.v1.StructuredQuery.FieldReference.newBuilder(field_) - .mergeFrom(value) - .buildPartial(); - } else { - field_ = value; - } - onChanged(); - } else { - fieldBuilder_.mergeFrom(value); - } + /** string field_path = 2; */ + public Builder clearFieldPath() { + fieldPath_ = getDefaultInstance().getFieldPath(); + onChanged(); return this; } - /** - * - * - *
-       * The field to order by.
-       * 
- * - * .google.firestore.v1.StructuredQuery.FieldReference field = 1; - */ - public Builder clearField() { - if (fieldBuilder_ == null) { - field_ = null; - onChanged(); - } else { - field_ = null; - fieldBuilder_ = null; + /** string field_path = 2; */ + public Builder setFieldPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + fieldPath_ = value; + onChanged(); return this; } - /** - * - * - *
-       * The field to order by.
-       * 
- * - * .google.firestore.v1.StructuredQuery.FieldReference field = 1; - */ - public com.google.firestore.v1.StructuredQuery.FieldReference.Builder getFieldBuilder() { - onChanged(); - return getFieldFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * The field to order by.
-       * 
- * - * .google.firestore.v1.StructuredQuery.FieldReference field = 1; - */ - public com.google.firestore.v1.StructuredQuery.FieldReferenceOrBuilder getFieldOrBuilder() { - if (fieldBuilder_ != null) { - return fieldBuilder_.getMessageOrBuilder(); - } else { - return field_ == null - ? com.google.firestore.v1.StructuredQuery.FieldReference.getDefaultInstance() - : field_; - } - } - /** - * - * - *
-       * The field to order by.
-       * 
- * - * .google.firestore.v1.StructuredQuery.FieldReference field = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.firestore.v1.StructuredQuery.FieldReference, - com.google.firestore.v1.StructuredQuery.FieldReference.Builder, - com.google.firestore.v1.StructuredQuery.FieldReferenceOrBuilder> - getFieldFieldBuilder() { - if (fieldBuilder_ == null) { - fieldBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.firestore.v1.StructuredQuery.FieldReference, - com.google.firestore.v1.StructuredQuery.FieldReference.Builder, - com.google.firestore.v1.StructuredQuery.FieldReferenceOrBuilder>( - getField(), getParentForChildren(), isClean()); - field_ = null; - } - return fieldBuilder_; - } - - private int direction_ = 0; - /** - * - * - *
-       * The direction to order by. Defaults to `ASCENDING`.
-       * 
- * - * .google.firestore.v1.StructuredQuery.Direction direction = 2; - */ - public int getDirectionValue() { - return direction_; - } - /** - * - * - *
-       * The direction to order by. Defaults to `ASCENDING`.
-       * 
- * - * .google.firestore.v1.StructuredQuery.Direction direction = 2; - */ - public Builder setDirectionValue(int value) { - direction_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The direction to order by. Defaults to `ASCENDING`.
-       * 
- * - * .google.firestore.v1.StructuredQuery.Direction direction = 2; - */ - public com.google.firestore.v1.StructuredQuery.Direction getDirection() { - @SuppressWarnings("deprecation") - com.google.firestore.v1.StructuredQuery.Direction result = - com.google.firestore.v1.StructuredQuery.Direction.valueOf(direction_); - return result == null - ? com.google.firestore.v1.StructuredQuery.Direction.UNRECOGNIZED - : result; - } - /** - * - * - *
-       * The direction to order by. Defaults to `ASCENDING`.
-       * 
- * - * .google.firestore.v1.StructuredQuery.Direction direction = 2; - */ - public Builder setDirection(com.google.firestore.v1.StructuredQuery.Direction value) { - if (value == null) { - throw new NullPointerException(); - } - - direction_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * The direction to order by. Defaults to `ASCENDING`.
-       * 
- * - * .google.firestore.v1.StructuredQuery.Direction direction = 2; - */ - public Builder clearDirection() { - - direction_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override @@ -7328,77 +6985,124 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.firestore.v1.StructuredQuery.Order) + // @@protoc_insertion_point(builder_scope:google.firestore.v1.StructuredQuery.FieldReference) } - // @@protoc_insertion_point(class_scope:google.firestore.v1.StructuredQuery.Order) - private static final com.google.firestore.v1.StructuredQuery.Order DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.firestore.v1.StructuredQuery.FieldReference) + private static final com.google.firestore.v1.StructuredQuery.FieldReference DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.firestore.v1.StructuredQuery.Order(); + DEFAULT_INSTANCE = new com.google.firestore.v1.StructuredQuery.FieldReference(); } - public static com.google.firestore.v1.StructuredQuery.Order getDefaultInstance() { + public static com.google.firestore.v1.StructuredQuery.FieldReference getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public Order parsePartialFrom( + public FieldReference parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Order(input, extensionRegistry); + return new FieldReference(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.firestore.v1.StructuredQuery.Order getDefaultInstanceForType() { + public com.google.firestore.v1.StructuredQuery.FieldReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface FieldReferenceOrBuilder + public interface OrderOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.firestore.v1.StructuredQuery.FieldReference) + // @@protoc_insertion_point(interface_extends:google.firestore.v1.StructuredQuery.Order) com.google.protobuf.MessageOrBuilder { - /** string field_path = 2; */ - java.lang.String getFieldPath(); - /** string field_path = 2; */ - com.google.protobuf.ByteString getFieldPathBytes(); + /** + * + * + *
+     * The field to order by.
+     * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + */ + boolean hasField(); + /** + * + * + *
+     * The field to order by.
+     * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + */ + com.google.firestore.v1.StructuredQuery.FieldReference getField(); + /** + * + * + *
+     * The field to order by.
+     * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + */ + com.google.firestore.v1.StructuredQuery.FieldReferenceOrBuilder getFieldOrBuilder(); + + /** + * + * + *
+     * The direction to order by. Defaults to `ASCENDING`.
+     * 
+ * + * .google.firestore.v1.StructuredQuery.Direction direction = 2; + */ + int getDirectionValue(); + /** + * + * + *
+     * The direction to order by. Defaults to `ASCENDING`.
+     * 
+ * + * .google.firestore.v1.StructuredQuery.Direction direction = 2; + */ + com.google.firestore.v1.StructuredQuery.Direction getDirection(); } /** * * *
-   * A reference to a field, such as `max(messages.time) as max_time`.
+   * An order on a field.
    * 
* - * Protobuf type {@code google.firestore.v1.StructuredQuery.FieldReference} + * Protobuf type {@code google.firestore.v1.StructuredQuery.Order} */ - public static final class FieldReference extends com.google.protobuf.GeneratedMessageV3 + public static final class Order extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.firestore.v1.StructuredQuery.FieldReference) - FieldReferenceOrBuilder { + // @@protoc_insertion_point(message_implements:google.firestore.v1.StructuredQuery.Order) + OrderOrBuilder { private static final long serialVersionUID = 0L; - // Use FieldReference.newBuilder() to construct. - private FieldReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use Order.newBuilder() to construct. + private Order(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FieldReference() { - fieldPath_ = ""; + private Order() { + direction_ = 0; } @java.lang.Override @@ -7406,7 +7110,7 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private FieldReference( + private Order( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -7425,11 +7129,28 @@ private FieldReference( case 0: done = true; break; - case 18: + case 10: { - java.lang.String s = input.readStringRequireUtf8(); + com.google.firestore.v1.StructuredQuery.FieldReference.Builder subBuilder = null; + if (field_ != null) { + subBuilder = field_.toBuilder(); + } + field_ = + input.readMessage( + com.google.firestore.v1.StructuredQuery.FieldReference.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(field_); + field_ = subBuilder.buildPartial(); + } - fieldPath_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + direction_ = rawValue; break; } default: @@ -7453,44 +7174,90 @@ private FieldReference( public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.QueryProto - .internal_static_google_firestore_v1_StructuredQuery_FieldReference_descriptor; + .internal_static_google_firestore_v1_StructuredQuery_Order_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.firestore.v1.QueryProto - .internal_static_google_firestore_v1_StructuredQuery_FieldReference_fieldAccessorTable + .internal_static_google_firestore_v1_StructuredQuery_Order_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.firestore.v1.StructuredQuery.FieldReference.class, - com.google.firestore.v1.StructuredQuery.FieldReference.Builder.class); + com.google.firestore.v1.StructuredQuery.Order.class, + com.google.firestore.v1.StructuredQuery.Order.Builder.class); } - public static final int FIELD_PATH_FIELD_NUMBER = 2; - private volatile java.lang.Object fieldPath_; - /** string field_path = 2; */ - public java.lang.String getFieldPath() { - java.lang.Object ref = fieldPath_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fieldPath_ = s; - return s; - } + public static final int FIELD_FIELD_NUMBER = 1; + private com.google.firestore.v1.StructuredQuery.FieldReference field_; + /** + * + * + *
+     * The field to order by.
+     * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + */ + public boolean hasField() { + return field_ != null; } - /** string field_path = 2; */ - public com.google.protobuf.ByteString getFieldPathBytes() { - java.lang.Object ref = fieldPath_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fieldPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + /** + * + * + *
+     * The field to order by.
+     * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + */ + public com.google.firestore.v1.StructuredQuery.FieldReference getField() { + return field_ == null + ? com.google.firestore.v1.StructuredQuery.FieldReference.getDefaultInstance() + : field_; + } + /** + * + * + *
+     * The field to order by.
+     * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + */ + public com.google.firestore.v1.StructuredQuery.FieldReferenceOrBuilder getFieldOrBuilder() { + return getField(); + } + + public static final int DIRECTION_FIELD_NUMBER = 2; + private int direction_; + /** + * + * + *
+     * The direction to order by. Defaults to `ASCENDING`.
+     * 
+ * + * .google.firestore.v1.StructuredQuery.Direction direction = 2; + */ + public int getDirectionValue() { + return direction_; + } + /** + * + * + *
+     * The direction to order by. Defaults to `ASCENDING`.
+     * 
+ * + * .google.firestore.v1.StructuredQuery.Direction direction = 2; + */ + public com.google.firestore.v1.StructuredQuery.Direction getDirection() { + @SuppressWarnings("deprecation") + com.google.firestore.v1.StructuredQuery.Direction result = + com.google.firestore.v1.StructuredQuery.Direction.valueOf(direction_); + return result == null + ? com.google.firestore.v1.StructuredQuery.Direction.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; @@ -7507,8 +7274,12 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getFieldPathBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fieldPath_); + if (field_ != null) { + output.writeMessage(1, getField()); + } + if (direction_ + != com.google.firestore.v1.StructuredQuery.Direction.DIRECTION_UNSPECIFIED.getNumber()) { + output.writeEnum(2, direction_); } unknownFields.writeTo(output); } @@ -7519,8 +7290,12 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getFieldPathBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fieldPath_); + if (field_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getField()); + } + if (direction_ + != com.google.firestore.v1.StructuredQuery.Direction.DIRECTION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, direction_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -7532,14 +7307,18 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.firestore.v1.StructuredQuery.FieldReference)) { + if (!(obj instanceof com.google.firestore.v1.StructuredQuery.Order)) { return super.equals(obj); } - com.google.firestore.v1.StructuredQuery.FieldReference other = - (com.google.firestore.v1.StructuredQuery.FieldReference) obj; + com.google.firestore.v1.StructuredQuery.Order other = + (com.google.firestore.v1.StructuredQuery.Order) obj; boolean result = true; - result = result && getFieldPath().equals(other.getFieldPath()); + result = result && (hasField() == other.hasField()); + if (hasField()) { + result = result && getField().equals(other.getField()); + } + result = result && direction_ == other.direction_; result = result && unknownFields.equals(other.unknownFields); return result; } @@ -7551,78 +7330,82 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FIELD_PATH_FIELD_NUMBER; - hash = (53 * hash) + getFieldPath().hashCode(); + if (hasField()) { + hash = (37 * hash) + FIELD_FIELD_NUMBER; + hash = (53 * hash) + getField().hashCode(); + } + hash = (37 * hash) + DIRECTION_FIELD_NUMBER; + hash = (53 * hash) + direction_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.firestore.v1.StructuredQuery.FieldReference parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.firestore.v1.StructuredQuery.Order parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.firestore.v1.StructuredQuery.FieldReference parseFrom( + public static com.google.firestore.v1.StructuredQuery.Order parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.firestore.v1.StructuredQuery.FieldReference parseFrom( + public static com.google.firestore.v1.StructuredQuery.Order parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.firestore.v1.StructuredQuery.FieldReference parseFrom( + public static com.google.firestore.v1.StructuredQuery.Order 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.firestore.v1.StructuredQuery.FieldReference parseFrom(byte[] data) + public static com.google.firestore.v1.StructuredQuery.Order parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.firestore.v1.StructuredQuery.FieldReference parseFrom( + public static com.google.firestore.v1.StructuredQuery.Order parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.firestore.v1.StructuredQuery.FieldReference parseFrom( - java.io.InputStream input) throws java.io.IOException { + public static com.google.firestore.v1.StructuredQuery.Order parseFrom(java.io.InputStream input) + throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.firestore.v1.StructuredQuery.FieldReference parseFrom( + public static com.google.firestore.v1.StructuredQuery.Order 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.firestore.v1.StructuredQuery.FieldReference parseDelimitedFrom( + public static com.google.firestore.v1.StructuredQuery.Order parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.firestore.v1.StructuredQuery.FieldReference parseDelimitedFrom( + public static com.google.firestore.v1.StructuredQuery.Order 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.firestore.v1.StructuredQuery.FieldReference parseFrom( + public static com.google.firestore.v1.StructuredQuery.Order parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.firestore.v1.StructuredQuery.FieldReference parseFrom( + public static com.google.firestore.v1.StructuredQuery.Order parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -7639,8 +7422,7 @@ public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder( - com.google.firestore.v1.StructuredQuery.FieldReference prototype) { + public static Builder newBuilder(com.google.firestore.v1.StructuredQuery.Order prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -7659,32 +7441,32 @@ protected Builder newBuilderForType( * * *
-     * A reference to a field, such as `max(messages.time) as max_time`.
+     * An order on a field.
      * 
* - * Protobuf type {@code google.firestore.v1.StructuredQuery.FieldReference} + * Protobuf type {@code google.firestore.v1.StructuredQuery.Order} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.firestore.v1.StructuredQuery.FieldReference) - com.google.firestore.v1.StructuredQuery.FieldReferenceOrBuilder { + // @@protoc_insertion_point(builder_implements:google.firestore.v1.StructuredQuery.Order) + com.google.firestore.v1.StructuredQuery.OrderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.QueryProto - .internal_static_google_firestore_v1_StructuredQuery_FieldReference_descriptor; + .internal_static_google_firestore_v1_StructuredQuery_Order_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.firestore.v1.QueryProto - .internal_static_google_firestore_v1_StructuredQuery_FieldReference_fieldAccessorTable + .internal_static_google_firestore_v1_StructuredQuery_Order_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.firestore.v1.StructuredQuery.FieldReference.class, - com.google.firestore.v1.StructuredQuery.FieldReference.Builder.class); + com.google.firestore.v1.StructuredQuery.Order.class, + com.google.firestore.v1.StructuredQuery.Order.Builder.class); } - // Construct using com.google.firestore.v1.StructuredQuery.FieldReference.newBuilder() + // Construct using com.google.firestore.v1.StructuredQuery.Order.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -7701,7 +7483,13 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - fieldPath_ = ""; + if (fieldBuilder_ == null) { + field_ = null; + } else { + field_ = null; + fieldBuilder_ = null; + } + direction_ = 0; return this; } @@ -7709,17 +7497,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.firestore.v1.QueryProto - .internal_static_google_firestore_v1_StructuredQuery_FieldReference_descriptor; + .internal_static_google_firestore_v1_StructuredQuery_Order_descriptor; } @java.lang.Override - public com.google.firestore.v1.StructuredQuery.FieldReference getDefaultInstanceForType() { - return com.google.firestore.v1.StructuredQuery.FieldReference.getDefaultInstance(); + public com.google.firestore.v1.StructuredQuery.Order getDefaultInstanceForType() { + return com.google.firestore.v1.StructuredQuery.Order.getDefaultInstance(); } @java.lang.Override - public com.google.firestore.v1.StructuredQuery.FieldReference build() { - com.google.firestore.v1.StructuredQuery.FieldReference result = buildPartial(); + public com.google.firestore.v1.StructuredQuery.Order build() { + com.google.firestore.v1.StructuredQuery.Order result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -7727,10 +7515,15 @@ public com.google.firestore.v1.StructuredQuery.FieldReference build() { } @java.lang.Override - public com.google.firestore.v1.StructuredQuery.FieldReference buildPartial() { - com.google.firestore.v1.StructuredQuery.FieldReference result = - new com.google.firestore.v1.StructuredQuery.FieldReference(this); - result.fieldPath_ = fieldPath_; + public com.google.firestore.v1.StructuredQuery.Order buildPartial() { + com.google.firestore.v1.StructuredQuery.Order result = + new com.google.firestore.v1.StructuredQuery.Order(this); + if (fieldBuilder_ == null) { + result.field_ = field_; + } else { + result.field_ = fieldBuilder_.build(); + } + result.direction_ = direction_; onBuilt(); return result; } @@ -7772,20 +7565,22 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.firestore.v1.StructuredQuery.FieldReference) { - return mergeFrom((com.google.firestore.v1.StructuredQuery.FieldReference) other); + if (other instanceof com.google.firestore.v1.StructuredQuery.Order) { + return mergeFrom((com.google.firestore.v1.StructuredQuery.Order) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.firestore.v1.StructuredQuery.FieldReference other) { - if (other == com.google.firestore.v1.StructuredQuery.FieldReference.getDefaultInstance()) + public Builder mergeFrom(com.google.firestore.v1.StructuredQuery.Order other) { + if (other == com.google.firestore.v1.StructuredQuery.Order.getDefaultInstance()) return this; - if (!other.getFieldPath().isEmpty()) { - fieldPath_ = other.fieldPath_; - onChanged(); + if (other.hasField()) { + mergeField(other.getField()); + } + if (other.direction_ != 0) { + setDirectionValue(other.getDirectionValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -7802,12 +7597,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.firestore.v1.StructuredQuery.FieldReference parsedMessage = null; + com.google.firestore.v1.StructuredQuery.Order parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.firestore.v1.StructuredQuery.FieldReference) e.getUnfinishedMessage(); + parsedMessage = (com.google.firestore.v1.StructuredQuery.Order) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -7817,56 +7611,262 @@ public Builder mergeFrom( return this; } - private java.lang.Object fieldPath_ = ""; - /** string field_path = 2; */ - public java.lang.String getFieldPath() { - java.lang.Object ref = fieldPath_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fieldPath_ = s; - return s; - } else { - return (java.lang.String) ref; - } + private com.google.firestore.v1.StructuredQuery.FieldReference field_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.v1.StructuredQuery.FieldReference, + com.google.firestore.v1.StructuredQuery.FieldReference.Builder, + com.google.firestore.v1.StructuredQuery.FieldReferenceOrBuilder> + fieldBuilder_; + /** + * + * + *
+       * The field to order by.
+       * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + */ + public boolean hasField() { + return fieldBuilder_ != null || field_ != null; } - /** string field_path = 2; */ - public com.google.protobuf.ByteString getFieldPathBytes() { - java.lang.Object ref = fieldPath_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fieldPath_ = b; - return b; + /** + * + * + *
+       * The field to order by.
+       * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + */ + public com.google.firestore.v1.StructuredQuery.FieldReference getField() { + if (fieldBuilder_ == null) { + return field_ == null + ? com.google.firestore.v1.StructuredQuery.FieldReference.getDefaultInstance() + : field_; } else { - return (com.google.protobuf.ByteString) ref; + return fieldBuilder_.getMessage(); } } - /** string field_path = 2; */ - public Builder setFieldPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + /** + * + * + *
+       * The field to order by.
+       * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + */ + public Builder setField(com.google.firestore.v1.StructuredQuery.FieldReference value) { + if (fieldBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + field_ = value; + onChanged(); + } else { + fieldBuilder_.setMessage(value); } - fieldPath_ = value; - onChanged(); return this; } - /** string field_path = 2; */ - public Builder clearFieldPath() { + /** + * + * + *
+       * The field to order by.
+       * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + */ + public Builder setField( + com.google.firestore.v1.StructuredQuery.FieldReference.Builder builderForValue) { + if (fieldBuilder_ == null) { + field_ = builderForValue.build(); + onChanged(); + } else { + fieldBuilder_.setMessage(builderForValue.build()); + } - fieldPath_ = getDefaultInstance().getFieldPath(); + return this; + } + /** + * + * + *
+       * The field to order by.
+       * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + */ + public Builder mergeField(com.google.firestore.v1.StructuredQuery.FieldReference value) { + if (fieldBuilder_ == null) { + if (field_ != null) { + field_ = + com.google.firestore.v1.StructuredQuery.FieldReference.newBuilder(field_) + .mergeFrom(value) + .buildPartial(); + } else { + field_ = value; + } + onChanged(); + } else { + fieldBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * The field to order by.
+       * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + */ + public Builder clearField() { + if (fieldBuilder_ == null) { + field_ = null; + onChanged(); + } else { + field_ = null; + fieldBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * The field to order by.
+       * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + */ + public com.google.firestore.v1.StructuredQuery.FieldReference.Builder getFieldBuilder() { + + onChanged(); + return getFieldFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The field to order by.
+       * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + */ + public com.google.firestore.v1.StructuredQuery.FieldReferenceOrBuilder getFieldOrBuilder() { + if (fieldBuilder_ != null) { + return fieldBuilder_.getMessageOrBuilder(); + } else { + return field_ == null + ? com.google.firestore.v1.StructuredQuery.FieldReference.getDefaultInstance() + : field_; + } + } + /** + * + * + *
+       * The field to order by.
+       * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.v1.StructuredQuery.FieldReference, + com.google.firestore.v1.StructuredQuery.FieldReference.Builder, + com.google.firestore.v1.StructuredQuery.FieldReferenceOrBuilder> + getFieldFieldBuilder() { + if (fieldBuilder_ == null) { + fieldBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.v1.StructuredQuery.FieldReference, + com.google.firestore.v1.StructuredQuery.FieldReference.Builder, + com.google.firestore.v1.StructuredQuery.FieldReferenceOrBuilder>( + getField(), getParentForChildren(), isClean()); + field_ = null; + } + return fieldBuilder_; + } + + private int direction_ = 0; + /** + * + * + *
+       * The direction to order by. Defaults to `ASCENDING`.
+       * 
+ * + * .google.firestore.v1.StructuredQuery.Direction direction = 2; + */ + public int getDirectionValue() { + return direction_; + } + /** + * + * + *
+       * The direction to order by. Defaults to `ASCENDING`.
+       * 
+ * + * .google.firestore.v1.StructuredQuery.Direction direction = 2; + */ + public Builder setDirectionValue(int value) { + direction_ = value; onChanged(); return this; } - /** string field_path = 2; */ - public Builder setFieldPathBytes(com.google.protobuf.ByteString value) { + /** + * + * + *
+       * The direction to order by. Defaults to `ASCENDING`.
+       * 
+ * + * .google.firestore.v1.StructuredQuery.Direction direction = 2; + */ + public com.google.firestore.v1.StructuredQuery.Direction getDirection() { + @SuppressWarnings("deprecation") + com.google.firestore.v1.StructuredQuery.Direction result = + com.google.firestore.v1.StructuredQuery.Direction.valueOf(direction_); + return result == null + ? com.google.firestore.v1.StructuredQuery.Direction.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * The direction to order by. Defaults to `ASCENDING`.
+       * 
+ * + * .google.firestore.v1.StructuredQuery.Direction direction = 2; + */ + public Builder setDirection(com.google.firestore.v1.StructuredQuery.Direction value) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - fieldPath_ = value; + direction_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * The direction to order by. Defaults to `ASCENDING`.
+       * 
+ * + * .google.firestore.v1.StructuredQuery.Direction direction = 2; + */ + public Builder clearDirection() { + + direction_ = 0; onChanged(); return this; } @@ -7883,42 +7883,42 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.firestore.v1.StructuredQuery.FieldReference) + // @@protoc_insertion_point(builder_scope:google.firestore.v1.StructuredQuery.Order) } - // @@protoc_insertion_point(class_scope:google.firestore.v1.StructuredQuery.FieldReference) - private static final com.google.firestore.v1.StructuredQuery.FieldReference DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.firestore.v1.StructuredQuery.Order) + private static final com.google.firestore.v1.StructuredQuery.Order DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.firestore.v1.StructuredQuery.FieldReference(); + DEFAULT_INSTANCE = new com.google.firestore.v1.StructuredQuery.Order(); } - public static com.google.firestore.v1.StructuredQuery.FieldReference getDefaultInstance() { + public static com.google.firestore.v1.StructuredQuery.Order getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public FieldReference parsePartialFrom( + public Order parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new FieldReference(input, extensionRegistry); + return new Order(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.firestore.v1.StructuredQuery.FieldReference getDefaultInstanceForType() { + public com.google.firestore.v1.StructuredQuery.Order getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Target.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Target.java index 55e546a79509..167eaaa2aa9c 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Target.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Target.java @@ -2161,8 +2161,7 @@ public com.google.firestore.v1.Target.DocumentsTargetOrBuilder getDocumentsOrBui * * *
-   * A resume token from a prior
-   * [TargetChange][google.firestore.v1.TargetChange] for an identical target.
+   * A resume token from a prior [TargetChange][google.firestore.v1.TargetChange] for an identical target.
    * Using a resume token with a different target is unsupported and may fail.
    * 
* @@ -3161,8 +3160,7 @@ public com.google.firestore.v1.Target.DocumentsTargetOrBuilder getDocumentsOrBui * * *
-     * A resume token from a prior
-     * [TargetChange][google.firestore.v1.TargetChange] for an identical target.
+     * A resume token from a prior [TargetChange][google.firestore.v1.TargetChange] for an identical target.
      * Using a resume token with a different target is unsupported and may fail.
      * 
* @@ -3178,8 +3176,7 @@ public com.google.protobuf.ByteString getResumeToken() { * * *
-     * A resume token from a prior
-     * [TargetChange][google.firestore.v1.TargetChange] for an identical target.
+     * A resume token from a prior [TargetChange][google.firestore.v1.TargetChange] for an identical target.
      * Using a resume token with a different target is unsupported and may fail.
      * 
* @@ -3198,8 +3195,7 @@ public Builder setResumeToken(com.google.protobuf.ByteString value) { * * *
-     * A resume token from a prior
-     * [TargetChange][google.firestore.v1.TargetChange] for an identical target.
+     * A resume token from a prior [TargetChange][google.firestore.v1.TargetChange] for an identical target.
      * Using a resume token with a different target is unsupported and may fail.
      * 
* diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TargetOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TargetOrBuilder.java index 345406e0476c..806e74d3b237 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TargetOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TargetOrBuilder.java @@ -74,8 +74,7 @@ public interface TargetOrBuilder * * *
-   * A resume token from a prior
-   * [TargetChange][google.firestore.v1.TargetChange] for an identical target.
+   * A resume token from a prior [TargetChange][google.firestore.v1.TargetChange] for an identical target.
    * Using a resume token with a different target is unsupported and may fail.
    * 
* diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/UpdateDocumentRequest.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/UpdateDocumentRequest.java index 5cdac9bf3051..862f6be5cda2 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/UpdateDocumentRequest.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/UpdateDocumentRequest.java @@ -7,8 +7,7 @@ * * *
- * The request for
- * [Firestore.UpdateDocument][google.firestore.v1.Firestore.UpdateDocument].
+ * The request for [Firestore.UpdateDocument][google.firestore.v1.Firestore.UpdateDocument].
  * 
* * Protobuf type {@code google.firestore.v1.UpdateDocumentRequest} @@ -544,8 +543,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for
-   * [Firestore.UpdateDocument][google.firestore.v1.Firestore.UpdateDocument].
+   * The request for [Firestore.UpdateDocument][google.firestore.v1.Firestore.UpdateDocument].
    * 
* * Protobuf type {@code google.firestore.v1.UpdateDocumentRequest} diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteProto.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteProto.java index c4a49ca91042..31d826f0af69 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteProto.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteProto.java @@ -54,10 +54,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n\037google/firestore/v1/write.proto\022\023googl" - + "e.firestore.v1\032\034google/api/annotations.p" - + "roto\032 google/firestore/v1/common.proto\032\"" - + "google/firestore/v1/document.proto\032\037goog" - + "le/protobuf/timestamp.proto\"\211\002\n\005Write\022/\n" + + "e.firestore.v1\032 google/firestore/v1/comm" + + "on.proto\032\"google/firestore/v1/document.p" + + "roto\032\037google/protobuf/timestamp.proto\032\034g" + + "oogle/api/annotations.proto\"\211\002\n\005Write\022/\n" + "\006update\030\001 \001(\0132\035.google.firestore.v1.Docu" + "mentH\000\022\020\n\006delete\030\002 \001(\tH\000\022;\n\ttransform\030\006 " + "\001(\0132&.google.firestore.v1.DocumentTransf" @@ -109,10 +109,10 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.firestore.v1.CommonProto.getDescriptor(), com.google.firestore.v1.DocumentProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), }, assigner); internal_static_google_firestore_v1_Write_descriptor = getDescriptor().getMessageTypes().get(0); @@ -185,10 +185,10 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "TargetId", "Count", }); - com.google.api.AnnotationsProto.getDescriptor(); com.google.firestore.v1.CommonProto.getDescriptor(); com.google.firestore.v1.DocumentProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteRequest.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteRequest.java index 303b1acb6496..ae36b7b5edd3 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteRequest.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteRequest.java @@ -335,9 +335,9 @@ public com.google.firestore.v1.WriteOrBuilder getWritesOrBuilder(int index) { *
    * A stream token that was previously sent by the server.
    * The client should set this field to the token from the most recent
-   * [WriteResponse][google.firestore.v1.WriteResponse] it has received. This
-   * acknowledges that the client has received responses up to this token. After
-   * sending this token, earlier tokens may not be used anymore.
+   * [WriteResponse][google.firestore.v1.WriteResponse] it has received. This acknowledges that the client has
+   * received responses up to this token. After sending this token, earlier
+   * tokens may not be used anymore.
    * The server may close the stream if there are too many unacknowledged
    * responses.
    * Leave this field unset when creating a new stream. To resume a stream at
@@ -1531,9 +1531,9 @@ public java.util.List getWritesBuilderLis
      * 
      * A stream token that was previously sent by the server.
      * The client should set this field to the token from the most recent
-     * [WriteResponse][google.firestore.v1.WriteResponse] it has received. This
-     * acknowledges that the client has received responses up to this token. After
-     * sending this token, earlier tokens may not be used anymore.
+     * [WriteResponse][google.firestore.v1.WriteResponse] it has received. This acknowledges that the client has
+     * received responses up to this token. After sending this token, earlier
+     * tokens may not be used anymore.
      * The server may close the stream if there are too many unacknowledged
      * responses.
      * Leave this field unset when creating a new stream. To resume a stream at
@@ -1552,9 +1552,9 @@ public com.google.protobuf.ByteString getStreamToken() {
      * 
      * A stream token that was previously sent by the server.
      * The client should set this field to the token from the most recent
-     * [WriteResponse][google.firestore.v1.WriteResponse] it has received. This
-     * acknowledges that the client has received responses up to this token. After
-     * sending this token, earlier tokens may not be used anymore.
+     * [WriteResponse][google.firestore.v1.WriteResponse] it has received. This acknowledges that the client has
+     * received responses up to this token. After sending this token, earlier
+     * tokens may not be used anymore.
      * The server may close the stream if there are too many unacknowledged
      * responses.
      * Leave this field unset when creating a new stream. To resume a stream at
@@ -1579,9 +1579,9 @@ public Builder setStreamToken(com.google.protobuf.ByteString value) {
      * 
      * A stream token that was previously sent by the server.
      * The client should set this field to the token from the most recent
-     * [WriteResponse][google.firestore.v1.WriteResponse] it has received. This
-     * acknowledges that the client has received responses up to this token. After
-     * sending this token, earlier tokens may not be used anymore.
+     * [WriteResponse][google.firestore.v1.WriteResponse] it has received. This acknowledges that the client has
+     * received responses up to this token. After sending this token, earlier
+     * tokens may not be used anymore.
      * The server may close the stream if there are too many unacknowledged
      * responses.
      * Leave this field unset when creating a new stream. To resume a stream at
diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteRequestOrBuilder.java
index c084771a4c01..8532f2b02d94 100644
--- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteRequestOrBuilder.java
@@ -135,9 +135,9 @@ public interface WriteRequestOrBuilder
    * 
    * A stream token that was previously sent by the server.
    * The client should set this field to the token from the most recent
-   * [WriteResponse][google.firestore.v1.WriteResponse] it has received. This
-   * acknowledges that the client has received responses up to this token. After
-   * sending this token, earlier tokens may not be used anymore.
+   * [WriteResponse][google.firestore.v1.WriteResponse] it has received. This acknowledges that the client has
+   * received responses up to this token. After sending this token, earlier
+   * tokens may not be used anymore.
    * The server may close the stream if there are too many unacknowledged
    * responses.
    * Leave this field unset when creating a new stream. To resume a stream at
diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResult.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResult.java
index f862bf7abec7..3ce81de7ecdd 100644
--- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResult.java
+++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResult.java
@@ -167,9 +167,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    *
    *
    * 
-   * The results of applying each
-   * [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
-   * in the same order.
+   * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform], in the
+   * same order.
    * 
* * repeated .google.firestore.v1.Value transform_results = 2; @@ -181,9 +180,8 @@ public java.util.List getTransformResultsList() { * * *
-   * The results of applying each
-   * [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
-   * in the same order.
+   * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform], in the
+   * same order.
    * 
* * repeated .google.firestore.v1.Value transform_results = 2; @@ -196,9 +194,8 @@ public java.util.List getTransformResultsList() { * * *
-   * The results of applying each
-   * [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
-   * in the same order.
+   * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform], in the
+   * same order.
    * 
* * repeated .google.firestore.v1.Value transform_results = 2; @@ -210,9 +207,8 @@ public int getTransformResultsCount() { * * *
-   * The results of applying each
-   * [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
-   * in the same order.
+   * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform], in the
+   * same order.
    * 
* * repeated .google.firestore.v1.Value transform_results = 2; @@ -224,9 +220,8 @@ public com.google.firestore.v1.Value getTransformResults(int index) { * * *
-   * The results of applying each
-   * [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
-   * in the same order.
+   * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform], in the
+   * same order.
    * 
* * repeated .google.firestore.v1.Value transform_results = 2; @@ -848,9 +843,8 @@ private void ensureTransformResultsIsMutable() { * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1.Value transform_results = 2; @@ -866,9 +860,8 @@ public java.util.List getTransformResultsList() { * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1.Value transform_results = 2; @@ -884,9 +877,8 @@ public int getTransformResultsCount() { * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1.Value transform_results = 2; @@ -902,9 +894,8 @@ public com.google.firestore.v1.Value getTransformResults(int index) { * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1.Value transform_results = 2; @@ -926,9 +917,8 @@ public Builder setTransformResults(int index, com.google.firestore.v1.Value valu * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1.Value transform_results = 2; @@ -948,9 +938,8 @@ public Builder setTransformResults( * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1.Value transform_results = 2; @@ -972,9 +961,8 @@ public Builder addTransformResults(com.google.firestore.v1.Value value) { * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1.Value transform_results = 2; @@ -996,9 +984,8 @@ public Builder addTransformResults(int index, com.google.firestore.v1.Value valu * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1.Value transform_results = 2; @@ -1017,9 +1004,8 @@ public Builder addTransformResults(com.google.firestore.v1.Value.Builder builder * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1.Value transform_results = 2; @@ -1039,9 +1025,8 @@ public Builder addTransformResults( * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1.Value transform_results = 2; @@ -1061,9 +1046,8 @@ public Builder addAllTransformResults( * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1.Value transform_results = 2; @@ -1082,9 +1066,8 @@ public Builder clearTransformResults() { * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1.Value transform_results = 2; @@ -1103,9 +1086,8 @@ public Builder removeTransformResults(int index) { * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1.Value transform_results = 2; @@ -1117,9 +1099,8 @@ public com.google.firestore.v1.Value.Builder getTransformResultsBuilder(int inde * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1.Value transform_results = 2; @@ -1135,9 +1116,8 @@ public com.google.firestore.v1.ValueOrBuilder getTransformResultsOrBuilder(int i * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1.Value transform_results = 2; @@ -1154,9 +1134,8 @@ public com.google.firestore.v1.ValueOrBuilder getTransformResultsOrBuilder(int i * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1.Value transform_results = 2; @@ -1169,9 +1148,8 @@ public com.google.firestore.v1.Value.Builder addTransformResultsBuilder() { * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1.Value transform_results = 2; @@ -1184,9 +1162,8 @@ public com.google.firestore.v1.Value.Builder addTransformResultsBuilder(int inde * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1.Value transform_results = 2; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResultOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResultOrBuilder.java index 6c22704c6323..c204f2527e71 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResultOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResultOrBuilder.java @@ -52,9 +52,8 @@ public interface WriteResultOrBuilder * * *
-   * The results of applying each
-   * [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
-   * in the same order.
+   * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform], in the
+   * same order.
    * 
* * repeated .google.firestore.v1.Value transform_results = 2; @@ -64,9 +63,8 @@ public interface WriteResultOrBuilder * * *
-   * The results of applying each
-   * [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
-   * in the same order.
+   * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform], in the
+   * same order.
    * 
* * repeated .google.firestore.v1.Value transform_results = 2; @@ -76,9 +74,8 @@ public interface WriteResultOrBuilder * * *
-   * The results of applying each
-   * [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
-   * in the same order.
+   * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform], in the
+   * same order.
    * 
* * repeated .google.firestore.v1.Value transform_results = 2; @@ -88,9 +85,8 @@ public interface WriteResultOrBuilder * * *
-   * The results of applying each
-   * [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
-   * in the same order.
+   * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform], in the
+   * same order.
    * 
* * repeated .google.firestore.v1.Value transform_results = 2; @@ -101,9 +97,8 @@ public interface WriteResultOrBuilder * * *
-   * The results of applying each
-   * [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
-   * in the same order.
+   * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform], in the
+   * same order.
    * 
* * repeated .google.firestore.v1.Value transform_results = 2; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/common.proto b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/common.proto index 9a0ae7deae84..59c62997ad0d 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/common.proto +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/common.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// 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. @@ -17,8 +17,8 @@ syntax = "proto3"; package google.firestore.v1; -import "google/api/annotations.proto"; import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.Firestore.V1"; option go_package = "google.golang.org/genproto/googleapis/firestore/v1;firestore"; @@ -28,16 +28,15 @@ option java_package = "com.google.firestore.v1"; option objc_class_prefix = "GCFS"; option php_namespace = "Google\\Cloud\\Firestore\\V1"; + // A set of field paths on a document. // Used to restrict a get or update operation on a document to a subset of its // fields. // This is different from standard field masks, as this is always scoped to a -// [Document][google.firestore.v1.Document], and takes in account the dynamic -// nature of [Value][google.firestore.v1.Value]. +// [Document][google.firestore.v1.Document], and takes in account the dynamic nature of [Value][google.firestore.v1.Value]. message DocumentMask { - // The list of field paths in the mask. See - // [Document.fields][google.firestore.v1.Document.fields] for a field path - // syntax reference. + // The list of field paths in the mask. See [Document.fields][google.firestore.v1.Document.fields] for a field + // path syntax reference. repeated string field_paths = 1; } diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/document.proto b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/document.proto index 20e30651c00f..d3d9c11c79cf 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/document.proto +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/document.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// 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. @@ -17,10 +17,10 @@ syntax = "proto3"; package google.firestore.v1; -import "google/api/annotations.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; import "google/type/latlng.proto"; +import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.Firestore.V1"; option go_package = "google.golang.org/genproto/googleapis/firestore/v1;firestore"; @@ -30,6 +30,7 @@ option java_package = "com.google.firestore.v1"; option objc_class_prefix = "GCFS"; option php_namespace = "Google\\Cloud\\Firestore\\V1"; + // A Firestore document. // // Must not exceed 1 MiB - 4 bytes. diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/firestore.proto b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/firestore.proto index 49d22a449049..5dc9667e2ca2 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/firestore.proto +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/firestore.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// 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. @@ -33,7 +33,6 @@ option java_outer_classname = "FirestoreProto"; option java_package = "com.google.firestore.v1"; option objc_class_prefix = "GCFS"; option php_namespace = "Google\\Cloud\\Firestore\\V1"; - // Specification of the Firestore API. // The Cloud Firestore service. @@ -94,8 +93,7 @@ service Firestore { // // Documents returned by this method are not guaranteed to be returned in the // same order that they were requested. - rpc BatchGetDocuments(BatchGetDocumentsRequest) - returns (stream BatchGetDocumentsResponse) { + rpc BatchGetDocuments(BatchGetDocumentsRequest) returns (stream BatchGetDocumentsResponse) { option (google.api.http) = { post: "/v1/{database=projects/*/databases/*}/documents:batchGet" body: "*" @@ -103,8 +101,7 @@ service Firestore { } // Starts a new transaction. - rpc BeginTransaction(BeginTransactionRequest) - returns (BeginTransactionResponse) { + rpc BeginTransaction(BeginTransactionRequest) returns (BeginTransactionResponse) { option (google.api.http) = { post: "/v1/{database=projects/*/databases/*}/documents:beginTransaction" body: "*" @@ -156,8 +153,7 @@ service Firestore { } // Lists all the collection IDs underneath a document. - rpc ListCollectionIds(ListCollectionIdsRequest) - returns (ListCollectionIdsResponse) { + rpc ListCollectionIds(ListCollectionIdsRequest) returns (ListCollectionIdsResponse) { option (google.api.http) = { post: "/v1/{parent=projects/*/databases/*/documents}:listCollectionIds" body: "*" @@ -169,8 +165,7 @@ service Firestore { } } -// The request for -// [Firestore.GetDocument][google.firestore.v1.Firestore.GetDocument]. +// The request for [Firestore.GetDocument][google.firestore.v1.Firestore.GetDocument]. message GetDocumentRequest { // The resource name of the Document to get. In the format: // `projects/{project_id}/databases/{database_id}/documents/{document_path}`. @@ -194,8 +189,7 @@ message GetDocumentRequest { } } -// The request for -// [Firestore.ListDocuments][google.firestore.v1.Firestore.ListDocuments]. +// The request for [Firestore.ListDocuments][google.firestore.v1.Firestore.ListDocuments]. message ListDocumentsRequest { // The parent resource name. In the format: // `projects/{project_id}/databases/{database_id}/documents` or @@ -237,17 +231,15 @@ message ListDocumentsRequest { // If the list should show missing documents. A missing document is a // document that does not exist but has sub-documents. These documents will - // be returned with a key but will not have fields, - // [Document.create_time][google.firestore.v1.Document.create_time], or - // [Document.update_time][google.firestore.v1.Document.update_time] set. + // be returned with a key but will not have fields, [Document.create_time][google.firestore.v1.Document.create_time], + // or [Document.update_time][google.firestore.v1.Document.update_time] set. // // Requests with `show_missing` may not specify `where` or // `order_by`. bool show_missing = 12; } -// The response for -// [Firestore.ListDocuments][google.firestore.v1.Firestore.ListDocuments]. +// The response for [Firestore.ListDocuments][google.firestore.v1.Firestore.ListDocuments]. message ListDocumentsResponse { // The Documents found. repeated Document documents = 1; @@ -256,8 +248,7 @@ message ListDocumentsResponse { string next_page_token = 2; } -// The request for -// [Firestore.CreateDocument][google.firestore.v1.Firestore.CreateDocument]. +// The request for [Firestore.CreateDocument][google.firestore.v1.Firestore.CreateDocument]. message CreateDocumentRequest { // The parent resource. For example: // `projects/{project_id}/databases/{database_id}/documents` or @@ -282,8 +273,7 @@ message CreateDocumentRequest { DocumentMask mask = 5; } -// The request for -// [Firestore.UpdateDocument][google.firestore.v1.Firestore.UpdateDocument]. +// The request for [Firestore.UpdateDocument][google.firestore.v1.Firestore.UpdateDocument]. message UpdateDocumentRequest { // The updated document. // Creates the document if it does not already exist. @@ -309,8 +299,7 @@ message UpdateDocumentRequest { Precondition current_document = 4; } -// The request for -// [Firestore.DeleteDocument][google.firestore.v1.Firestore.DeleteDocument]. +// The request for [Firestore.DeleteDocument][google.firestore.v1.Firestore.DeleteDocument]. message DeleteDocumentRequest { // The resource name of the Document to delete. In the format: // `projects/{project_id}/databases/{database_id}/documents/{document_path}`. @@ -321,8 +310,7 @@ message DeleteDocumentRequest { Precondition current_document = 2; } -// The request for -// [Firestore.BatchGetDocuments][google.firestore.v1.Firestore.BatchGetDocuments]. +// The request for [Firestore.BatchGetDocuments][google.firestore.v1.Firestore.BatchGetDocuments]. message BatchGetDocumentsRequest { // The database name. In the format: // `projects/{project_id}/databases/{database_id}`. @@ -358,8 +346,7 @@ message BatchGetDocumentsRequest { } } -// The streamed response for -// [Firestore.BatchGetDocuments][google.firestore.v1.Firestore.BatchGetDocuments]. +// The streamed response for [Firestore.BatchGetDocuments][google.firestore.v1.Firestore.BatchGetDocuments]. message BatchGetDocumentsResponse { // A single result. // This can be empty if the server is just returning a transaction. @@ -374,8 +361,7 @@ message BatchGetDocumentsResponse { // The transaction that was started as part of this request. // Will only be set in the first response, and only if - // [BatchGetDocumentsRequest.new_transaction][google.firestore.v1.BatchGetDocumentsRequest.new_transaction] - // was set in the request. + // [BatchGetDocumentsRequest.new_transaction][google.firestore.v1.BatchGetDocumentsRequest.new_transaction] was set in the request. bytes transaction = 3; // The time at which the document was read. @@ -385,8 +371,7 @@ message BatchGetDocumentsResponse { google.protobuf.Timestamp read_time = 4; } -// The request for -// [Firestore.BeginTransaction][google.firestore.v1.Firestore.BeginTransaction]. +// The request for [Firestore.BeginTransaction][google.firestore.v1.Firestore.BeginTransaction]. message BeginTransactionRequest { // The database name. In the format: // `projects/{project_id}/databases/{database_id}`. @@ -397,8 +382,7 @@ message BeginTransactionRequest { TransactionOptions options = 2; } -// The response for -// [Firestore.BeginTransaction][google.firestore.v1.Firestore.BeginTransaction]. +// The response for [Firestore.BeginTransaction][google.firestore.v1.Firestore.BeginTransaction]. message BeginTransactionResponse { // The transaction that was started. bytes transaction = 1; @@ -475,14 +459,12 @@ message RunQueryRequest { } } -// The response for -// [Firestore.RunQuery][google.firestore.v1.Firestore.RunQuery]. +// The response for [Firestore.RunQuery][google.firestore.v1.Firestore.RunQuery]. message RunQueryResponse { // The transaction that was started as part of this request. // Can only be set in the first response, and only if - // [RunQueryRequest.new_transaction][google.firestore.v1.RunQueryRequest.new_transaction] - // was set in the request. If set, no other fields will be set in this - // response. + // [RunQueryRequest.new_transaction][google.firestore.v1.RunQueryRequest.new_transaction] was set in the request. + // If set, no other fields will be set in this response. bytes transaction = 2; // A query result. @@ -535,9 +517,9 @@ message WriteRequest { // A stream token that was previously sent by the server. // // The client should set this field to the token from the most recent - // [WriteResponse][google.firestore.v1.WriteResponse] it has received. This - // acknowledges that the client has received responses up to this token. After - // sending this token, earlier tokens may not be used anymore. + // [WriteResponse][google.firestore.v1.WriteResponse] it has received. This acknowledges that the client has + // received responses up to this token. After sending this token, earlier + // tokens may not be used anymore. // // The server may close the stream if there are too many unacknowledged // responses. @@ -606,8 +588,8 @@ message ListenResponse { // A [Document][google.firestore.v1.Document] has been deleted. DocumentDelete document_delete = 4; - // A [Document][google.firestore.v1.Document] has been removed from a target - // (because it is no longer relevant to that target). + // A [Document][google.firestore.v1.Document] has been removed from a target (because it is no longer + // relevant to that target). DocumentRemove document_remove = 6; // A filter to apply to the set of documents previously returned for the @@ -661,8 +643,7 @@ message Target { // If not specified, all matching Documents are returned before any // subsequent changes. oneof resume_type { - // A resume token from a prior - // [TargetChange][google.firestore.v1.TargetChange] for an identical target. + // A resume token from a prior [TargetChange][google.firestore.v1.TargetChange] for an identical target. // // Using a resume token with a different target is unsupported and may fail. bytes resume_token = 4; @@ -754,8 +735,7 @@ message TargetChange { google.protobuf.Timestamp read_time = 6; } -// The request for -// [Firestore.ListCollectionIds][google.firestore.v1.Firestore.ListCollectionIds]. +// The request for [Firestore.ListCollectionIds][google.firestore.v1.Firestore.ListCollectionIds]. message ListCollectionIdsRequest { // The parent document. In the format: // `projects/{project_id}/databases/{database_id}/documents/{document_path}`. @@ -771,8 +751,7 @@ message ListCollectionIdsRequest { string page_token = 3; } -// The response from -// [Firestore.ListCollectionIds][google.firestore.v1.Firestore.ListCollectionIds]. +// The response from [Firestore.ListCollectionIds][google.firestore.v1.Firestore.ListCollectionIds]. message ListCollectionIdsResponse { // The collection ids. repeated string collection_ids = 1; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/query.proto b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/query.proto index a2b4c10fcb82..48684c06079d 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/query.proto +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/query.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// 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. @@ -17,9 +17,9 @@ syntax = "proto3"; package google.firestore.v1; -import "google/api/annotations.proto"; import "google/firestore/v1/document.proto"; import "google/protobuf/wrappers.proto"; +import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.Firestore.V1"; option go_package = "google.golang.org/genproto/googleapis/firestore/v1;firestore"; @@ -29,6 +29,7 @@ option java_package = "com.google.firestore.v1"; option objc_class_prefix = "GCFS"; option php_namespace = "Google\\Cloud\\Firestore\\V1"; + // A Firestore query. message StructuredQuery { // A selection of a collection, such as `messages as m1`. @@ -138,6 +139,11 @@ message StructuredQuery { } } + // A reference to a field, such as `max(messages.time) as max_time`. + message FieldReference { + string field_path = 2; + } + // An order on a field. message Order { // The field to order by. @@ -147,11 +153,6 @@ message StructuredQuery { Direction direction = 2; } - // A reference to a field, such as `max(messages.time) as max_time`. - message FieldReference { - string field_path = 2; - } - // The projection of document's fields to return. message Projection { // The fields to return. 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 3cd879a18ea8..4ab5d833e3b9 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 @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// 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. @@ -17,10 +17,10 @@ syntax = "proto3"; package google.firestore.v1; -import "google/api/annotations.proto"; import "google/firestore/v1/common.proto"; import "google/firestore/v1/document.proto"; import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.Firestore.V1"; option go_package = "google.golang.org/genproto/googleapis/firestore/v1;firestore"; @@ -30,6 +30,7 @@ option java_package = "com.google.firestore.v1"; option objc_class_prefix = "GCFS"; option php_namespace = "Google\\Cloud\\Firestore\\V1"; + // A write on a document. message Write { // The operation to execute. @@ -80,9 +81,8 @@ message DocumentTransform { REQUEST_TIME = 1; } - // The path of the field. See - // [Document.fields][google.firestore.v1.Document.fields] for the field path - // syntax reference. + // The path of the field. See [Document.fields][google.firestore.v1.Document.fields] for the field path syntax + // reference. string field_path = 1; // The transformation to apply on the field. @@ -176,20 +176,18 @@ message WriteResult { // previous update_time. google.protobuf.Timestamp update_time = 1; - // The results of applying each - // [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform], - // in the same order. + // The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform], in the + // same order. repeated Value transform_results = 2; } // A [Document][google.firestore.v1.Document] has changed. // -// May be the result of multiple [writes][google.firestore.v1.Write], including -// deletes, that ultimately resulted in a new value for the -// [Document][google.firestore.v1.Document]. +// May be the result of multiple [writes][google.firestore.v1.Write], including deletes, that +// ultimately resulted in a new value for the [Document][google.firestore.v1.Document]. // -// Multiple [DocumentChange][google.firestore.v1.DocumentChange] messages may be -// returned for the same logical change, if multiple targets are affected. +// Multiple [DocumentChange][google.firestore.v1.DocumentChange] messages may be returned for the same logical +// change, if multiple targets are affected. message DocumentChange { // The new state of the [Document][google.firestore.v1.Document]. // @@ -205,15 +203,13 @@ message DocumentChange { // A [Document][google.firestore.v1.Document] has been deleted. // -// May be the result of multiple [writes][google.firestore.v1.Write], including -// updates, the last of which deleted the -// [Document][google.firestore.v1.Document]. +// May be the result of multiple [writes][google.firestore.v1.Write], including updates, the +// last of which deleted the [Document][google.firestore.v1.Document]. // -// Multiple [DocumentDelete][google.firestore.v1.DocumentDelete] messages may be -// returned for the same logical delete, if multiple targets are affected. +// Multiple [DocumentDelete][google.firestore.v1.DocumentDelete] messages may be returned for the same logical +// delete, if multiple targets are affected. message DocumentDelete { - // The resource name of the [Document][google.firestore.v1.Document] that was - // deleted. + // The resource name of the [Document][google.firestore.v1.Document] that was deleted. string document = 1; // A set of target IDs for targets that previously matched this entity. @@ -225,19 +221,16 @@ message DocumentDelete { google.protobuf.Timestamp read_time = 4; } -// A [Document][google.firestore.v1.Document] has been removed from the view of -// the targets. +// A [Document][google.firestore.v1.Document] has been removed from the view of the targets. // // Sent if the document is no longer relevant to a target and is out of view. // Can be sent instead of a DocumentDelete or a DocumentChange if the server // can not send the new value of the document. // -// Multiple [DocumentRemove][google.firestore.v1.DocumentRemove] messages may be -// returned for the same logical write or delete, if multiple targets are -// affected. +// Multiple [DocumentRemove][google.firestore.v1.DocumentRemove] messages may be returned for the same logical +// write or delete, if multiple targets are affected. message DocumentRemove { - // The resource name of the [Document][google.firestore.v1.Document] that has - // gone out of view. + // The resource name of the [Document][google.firestore.v1.Document] that has gone out of view. string document = 1; // A set of target IDs for targets that previously matched this document. @@ -254,8 +247,7 @@ message ExistenceFilter { // The target ID to which this filter applies. int32 target_id = 1; - // The total count of documents that match - // [target_id][google.firestore.v1.ExistenceFilter.target_id]. + // The total count of documents that match [target_id][google.firestore.v1.ExistenceFilter.target_id]. // // If different from the count of documents in the client that match, the // client must manually determine which documents no longer match the target. diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/BatchGetDocumentsRequest.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/BatchGetDocumentsRequest.java index b6ddb82072d7..26c9ea6d78d4 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/BatchGetDocumentsRequest.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/BatchGetDocumentsRequest.java @@ -7,8 +7,7 @@ * * *
- * The request for
- * [Firestore.BatchGetDocuments][google.firestore.v1beta1.Firestore.BatchGetDocuments].
+ * The request for [Firestore.BatchGetDocuments][google.firestore.v1beta1.Firestore.BatchGetDocuments].
  * 
* * Protobuf type {@code google.firestore.v1beta1.BatchGetDocumentsRequest} @@ -727,8 +726,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for
-   * [Firestore.BatchGetDocuments][google.firestore.v1beta1.Firestore.BatchGetDocuments].
+   * The request for [Firestore.BatchGetDocuments][google.firestore.v1beta1.Firestore.BatchGetDocuments].
    * 
* * Protobuf type {@code google.firestore.v1beta1.BatchGetDocumentsRequest} diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/BatchGetDocumentsResponse.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/BatchGetDocumentsResponse.java index d5a964c8fd4f..f8e358aef158 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/BatchGetDocumentsResponse.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/BatchGetDocumentsResponse.java @@ -7,8 +7,7 @@ * * *
- * The streamed response for
- * [Firestore.BatchGetDocuments][google.firestore.v1beta1.Firestore.BatchGetDocuments].
+ * The streamed response for [Firestore.BatchGetDocuments][google.firestore.v1beta1.Firestore.BatchGetDocuments].
  * 
* * Protobuf type {@code google.firestore.v1beta1.BatchGetDocumentsResponse} @@ -274,8 +273,7 @@ public com.google.protobuf.ByteString getMissingBytes() { *
    * The transaction that was started as part of this request.
    * Will only be set in the first response, and only if
-   * [BatchGetDocumentsRequest.new_transaction][google.firestore.v1beta1.BatchGetDocumentsRequest.new_transaction]
-   * was set in the request.
+   * [BatchGetDocumentsRequest.new_transaction][google.firestore.v1beta1.BatchGetDocumentsRequest.new_transaction] was set in the request.
    * 
* * bytes transaction = 3; @@ -549,8 +547,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The streamed response for
-   * [Firestore.BatchGetDocuments][google.firestore.v1beta1.Firestore.BatchGetDocuments].
+   * The streamed response for [Firestore.BatchGetDocuments][google.firestore.v1beta1.Firestore.BatchGetDocuments].
    * 
* * Protobuf type {@code google.firestore.v1beta1.BatchGetDocumentsResponse} @@ -1079,8 +1076,7 @@ public Builder setMissingBytes(com.google.protobuf.ByteString value) { *
      * The transaction that was started as part of this request.
      * Will only be set in the first response, and only if
-     * [BatchGetDocumentsRequest.new_transaction][google.firestore.v1beta1.BatchGetDocumentsRequest.new_transaction]
-     * was set in the request.
+     * [BatchGetDocumentsRequest.new_transaction][google.firestore.v1beta1.BatchGetDocumentsRequest.new_transaction] was set in the request.
      * 
* * bytes transaction = 3; @@ -1094,8 +1090,7 @@ public com.google.protobuf.ByteString getTransaction() { *
      * The transaction that was started as part of this request.
      * Will only be set in the first response, and only if
-     * [BatchGetDocumentsRequest.new_transaction][google.firestore.v1beta1.BatchGetDocumentsRequest.new_transaction]
-     * was set in the request.
+     * [BatchGetDocumentsRequest.new_transaction][google.firestore.v1beta1.BatchGetDocumentsRequest.new_transaction] was set in the request.
      * 
* * bytes transaction = 3; @@ -1115,8 +1110,7 @@ public Builder setTransaction(com.google.protobuf.ByteString value) { *
      * The transaction that was started as part of this request.
      * Will only be set in the first response, and only if
-     * [BatchGetDocumentsRequest.new_transaction][google.firestore.v1beta1.BatchGetDocumentsRequest.new_transaction]
-     * was set in the request.
+     * [BatchGetDocumentsRequest.new_transaction][google.firestore.v1beta1.BatchGetDocumentsRequest.new_transaction] was set in the request.
      * 
* * bytes transaction = 3; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/BatchGetDocumentsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/BatchGetDocumentsResponseOrBuilder.java index ad8cc09e83fe..28038e7c8e33 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/BatchGetDocumentsResponseOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/BatchGetDocumentsResponseOrBuilder.java @@ -68,8 +68,7 @@ public interface BatchGetDocumentsResponseOrBuilder *
    * The transaction that was started as part of this request.
    * Will only be set in the first response, and only if
-   * [BatchGetDocumentsRequest.new_transaction][google.firestore.v1beta1.BatchGetDocumentsRequest.new_transaction]
-   * was set in the request.
+   * [BatchGetDocumentsRequest.new_transaction][google.firestore.v1beta1.BatchGetDocumentsRequest.new_transaction] was set in the request.
    * 
* * bytes transaction = 3; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/BeginTransactionRequest.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/BeginTransactionRequest.java index c1359e569345..447eaa63932b 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/BeginTransactionRequest.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/BeginTransactionRequest.java @@ -7,8 +7,7 @@ * * *
- * The request for
- * [Firestore.BeginTransaction][google.firestore.v1beta1.Firestore.BeginTransaction].
+ * The request for [Firestore.BeginTransaction][google.firestore.v1beta1.Firestore.BeginTransaction].
  * 
* * Protobuf type {@code google.firestore.v1beta1.BeginTransactionRequest} @@ -375,8 +374,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for
-   * [Firestore.BeginTransaction][google.firestore.v1beta1.Firestore.BeginTransaction].
+   * The request for [Firestore.BeginTransaction][google.firestore.v1beta1.Firestore.BeginTransaction].
    * 
* * Protobuf type {@code google.firestore.v1beta1.BeginTransactionRequest} diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/BeginTransactionResponse.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/BeginTransactionResponse.java index 2a80a8411751..d72489e45ea9 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/BeginTransactionResponse.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/BeginTransactionResponse.java @@ -7,8 +7,7 @@ * * *
- * The response for
- * [Firestore.BeginTransaction][google.firestore.v1beta1.Firestore.BeginTransaction].
+ * The response for [Firestore.BeginTransaction][google.firestore.v1beta1.Firestore.BeginTransaction].
  * 
* * Protobuf type {@code google.firestore.v1beta1.BeginTransactionResponse} @@ -270,8 +269,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response for
-   * [Firestore.BeginTransaction][google.firestore.v1beta1.Firestore.BeginTransaction].
+   * The response for [Firestore.BeginTransaction][google.firestore.v1beta1.Firestore.BeginTransaction].
    * 
* * Protobuf type {@code google.firestore.v1beta1.BeginTransactionResponse} diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/CommitRequest.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/CommitRequest.java index 5c70de79859c..223657b179a0 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/CommitRequest.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/CommitRequest.java @@ -7,8 +7,7 @@ * * *
- * The request for
- * [Firestore.Commit][google.firestore.v1beta1.Firestore.Commit].
+ * The request for [Firestore.Commit][google.firestore.v1beta1.Firestore.Commit].
  * 
* * Protobuf type {@code google.firestore.v1beta1.CommitRequest} @@ -427,8 +426,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for
-   * [Firestore.Commit][google.firestore.v1beta1.Firestore.Commit].
+   * The request for [Firestore.Commit][google.firestore.v1beta1.Firestore.Commit].
    * 
* * Protobuf type {@code google.firestore.v1beta1.CommitRequest} diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/CommitResponse.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/CommitResponse.java index dde77e6eae11..6f4e4f675047 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/CommitResponse.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/CommitResponse.java @@ -7,8 +7,7 @@ * * *
- * The response for
- * [Firestore.Commit][google.firestore.v1beta1.Firestore.Commit].
+ * The response for [Firestore.Commit][google.firestore.v1beta1.Firestore.Commit].
  * 
* * Protobuf type {@code google.firestore.v1beta1.CommitResponse} @@ -408,8 +407,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response for
-   * [Firestore.Commit][google.firestore.v1beta1.Firestore.Commit].
+   * The response for [Firestore.Commit][google.firestore.v1beta1.Firestore.Commit].
    * 
* * Protobuf type {@code google.firestore.v1beta1.CommitResponse} diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/CommonProto.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/CommonProto.java index d1f0dd0871ed..f547352d658f 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/CommonProto.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/CommonProto.java @@ -42,9 +42,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n%google/firestore/v1beta1/common.proto\022" - + "\030google.firestore.v1beta1\032\034google/api/an" - + "notations.proto\032\037google/protobuf/timesta" - + "mp.proto\"#\n\014DocumentMask\022\023\n\013field_paths\030" + + "\030google.firestore.v1beta1\032\037google/protob" + + "uf/timestamp.proto\032\034google/api/annotatio" + + "ns.proto\"#\n\014DocumentMask\022\023\n\013field_paths\030" + "\001 \003(\t\"e\n\014Precondition\022\020\n\006exists\030\001 \001(\010H\000\022" + "1\n\013update_time\030\002 \001(\0132\032.google.protobuf.T" + "imestampH\000B\020\n\016condition_type\"\263\002\n\022Transac" @@ -73,8 +73,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), }, assigner); internal_static_google_firestore_v1beta1_DocumentMask_descriptor = @@ -121,8 +121,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "ReadTime", "ConsistencySelector", }); - com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/CreateDocumentRequest.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/CreateDocumentRequest.java index 49770cb58bd9..63a7314008e3 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/CreateDocumentRequest.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/CreateDocumentRequest.java @@ -7,8 +7,7 @@ * * *
- * The request for
- * [Firestore.CreateDocument][google.firestore.v1beta1.Firestore.CreateDocument].
+ * The request for [Firestore.CreateDocument][google.firestore.v1beta1.Firestore.CreateDocument].
  * 
* * Protobuf type {@code google.firestore.v1beta1.CreateDocumentRequest} @@ -571,8 +570,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for
-   * [Firestore.CreateDocument][google.firestore.v1beta1.Firestore.CreateDocument].
+   * The request for [Firestore.CreateDocument][google.firestore.v1beta1.Firestore.CreateDocument].
    * 
* * Protobuf type {@code google.firestore.v1beta1.CreateDocumentRequest} diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DeleteDocumentRequest.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DeleteDocumentRequest.java index 8c3088aebd94..22d4f63166c9 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DeleteDocumentRequest.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DeleteDocumentRequest.java @@ -7,8 +7,7 @@ * * *
- * The request for
- * [Firestore.DeleteDocument][google.firestore.v1beta1.Firestore.DeleteDocument].
+ * The request for [Firestore.DeleteDocument][google.firestore.v1beta1.Firestore.DeleteDocument].
  * 
* * Protobuf type {@code google.firestore.v1beta1.DeleteDocumentRequest} @@ -375,8 +374,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for
-   * [Firestore.DeleteDocument][google.firestore.v1beta1.Firestore.DeleteDocument].
+   * The request for [Firestore.DeleteDocument][google.firestore.v1beta1.Firestore.DeleteDocument].
    * 
* * Protobuf type {@code google.firestore.v1beta1.DeleteDocumentRequest} diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentChange.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentChange.java index 1af0bc22c598..9a3ed07ab98b 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentChange.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentChange.java @@ -8,12 +8,10 @@ * *
  * A [Document][google.firestore.v1beta1.Document] has changed.
- * May be the result of multiple [writes][google.firestore.v1beta1.Write],
- * including deletes, that ultimately resulted in a new value for the
- * [Document][google.firestore.v1beta1.Document].
- * Multiple [DocumentChange][google.firestore.v1beta1.DocumentChange] messages
- * may be returned for the same logical change, if multiple targets are
- * affected.
+ * May be the result of multiple [writes][google.firestore.v1beta1.Write], including deletes, that
+ * ultimately resulted in a new value for the [Document][google.firestore.v1beta1.Document].
+ * Multiple [DocumentChange][google.firestore.v1beta1.DocumentChange] messages may be returned for the same logical
+ * change, if multiple targets are affected.
  * 
* * Protobuf type {@code google.firestore.v1beta1.DocumentChange} @@ -508,12 +506,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * A [Document][google.firestore.v1beta1.Document] has changed.
-   * May be the result of multiple [writes][google.firestore.v1beta1.Write],
-   * including deletes, that ultimately resulted in a new value for the
-   * [Document][google.firestore.v1beta1.Document].
-   * Multiple [DocumentChange][google.firestore.v1beta1.DocumentChange] messages
-   * may be returned for the same logical change, if multiple targets are
-   * affected.
+   * May be the result of multiple [writes][google.firestore.v1beta1.Write], including deletes, that
+   * ultimately resulted in a new value for the [Document][google.firestore.v1beta1.Document].
+   * Multiple [DocumentChange][google.firestore.v1beta1.DocumentChange] messages may be returned for the same logical
+   * change, if multiple targets are affected.
    * 
* * Protobuf type {@code google.firestore.v1beta1.DocumentChange} diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentDelete.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentDelete.java index f86e05d63eb8..1fa5c97df7c7 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentDelete.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentDelete.java @@ -8,12 +8,10 @@ * *
  * A [Document][google.firestore.v1beta1.Document] has been deleted.
- * May be the result of multiple [writes][google.firestore.v1beta1.Write],
- * including updates, the last of which deleted the
- * [Document][google.firestore.v1beta1.Document].
- * Multiple [DocumentDelete][google.firestore.v1beta1.DocumentDelete] messages
- * may be returned for the same logical delete, if multiple targets are
- * affected.
+ * May be the result of multiple [writes][google.firestore.v1beta1.Write], including updates, the
+ * last of which deleted the [Document][google.firestore.v1beta1.Document].
+ * Multiple [DocumentDelete][google.firestore.v1beta1.DocumentDelete] messages may be returned for the same logical
+ * delete, if multiple targets are affected.
  * 
* * Protobuf type {@code google.firestore.v1beta1.DocumentDelete} @@ -147,8 +145,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The resource name of the [Document][google.firestore.v1beta1.Document] that
-   * was deleted.
+   * The resource name of the [Document][google.firestore.v1beta1.Document] that was deleted.
    * 
* * string document = 1; @@ -168,8 +165,7 @@ public java.lang.String getDocument() { * * *
-   * The resource name of the [Document][google.firestore.v1beta1.Document] that
-   * was deleted.
+   * The resource name of the [Document][google.firestore.v1beta1.Document] that was deleted.
    * 
* * string document = 1; @@ -474,12 +470,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * A [Document][google.firestore.v1beta1.Document] has been deleted.
-   * May be the result of multiple [writes][google.firestore.v1beta1.Write],
-   * including updates, the last of which deleted the
-   * [Document][google.firestore.v1beta1.Document].
-   * Multiple [DocumentDelete][google.firestore.v1beta1.DocumentDelete] messages
-   * may be returned for the same logical delete, if multiple targets are
-   * affected.
+   * May be the result of multiple [writes][google.firestore.v1beta1.Write], including updates, the
+   * last of which deleted the [Document][google.firestore.v1beta1.Document].
+   * Multiple [DocumentDelete][google.firestore.v1beta1.DocumentDelete] messages may be returned for the same logical
+   * delete, if multiple targets are affected.
    * 
* * Protobuf type {@code google.firestore.v1beta1.DocumentDelete} @@ -673,8 +667,7 @@ public Builder mergeFrom( * * *
-     * The resource name of the [Document][google.firestore.v1beta1.Document] that
-     * was deleted.
+     * The resource name of the [Document][google.firestore.v1beta1.Document] that was deleted.
      * 
* * string document = 1; @@ -694,8 +687,7 @@ public java.lang.String getDocument() { * * *
-     * The resource name of the [Document][google.firestore.v1beta1.Document] that
-     * was deleted.
+     * The resource name of the [Document][google.firestore.v1beta1.Document] that was deleted.
      * 
* * string document = 1; @@ -715,8 +707,7 @@ public com.google.protobuf.ByteString getDocumentBytes() { * * *
-     * The resource name of the [Document][google.firestore.v1beta1.Document] that
-     * was deleted.
+     * The resource name of the [Document][google.firestore.v1beta1.Document] that was deleted.
      * 
* * string document = 1; @@ -734,8 +725,7 @@ public Builder setDocument(java.lang.String value) { * * *
-     * The resource name of the [Document][google.firestore.v1beta1.Document] that
-     * was deleted.
+     * The resource name of the [Document][google.firestore.v1beta1.Document] that was deleted.
      * 
* * string document = 1; @@ -750,8 +740,7 @@ public Builder clearDocument() { * * *
-     * The resource name of the [Document][google.firestore.v1beta1.Document] that
-     * was deleted.
+     * The resource name of the [Document][google.firestore.v1beta1.Document] that was deleted.
      * 
* * string document = 1; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentDeleteOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentDeleteOrBuilder.java index fa637b271ed4..158818ddf7fd 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentDeleteOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentDeleteOrBuilder.java @@ -12,8 +12,7 @@ public interface DocumentDeleteOrBuilder * * *
-   * The resource name of the [Document][google.firestore.v1beta1.Document] that
-   * was deleted.
+   * The resource name of the [Document][google.firestore.v1beta1.Document] that was deleted.
    * 
* * string document = 1; @@ -23,8 +22,7 @@ public interface DocumentDeleteOrBuilder * * *
-   * The resource name of the [Document][google.firestore.v1beta1.Document] that
-   * was deleted.
+   * The resource name of the [Document][google.firestore.v1beta1.Document] that was deleted.
    * 
* * string document = 1; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentMask.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentMask.java index 268dea63273b..5a508a77a26c 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentMask.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentMask.java @@ -11,8 +11,7 @@ * Used to restrict a get or update operation on a document to a subset of its * fields. * This is different from standard field masks, as this is always scoped to a - * [Document][google.firestore.v1beta1.Document], and takes in account the - * dynamic nature of [Value][google.firestore.v1beta1.Value]. + * [Document][google.firestore.v1beta1.Document], and takes in account the dynamic nature of [Value][google.firestore.v1beta1.Value]. *
* * Protobuf type {@code google.firestore.v1beta1.DocumentMask} @@ -108,8 +107,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The list of field paths in the mask. See
-   * [Document.fields][google.firestore.v1beta1.Document.fields] for a field
+   * The list of field paths in the mask. See [Document.fields][google.firestore.v1beta1.Document.fields] for a field
    * path syntax reference.
    * 
* @@ -122,8 +120,7 @@ public com.google.protobuf.ProtocolStringList getFieldPathsList() { * * *
-   * The list of field paths in the mask. See
-   * [Document.fields][google.firestore.v1beta1.Document.fields] for a field
+   * The list of field paths in the mask. See [Document.fields][google.firestore.v1beta1.Document.fields] for a field
    * path syntax reference.
    * 
* @@ -136,8 +133,7 @@ public int getFieldPathsCount() { * * *
-   * The list of field paths in the mask. See
-   * [Document.fields][google.firestore.v1beta1.Document.fields] for a field
+   * The list of field paths in the mask. See [Document.fields][google.firestore.v1beta1.Document.fields] for a field
    * path syntax reference.
    * 
* @@ -150,8 +146,7 @@ public java.lang.String getFieldPaths(int index) { * * *
-   * The list of field paths in the mask. See
-   * [Document.fields][google.firestore.v1beta1.Document.fields] for a field
+   * The list of field paths in the mask. See [Document.fields][google.firestore.v1beta1.Document.fields] for a field
    * path syntax reference.
    * 
* @@ -336,8 +331,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * Used to restrict a get or update operation on a document to a subset of its * fields. * This is different from standard field masks, as this is always scoped to a - * [Document][google.firestore.v1beta1.Document], and takes in account the - * dynamic nature of [Value][google.firestore.v1beta1.Value]. + * [Document][google.firestore.v1beta1.Document], and takes in account the dynamic nature of [Value][google.firestore.v1beta1.Value]. *
* * Protobuf type {@code google.firestore.v1beta1.DocumentMask} @@ -516,8 +510,7 @@ private void ensureFieldPathsIsMutable() { * * *
-     * The list of field paths in the mask. See
-     * [Document.fields][google.firestore.v1beta1.Document.fields] for a field
+     * The list of field paths in the mask. See [Document.fields][google.firestore.v1beta1.Document.fields] for a field
      * path syntax reference.
      * 
* @@ -530,8 +523,7 @@ public com.google.protobuf.ProtocolStringList getFieldPathsList() { * * *
-     * The list of field paths in the mask. See
-     * [Document.fields][google.firestore.v1beta1.Document.fields] for a field
+     * The list of field paths in the mask. See [Document.fields][google.firestore.v1beta1.Document.fields] for a field
      * path syntax reference.
      * 
* @@ -544,8 +536,7 @@ public int getFieldPathsCount() { * * *
-     * The list of field paths in the mask. See
-     * [Document.fields][google.firestore.v1beta1.Document.fields] for a field
+     * The list of field paths in the mask. See [Document.fields][google.firestore.v1beta1.Document.fields] for a field
      * path syntax reference.
      * 
* @@ -558,8 +549,7 @@ public java.lang.String getFieldPaths(int index) { * * *
-     * The list of field paths in the mask. See
-     * [Document.fields][google.firestore.v1beta1.Document.fields] for a field
+     * The list of field paths in the mask. See [Document.fields][google.firestore.v1beta1.Document.fields] for a field
      * path syntax reference.
      * 
* @@ -572,8 +562,7 @@ public com.google.protobuf.ByteString getFieldPathsBytes(int index) { * * *
-     * The list of field paths in the mask. See
-     * [Document.fields][google.firestore.v1beta1.Document.fields] for a field
+     * The list of field paths in the mask. See [Document.fields][google.firestore.v1beta1.Document.fields] for a field
      * path syntax reference.
      * 
* @@ -592,8 +581,7 @@ public Builder setFieldPaths(int index, java.lang.String value) { * * *
-     * The list of field paths in the mask. See
-     * [Document.fields][google.firestore.v1beta1.Document.fields] for a field
+     * The list of field paths in the mask. See [Document.fields][google.firestore.v1beta1.Document.fields] for a field
      * path syntax reference.
      * 
* @@ -612,8 +600,7 @@ public Builder addFieldPaths(java.lang.String value) { * * *
-     * The list of field paths in the mask. See
-     * [Document.fields][google.firestore.v1beta1.Document.fields] for a field
+     * The list of field paths in the mask. See [Document.fields][google.firestore.v1beta1.Document.fields] for a field
      * path syntax reference.
      * 
* @@ -629,8 +616,7 @@ public Builder addAllFieldPaths(java.lang.Iterable values) { * * *
-     * The list of field paths in the mask. See
-     * [Document.fields][google.firestore.v1beta1.Document.fields] for a field
+     * The list of field paths in the mask. See [Document.fields][google.firestore.v1beta1.Document.fields] for a field
      * path syntax reference.
      * 
* @@ -646,8 +632,7 @@ public Builder clearFieldPaths() { * * *
-     * The list of field paths in the mask. See
-     * [Document.fields][google.firestore.v1beta1.Document.fields] for a field
+     * The list of field paths in the mask. See [Document.fields][google.firestore.v1beta1.Document.fields] for a field
      * path syntax reference.
      * 
* diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentMaskOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentMaskOrBuilder.java index 7916bb25a8d4..3e594f6af815 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentMaskOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentMaskOrBuilder.java @@ -12,8 +12,7 @@ public interface DocumentMaskOrBuilder * * *
-   * The list of field paths in the mask. See
-   * [Document.fields][google.firestore.v1beta1.Document.fields] for a field
+   * The list of field paths in the mask. See [Document.fields][google.firestore.v1beta1.Document.fields] for a field
    * path syntax reference.
    * 
* @@ -24,8 +23,7 @@ public interface DocumentMaskOrBuilder * * *
-   * The list of field paths in the mask. See
-   * [Document.fields][google.firestore.v1beta1.Document.fields] for a field
+   * The list of field paths in the mask. See [Document.fields][google.firestore.v1beta1.Document.fields] for a field
    * path syntax reference.
    * 
* @@ -36,8 +34,7 @@ public interface DocumentMaskOrBuilder * * *
-   * The list of field paths in the mask. See
-   * [Document.fields][google.firestore.v1beta1.Document.fields] for a field
+   * The list of field paths in the mask. See [Document.fields][google.firestore.v1beta1.Document.fields] for a field
    * path syntax reference.
    * 
* @@ -48,8 +45,7 @@ public interface DocumentMaskOrBuilder * * *
-   * The list of field paths in the mask. See
-   * [Document.fields][google.firestore.v1beta1.Document.fields] for a field
+   * The list of field paths in the mask. See [Document.fields][google.firestore.v1beta1.Document.fields] for a field
    * path syntax reference.
    * 
* diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentProto.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentProto.java index 56285de6f75a..eeb6dac6279b 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentProto.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentProto.java @@ -46,10 +46,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n\'google/firestore/v1beta1/document.prot" - + "o\022\030google.firestore.v1beta1\032\034google/api/" - + "annotations.proto\032\034google/protobuf/struc" - + "t.proto\032\037google/protobuf/timestamp.proto" - + "\032\030google/type/latlng.proto\"\212\002\n\010Document\022" + + "o\022\030google.firestore.v1beta1\032\034google/prot" + + "obuf/struct.proto\032\037google/protobuf/times" + + "tamp.proto\032\030google/type/latlng.proto\032\034go" + + "ogle/api/annotations.proto\"\212\002\n\010Document\022" + "\014\n\004name\030\001 \001(\t\022>\n\006fields\030\002 \003(\0132..google.f" + "irestore.v1beta1.Document.FieldsEntry\022/\n" + "\013create_time\030\003 \001(\0132\032.google.protobuf.Tim" @@ -90,10 +90,10 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.type.LatLngProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), }, assigner); internal_static_google_firestore_v1beta1_Document_descriptor = @@ -155,10 +155,10 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Key", "Value", }); - com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.type.LatLngProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentRemove.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentRemove.java index 0fbfa17e9fb7..ab7d5e16d236 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentRemove.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentRemove.java @@ -7,14 +7,12 @@ * * *
- * A [Document][google.firestore.v1beta1.Document] has been removed from the
- * view of the targets.
+ * A [Document][google.firestore.v1beta1.Document] has been removed from the view of the targets.
  * Sent if the document is no longer relevant to a target and is out of view.
  * Can be sent instead of a DocumentDelete or a DocumentChange if the server
  * can not send the new value of the document.
- * Multiple [DocumentRemove][google.firestore.v1beta1.DocumentRemove] messages
- * may be returned for the same logical write or delete, if multiple targets are
- * affected.
+ * Multiple [DocumentRemove][google.firestore.v1beta1.DocumentRemove] messages may be returned for the same logical
+ * write or delete, if multiple targets are affected.
  * 
* * Protobuf type {@code google.firestore.v1beta1.DocumentRemove} @@ -148,8 +146,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The resource name of the [Document][google.firestore.v1beta1.Document] that
-   * has gone out of view.
+   * The resource name of the [Document][google.firestore.v1beta1.Document] that has gone out of view.
    * 
* * string document = 1; @@ -169,8 +166,7 @@ public java.lang.String getDocument() { * * *
-   * The resource name of the [Document][google.firestore.v1beta1.Document] that
-   * has gone out of view.
+   * The resource name of the [Document][google.firestore.v1beta1.Document] that has gone out of view.
    * 
* * string document = 1; @@ -474,14 +470,12 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * A [Document][google.firestore.v1beta1.Document] has been removed from the
-   * view of the targets.
+   * A [Document][google.firestore.v1beta1.Document] has been removed from the view of the targets.
    * Sent if the document is no longer relevant to a target and is out of view.
    * Can be sent instead of a DocumentDelete or a DocumentChange if the server
    * can not send the new value of the document.
-   * Multiple [DocumentRemove][google.firestore.v1beta1.DocumentRemove] messages
-   * may be returned for the same logical write or delete, if multiple targets are
-   * affected.
+   * Multiple [DocumentRemove][google.firestore.v1beta1.DocumentRemove] messages may be returned for the same logical
+   * write or delete, if multiple targets are affected.
    * 
* * Protobuf type {@code google.firestore.v1beta1.DocumentRemove} @@ -675,8 +669,7 @@ public Builder mergeFrom( * * *
-     * The resource name of the [Document][google.firestore.v1beta1.Document] that
-     * has gone out of view.
+     * The resource name of the [Document][google.firestore.v1beta1.Document] that has gone out of view.
      * 
* * string document = 1; @@ -696,8 +689,7 @@ public java.lang.String getDocument() { * * *
-     * The resource name of the [Document][google.firestore.v1beta1.Document] that
-     * has gone out of view.
+     * The resource name of the [Document][google.firestore.v1beta1.Document] that has gone out of view.
      * 
* * string document = 1; @@ -717,8 +709,7 @@ public com.google.protobuf.ByteString getDocumentBytes() { * * *
-     * The resource name of the [Document][google.firestore.v1beta1.Document] that
-     * has gone out of view.
+     * The resource name of the [Document][google.firestore.v1beta1.Document] that has gone out of view.
      * 
* * string document = 1; @@ -736,8 +727,7 @@ public Builder setDocument(java.lang.String value) { * * *
-     * The resource name of the [Document][google.firestore.v1beta1.Document] that
-     * has gone out of view.
+     * The resource name of the [Document][google.firestore.v1beta1.Document] that has gone out of view.
      * 
* * string document = 1; @@ -752,8 +742,7 @@ public Builder clearDocument() { * * *
-     * The resource name of the [Document][google.firestore.v1beta1.Document] that
-     * has gone out of view.
+     * The resource name of the [Document][google.firestore.v1beta1.Document] that has gone out of view.
      * 
* * string document = 1; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentRemoveOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentRemoveOrBuilder.java index 36483f17c749..fd077a70c5a2 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentRemoveOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentRemoveOrBuilder.java @@ -12,8 +12,7 @@ public interface DocumentRemoveOrBuilder * * *
-   * The resource name of the [Document][google.firestore.v1beta1.Document] that
-   * has gone out of view.
+   * The resource name of the [Document][google.firestore.v1beta1.Document] that has gone out of view.
    * 
* * string document = 1; @@ -23,8 +22,7 @@ public interface DocumentRemoveOrBuilder * * *
-   * The resource name of the [Document][google.firestore.v1beta1.Document] that
-   * has gone out of view.
+   * The resource name of the [Document][google.firestore.v1beta1.Document] that has gone out of view.
    * 
* * string document = 1; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentTransform.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentTransform.java index a70eb8b241c9..06581b27b1a1 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentTransform.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentTransform.java @@ -118,9 +118,8 @@ public interface FieldTransformOrBuilder * * *
-     * The path of the field. See
-     * [Document.fields][google.firestore.v1beta1.Document.fields] for the field
-     * path syntax reference.
+     * The path of the field. See [Document.fields][google.firestore.v1beta1.Document.fields] for the field path syntax
+     * reference.
      * 
* * string field_path = 1; @@ -130,9 +129,8 @@ public interface FieldTransformOrBuilder * * *
-     * The path of the field. See
-     * [Document.fields][google.firestore.v1beta1.Document.fields] for the field
-     * path syntax reference.
+     * The path of the field. See [Document.fields][google.firestore.v1beta1.Document.fields] for the field path syntax
+     * reference.
      * 
* * string field_path = 1; @@ -816,9 +814,8 @@ public TransformTypeCase getTransformTypeCase() { * * *
-     * The path of the field. See
-     * [Document.fields][google.firestore.v1beta1.Document.fields] for the field
-     * path syntax reference.
+     * The path of the field. See [Document.fields][google.firestore.v1beta1.Document.fields] for the field path syntax
+     * reference.
      * 
* * string field_path = 1; @@ -838,9 +835,8 @@ public java.lang.String getFieldPath() { * * *
-     * The path of the field. See
-     * [Document.fields][google.firestore.v1beta1.Document.fields] for the field
-     * path syntax reference.
+     * The path of the field. See [Document.fields][google.firestore.v1beta1.Document.fields] for the field path syntax
+     * reference.
      * 
* * string field_path = 1; @@ -1777,9 +1773,8 @@ public Builder clearTransformType() { * * *
-       * The path of the field. See
-       * [Document.fields][google.firestore.v1beta1.Document.fields] for the field
-       * path syntax reference.
+       * The path of the field. See [Document.fields][google.firestore.v1beta1.Document.fields] for the field path syntax
+       * reference.
        * 
* * string field_path = 1; @@ -1799,9 +1794,8 @@ public java.lang.String getFieldPath() { * * *
-       * The path of the field. See
-       * [Document.fields][google.firestore.v1beta1.Document.fields] for the field
-       * path syntax reference.
+       * The path of the field. See [Document.fields][google.firestore.v1beta1.Document.fields] for the field path syntax
+       * reference.
        * 
* * string field_path = 1; @@ -1821,9 +1815,8 @@ public com.google.protobuf.ByteString getFieldPathBytes() { * * *
-       * The path of the field. See
-       * [Document.fields][google.firestore.v1beta1.Document.fields] for the field
-       * path syntax reference.
+       * The path of the field. See [Document.fields][google.firestore.v1beta1.Document.fields] for the field path syntax
+       * reference.
        * 
* * string field_path = 1; @@ -1841,9 +1834,8 @@ public Builder setFieldPath(java.lang.String value) { * * *
-       * The path of the field. See
-       * [Document.fields][google.firestore.v1beta1.Document.fields] for the field
-       * path syntax reference.
+       * The path of the field. See [Document.fields][google.firestore.v1beta1.Document.fields] for the field path syntax
+       * reference.
        * 
* * string field_path = 1; @@ -1858,9 +1850,8 @@ public Builder clearFieldPath() { * * *
-       * The path of the field. See
-       * [Document.fields][google.firestore.v1beta1.Document.fields] for the field
-       * path syntax reference.
+       * The path of the field. See [Document.fields][google.firestore.v1beta1.Document.fields] for the field path syntax
+       * reference.
        * 
* * string field_path = 1; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ExistenceFilter.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ExistenceFilter.java index 1e370991860c..9583f51e2b01 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ExistenceFilter.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ExistenceFilter.java @@ -116,8 +116,7 @@ public int getTargetId() { * * *
-   * The total count of documents that match
-   * [target_id][google.firestore.v1beta1.ExistenceFilter.target_id].
+   * The total count of documents that match [target_id][google.firestore.v1beta1.ExistenceFilter.target_id].
    * If different from the count of documents in the client that match, the
    * client must manually determine which documents no longer match the target.
    * 
@@ -508,8 +507,7 @@ public Builder clearTargetId() { * * *
-     * The total count of documents that match
-     * [target_id][google.firestore.v1beta1.ExistenceFilter.target_id].
+     * The total count of documents that match [target_id][google.firestore.v1beta1.ExistenceFilter.target_id].
      * If different from the count of documents in the client that match, the
      * client must manually determine which documents no longer match the target.
      * 
@@ -523,8 +521,7 @@ public int getCount() { * * *
-     * The total count of documents that match
-     * [target_id][google.firestore.v1beta1.ExistenceFilter.target_id].
+     * The total count of documents that match [target_id][google.firestore.v1beta1.ExistenceFilter.target_id].
      * If different from the count of documents in the client that match, the
      * client must manually determine which documents no longer match the target.
      * 
@@ -541,8 +538,7 @@ public Builder setCount(int value) { * * *
-     * The total count of documents that match
-     * [target_id][google.firestore.v1beta1.ExistenceFilter.target_id].
+     * The total count of documents that match [target_id][google.firestore.v1beta1.ExistenceFilter.target_id].
      * If different from the count of documents in the client that match, the
      * client must manually determine which documents no longer match the target.
      * 
diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ExistenceFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ExistenceFilterOrBuilder.java index f0d84a6c599c..9154d0314489 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ExistenceFilterOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ExistenceFilterOrBuilder.java @@ -23,8 +23,7 @@ public interface ExistenceFilterOrBuilder * * *
-   * The total count of documents that match
-   * [target_id][google.firestore.v1beta1.ExistenceFilter.target_id].
+   * The total count of documents that match [target_id][google.firestore.v1beta1.ExistenceFilter.target_id].
    * If different from the count of documents in the client that match, the
    * client must manually determine which documents no longer match the target.
    * 
diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/GetDocumentRequest.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/GetDocumentRequest.java index 60c8880cd49f..0627b32b93e4 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/GetDocumentRequest.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/GetDocumentRequest.java @@ -7,8 +7,7 @@ * * *
- * The request for
- * [Firestore.GetDocument][google.firestore.v1beta1.Firestore.GetDocument].
+ * The request for [Firestore.GetDocument][google.firestore.v1beta1.Firestore.GetDocument].
  * 
* * Protobuf type {@code google.firestore.v1beta1.GetDocumentRequest} @@ -541,8 +540,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for
-   * [Firestore.GetDocument][google.firestore.v1beta1.Firestore.GetDocument].
+   * The request for [Firestore.GetDocument][google.firestore.v1beta1.Firestore.GetDocument].
    * 
* * Protobuf type {@code google.firestore.v1beta1.GetDocumentRequest} diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ListCollectionIdsRequest.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ListCollectionIdsRequest.java index e8006bf89242..9b878725d386 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ListCollectionIdsRequest.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ListCollectionIdsRequest.java @@ -7,8 +7,7 @@ * * *
- * The request for
- * [Firestore.ListCollectionIds][google.firestore.v1beta1.Firestore.ListCollectionIds].
+ * The request for [Firestore.ListCollectionIds][google.firestore.v1beta1.Firestore.ListCollectionIds].
  * 
* * Protobuf type {@code google.firestore.v1beta1.ListCollectionIdsRequest} @@ -398,8 +397,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for
-   * [Firestore.ListCollectionIds][google.firestore.v1beta1.Firestore.ListCollectionIds].
+   * The request for [Firestore.ListCollectionIds][google.firestore.v1beta1.Firestore.ListCollectionIds].
    * 
* * Protobuf type {@code google.firestore.v1beta1.ListCollectionIdsRequest} diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ListCollectionIdsResponse.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ListCollectionIdsResponse.java index 5f78c7eb40cc..3f5c4a7f84fd 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ListCollectionIdsResponse.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ListCollectionIdsResponse.java @@ -7,8 +7,7 @@ * * *
- * The response from
- * [Firestore.ListCollectionIds][google.firestore.v1beta1.Firestore.ListCollectionIds].
+ * The response from [Firestore.ListCollectionIds][google.firestore.v1beta1.Firestore.ListCollectionIds].
  * 
* * Protobuf type {@code google.firestore.v1beta1.ListCollectionIdsResponse} @@ -382,8 +381,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response from
-   * [Firestore.ListCollectionIds][google.firestore.v1beta1.Firestore.ListCollectionIds].
+   * The response from [Firestore.ListCollectionIds][google.firestore.v1beta1.Firestore.ListCollectionIds].
    * 
* * Protobuf type {@code google.firestore.v1beta1.ListCollectionIdsResponse} diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ListDocumentsRequest.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ListDocumentsRequest.java index 1759aee60bf3..9cb472880599 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ListDocumentsRequest.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ListDocumentsRequest.java @@ -7,8 +7,7 @@ * * *
- * The request for
- * [Firestore.ListDocuments][google.firestore.v1beta1.Firestore.ListDocuments].
+ * The request for [Firestore.ListDocuments][google.firestore.v1beta1.Firestore.ListDocuments].
  * 
* * Protobuf type {@code google.firestore.v1beta1.ListDocumentsRequest} @@ -521,9 +520,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { *
    * If the list should show missing documents. A missing document is a
    * document that does not exist but has sub-documents. These documents will
-   * be returned with a key but will not have fields,
-   * [Document.create_time][google.firestore.v1beta1.Document.create_time], or
-   * [Document.update_time][google.firestore.v1beta1.Document.update_time] set.
+   * be returned with a key but will not have fields, [Document.create_time][google.firestore.v1beta1.Document.create_time],
+   * or [Document.update_time][google.firestore.v1beta1.Document.update_time] set.
    * Requests with `show_missing` may not specify `where` or
    * `order_by`.
    * 
@@ -797,8 +795,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for
-   * [Firestore.ListDocuments][google.firestore.v1beta1.Firestore.ListDocuments].
+   * The request for [Firestore.ListDocuments][google.firestore.v1beta1.Firestore.ListDocuments].
    * 
* * Protobuf type {@code google.firestore.v1beta1.ListDocumentsRequest} @@ -1960,9 +1957,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { *
      * If the list should show missing documents. A missing document is a
      * document that does not exist but has sub-documents. These documents will
-     * be returned with a key but will not have fields,
-     * [Document.create_time][google.firestore.v1beta1.Document.create_time], or
-     * [Document.update_time][google.firestore.v1beta1.Document.update_time] set.
+     * be returned with a key but will not have fields, [Document.create_time][google.firestore.v1beta1.Document.create_time],
+     * or [Document.update_time][google.firestore.v1beta1.Document.update_time] set.
      * Requests with `show_missing` may not specify `where` or
      * `order_by`.
      * 
@@ -1978,9 +1974,8 @@ public boolean getShowMissing() { *
      * If the list should show missing documents. A missing document is a
      * document that does not exist but has sub-documents. These documents will
-     * be returned with a key but will not have fields,
-     * [Document.create_time][google.firestore.v1beta1.Document.create_time], or
-     * [Document.update_time][google.firestore.v1beta1.Document.update_time] set.
+     * be returned with a key but will not have fields, [Document.create_time][google.firestore.v1beta1.Document.create_time],
+     * or [Document.update_time][google.firestore.v1beta1.Document.update_time] set.
      * Requests with `show_missing` may not specify `where` or
      * `order_by`.
      * 
@@ -1999,9 +1994,8 @@ public Builder setShowMissing(boolean value) { *
      * If the list should show missing documents. A missing document is a
      * document that does not exist but has sub-documents. These documents will
-     * be returned with a key but will not have fields,
-     * [Document.create_time][google.firestore.v1beta1.Document.create_time], or
-     * [Document.update_time][google.firestore.v1beta1.Document.update_time] set.
+     * be returned with a key but will not have fields, [Document.create_time][google.firestore.v1beta1.Document.create_time],
+     * or [Document.update_time][google.firestore.v1beta1.Document.update_time] set.
      * Requests with `show_missing` may not specify `where` or
      * `order_by`.
      * 
diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ListDocumentsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ListDocumentsRequestOrBuilder.java index c8449591d75f..02bd483dd651 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ListDocumentsRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ListDocumentsRequestOrBuilder.java @@ -203,9 +203,8 @@ public interface ListDocumentsRequestOrBuilder *
    * If the list should show missing documents. A missing document is a
    * document that does not exist but has sub-documents. These documents will
-   * be returned with a key but will not have fields,
-   * [Document.create_time][google.firestore.v1beta1.Document.create_time], or
-   * [Document.update_time][google.firestore.v1beta1.Document.update_time] set.
+   * be returned with a key but will not have fields, [Document.create_time][google.firestore.v1beta1.Document.create_time],
+   * or [Document.update_time][google.firestore.v1beta1.Document.update_time] set.
    * Requests with `show_missing` may not specify `where` or
    * `order_by`.
    * 
diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ListDocumentsResponse.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ListDocumentsResponse.java index 55e43a07436e..b1fd71813834 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ListDocumentsResponse.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ListDocumentsResponse.java @@ -7,8 +7,7 @@ * * *
- * The response for
- * [Firestore.ListDocuments][google.firestore.v1beta1.Firestore.ListDocuments].
+ * The response for [Firestore.ListDocuments][google.firestore.v1beta1.Firestore.ListDocuments].
  * 
* * Protobuf type {@code google.firestore.v1beta1.ListDocumentsResponse} @@ -390,8 +389,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response for
-   * [Firestore.ListDocuments][google.firestore.v1beta1.Firestore.ListDocuments].
+   * The response for [Firestore.ListDocuments][google.firestore.v1beta1.Firestore.ListDocuments].
    * 
* * Protobuf type {@code google.firestore.v1beta1.ListDocumentsResponse} diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ListenResponse.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ListenResponse.java index a404c6f3e1bc..c9ed0f5feb5d 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ListenResponse.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ListenResponse.java @@ -7,8 +7,7 @@ * * *
- * The response for
- * [Firestore.Listen][google.firestore.v1beta1.Firestore.Listen].
+ * The response for [Firestore.Listen][google.firestore.v1beta1.Firestore.Listen].
  * 
* * Protobuf type {@code google.firestore.v1beta1.ListenResponse} @@ -354,8 +353,8 @@ public com.google.firestore.v1beta1.DocumentDeleteOrBuilder getDocumentDeleteOrB * * *
-   * A [Document][google.firestore.v1beta1.Document] has been removed from a
-   * target (because it is no longer relevant to that target).
+   * A [Document][google.firestore.v1beta1.Document] has been removed from a target (because it is no longer
+   * relevant to that target).
    * 
* * .google.firestore.v1beta1.DocumentRemove document_remove = 6; @@ -367,8 +366,8 @@ public boolean hasDocumentRemove() { * * *
-   * A [Document][google.firestore.v1beta1.Document] has been removed from a
-   * target (because it is no longer relevant to that target).
+   * A [Document][google.firestore.v1beta1.Document] has been removed from a target (because it is no longer
+   * relevant to that target).
    * 
* * .google.firestore.v1beta1.DocumentRemove document_remove = 6; @@ -383,8 +382,8 @@ public com.google.firestore.v1beta1.DocumentRemove getDocumentRemove() { * * *
-   * A [Document][google.firestore.v1beta1.Document] has been removed from a
-   * target (because it is no longer relevant to that target).
+   * A [Document][google.firestore.v1beta1.Document] has been removed from a target (because it is no longer
+   * relevant to that target).
    * 
* * .google.firestore.v1beta1.DocumentRemove document_remove = 6; @@ -689,8 +688,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response for
-   * [Firestore.Listen][google.firestore.v1beta1.Firestore.Listen].
+   * The response for [Firestore.Listen][google.firestore.v1beta1.Firestore.Listen].
    * 
* * Protobuf type {@code google.firestore.v1beta1.ListenResponse} @@ -1534,8 +1532,8 @@ public com.google.firestore.v1beta1.DocumentDeleteOrBuilder getDocumentDeleteOrB * * *
-     * A [Document][google.firestore.v1beta1.Document] has been removed from a
-     * target (because it is no longer relevant to that target).
+     * A [Document][google.firestore.v1beta1.Document] has been removed from a target (because it is no longer
+     * relevant to that target).
      * 
* * .google.firestore.v1beta1.DocumentRemove document_remove = 6; @@ -1547,8 +1545,8 @@ public boolean hasDocumentRemove() { * * *
-     * A [Document][google.firestore.v1beta1.Document] has been removed from a
-     * target (because it is no longer relevant to that target).
+     * A [Document][google.firestore.v1beta1.Document] has been removed from a target (because it is no longer
+     * relevant to that target).
      * 
* * .google.firestore.v1beta1.DocumentRemove document_remove = 6; @@ -1570,8 +1568,8 @@ public com.google.firestore.v1beta1.DocumentRemove getDocumentRemove() { * * *
-     * A [Document][google.firestore.v1beta1.Document] has been removed from a
-     * target (because it is no longer relevant to that target).
+     * A [Document][google.firestore.v1beta1.Document] has been removed from a target (because it is no longer
+     * relevant to that target).
      * 
* * .google.firestore.v1beta1.DocumentRemove document_remove = 6; @@ -1593,8 +1591,8 @@ public Builder setDocumentRemove(com.google.firestore.v1beta1.DocumentRemove val * * *
-     * A [Document][google.firestore.v1beta1.Document] has been removed from a
-     * target (because it is no longer relevant to that target).
+     * A [Document][google.firestore.v1beta1.Document] has been removed from a target (because it is no longer
+     * relevant to that target).
      * 
* * .google.firestore.v1beta1.DocumentRemove document_remove = 6; @@ -1614,8 +1612,8 @@ public Builder setDocumentRemove( * * *
-     * A [Document][google.firestore.v1beta1.Document] has been removed from a
-     * target (because it is no longer relevant to that target).
+     * A [Document][google.firestore.v1beta1.Document] has been removed from a target (because it is no longer
+     * relevant to that target).
      * 
* * .google.firestore.v1beta1.DocumentRemove document_remove = 6; @@ -1646,8 +1644,8 @@ public Builder mergeDocumentRemove(com.google.firestore.v1beta1.DocumentRemove v * * *
-     * A [Document][google.firestore.v1beta1.Document] has been removed from a
-     * target (because it is no longer relevant to that target).
+     * A [Document][google.firestore.v1beta1.Document] has been removed from a target (because it is no longer
+     * relevant to that target).
      * 
* * .google.firestore.v1beta1.DocumentRemove document_remove = 6; @@ -1672,8 +1670,8 @@ public Builder clearDocumentRemove() { * * *
-     * A [Document][google.firestore.v1beta1.Document] has been removed from a
-     * target (because it is no longer relevant to that target).
+     * A [Document][google.firestore.v1beta1.Document] has been removed from a target (because it is no longer
+     * relevant to that target).
      * 
* * .google.firestore.v1beta1.DocumentRemove document_remove = 6; @@ -1685,8 +1683,8 @@ public com.google.firestore.v1beta1.DocumentRemove.Builder getDocumentRemoveBuil * * *
-     * A [Document][google.firestore.v1beta1.Document] has been removed from a
-     * target (because it is no longer relevant to that target).
+     * A [Document][google.firestore.v1beta1.Document] has been removed from a target (because it is no longer
+     * relevant to that target).
      * 
* * .google.firestore.v1beta1.DocumentRemove document_remove = 6; @@ -1705,8 +1703,8 @@ public com.google.firestore.v1beta1.DocumentRemoveOrBuilder getDocumentRemoveOrB * * *
-     * A [Document][google.firestore.v1beta1.Document] has been removed from a
-     * target (because it is no longer relevant to that target).
+     * A [Document][google.firestore.v1beta1.Document] has been removed from a target (because it is no longer
+     * relevant to that target).
      * 
* * .google.firestore.v1beta1.DocumentRemove document_remove = 6; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ListenResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ListenResponseOrBuilder.java index 142278ac81c3..b926e9397c0b 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ListenResponseOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ListenResponseOrBuilder.java @@ -105,8 +105,8 @@ public interface ListenResponseOrBuilder * * *
-   * A [Document][google.firestore.v1beta1.Document] has been removed from a
-   * target (because it is no longer relevant to that target).
+   * A [Document][google.firestore.v1beta1.Document] has been removed from a target (because it is no longer
+   * relevant to that target).
    * 
* * .google.firestore.v1beta1.DocumentRemove document_remove = 6; @@ -116,8 +116,8 @@ public interface ListenResponseOrBuilder * * *
-   * A [Document][google.firestore.v1beta1.Document] has been removed from a
-   * target (because it is no longer relevant to that target).
+   * A [Document][google.firestore.v1beta1.Document] has been removed from a target (because it is no longer
+   * relevant to that target).
    * 
* * .google.firestore.v1beta1.DocumentRemove document_remove = 6; @@ -127,8 +127,8 @@ public interface ListenResponseOrBuilder * * *
-   * A [Document][google.firestore.v1beta1.Document] has been removed from a
-   * target (because it is no longer relevant to that target).
+   * A [Document][google.firestore.v1beta1.Document] has been removed from a target (because it is no longer
+   * relevant to that target).
    * 
* * .google.firestore.v1beta1.DocumentRemove document_remove = 6; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/QueryProto.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/QueryProto.java index 7c78b9f1d226..5f2b9c1d1392 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/QueryProto.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/QueryProto.java @@ -32,6 +32,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_firestore_v1beta1_StructuredQuery_FieldFilter_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_firestore_v1beta1_StructuredQuery_FieldFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_firestore_v1beta1_StructuredQuery_Projection_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_firestore_v1beta1_StructuredQuery_Projection_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_firestore_v1beta1_StructuredQuery_UnaryFilter_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -44,10 +48,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_firestore_v1beta1_StructuredQuery_FieldReference_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_firestore_v1beta1_StructuredQuery_FieldReference_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_firestore_v1beta1_StructuredQuery_Projection_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_firestore_v1beta1_StructuredQuery_Projection_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_firestore_v1beta1_Cursor_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -62,9 +62,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n$google/firestore/v1beta1/query.proto\022\030" - + "google.firestore.v1beta1\032\034google/api/ann" - + "otations.proto\032\'google/firestore/v1beta1" - + "/document.proto\032\036google/protobuf/wrapper" + + "google.firestore.v1beta1\032\'google/firesto" + + "re/v1beta1/document.proto\032\036google/protob" + + "uf/wrappers.proto\032\034google/api/annotation" + "s.proto\"\271\017\n\017StructuredQuery\022D\n\006select\030\001 " + "\001(\01324.google.firestore.v1beta1.Structure" + "dQuery.Projection\022J\n\004from\030\002 \003(\0132<.google" @@ -99,20 +99,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "Operator\022\030\n\024OPERATOR_UNSPECIFIED\020\000\022\r\n\tLE" + "SS_THAN\020\001\022\026\n\022LESS_THAN_OR_EQUAL\020\002\022\020\n\014GRE" + "ATER_THAN\020\003\022\031\n\025GREATER_THAN_OR_EQUAL\020\004\022\t" - + "\n\005EQUAL\020\005\022\022\n\016ARRAY_CONTAINS\020\007\032\363\001\n\013UnaryF" - + "ilter\022J\n\002op\030\001 \001(\0162>.google.firestore.v1b" - + "eta1.StructuredQuery.UnaryFilter.Operato" - + "r\022I\n\005field\030\002 \001(\01328.google.firestore.v1be" - + "ta1.StructuredQuery.FieldReferenceH\000\"=\n\010" - + "Operator\022\030\n\024OPERATOR_UNSPECIFIED\020\000\022\n\n\006IS" - + "_NAN\020\002\022\013\n\007IS_NULL\020\003B\016\n\014operand_type\032\230\001\n\005" - + "Order\022G\n\005field\030\001 \001(\01328.google.firestore." - + "v1beta1.StructuredQuery.FieldReference\022F" - + "\n\tdirection\030\002 \001(\01623.google.firestore.v1b" - + "eta1.StructuredQuery.Direction\032$\n\016FieldR" - + "eference\022\022\n\nfield_path\030\002 \001(\t\032V\n\nProjecti" - + "on\022H\n\006fields\030\002 \003(\01328.google.firestore.v1" - + "beta1.StructuredQuery.FieldReference\"E\n\t" + + "\n\005EQUAL\020\005\022\022\n\016ARRAY_CONTAINS\020\007\032V\n\nProject" + + "ion\022H\n\006fields\030\002 \003(\01328.google.firestore.v" + + "1beta1.StructuredQuery.FieldReference\032\363\001" + + "\n\013UnaryFilter\022J\n\002op\030\001 \001(\0162>.google.fires" + + "tore.v1beta1.StructuredQuery.UnaryFilter" + + ".Operator\022I\n\005field\030\002 \001(\01328.google.firest" + + "ore.v1beta1.StructuredQuery.FieldReferen" + + "ceH\000\"=\n\010Operator\022\030\n\024OPERATOR_UNSPECIFIED" + + "\020\000\022\n\n\006IS_NAN\020\002\022\013\n\007IS_NULL\020\003B\016\n\014operand_t" + + "ype\032\230\001\n\005Order\022G\n\005field\030\001 \001(\01328.google.fi" + + "restore.v1beta1.StructuredQuery.FieldRef" + + "erence\022F\n\tdirection\030\002 \001(\01623.google.fires" + + "tore.v1beta1.StructuredQuery.Direction\032$" + + "\n\016FieldReference\022\022\n\nfield_path\030\002 \001(\t\"E\n\t" + "Direction\022\031\n\025DIRECTION_UNSPECIFIED\020\000\022\r\n\t" + "ASCENDING\020\001\022\016\n\nDESCENDING\020\002\"I\n\006Cursor\022/\n" + "\006values\030\001 \003(\0132\037.google.firestore.v1beta1" @@ -134,9 +134,9 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.firestore.v1beta1.DocumentProto.getDescriptor(), com.google.protobuf.WrappersProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), }, assigner); internal_static_google_firestore_v1beta1_StructuredQuery_descriptor = @@ -179,8 +179,16 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Field", "Op", "Value", }); - internal_static_google_firestore_v1beta1_StructuredQuery_UnaryFilter_descriptor = + internal_static_google_firestore_v1beta1_StructuredQuery_Projection_descriptor = internal_static_google_firestore_v1beta1_StructuredQuery_descriptor.getNestedTypes().get(4); + internal_static_google_firestore_v1beta1_StructuredQuery_Projection_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_firestore_v1beta1_StructuredQuery_Projection_descriptor, + new java.lang.String[] { + "Fields", + }); + internal_static_google_firestore_v1beta1_StructuredQuery_UnaryFilter_descriptor = + internal_static_google_firestore_v1beta1_StructuredQuery_descriptor.getNestedTypes().get(5); internal_static_google_firestore_v1beta1_StructuredQuery_UnaryFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_firestore_v1beta1_StructuredQuery_UnaryFilter_descriptor, @@ -188,7 +196,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Op", "Field", "OperandType", }); internal_static_google_firestore_v1beta1_StructuredQuery_Order_descriptor = - internal_static_google_firestore_v1beta1_StructuredQuery_descriptor.getNestedTypes().get(5); + internal_static_google_firestore_v1beta1_StructuredQuery_descriptor.getNestedTypes().get(6); internal_static_google_firestore_v1beta1_StructuredQuery_Order_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_firestore_v1beta1_StructuredQuery_Order_descriptor, @@ -196,21 +204,13 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Field", "Direction", }); internal_static_google_firestore_v1beta1_StructuredQuery_FieldReference_descriptor = - internal_static_google_firestore_v1beta1_StructuredQuery_descriptor.getNestedTypes().get(6); + internal_static_google_firestore_v1beta1_StructuredQuery_descriptor.getNestedTypes().get(7); internal_static_google_firestore_v1beta1_StructuredQuery_FieldReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_firestore_v1beta1_StructuredQuery_FieldReference_descriptor, new java.lang.String[] { "FieldPath", }); - internal_static_google_firestore_v1beta1_StructuredQuery_Projection_descriptor = - internal_static_google_firestore_v1beta1_StructuredQuery_descriptor.getNestedTypes().get(7); - internal_static_google_firestore_v1beta1_StructuredQuery_Projection_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_firestore_v1beta1_StructuredQuery_Projection_descriptor, - new java.lang.String[] { - "Fields", - }); internal_static_google_firestore_v1beta1_Cursor_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_google_firestore_v1beta1_Cursor_fieldAccessorTable = @@ -219,9 +219,9 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Values", "Before", }); - com.google.api.AnnotationsProto.getDescriptor(); com.google.firestore.v1beta1.DocumentProto.getDescriptor(); com.google.protobuf.WrappersProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/RollbackRequest.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/RollbackRequest.java index c3943a5818ab..e6a1c1a66f58 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/RollbackRequest.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/RollbackRequest.java @@ -7,8 +7,7 @@ * * *
- * The request for
- * [Firestore.Rollback][google.firestore.v1beta1.Firestore.Rollback].
+ * The request for [Firestore.Rollback][google.firestore.v1beta1.Firestore.Rollback].
  * 
* * Protobuf type {@code google.firestore.v1beta1.RollbackRequest} @@ -331,8 +330,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for
-   * [Firestore.Rollback][google.firestore.v1beta1.Firestore.Rollback].
+   * The request for [Firestore.Rollback][google.firestore.v1beta1.Firestore.Rollback].
    * 
* * Protobuf type {@code google.firestore.v1beta1.RollbackRequest} diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/RunQueryRequest.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/RunQueryRequest.java index ba5e8659f125..14d3a31702cd 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/RunQueryRequest.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/RunQueryRequest.java @@ -7,8 +7,7 @@ * * *
- * The request for
- * [Firestore.RunQuery][google.firestore.v1beta1.Firestore.RunQuery].
+ * The request for [Firestore.RunQuery][google.firestore.v1beta1.Firestore.RunQuery].
  * 
* * Protobuf type {@code google.firestore.v1beta1.RunQueryRequest} @@ -688,8 +687,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for
-   * [Firestore.RunQuery][google.firestore.v1beta1.Firestore.RunQuery].
+   * The request for [Firestore.RunQuery][google.firestore.v1beta1.Firestore.RunQuery].
    * 
* * Protobuf type {@code google.firestore.v1beta1.RunQueryRequest} diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/RunQueryResponse.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/RunQueryResponse.java index 0340bf1911c8..40c97c5d1b5f 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/RunQueryResponse.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/RunQueryResponse.java @@ -7,8 +7,7 @@ * * *
- * The response for
- * [Firestore.RunQuery][google.firestore.v1beta1.Firestore.RunQuery].
+ * The response for [Firestore.RunQuery][google.firestore.v1beta1.Firestore.RunQuery].
  * 
* * Protobuf type {@code google.firestore.v1beta1.RunQueryResponse} @@ -135,9 +134,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * The transaction that was started as part of this request.
    * Can only be set in the first response, and only if
-   * [RunQueryRequest.new_transaction][google.firestore.v1beta1.RunQueryRequest.new_transaction]
-   * was set in the request. If set, no other fields will be set in this
-   * response.
+   * [RunQueryRequest.new_transaction][google.firestore.v1beta1.RunQueryRequest.new_transaction] was set in the request.
+   * If set, no other fields will be set in this response.
    * 
* * bytes transaction = 2; @@ -461,8 +459,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response for
-   * [Firestore.RunQuery][google.firestore.v1beta1.Firestore.RunQuery].
+   * The response for [Firestore.RunQuery][google.firestore.v1beta1.Firestore.RunQuery].
    * 
* * Protobuf type {@code google.firestore.v1beta1.RunQueryResponse} @@ -655,9 +652,8 @@ public Builder mergeFrom( *
      * The transaction that was started as part of this request.
      * Can only be set in the first response, and only if
-     * [RunQueryRequest.new_transaction][google.firestore.v1beta1.RunQueryRequest.new_transaction]
-     * was set in the request. If set, no other fields will be set in this
-     * response.
+     * [RunQueryRequest.new_transaction][google.firestore.v1beta1.RunQueryRequest.new_transaction] was set in the request.
+     * If set, no other fields will be set in this response.
      * 
* * bytes transaction = 2; @@ -671,9 +667,8 @@ public com.google.protobuf.ByteString getTransaction() { *
      * The transaction that was started as part of this request.
      * Can only be set in the first response, and only if
-     * [RunQueryRequest.new_transaction][google.firestore.v1beta1.RunQueryRequest.new_transaction]
-     * was set in the request. If set, no other fields will be set in this
-     * response.
+     * [RunQueryRequest.new_transaction][google.firestore.v1beta1.RunQueryRequest.new_transaction] was set in the request.
+     * If set, no other fields will be set in this response.
      * 
* * bytes transaction = 2; @@ -693,9 +688,8 @@ public Builder setTransaction(com.google.protobuf.ByteString value) { *
      * The transaction that was started as part of this request.
      * Can only be set in the first response, and only if
-     * [RunQueryRequest.new_transaction][google.firestore.v1beta1.RunQueryRequest.new_transaction]
-     * was set in the request. If set, no other fields will be set in this
-     * response.
+     * [RunQueryRequest.new_transaction][google.firestore.v1beta1.RunQueryRequest.new_transaction] was set in the request.
+     * If set, no other fields will be set in this response.
      * 
* * bytes transaction = 2; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/RunQueryResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/RunQueryResponseOrBuilder.java index 9c6512afc6b5..d495c560d19c 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/RunQueryResponseOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/RunQueryResponseOrBuilder.java @@ -14,9 +14,8 @@ public interface RunQueryResponseOrBuilder *
    * The transaction that was started as part of this request.
    * Can only be set in the first response, and only if
-   * [RunQueryRequest.new_transaction][google.firestore.v1beta1.RunQueryRequest.new_transaction]
-   * was set in the request. If set, no other fields will be set in this
-   * response.
+   * [RunQueryRequest.new_transaction][google.firestore.v1beta1.RunQueryRequest.new_transaction] was set in the request.
+   * If set, no other fields will be set in this response.
    * 
* * bytes transaction = 2; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/StructuredQuery.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/StructuredQuery.java index 5ef6c14e16df..41b541416a8c 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/StructuredQuery.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/StructuredQuery.java @@ -5385,87 +5385,95 @@ public com.google.firestore.v1beta1.StructuredQuery.FieldFilter getDefaultInstan } } - public interface UnaryFilterOrBuilder + public interface ProjectionOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.firestore.v1beta1.StructuredQuery.UnaryFilter) + // @@protoc_insertion_point(interface_extends:google.firestore.v1beta1.StructuredQuery.Projection) com.google.protobuf.MessageOrBuilder { /** * * *
-     * The unary operator to apply.
+     * The fields to return.
+     * If empty, all fields are returned. To only return the name
+     * of the document, use `['__name__']`.
      * 
* - * .google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator op = 1; + * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; */ - int getOpValue(); + java.util.List getFieldsList(); /** * * *
-     * The unary operator to apply.
+     * The fields to return.
+     * If empty, all fields are returned. To only return the name
+     * of the document, use `['__name__']`.
      * 
* - * .google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator op = 1; + * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; */ - com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator getOp(); - + com.google.firestore.v1beta1.StructuredQuery.FieldReference getFields(int index); /** * * *
-     * The field to which to apply the operator.
+     * The fields to return.
+     * If empty, all fields are returned. To only return the name
+     * of the document, use `['__name__']`.
      * 
* - * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2; + * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; */ - boolean hasField(); + int getFieldsCount(); /** * * *
-     * The field to which to apply the operator.
+     * The fields to return.
+     * If empty, all fields are returned. To only return the name
+     * of the document, use `['__name__']`.
      * 
* - * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2; + * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; */ - com.google.firestore.v1beta1.StructuredQuery.FieldReference getField(); + java.util.List + getFieldsOrBuilderList(); /** * * *
-     * The field to which to apply the operator.
+     * The fields to return.
+     * If empty, all fields are returned. To only return the name
+     * of the document, use `['__name__']`.
      * 
* - * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2; + * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; */ - com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder getFieldOrBuilder(); - - public com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.OperandTypeCase - getOperandTypeCase(); + com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder getFieldsOrBuilder( + int index); } /** * * *
-   * A filter with a single operand.
+   * The projection of document's fields to return.
    * 
* - * Protobuf type {@code google.firestore.v1beta1.StructuredQuery.UnaryFilter} + * Protobuf type {@code google.firestore.v1beta1.StructuredQuery.Projection} */ - public static final class UnaryFilter extends com.google.protobuf.GeneratedMessageV3 + public static final class Projection extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.firestore.v1beta1.StructuredQuery.UnaryFilter) - UnaryFilterOrBuilder { + // @@protoc_insertion_point(message_implements:google.firestore.v1beta1.StructuredQuery.Projection) + ProjectionOrBuilder { private static final long serialVersionUID = 0L; - // Use UnaryFilter.newBuilder() to construct. - private UnaryFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use Projection.newBuilder() to construct. + private Projection(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UnaryFilter() { - op_ = 0; + private Projection() { + fields_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -5473,7 +5481,7 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private UnaryFilter( + private Projection( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -5492,32 +5500,18 @@ private UnaryFilter( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); - - op_ = rawValue; - break; - } case 18: { - com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder subBuilder = - null; - if (operandTypeCase_ == 2) { - subBuilder = - ((com.google.firestore.v1beta1.StructuredQuery.FieldReference) operandType_) - .toBuilder(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + fields_ = + new java.util.ArrayList< + com.google.firestore.v1beta1.StructuredQuery.FieldReference>(); + mutable_bitField0_ |= 0x00000001; } - operandType_ = + fields_.add( input.readMessage( com.google.firestore.v1beta1.StructuredQuery.FieldReference.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.firestore.v1beta1.StructuredQuery.FieldReference) operandType_); - operandType_ = subBuilder.buildPartial(); - } - operandTypeCase_ = 2; + extensionRegistry)); break; } default: @@ -5534,6 +5528,9 @@ private UnaryFilter( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + fields_ = java.util.Collections.unmodifiableList(fields_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -5541,287 +5538,103 @@ private UnaryFilter( public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1beta1.QueryProto - .internal_static_google_firestore_v1beta1_StructuredQuery_UnaryFilter_descriptor; + .internal_static_google_firestore_v1beta1_StructuredQuery_Projection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.firestore.v1beta1.QueryProto - .internal_static_google_firestore_v1beta1_StructuredQuery_UnaryFilter_fieldAccessorTable + .internal_static_google_firestore_v1beta1_StructuredQuery_Projection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.class, - com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.Builder.class); + com.google.firestore.v1beta1.StructuredQuery.Projection.class, + com.google.firestore.v1beta1.StructuredQuery.Projection.Builder.class); } + public static final int FIELDS_FIELD_NUMBER = 2; + private java.util.List fields_; /** * * *
-     * A unary operator.
+     * The fields to return.
+     * If empty, all fields are returned. To only return the name
+     * of the document, use `['__name__']`.
      * 
* - * Protobuf enum {@code google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator} + * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; */ - public enum Operator implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-       * Unspecified. This value must not be used.
-       * 
- * - * OPERATOR_UNSPECIFIED = 0; - */ - OPERATOR_UNSPECIFIED(0), - /** - * - * - *
-       * Test if a field is equal to NaN.
-       * 
- * - * IS_NAN = 2; - */ - IS_NAN(2), - /** - * - * - *
-       * Test if an exprestion evaluates to Null.
-       * 
- * - * IS_NULL = 3; - */ - IS_NULL(3), - UNRECOGNIZED(-1), - ; + public java.util.List + getFieldsList() { + return fields_; + } + /** + * + * + *
+     * The fields to return.
+     * If empty, all fields are returned. To only return the name
+     * of the document, use `['__name__']`.
+     * 
+ * + * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; + */ + public java.util.List< + ? extends com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder> + getFieldsOrBuilderList() { + return fields_; + } + /** + * + * + *
+     * The fields to return.
+     * If empty, all fields are returned. To only return the name
+     * of the document, use `['__name__']`.
+     * 
+ * + * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; + */ + public int getFieldsCount() { + return fields_.size(); + } + /** + * + * + *
+     * The fields to return.
+     * If empty, all fields are returned. To only return the name
+     * of the document, use `['__name__']`.
+     * 
+ * + * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; + */ + public com.google.firestore.v1beta1.StructuredQuery.FieldReference getFields(int index) { + return fields_.get(index); + } + /** + * + * + *
+     * The fields to return.
+     * If empty, all fields are returned. To only return the name
+     * of the document, use `['__name__']`.
+     * 
+ * + * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; + */ + public com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder getFieldsOrBuilder( + int index) { + return fields_.get(index); + } - /** - * - * - *
-       * Unspecified. This value must not be used.
-       * 
- * - * OPERATOR_UNSPECIFIED = 0; - */ - public static final int OPERATOR_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-       * Test if a field is equal to NaN.
-       * 
- * - * IS_NAN = 2; - */ - public static final int IS_NAN_VALUE = 2; - /** - * - * - *
-       * Test if an exprestion evaluates to Null.
-       * 
- * - * IS_NULL = 3; - */ - public static final int IS_NULL_VALUE = 3; + private byte memoizedIsInitialized = -1; - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** @deprecated Use {@link #forNumber(int)} instead. */ - @java.lang.Deprecated - public static Operator valueOf(int value) { - return forNumber(value); - } - - public static Operator forNumber(int value) { - switch (value) { - case 0: - return OPERATOR_UNSPECIFIED; - case 2: - return IS_NAN; - case 3: - return IS_NULL; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Operator findValueByNumber(int number) { - return Operator.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Operator[] VALUES = values(); - - public static Operator valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Operator(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator) - } - - private int operandTypeCase_ = 0; - private java.lang.Object operandType_; - - public enum OperandTypeCase implements com.google.protobuf.Internal.EnumLite { - FIELD(2), - OPERANDTYPE_NOT_SET(0); - private final int value; - - private OperandTypeCase(int value) { - this.value = value; - } - /** @deprecated Use {@link #forNumber(int)} instead. */ - @java.lang.Deprecated - public static OperandTypeCase valueOf(int value) { - return forNumber(value); - } - - public static OperandTypeCase forNumber(int value) { - switch (value) { - case 2: - return FIELD; - case 0: - return OPERANDTYPE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public OperandTypeCase getOperandTypeCase() { - return OperandTypeCase.forNumber(operandTypeCase_); - } - - public static final int OP_FIELD_NUMBER = 1; - private int op_; - /** - * - * - *
-     * The unary operator to apply.
-     * 
- * - * .google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator op = 1; - */ - public int getOpValue() { - return op_; - } - /** - * - * - *
-     * The unary operator to apply.
-     * 
- * - * .google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator op = 1; - */ - public com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator getOp() { - @SuppressWarnings("deprecation") - com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator result = - com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator.valueOf(op_); - return result == null - ? com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator.UNRECOGNIZED - : result; - } - - public static final int FIELD_FIELD_NUMBER = 2; - /** - * - * - *
-     * The field to which to apply the operator.
-     * 
- * - * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2; - */ - public boolean hasField() { - return operandTypeCase_ == 2; - } - /** - * - * - *
-     * The field to which to apply the operator.
-     * 
- * - * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2; - */ - public com.google.firestore.v1beta1.StructuredQuery.FieldReference getField() { - if (operandTypeCase_ == 2) { - return (com.google.firestore.v1beta1.StructuredQuery.FieldReference) operandType_; - } - return com.google.firestore.v1beta1.StructuredQuery.FieldReference.getDefaultInstance(); - } - /** - * - * - *
-     * The field to which to apply the operator.
-     * 
- * - * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2; - */ - public com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder - getFieldOrBuilder() { - if (operandTypeCase_ == 2) { - return (com.google.firestore.v1beta1.StructuredQuery.FieldReference) operandType_; - } - return com.google.firestore.v1beta1.StructuredQuery.FieldReference.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; @@ -5829,14 +5642,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (op_ - != com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator.OPERATOR_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, op_); - } - if (operandTypeCase_ == 2) { - output.writeMessage( - 2, (com.google.firestore.v1beta1.StructuredQuery.FieldReference) operandType_); + for (int i = 0; i < fields_.size(); i++) { + output.writeMessage(2, fields_.get(i)); } unknownFields.writeTo(output); } @@ -5847,15 +5654,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (op_ - != com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator.OPERATOR_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, op_); - } - if (operandTypeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.firestore.v1beta1.StructuredQuery.FieldReference) operandType_); + for (int i = 0; i < fields_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, fields_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -5867,23 +5667,14 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.firestore.v1beta1.StructuredQuery.UnaryFilter)) { + if (!(obj instanceof com.google.firestore.v1beta1.StructuredQuery.Projection)) { return super.equals(obj); } - com.google.firestore.v1beta1.StructuredQuery.UnaryFilter other = - (com.google.firestore.v1beta1.StructuredQuery.UnaryFilter) obj; + com.google.firestore.v1beta1.StructuredQuery.Projection other = + (com.google.firestore.v1beta1.StructuredQuery.Projection) obj; boolean result = true; - result = result && op_ == other.op_; - result = result && getOperandTypeCase().equals(other.getOperandTypeCase()); - if (!result) return false; - switch (operandTypeCase_) { - case 2: - result = result && getField().equals(other.getField()); - break; - case 0: - default: - } + result = result && getFieldsList().equals(other.getFieldsList()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -5895,86 +5686,80 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + OP_FIELD_NUMBER; - hash = (53 * hash) + op_; - switch (operandTypeCase_) { - case 2: - hash = (37 * hash) + FIELD_FIELD_NUMBER; - hash = (53 * hash) + getField().hashCode(); - break; - case 0: - default: + if (getFieldsCount() > 0) { + hash = (37 * hash) + FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getFieldsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.firestore.v1beta1.StructuredQuery.UnaryFilter parseFrom( + public static com.google.firestore.v1beta1.StructuredQuery.Projection parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.firestore.v1beta1.StructuredQuery.UnaryFilter parseFrom( + public static com.google.firestore.v1beta1.StructuredQuery.Projection parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.firestore.v1beta1.StructuredQuery.UnaryFilter parseFrom( + public static com.google.firestore.v1beta1.StructuredQuery.Projection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.firestore.v1beta1.StructuredQuery.UnaryFilter parseFrom( + public static com.google.firestore.v1beta1.StructuredQuery.Projection 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.firestore.v1beta1.StructuredQuery.UnaryFilter parseFrom(byte[] data) + public static com.google.firestore.v1beta1.StructuredQuery.Projection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.firestore.v1beta1.StructuredQuery.UnaryFilter parseFrom( + public static com.google.firestore.v1beta1.StructuredQuery.Projection parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.firestore.v1beta1.StructuredQuery.UnaryFilter parseFrom( + public static com.google.firestore.v1beta1.StructuredQuery.Projection parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.firestore.v1beta1.StructuredQuery.UnaryFilter parseFrom( + public static com.google.firestore.v1beta1.StructuredQuery.Projection 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.firestore.v1beta1.StructuredQuery.UnaryFilter parseDelimitedFrom( + public static com.google.firestore.v1beta1.StructuredQuery.Projection parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.firestore.v1beta1.StructuredQuery.UnaryFilter parseDelimitedFrom( + public static com.google.firestore.v1beta1.StructuredQuery.Projection 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.firestore.v1beta1.StructuredQuery.UnaryFilter parseFrom( + public static com.google.firestore.v1beta1.StructuredQuery.Projection parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.firestore.v1beta1.StructuredQuery.UnaryFilter parseFrom( + public static com.google.firestore.v1beta1.StructuredQuery.Projection parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -5992,7 +5777,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.firestore.v1beta1.StructuredQuery.UnaryFilter prototype) { + com.google.firestore.v1beta1.StructuredQuery.Projection prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -6011,32 +5796,32 @@ protected Builder newBuilderForType( * * *
-     * A filter with a single operand.
+     * The projection of document's fields to return.
      * 
* - * Protobuf type {@code google.firestore.v1beta1.StructuredQuery.UnaryFilter} + * Protobuf type {@code google.firestore.v1beta1.StructuredQuery.Projection} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.firestore.v1beta1.StructuredQuery.UnaryFilter) - com.google.firestore.v1beta1.StructuredQuery.UnaryFilterOrBuilder { + // @@protoc_insertion_point(builder_implements:google.firestore.v1beta1.StructuredQuery.Projection) + com.google.firestore.v1beta1.StructuredQuery.ProjectionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1beta1.QueryProto - .internal_static_google_firestore_v1beta1_StructuredQuery_UnaryFilter_descriptor; + .internal_static_google_firestore_v1beta1_StructuredQuery_Projection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.firestore.v1beta1.QueryProto - .internal_static_google_firestore_v1beta1_StructuredQuery_UnaryFilter_fieldAccessorTable + .internal_static_google_firestore_v1beta1_StructuredQuery_Projection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.class, - com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.Builder.class); + com.google.firestore.v1beta1.StructuredQuery.Projection.class, + com.google.firestore.v1beta1.StructuredQuery.Projection.Builder.class); } - // Construct using com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.newBuilder() + // Construct using com.google.firestore.v1beta1.StructuredQuery.Projection.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -6047,33 +5832,37 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFieldsFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); - op_ = 0; - - operandTypeCase_ = 0; - operandType_ = null; + if (fieldsBuilder_ == null) { + fields_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + fieldsBuilder_.clear(); + } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.firestore.v1beta1.QueryProto - .internal_static_google_firestore_v1beta1_StructuredQuery_UnaryFilter_descriptor; + .internal_static_google_firestore_v1beta1_StructuredQuery_Projection_descriptor; } @java.lang.Override - public com.google.firestore.v1beta1.StructuredQuery.UnaryFilter getDefaultInstanceForType() { - return com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.getDefaultInstance(); + public com.google.firestore.v1beta1.StructuredQuery.Projection getDefaultInstanceForType() { + return com.google.firestore.v1beta1.StructuredQuery.Projection.getDefaultInstance(); } @java.lang.Override - public com.google.firestore.v1beta1.StructuredQuery.UnaryFilter build() { - com.google.firestore.v1beta1.StructuredQuery.UnaryFilter result = buildPartial(); + public com.google.firestore.v1beta1.StructuredQuery.Projection build() { + com.google.firestore.v1beta1.StructuredQuery.Projection result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -6081,18 +5870,19 @@ public com.google.firestore.v1beta1.StructuredQuery.UnaryFilter build() { } @java.lang.Override - public com.google.firestore.v1beta1.StructuredQuery.UnaryFilter buildPartial() { - com.google.firestore.v1beta1.StructuredQuery.UnaryFilter result = - new com.google.firestore.v1beta1.StructuredQuery.UnaryFilter(this); - result.op_ = op_; - if (operandTypeCase_ == 2) { - if (fieldBuilder_ == null) { - result.operandType_ = operandType_; - } else { - result.operandType_ = fieldBuilder_.build(); + public com.google.firestore.v1beta1.StructuredQuery.Projection buildPartial() { + com.google.firestore.v1beta1.StructuredQuery.Projection result = + new com.google.firestore.v1beta1.StructuredQuery.Projection(this); + int from_bitField0_ = bitField0_; + if (fieldsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + fields_ = java.util.Collections.unmodifiableList(fields_); + bitField0_ = (bitField0_ & ~0x00000001); } + result.fields_ = fields_; + } else { + result.fields_ = fieldsBuilder_.build(); } - result.operandTypeCase_ = operandTypeCase_; onBuilt(); return result; } @@ -6134,30 +5924,43 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.firestore.v1beta1.StructuredQuery.UnaryFilter) { - return mergeFrom((com.google.firestore.v1beta1.StructuredQuery.UnaryFilter) other); + if (other instanceof com.google.firestore.v1beta1.StructuredQuery.Projection) { + return mergeFrom((com.google.firestore.v1beta1.StructuredQuery.Projection) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.firestore.v1beta1.StructuredQuery.UnaryFilter other) { - if (other == com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.getDefaultInstance()) + public Builder mergeFrom(com.google.firestore.v1beta1.StructuredQuery.Projection other) { + if (other == com.google.firestore.v1beta1.StructuredQuery.Projection.getDefaultInstance()) return this; - if (other.op_ != 0) { - setOpValue(other.getOpValue()); - } - switch (other.getOperandTypeCase()) { - case FIELD: - { - mergeField(other.getField()); - break; + if (fieldsBuilder_ == null) { + if (!other.fields_.isEmpty()) { + if (fields_.isEmpty()) { + fields_ = other.fields_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFieldsIsMutable(); + fields_.addAll(other.fields_); } - case OPERANDTYPE_NOT_SET: - { - break; + onChanged(); + } + } else { + if (!other.fields_.isEmpty()) { + if (fieldsBuilder_.isEmpty()) { + fieldsBuilder_.dispose(); + fieldsBuilder_ = null; + fields_ = other.fields_; + bitField0_ = (bitField0_ & ~0x00000001); + fieldsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFieldsFieldBuilder() + : null; + } else { + fieldsBuilder_.addAllMessages(other.fields_); } + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -6174,12 +5977,12 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.firestore.v1beta1.StructuredQuery.UnaryFilter parsedMessage = null; + com.google.firestore.v1beta1.StructuredQuery.Projection parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = - (com.google.firestore.v1beta1.StructuredQuery.UnaryFilter) e.getUnfinishedMessage(); + (com.google.firestore.v1beta1.StructuredQuery.Projection) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -6189,235 +5992,264 @@ public Builder mergeFrom( return this; } - private int operandTypeCase_ = 0; - private java.lang.Object operandType_; + private int bitField0_; - public OperandTypeCase getOperandTypeCase() { - return OperandTypeCase.forNumber(operandTypeCase_); - } + private java.util.List fields_ = + java.util.Collections.emptyList(); - public Builder clearOperandType() { - operandTypeCase_ = 0; - operandType_ = null; - onChanged(); - return this; + private void ensureFieldsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + fields_ = + new java.util.ArrayList( + fields_); + bitField0_ |= 0x00000001; + } } - private int op_ = 0; + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.firestore.v1beta1.StructuredQuery.FieldReference, + com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder, + com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder> + fieldsBuilder_; + /** * * *
-       * The unary operator to apply.
+       * The fields to return.
+       * If empty, all fields are returned. To only return the name
+       * of the document, use `['__name__']`.
        * 
* - * .google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator op = 1; + * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; */ - public int getOpValue() { - return op_; + public java.util.List + getFieldsList() { + if (fieldsBuilder_ == null) { + return java.util.Collections.unmodifiableList(fields_); + } else { + return fieldsBuilder_.getMessageList(); + } } /** * * *
-       * The unary operator to apply.
+       * The fields to return.
+       * If empty, all fields are returned. To only return the name
+       * of the document, use `['__name__']`.
        * 
* - * .google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator op = 1; + * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; */ - public Builder setOpValue(int value) { - op_ = value; - onChanged(); - return this; + public int getFieldsCount() { + if (fieldsBuilder_ == null) { + return fields_.size(); + } else { + return fieldsBuilder_.getCount(); + } } /** * * *
-       * The unary operator to apply.
+       * The fields to return.
+       * If empty, all fields are returned. To only return the name
+       * of the document, use `['__name__']`.
        * 
* - * .google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator op = 1; + * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; */ - public com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator getOp() { - @SuppressWarnings("deprecation") - com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator result = - com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator.valueOf(op_); - return result == null - ? com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator.UNRECOGNIZED - : result; + public com.google.firestore.v1beta1.StructuredQuery.FieldReference getFields(int index) { + if (fieldsBuilder_ == null) { + return fields_.get(index); + } else { + return fieldsBuilder_.getMessage(index); + } } /** * * *
-       * The unary operator to apply.
+       * The fields to return.
+       * If empty, all fields are returned. To only return the name
+       * of the document, use `['__name__']`.
        * 
* - * .google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator op = 1; + * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; */ - public Builder setOp( - com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator value) { - if (value == null) { - throw new NullPointerException(); + public Builder setFields( + int index, com.google.firestore.v1beta1.StructuredQuery.FieldReference value) { + if (fieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsIsMutable(); + fields_.set(index, value); + onChanged(); + } else { + fieldsBuilder_.setMessage(index, value); } - - op_ = value.getNumber(); - onChanged(); return this; } /** * * *
-       * The unary operator to apply.
+       * The fields to return.
+       * If empty, all fields are returned. To only return the name
+       * of the document, use `['__name__']`.
        * 
* - * .google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator op = 1; + * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; */ - public Builder clearOp() { - - op_ = 0; - onChanged(); + public Builder setFields( + int index, + com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder builderForValue) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.set(index, builderForValue.build()); + onChanged(); + } else { + fieldsBuilder_.setMessage(index, builderForValue.build()); + } return this; } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.firestore.v1beta1.StructuredQuery.FieldReference, - com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder, - com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder> - fieldBuilder_; /** * * *
-       * The field to which to apply the operator.
+       * The fields to return.
+       * If empty, all fields are returned. To only return the name
+       * of the document, use `['__name__']`.
        * 
* - * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2; + * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; */ - public boolean hasField() { - return operandTypeCase_ == 2; - } - /** - * - * + public Builder addFields(com.google.firestore.v1beta1.StructuredQuery.FieldReference value) { + if (fieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsIsMutable(); + fields_.add(value); + onChanged(); + } else { + fieldsBuilder_.addMessage(value); + } + return this; + } + /** + * + * *
-       * The field to which to apply the operator.
+       * The fields to return.
+       * If empty, all fields are returned. To only return the name
+       * of the document, use `['__name__']`.
        * 
* - * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2; + * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; */ - public com.google.firestore.v1beta1.StructuredQuery.FieldReference getField() { - if (fieldBuilder_ == null) { - if (operandTypeCase_ == 2) { - return (com.google.firestore.v1beta1.StructuredQuery.FieldReference) operandType_; + public Builder addFields( + int index, com.google.firestore.v1beta1.StructuredQuery.FieldReference value) { + if (fieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - return com.google.firestore.v1beta1.StructuredQuery.FieldReference.getDefaultInstance(); + ensureFieldsIsMutable(); + fields_.add(index, value); + onChanged(); } else { - if (operandTypeCase_ == 2) { - return fieldBuilder_.getMessage(); - } - return com.google.firestore.v1beta1.StructuredQuery.FieldReference.getDefaultInstance(); + fieldsBuilder_.addMessage(index, value); } + return this; } /** * * *
-       * The field to which to apply the operator.
+       * The fields to return.
+       * If empty, all fields are returned. To only return the name
+       * of the document, use `['__name__']`.
        * 
* - * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2; + * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; */ - public Builder setField(com.google.firestore.v1beta1.StructuredQuery.FieldReference value) { - if (fieldBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - operandType_ = value; + public Builder addFields( + com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder builderForValue) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(builderForValue.build()); onChanged(); } else { - fieldBuilder_.setMessage(value); + fieldsBuilder_.addMessage(builderForValue.build()); } - operandTypeCase_ = 2; return this; } /** * * *
-       * The field to which to apply the operator.
+       * The fields to return.
+       * If empty, all fields are returned. To only return the name
+       * of the document, use `['__name__']`.
        * 
* - * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2; + * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; */ - public Builder setField( + public Builder addFields( + int index, com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder builderForValue) { - if (fieldBuilder_ == null) { - operandType_ = builderForValue.build(); + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(index, builderForValue.build()); onChanged(); } else { - fieldBuilder_.setMessage(builderForValue.build()); + fieldsBuilder_.addMessage(index, builderForValue.build()); } - operandTypeCase_ = 2; return this; } /** * * *
-       * The field to which to apply the operator.
+       * The fields to return.
+       * If empty, all fields are returned. To only return the name
+       * of the document, use `['__name__']`.
        * 
* - * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2; + * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; */ - public Builder mergeField(com.google.firestore.v1beta1.StructuredQuery.FieldReference value) { - if (fieldBuilder_ == null) { - if (operandTypeCase_ == 2 - && operandType_ - != com.google.firestore.v1beta1.StructuredQuery.FieldReference - .getDefaultInstance()) { - operandType_ = - com.google.firestore.v1beta1.StructuredQuery.FieldReference.newBuilder( - (com.google.firestore.v1beta1.StructuredQuery.FieldReference) operandType_) - .mergeFrom(value) - .buildPartial(); - } else { - operandType_ = value; - } + public Builder addAllFields( + java.lang.Iterable + values) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_); onChanged(); } else { - if (operandTypeCase_ == 2) { - fieldBuilder_.mergeFrom(value); - } - fieldBuilder_.setMessage(value); + fieldsBuilder_.addAllMessages(values); } - operandTypeCase_ = 2; return this; } /** * * *
-       * The field to which to apply the operator.
+       * The fields to return.
+       * If empty, all fields are returned. To only return the name
+       * of the document, use `['__name__']`.
        * 
* - * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2; + * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; */ - public Builder clearField() { - if (fieldBuilder_ == null) { - if (operandTypeCase_ == 2) { - operandTypeCase_ = 0; - operandType_ = null; - onChanged(); - } + public Builder clearFields() { + if (fieldsBuilder_ == null) { + fields_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); } else { - if (operandTypeCase_ == 2) { - operandTypeCase_ = 0; - operandType_ = null; - } - fieldBuilder_.clear(); + fieldsBuilder_.clear(); } return this; } @@ -6425,199 +6257,281 @@ public Builder clearField() { * * *
-       * The field to which to apply the operator.
+       * The fields to return.
+       * If empty, all fields are returned. To only return the name
+       * of the document, use `['__name__']`.
        * 
* - * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2; + * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; */ - public com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder getFieldBuilder() { - return getFieldFieldBuilder().getBuilder(); + public Builder removeFields(int index) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.remove(index); + onChanged(); + } else { + fieldsBuilder_.remove(index); + } + return this; } /** * * *
-       * The field to which to apply the operator.
+       * The fields to return.
+       * If empty, all fields are returned. To only return the name
+       * of the document, use `['__name__']`.
        * 
* - * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2; + * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; + */ + public com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder getFieldsBuilder( + int index) { + return getFieldsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * The fields to return.
+       * If empty, all fields are returned. To only return the name
+       * of the document, use `['__name__']`.
+       * 
+ * + * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; */ public com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder - getFieldOrBuilder() { - if ((operandTypeCase_ == 2) && (fieldBuilder_ != null)) { - return fieldBuilder_.getMessageOrBuilder(); + getFieldsOrBuilder(int index) { + if (fieldsBuilder_ == null) { + return fields_.get(index); } else { - if (operandTypeCase_ == 2) { - return (com.google.firestore.v1beta1.StructuredQuery.FieldReference) operandType_; - } - return com.google.firestore.v1beta1.StructuredQuery.FieldReference.getDefaultInstance(); + return fieldsBuilder_.getMessageOrBuilder(index); } } /** * * *
-       * The field to which to apply the operator.
+       * The fields to return.
+       * If empty, all fields are returned. To only return the name
+       * of the document, use `['__name__']`.
        * 
* - * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2; + * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.firestore.v1beta1.StructuredQuery.FieldReference, - com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder, - com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder> - getFieldFieldBuilder() { - if (fieldBuilder_ == null) { - if (!(operandTypeCase_ == 2)) { - operandType_ = - com.google.firestore.v1beta1.StructuredQuery.FieldReference.getDefaultInstance(); - } - fieldBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.firestore.v1beta1.StructuredQuery.FieldReference, - com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder, - com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder>( - (com.google.firestore.v1beta1.StructuredQuery.FieldReference) operandType_, - getParentForChildren(), - isClean()); - operandType_ = null; + public java.util.List< + ? extends com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder> + getFieldsOrBuilderList() { + if (fieldsBuilder_ != null) { + return fieldsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(fields_); } - operandTypeCase_ = 2; - onChanged(); - ; - return fieldBuilder_; - } - - @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); + /** + * + * + *
+       * The fields to return.
+       * If empty, all fields are returned. To only return the name
+       * of the document, use `['__name__']`.
+       * 
+ * + * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; + */ + public com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder + addFieldsBuilder() { + return getFieldsFieldBuilder() + .addBuilder( + com.google.firestore.v1beta1.StructuredQuery.FieldReference.getDefaultInstance()); + } + /** + * + * + *
+       * The fields to return.
+       * If empty, all fields are returned. To only return the name
+       * of the document, use `['__name__']`.
+       * 
+ * + * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; + */ + public com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder addFieldsBuilder( + int index) { + return getFieldsFieldBuilder() + .addBuilder( + index, + com.google.firestore.v1beta1.StructuredQuery.FieldReference.getDefaultInstance()); + } + /** + * + * + *
+       * The fields to return.
+       * If empty, all fields are returned. To only return the name
+       * of the document, use `['__name__']`.
+       * 
+ * + * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; + */ + public java.util.List + getFieldsBuilderList() { + return getFieldsFieldBuilder().getBuilderList(); } - // @@protoc_insertion_point(builder_scope:google.firestore.v1beta1.StructuredQuery.UnaryFilter) - } - - // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.StructuredQuery.UnaryFilter) - private static final com.google.firestore.v1beta1.StructuredQuery.UnaryFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.firestore.v1beta1.StructuredQuery.UnaryFilter(); - } - - public static com.google.firestore.v1beta1.StructuredQuery.UnaryFilter getDefaultInstance() { + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.firestore.v1beta1.StructuredQuery.FieldReference, + com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder, + com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder> + getFieldsFieldBuilder() { + if (fieldsBuilder_ == null) { + fieldsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.firestore.v1beta1.StructuredQuery.FieldReference, + com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder, + com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder>( + fields_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + fields_ = null; + } + return fieldsBuilder_; + } + + @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.firestore.v1beta1.StructuredQuery.Projection) + } + + // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.StructuredQuery.Projection) + private static final com.google.firestore.v1beta1.StructuredQuery.Projection DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.firestore.v1beta1.StructuredQuery.Projection(); + } + + public static com.google.firestore.v1beta1.StructuredQuery.Projection getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public UnaryFilter parsePartialFrom( + public Projection parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UnaryFilter(input, extensionRegistry); + return new Projection(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.firestore.v1beta1.StructuredQuery.UnaryFilter getDefaultInstanceForType() { + public com.google.firestore.v1beta1.StructuredQuery.Projection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface OrderOrBuilder + public interface UnaryFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.firestore.v1beta1.StructuredQuery.Order) + // @@protoc_insertion_point(interface_extends:google.firestore.v1beta1.StructuredQuery.UnaryFilter) com.google.protobuf.MessageOrBuilder { /** * * *
-     * The field to order by.
+     * The unary operator to apply.
      * 
* - * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1; + * .google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator op = 1; */ - boolean hasField(); + int getOpValue(); /** * * *
-     * The field to order by.
+     * The unary operator to apply.
      * 
* - * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1; + * .google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator op = 1; */ - com.google.firestore.v1beta1.StructuredQuery.FieldReference getField(); + com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator getOp(); + /** * * *
-     * The field to order by.
+     * The field to which to apply the operator.
      * 
* - * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1; + * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2; */ - com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder getFieldOrBuilder(); - + boolean hasField(); /** * * *
-     * The direction to order by. Defaults to `ASCENDING`.
+     * The field to which to apply the operator.
      * 
* - * .google.firestore.v1beta1.StructuredQuery.Direction direction = 2; + * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2; */ - int getDirectionValue(); + com.google.firestore.v1beta1.StructuredQuery.FieldReference getField(); /** * * *
-     * The direction to order by. Defaults to `ASCENDING`.
+     * The field to which to apply the operator.
      * 
* - * .google.firestore.v1beta1.StructuredQuery.Direction direction = 2; + * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2; */ - com.google.firestore.v1beta1.StructuredQuery.Direction getDirection(); + com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder getFieldOrBuilder(); + + public com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.OperandTypeCase + getOperandTypeCase(); } /** * * *
-   * An order on a field.
+   * A filter with a single operand.
    * 
* - * Protobuf type {@code google.firestore.v1beta1.StructuredQuery.Order} + * Protobuf type {@code google.firestore.v1beta1.StructuredQuery.UnaryFilter} */ - public static final class Order extends com.google.protobuf.GeneratedMessageV3 + public static final class UnaryFilter extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.firestore.v1beta1.StructuredQuery.Order) - OrderOrBuilder { + // @@protoc_insertion_point(message_implements:google.firestore.v1beta1.StructuredQuery.UnaryFilter) + UnaryFilterOrBuilder { private static final long serialVersionUID = 0L; - // Use Order.newBuilder() to construct. - private Order(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use UnaryFilter.newBuilder() to construct. + private UnaryFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Order() { - direction_ = 0; + private UnaryFilter() { + op_ = 0; } @java.lang.Override @@ -6625,7 +6539,7 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Order( + private UnaryFilter( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -6644,29 +6558,32 @@ private Order( case 0: done = true; break; - case 10: + case 8: + { + int rawValue = input.readEnum(); + + op_ = rawValue; + break; + } + case 18: { com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder subBuilder = null; - if (field_ != null) { - subBuilder = field_.toBuilder(); + if (operandTypeCase_ == 2) { + subBuilder = + ((com.google.firestore.v1beta1.StructuredQuery.FieldReference) operandType_) + .toBuilder(); } - field_ = + operandType_ = input.readMessage( com.google.firestore.v1beta1.StructuredQuery.FieldReference.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom(field_); - field_ = subBuilder.buildPartial(); + subBuilder.mergeFrom( + (com.google.firestore.v1beta1.StructuredQuery.FieldReference) operandType_); + operandType_ = subBuilder.buildPartial(); } - - break; - } - case 16: - { - int rawValue = input.readEnum(); - - direction_ = rawValue; + operandTypeCase_ = 2; break; } default: @@ -6690,241 +6607,440 @@ private Order( public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1beta1.QueryProto - .internal_static_google_firestore_v1beta1_StructuredQuery_Order_descriptor; + .internal_static_google_firestore_v1beta1_StructuredQuery_UnaryFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.firestore.v1beta1.QueryProto - .internal_static_google_firestore_v1beta1_StructuredQuery_Order_fieldAccessorTable + .internal_static_google_firestore_v1beta1_StructuredQuery_UnaryFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.firestore.v1beta1.StructuredQuery.Order.class, - com.google.firestore.v1beta1.StructuredQuery.Order.Builder.class); - } - - public static final int FIELD_FIELD_NUMBER = 1; - private com.google.firestore.v1beta1.StructuredQuery.FieldReference field_; - /** - * - * - *
-     * The field to order by.
-     * 
- * - * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1; - */ - public boolean hasField() { - return field_ != null; - } - /** - * - * - *
-     * The field to order by.
-     * 
- * - * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1; - */ - public com.google.firestore.v1beta1.StructuredQuery.FieldReference getField() { - return field_ == null - ? com.google.firestore.v1beta1.StructuredQuery.FieldReference.getDefaultInstance() - : field_; - } - /** - * - * - *
-     * The field to order by.
-     * 
- * - * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1; - */ - public com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder - getFieldOrBuilder() { - return getField(); + com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.class, + com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.Builder.class); } - public static final int DIRECTION_FIELD_NUMBER = 2; - private int direction_; - /** - * - * - *
-     * The direction to order by. Defaults to `ASCENDING`.
-     * 
- * - * .google.firestore.v1beta1.StructuredQuery.Direction direction = 2; - */ - public int getDirectionValue() { - return direction_; - } /** * * *
-     * The direction to order by. Defaults to `ASCENDING`.
+     * A unary operator.
      * 
* - * .google.firestore.v1beta1.StructuredQuery.Direction direction = 2; + * Protobuf enum {@code google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator} */ - public com.google.firestore.v1beta1.StructuredQuery.Direction getDirection() { - @SuppressWarnings("deprecation") - com.google.firestore.v1beta1.StructuredQuery.Direction result = - com.google.firestore.v1beta1.StructuredQuery.Direction.valueOf(direction_); - return result == null - ? com.google.firestore.v1beta1.StructuredQuery.Direction.UNRECOGNIZED - : result; - } + public enum Operator implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Unspecified. This value must not be used.
+       * 
+ * + * OPERATOR_UNSPECIFIED = 0; + */ + OPERATOR_UNSPECIFIED(0), + /** + * + * + *
+       * Test if a field is equal to NaN.
+       * 
+ * + * IS_NAN = 2; + */ + IS_NAN(2), + /** + * + * + *
+       * Test if an exprestion evaluates to Null.
+       * 
+ * + * IS_NULL = 3; + */ + IS_NULL(3), + UNRECOGNIZED(-1), + ; - private byte memoizedIsInitialized = -1; + /** + * + * + *
+       * Unspecified. This value must not be used.
+       * 
+ * + * OPERATOR_UNSPECIFIED = 0; + */ + public static final int OPERATOR_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Test if a field is equal to NaN.
+       * 
+ * + * IS_NAN = 2; + */ + public static final int IS_NAN_VALUE = 2; + /** + * + * + *
+       * Test if an exprestion evaluates to Null.
+       * 
+ * + * IS_NULL = 3; + */ + public static final int IS_NULL_VALUE = 3; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } - memoizedIsInitialized = 1; - return true; - } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static Operator valueOf(int value) { + return forNumber(value); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (field_ != null) { - output.writeMessage(1, getField()); + public static Operator forNumber(int value) { + switch (value) { + case 0: + return OPERATOR_UNSPECIFIED; + case 2: + return IS_NAN; + case 3: + return IS_NULL; + default: + return null; + } } - if (direction_ - != com.google.firestore.v1beta1.StructuredQuery.Direction.DIRECTION_UNSPECIFIED - .getNumber()) { - output.writeEnum(2, direction_); + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; } - unknownFields.writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Operator findValueByNumber(int number) { + return Operator.forNumber(number); + } + }; - size = 0; - if (field_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getField()); - } - if (direction_ - != com.google.firestore.v1beta1.StructuredQuery.Direction.DIRECTION_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, direction_); + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); } - 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.firestore.v1beta1.StructuredQuery.Order)) { - return super.equals(obj); + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); } - com.google.firestore.v1beta1.StructuredQuery.Order other = - (com.google.firestore.v1beta1.StructuredQuery.Order) obj; - boolean result = true; - result = result && (hasField() == other.hasField()); - if (hasField()) { - result = result && getField().equals(other.getField()); + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.getDescriptor() + .getEnumTypes() + .get(0); } - result = result && direction_ == other.direction_; - result = result && unknownFields.equals(other.unknownFields); - return result; - } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasField()) { - hash = (37 * hash) + FIELD_FIELD_NUMBER; - hash = (53 * hash) + getField().hashCode(); + private static final Operator[] VALUES = values(); + + public static Operator valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; } - hash = (37 * hash) + DIRECTION_FIELD_NUMBER; - hash = (53 * hash) + direction_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - public static com.google.firestore.v1beta1.StructuredQuery.Order parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private final int value; - public static com.google.firestore.v1beta1.StructuredQuery.Order parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private Operator(int value) { + this.value = value; + } - public static com.google.firestore.v1beta1.StructuredQuery.Order parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + // @@protoc_insertion_point(enum_scope:google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator) } - public static com.google.firestore.v1beta1.StructuredQuery.Order parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private int operandTypeCase_ = 0; + private java.lang.Object operandType_; - public static com.google.firestore.v1beta1.StructuredQuery.Order parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public enum OperandTypeCase implements com.google.protobuf.Internal.EnumLite { + FIELD(2), + OPERANDTYPE_NOT_SET(0); + private final int value; - public static com.google.firestore.v1beta1.StructuredQuery.Order parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private OperandTypeCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static OperandTypeCase valueOf(int value) { + return forNumber(value); + } - public static com.google.firestore.v1beta1.StructuredQuery.Order parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static OperandTypeCase forNumber(int value) { + switch (value) { + case 2: + return FIELD; + case 0: + return OPERANDTYPE_NOT_SET; + default: + return null; + } + } - public static com.google.firestore.v1beta1.StructuredQuery.Order parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public int getNumber() { + return this.value; + } + }; + + public OperandTypeCase getOperandTypeCase() { + return OperandTypeCase.forNumber(operandTypeCase_); } - public static com.google.firestore.v1beta1.StructuredQuery.Order parseDelimitedFrom( + public static final int OP_FIELD_NUMBER = 1; + private int op_; + /** + * + * + *
+     * The unary operator to apply.
+     * 
+ * + * .google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator op = 1; + */ + public int getOpValue() { + return op_; + } + /** + * + * + *
+     * The unary operator to apply.
+     * 
+ * + * .google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator op = 1; + */ + public com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator getOp() { + @SuppressWarnings("deprecation") + com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator result = + com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator.valueOf(op_); + return result == null + ? com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator.UNRECOGNIZED + : result; + } + + public static final int FIELD_FIELD_NUMBER = 2; + /** + * + * + *
+     * The field to which to apply the operator.
+     * 
+ * + * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2; + */ + public boolean hasField() { + return operandTypeCase_ == 2; + } + /** + * + * + *
+     * The field to which to apply the operator.
+     * 
+ * + * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2; + */ + public com.google.firestore.v1beta1.StructuredQuery.FieldReference getField() { + if (operandTypeCase_ == 2) { + return (com.google.firestore.v1beta1.StructuredQuery.FieldReference) operandType_; + } + return com.google.firestore.v1beta1.StructuredQuery.FieldReference.getDefaultInstance(); + } + /** + * + * + *
+     * The field to which to apply the operator.
+     * 
+ * + * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2; + */ + public com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder + getFieldOrBuilder() { + if (operandTypeCase_ == 2) { + return (com.google.firestore.v1beta1.StructuredQuery.FieldReference) operandType_; + } + return com.google.firestore.v1beta1.StructuredQuery.FieldReference.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (op_ + != com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator.OPERATOR_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, op_); + } + if (operandTypeCase_ == 2) { + output.writeMessage( + 2, (com.google.firestore.v1beta1.StructuredQuery.FieldReference) operandType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (op_ + != com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator.OPERATOR_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, op_); + } + if (operandTypeCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.firestore.v1beta1.StructuredQuery.FieldReference) operandType_); + } + 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.firestore.v1beta1.StructuredQuery.UnaryFilter)) { + return super.equals(obj); + } + com.google.firestore.v1beta1.StructuredQuery.UnaryFilter other = + (com.google.firestore.v1beta1.StructuredQuery.UnaryFilter) obj; + + boolean result = true; + result = result && op_ == other.op_; + result = result && getOperandTypeCase().equals(other.getOperandTypeCase()); + if (!result) return false; + switch (operandTypeCase_) { + case 2: + result = result && getField().equals(other.getField()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OP_FIELD_NUMBER; + hash = (53 * hash) + op_; + switch (operandTypeCase_) { + case 2: + hash = (37 * hash) + FIELD_FIELD_NUMBER; + hash = (53 * hash) + getField().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.firestore.v1beta1.StructuredQuery.UnaryFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.v1beta1.StructuredQuery.UnaryFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.v1beta1.StructuredQuery.UnaryFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.v1beta1.StructuredQuery.UnaryFilter 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.firestore.v1beta1.StructuredQuery.UnaryFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.v1beta1.StructuredQuery.UnaryFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.v1beta1.StructuredQuery.UnaryFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.v1beta1.StructuredQuery.UnaryFilter 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.firestore.v1beta1.StructuredQuery.UnaryFilter parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.firestore.v1beta1.StructuredQuery.Order parseDelimitedFrom( + public static com.google.firestore.v1beta1.StructuredQuery.UnaryFilter 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.firestore.v1beta1.StructuredQuery.Order parseFrom( + public static com.google.firestore.v1beta1.StructuredQuery.UnaryFilter parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.firestore.v1beta1.StructuredQuery.Order parseFrom( + public static com.google.firestore.v1beta1.StructuredQuery.UnaryFilter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -6941,7 +7057,8 @@ public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.firestore.v1beta1.StructuredQuery.Order prototype) { + public static Builder newBuilder( + com.google.firestore.v1beta1.StructuredQuery.UnaryFilter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -6960,32 +7077,32 @@ protected Builder newBuilderForType( * * *
-     * An order on a field.
+     * A filter with a single operand.
      * 
* - * Protobuf type {@code google.firestore.v1beta1.StructuredQuery.Order} + * Protobuf type {@code google.firestore.v1beta1.StructuredQuery.UnaryFilter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.firestore.v1beta1.StructuredQuery.Order) - com.google.firestore.v1beta1.StructuredQuery.OrderOrBuilder { + // @@protoc_insertion_point(builder_implements:google.firestore.v1beta1.StructuredQuery.UnaryFilter) + com.google.firestore.v1beta1.StructuredQuery.UnaryFilterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1beta1.QueryProto - .internal_static_google_firestore_v1beta1_StructuredQuery_Order_descriptor; + .internal_static_google_firestore_v1beta1_StructuredQuery_UnaryFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.firestore.v1beta1.QueryProto - .internal_static_google_firestore_v1beta1_StructuredQuery_Order_fieldAccessorTable + .internal_static_google_firestore_v1beta1_StructuredQuery_UnaryFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.firestore.v1beta1.StructuredQuery.Order.class, - com.google.firestore.v1beta1.StructuredQuery.Order.Builder.class); + com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.class, + com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.Builder.class); } - // Construct using com.google.firestore.v1beta1.StructuredQuery.Order.newBuilder() + // Construct using com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -7002,31 +7119,27 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - if (fieldBuilder_ == null) { - field_ = null; - } else { - field_ = null; - fieldBuilder_ = null; - } - direction_ = 0; + op_ = 0; - return this; + operandTypeCase_ = 0; + operandType_ = null; + return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.firestore.v1beta1.QueryProto - .internal_static_google_firestore_v1beta1_StructuredQuery_Order_descriptor; + .internal_static_google_firestore_v1beta1_StructuredQuery_UnaryFilter_descriptor; } @java.lang.Override - public com.google.firestore.v1beta1.StructuredQuery.Order getDefaultInstanceForType() { - return com.google.firestore.v1beta1.StructuredQuery.Order.getDefaultInstance(); + public com.google.firestore.v1beta1.StructuredQuery.UnaryFilter getDefaultInstanceForType() { + return com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.getDefaultInstance(); } @java.lang.Override - public com.google.firestore.v1beta1.StructuredQuery.Order build() { - com.google.firestore.v1beta1.StructuredQuery.Order result = buildPartial(); + public com.google.firestore.v1beta1.StructuredQuery.UnaryFilter build() { + com.google.firestore.v1beta1.StructuredQuery.UnaryFilter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -7034,15 +7147,18 @@ public com.google.firestore.v1beta1.StructuredQuery.Order build() { } @java.lang.Override - public com.google.firestore.v1beta1.StructuredQuery.Order buildPartial() { - com.google.firestore.v1beta1.StructuredQuery.Order result = - new com.google.firestore.v1beta1.StructuredQuery.Order(this); - if (fieldBuilder_ == null) { - result.field_ = field_; - } else { - result.field_ = fieldBuilder_.build(); + public com.google.firestore.v1beta1.StructuredQuery.UnaryFilter buildPartial() { + com.google.firestore.v1beta1.StructuredQuery.UnaryFilter result = + new com.google.firestore.v1beta1.StructuredQuery.UnaryFilter(this); + result.op_ = op_; + if (operandTypeCase_ == 2) { + if (fieldBuilder_ == null) { + result.operandType_ = operandType_; + } else { + result.operandType_ = fieldBuilder_.build(); + } } - result.direction_ = direction_; + result.operandTypeCase_ = operandTypeCase_; onBuilt(); return result; } @@ -7084,22 +7200,30 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.firestore.v1beta1.StructuredQuery.Order) { - return mergeFrom((com.google.firestore.v1beta1.StructuredQuery.Order) other); + if (other instanceof com.google.firestore.v1beta1.StructuredQuery.UnaryFilter) { + return mergeFrom((com.google.firestore.v1beta1.StructuredQuery.UnaryFilter) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.firestore.v1beta1.StructuredQuery.Order other) { - if (other == com.google.firestore.v1beta1.StructuredQuery.Order.getDefaultInstance()) + public Builder mergeFrom(com.google.firestore.v1beta1.StructuredQuery.UnaryFilter other) { + if (other == com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.getDefaultInstance()) return this; - if (other.hasField()) { - mergeField(other.getField()); + if (other.op_ != 0) { + setOpValue(other.getOpValue()); } - if (other.direction_ != 0) { - setDirectionValue(other.getDirectionValue()); + switch (other.getOperandTypeCase()) { + case FIELD: + { + mergeField(other.getField()); + break; + } + case OPERANDTYPE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -7116,12 +7240,12 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.firestore.v1beta1.StructuredQuery.Order parsedMessage = null; + com.google.firestore.v1beta1.StructuredQuery.UnaryFilter parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = - (com.google.firestore.v1beta1.StructuredQuery.Order) e.getUnfinishedMessage(); + (com.google.firestore.v1beta1.StructuredQuery.UnaryFilter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -7131,7 +7255,99 @@ public Builder mergeFrom( return this; } - private com.google.firestore.v1beta1.StructuredQuery.FieldReference field_ = null; + private int operandTypeCase_ = 0; + private java.lang.Object operandType_; + + public OperandTypeCase getOperandTypeCase() { + return OperandTypeCase.forNumber(operandTypeCase_); + } + + public Builder clearOperandType() { + operandTypeCase_ = 0; + operandType_ = null; + onChanged(); + return this; + } + + private int op_ = 0; + /** + * + * + *
+       * The unary operator to apply.
+       * 
+ * + * .google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator op = 1; + */ + public int getOpValue() { + return op_; + } + /** + * + * + *
+       * The unary operator to apply.
+       * 
+ * + * .google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator op = 1; + */ + public Builder setOpValue(int value) { + op_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The unary operator to apply.
+       * 
+ * + * .google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator op = 1; + */ + public com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator getOp() { + @SuppressWarnings("deprecation") + com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator result = + com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator.valueOf(op_); + return result == null + ? com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * The unary operator to apply.
+       * 
+ * + * .google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator op = 1; + */ + public Builder setOp( + com.google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator value) { + if (value == null) { + throw new NullPointerException(); + } + + op_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * The unary operator to apply.
+       * 
+ * + * .google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator op = 1; + */ + public Builder clearOp() { + + op_ = 0; + onChanged(); + return this; + } + private com.google.protobuf.SingleFieldBuilderV3< com.google.firestore.v1beta1.StructuredQuery.FieldReference, com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder, @@ -7141,161 +7357,176 @@ public Builder mergeFrom( * * *
-       * The field to order by.
+       * The field to which to apply the operator.
        * 
* - * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1; + * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2; */ public boolean hasField() { - return fieldBuilder_ != null || field_ != null; + return operandTypeCase_ == 2; } /** * * *
-       * The field to order by.
+       * The field to which to apply the operator.
        * 
* - * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1; + * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2; */ public com.google.firestore.v1beta1.StructuredQuery.FieldReference getField() { if (fieldBuilder_ == null) { - return field_ == null - ? com.google.firestore.v1beta1.StructuredQuery.FieldReference.getDefaultInstance() - : field_; + if (operandTypeCase_ == 2) { + return (com.google.firestore.v1beta1.StructuredQuery.FieldReference) operandType_; + } + return com.google.firestore.v1beta1.StructuredQuery.FieldReference.getDefaultInstance(); } else { - return fieldBuilder_.getMessage(); + if (operandTypeCase_ == 2) { + return fieldBuilder_.getMessage(); + } + return com.google.firestore.v1beta1.StructuredQuery.FieldReference.getDefaultInstance(); } } /** * * *
-       * The field to order by.
+       * The field to which to apply the operator.
        * 
* - * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1; + * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2; */ public Builder setField(com.google.firestore.v1beta1.StructuredQuery.FieldReference value) { if (fieldBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - field_ = value; + operandType_ = value; onChanged(); } else { fieldBuilder_.setMessage(value); } - + operandTypeCase_ = 2; return this; } /** * * *
-       * The field to order by.
+       * The field to which to apply the operator.
        * 
* - * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1; + * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2; */ public Builder setField( com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder builderForValue) { if (fieldBuilder_ == null) { - field_ = builderForValue.build(); + operandType_ = builderForValue.build(); onChanged(); } else { fieldBuilder_.setMessage(builderForValue.build()); } - + operandTypeCase_ = 2; return this; } /** * * *
-       * The field to order by.
+       * The field to which to apply the operator.
        * 
* - * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1; + * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2; */ public Builder mergeField(com.google.firestore.v1beta1.StructuredQuery.FieldReference value) { if (fieldBuilder_ == null) { - if (field_ != null) { - field_ = - com.google.firestore.v1beta1.StructuredQuery.FieldReference.newBuilder(field_) + if (operandTypeCase_ == 2 + && operandType_ + != com.google.firestore.v1beta1.StructuredQuery.FieldReference + .getDefaultInstance()) { + operandType_ = + com.google.firestore.v1beta1.StructuredQuery.FieldReference.newBuilder( + (com.google.firestore.v1beta1.StructuredQuery.FieldReference) operandType_) .mergeFrom(value) .buildPartial(); } else { - field_ = value; + operandType_ = value; } onChanged(); } else { - fieldBuilder_.mergeFrom(value); + if (operandTypeCase_ == 2) { + fieldBuilder_.mergeFrom(value); + } + fieldBuilder_.setMessage(value); } - + operandTypeCase_ = 2; return this; } /** * * *
-       * The field to order by.
+       * The field to which to apply the operator.
        * 
* - * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1; + * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2; */ public Builder clearField() { if (fieldBuilder_ == null) { - field_ = null; - onChanged(); + if (operandTypeCase_ == 2) { + operandTypeCase_ = 0; + operandType_ = null; + onChanged(); + } } else { - field_ = null; - fieldBuilder_ = null; + if (operandTypeCase_ == 2) { + operandTypeCase_ = 0; + operandType_ = null; + } + fieldBuilder_.clear(); } - return this; } /** * * *
-       * The field to order by.
+       * The field to which to apply the operator.
        * 
* - * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1; + * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2; */ public com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder getFieldBuilder() { - - onChanged(); return getFieldFieldBuilder().getBuilder(); } /** * * *
-       * The field to order by.
+       * The field to which to apply the operator.
        * 
* - * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1; + * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2; */ public com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder getFieldOrBuilder() { - if (fieldBuilder_ != null) { + if ((operandTypeCase_ == 2) && (fieldBuilder_ != null)) { return fieldBuilder_.getMessageOrBuilder(); } else { - return field_ == null - ? com.google.firestore.v1beta1.StructuredQuery.FieldReference.getDefaultInstance() - : field_; + if (operandTypeCase_ == 2) { + return (com.google.firestore.v1beta1.StructuredQuery.FieldReference) operandType_; + } + return com.google.firestore.v1beta1.StructuredQuery.FieldReference.getDefaultInstance(); } } /** * * *
-       * The field to order by.
+       * The field to which to apply the operator.
        * 
* - * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1; + * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.firestore.v1beta1.StructuredQuery.FieldReference, @@ -7303,93 +7534,24 @@ public com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder getFi com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder> getFieldFieldBuilder() { if (fieldBuilder_ == null) { + if (!(operandTypeCase_ == 2)) { + operandType_ = + com.google.firestore.v1beta1.StructuredQuery.FieldReference.getDefaultInstance(); + } fieldBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.firestore.v1beta1.StructuredQuery.FieldReference, com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder, com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder>( - getField(), getParentForChildren(), isClean()); - field_ = null; - } - return fieldBuilder_; - } - - private int direction_ = 0; - /** - * - * - *
-       * The direction to order by. Defaults to `ASCENDING`.
-       * 
- * - * .google.firestore.v1beta1.StructuredQuery.Direction direction = 2; - */ - public int getDirectionValue() { - return direction_; - } - /** - * - * - *
-       * The direction to order by. Defaults to `ASCENDING`.
-       * 
- * - * .google.firestore.v1beta1.StructuredQuery.Direction direction = 2; - */ - public Builder setDirectionValue(int value) { - direction_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The direction to order by. Defaults to `ASCENDING`.
-       * 
- * - * .google.firestore.v1beta1.StructuredQuery.Direction direction = 2; - */ - public com.google.firestore.v1beta1.StructuredQuery.Direction getDirection() { - @SuppressWarnings("deprecation") - com.google.firestore.v1beta1.StructuredQuery.Direction result = - com.google.firestore.v1beta1.StructuredQuery.Direction.valueOf(direction_); - return result == null - ? com.google.firestore.v1beta1.StructuredQuery.Direction.UNRECOGNIZED - : result; - } - /** - * - * - *
-       * The direction to order by. Defaults to `ASCENDING`.
-       * 
- * - * .google.firestore.v1beta1.StructuredQuery.Direction direction = 2; - */ - public Builder setDirection(com.google.firestore.v1beta1.StructuredQuery.Direction value) { - if (value == null) { - throw new NullPointerException(); + (com.google.firestore.v1beta1.StructuredQuery.FieldReference) operandType_, + getParentForChildren(), + isClean()); + operandType_ = null; } - - direction_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * The direction to order by. Defaults to `ASCENDING`.
-       * 
- * - * .google.firestore.v1beta1.StructuredQuery.Direction direction = 2; - */ - public Builder clearDirection() { - - direction_ = 0; + operandTypeCase_ = 2; onChanged(); - return this; + ; + return fieldBuilder_; } @java.lang.Override @@ -7404,77 +7566,124 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.firestore.v1beta1.StructuredQuery.Order) + // @@protoc_insertion_point(builder_scope:google.firestore.v1beta1.StructuredQuery.UnaryFilter) } - // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.StructuredQuery.Order) - private static final com.google.firestore.v1beta1.StructuredQuery.Order DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.StructuredQuery.UnaryFilter) + private static final com.google.firestore.v1beta1.StructuredQuery.UnaryFilter DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.firestore.v1beta1.StructuredQuery.Order(); + DEFAULT_INSTANCE = new com.google.firestore.v1beta1.StructuredQuery.UnaryFilter(); } - public static com.google.firestore.v1beta1.StructuredQuery.Order getDefaultInstance() { + public static com.google.firestore.v1beta1.StructuredQuery.UnaryFilter getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public Order parsePartialFrom( + public UnaryFilter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Order(input, extensionRegistry); + return new UnaryFilter(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.firestore.v1beta1.StructuredQuery.Order getDefaultInstanceForType() { + public com.google.firestore.v1beta1.StructuredQuery.UnaryFilter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface FieldReferenceOrBuilder + public interface OrderOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.firestore.v1beta1.StructuredQuery.FieldReference) + // @@protoc_insertion_point(interface_extends:google.firestore.v1beta1.StructuredQuery.Order) com.google.protobuf.MessageOrBuilder { - /** string field_path = 2; */ - java.lang.String getFieldPath(); - /** string field_path = 2; */ - com.google.protobuf.ByteString getFieldPathBytes(); + /** + * + * + *
+     * The field to order by.
+     * 
+ * + * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1; + */ + boolean hasField(); + /** + * + * + *
+     * The field to order by.
+     * 
+ * + * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1; + */ + com.google.firestore.v1beta1.StructuredQuery.FieldReference getField(); + /** + * + * + *
+     * The field to order by.
+     * 
+ * + * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1; + */ + com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder getFieldOrBuilder(); + + /** + * + * + *
+     * The direction to order by. Defaults to `ASCENDING`.
+     * 
+ * + * .google.firestore.v1beta1.StructuredQuery.Direction direction = 2; + */ + int getDirectionValue(); + /** + * + * + *
+     * The direction to order by. Defaults to `ASCENDING`.
+     * 
+ * + * .google.firestore.v1beta1.StructuredQuery.Direction direction = 2; + */ + com.google.firestore.v1beta1.StructuredQuery.Direction getDirection(); } /** * * *
-   * A reference to a field, such as `max(messages.time) as max_time`.
+   * An order on a field.
    * 
* - * Protobuf type {@code google.firestore.v1beta1.StructuredQuery.FieldReference} + * Protobuf type {@code google.firestore.v1beta1.StructuredQuery.Order} */ - public static final class FieldReference extends com.google.protobuf.GeneratedMessageV3 + public static final class Order extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.firestore.v1beta1.StructuredQuery.FieldReference) - FieldReferenceOrBuilder { + // @@protoc_insertion_point(message_implements:google.firestore.v1beta1.StructuredQuery.Order) + OrderOrBuilder { private static final long serialVersionUID = 0L; - // Use FieldReference.newBuilder() to construct. - private FieldReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use Order.newBuilder() to construct. + private Order(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FieldReference() { - fieldPath_ = ""; + private Order() { + direction_ = 0; } @java.lang.Override @@ -7482,7 +7691,7 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private FieldReference( + private Order( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -7501,11 +7710,29 @@ private FieldReference( case 0: done = true; break; - case 18: + case 10: { - java.lang.String s = input.readStringRequireUtf8(); + com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder subBuilder = + null; + if (field_ != null) { + subBuilder = field_.toBuilder(); + } + field_ = + input.readMessage( + com.google.firestore.v1beta1.StructuredQuery.FieldReference.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(field_); + field_ = subBuilder.buildPartial(); + } - fieldPath_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + direction_ = rawValue; break; } default: @@ -7529,44 +7756,91 @@ private FieldReference( public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1beta1.QueryProto - .internal_static_google_firestore_v1beta1_StructuredQuery_FieldReference_descriptor; + .internal_static_google_firestore_v1beta1_StructuredQuery_Order_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.firestore.v1beta1.QueryProto - .internal_static_google_firestore_v1beta1_StructuredQuery_FieldReference_fieldAccessorTable + .internal_static_google_firestore_v1beta1_StructuredQuery_Order_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.firestore.v1beta1.StructuredQuery.FieldReference.class, - com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder.class); + com.google.firestore.v1beta1.StructuredQuery.Order.class, + com.google.firestore.v1beta1.StructuredQuery.Order.Builder.class); } - public static final int FIELD_PATH_FIELD_NUMBER = 2; - private volatile java.lang.Object fieldPath_; - /** string field_path = 2; */ - public java.lang.String getFieldPath() { - java.lang.Object ref = fieldPath_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fieldPath_ = s; - return s; - } + public static final int FIELD_FIELD_NUMBER = 1; + private com.google.firestore.v1beta1.StructuredQuery.FieldReference field_; + /** + * + * + *
+     * The field to order by.
+     * 
+ * + * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1; + */ + public boolean hasField() { + return field_ != null; } - /** string field_path = 2; */ - public com.google.protobuf.ByteString getFieldPathBytes() { - java.lang.Object ref = fieldPath_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fieldPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + /** + * + * + *
+     * The field to order by.
+     * 
+ * + * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1; + */ + public com.google.firestore.v1beta1.StructuredQuery.FieldReference getField() { + return field_ == null + ? com.google.firestore.v1beta1.StructuredQuery.FieldReference.getDefaultInstance() + : field_; + } + /** + * + * + *
+     * The field to order by.
+     * 
+ * + * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1; + */ + public com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder + getFieldOrBuilder() { + return getField(); + } + + public static final int DIRECTION_FIELD_NUMBER = 2; + private int direction_; + /** + * + * + *
+     * The direction to order by. Defaults to `ASCENDING`.
+     * 
+ * + * .google.firestore.v1beta1.StructuredQuery.Direction direction = 2; + */ + public int getDirectionValue() { + return direction_; + } + /** + * + * + *
+     * The direction to order by. Defaults to `ASCENDING`.
+     * 
+ * + * .google.firestore.v1beta1.StructuredQuery.Direction direction = 2; + */ + public com.google.firestore.v1beta1.StructuredQuery.Direction getDirection() { + @SuppressWarnings("deprecation") + com.google.firestore.v1beta1.StructuredQuery.Direction result = + com.google.firestore.v1beta1.StructuredQuery.Direction.valueOf(direction_); + return result == null + ? com.google.firestore.v1beta1.StructuredQuery.Direction.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; @@ -7583,8 +7857,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getFieldPathBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fieldPath_); + if (field_ != null) { + output.writeMessage(1, getField()); + } + if (direction_ + != com.google.firestore.v1beta1.StructuredQuery.Direction.DIRECTION_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, direction_); } unknownFields.writeTo(output); } @@ -7595,8 +7874,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getFieldPathBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fieldPath_); + if (field_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getField()); + } + if (direction_ + != com.google.firestore.v1beta1.StructuredQuery.Direction.DIRECTION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, direction_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -7608,14 +7892,18 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.firestore.v1beta1.StructuredQuery.FieldReference)) { + if (!(obj instanceof com.google.firestore.v1beta1.StructuredQuery.Order)) { return super.equals(obj); } - com.google.firestore.v1beta1.StructuredQuery.FieldReference other = - (com.google.firestore.v1beta1.StructuredQuery.FieldReference) obj; + com.google.firestore.v1beta1.StructuredQuery.Order other = + (com.google.firestore.v1beta1.StructuredQuery.Order) obj; boolean result = true; - result = result && getFieldPath().equals(other.getFieldPath()); + result = result && (hasField() == other.hasField()); + if (hasField()) { + result = result && getField().equals(other.getField()); + } + result = result && direction_ == other.direction_; result = result && unknownFields.equals(other.unknownFields); return result; } @@ -7627,78 +7915,82 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FIELD_PATH_FIELD_NUMBER; - hash = (53 * hash) + getFieldPath().hashCode(); + if (hasField()) { + hash = (37 * hash) + FIELD_FIELD_NUMBER; + hash = (53 * hash) + getField().hashCode(); + } + hash = (37 * hash) + DIRECTION_FIELD_NUMBER; + hash = (53 * hash) + direction_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.firestore.v1beta1.StructuredQuery.FieldReference parseFrom( + public static com.google.firestore.v1beta1.StructuredQuery.Order parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.firestore.v1beta1.StructuredQuery.FieldReference parseFrom( + public static com.google.firestore.v1beta1.StructuredQuery.Order parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.firestore.v1beta1.StructuredQuery.FieldReference parseFrom( + public static com.google.firestore.v1beta1.StructuredQuery.Order parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.firestore.v1beta1.StructuredQuery.FieldReference parseFrom( + public static com.google.firestore.v1beta1.StructuredQuery.Order 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.firestore.v1beta1.StructuredQuery.FieldReference parseFrom(byte[] data) + public static com.google.firestore.v1beta1.StructuredQuery.Order parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.firestore.v1beta1.StructuredQuery.FieldReference parseFrom( + public static com.google.firestore.v1beta1.StructuredQuery.Order parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.firestore.v1beta1.StructuredQuery.FieldReference parseFrom( + public static com.google.firestore.v1beta1.StructuredQuery.Order parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.firestore.v1beta1.StructuredQuery.FieldReference parseFrom( + public static com.google.firestore.v1beta1.StructuredQuery.Order 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.firestore.v1beta1.StructuredQuery.FieldReference parseDelimitedFrom( + public static com.google.firestore.v1beta1.StructuredQuery.Order parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.firestore.v1beta1.StructuredQuery.FieldReference parseDelimitedFrom( + public static com.google.firestore.v1beta1.StructuredQuery.Order 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.firestore.v1beta1.StructuredQuery.FieldReference parseFrom( + public static com.google.firestore.v1beta1.StructuredQuery.Order parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.firestore.v1beta1.StructuredQuery.FieldReference parseFrom( + public static com.google.firestore.v1beta1.StructuredQuery.Order parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -7715,8 +8007,7 @@ public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder( - com.google.firestore.v1beta1.StructuredQuery.FieldReference prototype) { + public static Builder newBuilder(com.google.firestore.v1beta1.StructuredQuery.Order prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -7735,32 +8026,32 @@ protected Builder newBuilderForType( * * *
-     * A reference to a field, such as `max(messages.time) as max_time`.
+     * An order on a field.
      * 
* - * Protobuf type {@code google.firestore.v1beta1.StructuredQuery.FieldReference} + * Protobuf type {@code google.firestore.v1beta1.StructuredQuery.Order} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.firestore.v1beta1.StructuredQuery.FieldReference) - com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder { + // @@protoc_insertion_point(builder_implements:google.firestore.v1beta1.StructuredQuery.Order) + com.google.firestore.v1beta1.StructuredQuery.OrderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1beta1.QueryProto - .internal_static_google_firestore_v1beta1_StructuredQuery_FieldReference_descriptor; + .internal_static_google_firestore_v1beta1_StructuredQuery_Order_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.firestore.v1beta1.QueryProto - .internal_static_google_firestore_v1beta1_StructuredQuery_FieldReference_fieldAccessorTable + .internal_static_google_firestore_v1beta1_StructuredQuery_Order_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.firestore.v1beta1.StructuredQuery.FieldReference.class, - com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder.class); + com.google.firestore.v1beta1.StructuredQuery.Order.class, + com.google.firestore.v1beta1.StructuredQuery.Order.Builder.class); } - // Construct using com.google.firestore.v1beta1.StructuredQuery.FieldReference.newBuilder() + // Construct using com.google.firestore.v1beta1.StructuredQuery.Order.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -7777,7 +8068,13 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - fieldPath_ = ""; + if (fieldBuilder_ == null) { + field_ = null; + } else { + field_ = null; + fieldBuilder_ = null; + } + direction_ = 0; return this; } @@ -7785,18 +8082,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.firestore.v1beta1.QueryProto - .internal_static_google_firestore_v1beta1_StructuredQuery_FieldReference_descriptor; + .internal_static_google_firestore_v1beta1_StructuredQuery_Order_descriptor; } @java.lang.Override - public com.google.firestore.v1beta1.StructuredQuery.FieldReference - getDefaultInstanceForType() { - return com.google.firestore.v1beta1.StructuredQuery.FieldReference.getDefaultInstance(); + public com.google.firestore.v1beta1.StructuredQuery.Order getDefaultInstanceForType() { + return com.google.firestore.v1beta1.StructuredQuery.Order.getDefaultInstance(); } @java.lang.Override - public com.google.firestore.v1beta1.StructuredQuery.FieldReference build() { - com.google.firestore.v1beta1.StructuredQuery.FieldReference result = buildPartial(); + public com.google.firestore.v1beta1.StructuredQuery.Order build() { + com.google.firestore.v1beta1.StructuredQuery.Order result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -7804,10 +8100,15 @@ public com.google.firestore.v1beta1.StructuredQuery.FieldReference build() { } @java.lang.Override - public com.google.firestore.v1beta1.StructuredQuery.FieldReference buildPartial() { - com.google.firestore.v1beta1.StructuredQuery.FieldReference result = - new com.google.firestore.v1beta1.StructuredQuery.FieldReference(this); - result.fieldPath_ = fieldPath_; + public com.google.firestore.v1beta1.StructuredQuery.Order buildPartial() { + com.google.firestore.v1beta1.StructuredQuery.Order result = + new com.google.firestore.v1beta1.StructuredQuery.Order(this); + if (fieldBuilder_ == null) { + result.field_ = field_; + } else { + result.field_ = fieldBuilder_.build(); + } + result.direction_ = direction_; onBuilt(); return result; } @@ -7849,21 +8150,22 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.firestore.v1beta1.StructuredQuery.FieldReference) { - return mergeFrom((com.google.firestore.v1beta1.StructuredQuery.FieldReference) other); + if (other instanceof com.google.firestore.v1beta1.StructuredQuery.Order) { + return mergeFrom((com.google.firestore.v1beta1.StructuredQuery.Order) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.firestore.v1beta1.StructuredQuery.FieldReference other) { - if (other - == com.google.firestore.v1beta1.StructuredQuery.FieldReference.getDefaultInstance()) + public Builder mergeFrom(com.google.firestore.v1beta1.StructuredQuery.Order other) { + if (other == com.google.firestore.v1beta1.StructuredQuery.Order.getDefaultInstance()) return this; - if (!other.getFieldPath().isEmpty()) { - fieldPath_ = other.fieldPath_; - onChanged(); + if (other.hasField()) { + mergeField(other.getField()); + } + if (other.direction_ != 0) { + setDirectionValue(other.getDirectionValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -7880,13 +8182,12 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.firestore.v1beta1.StructuredQuery.FieldReference parsedMessage = null; + com.google.firestore.v1beta1.StructuredQuery.Order parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = - (com.google.firestore.v1beta1.StructuredQuery.FieldReference) - e.getUnfinishedMessage(); + (com.google.firestore.v1beta1.StructuredQuery.Order) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -7896,56 +8197,263 @@ public Builder mergeFrom( return this; } - private java.lang.Object fieldPath_ = ""; - /** string field_path = 2; */ - public java.lang.String getFieldPath() { - java.lang.Object ref = fieldPath_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fieldPath_ = s; - return s; - } else { - return (java.lang.String) ref; - } + private com.google.firestore.v1beta1.StructuredQuery.FieldReference field_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.v1beta1.StructuredQuery.FieldReference, + com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder, + com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder> + fieldBuilder_; + /** + * + * + *
+       * The field to order by.
+       * 
+ * + * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1; + */ + public boolean hasField() { + return fieldBuilder_ != null || field_ != null; } - /** string field_path = 2; */ - public com.google.protobuf.ByteString getFieldPathBytes() { - java.lang.Object ref = fieldPath_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fieldPath_ = b; - return b; + /** + * + * + *
+       * The field to order by.
+       * 
+ * + * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1; + */ + public com.google.firestore.v1beta1.StructuredQuery.FieldReference getField() { + if (fieldBuilder_ == null) { + return field_ == null + ? com.google.firestore.v1beta1.StructuredQuery.FieldReference.getDefaultInstance() + : field_; } else { - return (com.google.protobuf.ByteString) ref; + return fieldBuilder_.getMessage(); } } - /** string field_path = 2; */ - public Builder setFieldPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + /** + * + * + *
+       * The field to order by.
+       * 
+ * + * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1; + */ + public Builder setField(com.google.firestore.v1beta1.StructuredQuery.FieldReference value) { + if (fieldBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + field_ = value; + onChanged(); + } else { + fieldBuilder_.setMessage(value); } - fieldPath_ = value; - onChanged(); return this; } - /** string field_path = 2; */ - public Builder clearFieldPath() { + /** + * + * + *
+       * The field to order by.
+       * 
+ * + * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1; + */ + public Builder setField( + com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder builderForValue) { + if (fieldBuilder_ == null) { + field_ = builderForValue.build(); + onChanged(); + } else { + fieldBuilder_.setMessage(builderForValue.build()); + } - fieldPath_ = getDefaultInstance().getFieldPath(); + return this; + } + /** + * + * + *
+       * The field to order by.
+       * 
+ * + * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1; + */ + public Builder mergeField(com.google.firestore.v1beta1.StructuredQuery.FieldReference value) { + if (fieldBuilder_ == null) { + if (field_ != null) { + field_ = + com.google.firestore.v1beta1.StructuredQuery.FieldReference.newBuilder(field_) + .mergeFrom(value) + .buildPartial(); + } else { + field_ = value; + } + onChanged(); + } else { + fieldBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * The field to order by.
+       * 
+ * + * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1; + */ + public Builder clearField() { + if (fieldBuilder_ == null) { + field_ = null; + onChanged(); + } else { + field_ = null; + fieldBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * The field to order by.
+       * 
+ * + * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1; + */ + public com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder getFieldBuilder() { + + onChanged(); + return getFieldFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The field to order by.
+       * 
+ * + * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1; + */ + public com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder + getFieldOrBuilder() { + if (fieldBuilder_ != null) { + return fieldBuilder_.getMessageOrBuilder(); + } else { + return field_ == null + ? com.google.firestore.v1beta1.StructuredQuery.FieldReference.getDefaultInstance() + : field_; + } + } + /** + * + * + *
+       * The field to order by.
+       * 
+ * + * .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.v1beta1.StructuredQuery.FieldReference, + com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder, + com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder> + getFieldFieldBuilder() { + if (fieldBuilder_ == null) { + fieldBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.v1beta1.StructuredQuery.FieldReference, + com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder, + com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder>( + getField(), getParentForChildren(), isClean()); + field_ = null; + } + return fieldBuilder_; + } + + private int direction_ = 0; + /** + * + * + *
+       * The direction to order by. Defaults to `ASCENDING`.
+       * 
+ * + * .google.firestore.v1beta1.StructuredQuery.Direction direction = 2; + */ + public int getDirectionValue() { + return direction_; + } + /** + * + * + *
+       * The direction to order by. Defaults to `ASCENDING`.
+       * 
+ * + * .google.firestore.v1beta1.StructuredQuery.Direction direction = 2; + */ + public Builder setDirectionValue(int value) { + direction_ = value; onChanged(); return this; } - /** string field_path = 2; */ - public Builder setFieldPathBytes(com.google.protobuf.ByteString value) { + /** + * + * + *
+       * The direction to order by. Defaults to `ASCENDING`.
+       * 
+ * + * .google.firestore.v1beta1.StructuredQuery.Direction direction = 2; + */ + public com.google.firestore.v1beta1.StructuredQuery.Direction getDirection() { + @SuppressWarnings("deprecation") + com.google.firestore.v1beta1.StructuredQuery.Direction result = + com.google.firestore.v1beta1.StructuredQuery.Direction.valueOf(direction_); + return result == null + ? com.google.firestore.v1beta1.StructuredQuery.Direction.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * The direction to order by. Defaults to `ASCENDING`.
+       * 
+ * + * .google.firestore.v1beta1.StructuredQuery.Direction direction = 2; + */ + public Builder setDirection(com.google.firestore.v1beta1.StructuredQuery.Direction value) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - fieldPath_ = value; + direction_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * The direction to order by. Defaults to `ASCENDING`.
+       * 
+ * + * .google.firestore.v1beta1.StructuredQuery.Direction direction = 2; + */ + public Builder clearDirection() { + + direction_ = 0; onChanged(); return this; } @@ -7962,136 +8470,77 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.firestore.v1beta1.StructuredQuery.FieldReference) + // @@protoc_insertion_point(builder_scope:google.firestore.v1beta1.StructuredQuery.Order) } - // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.StructuredQuery.FieldReference) - private static final com.google.firestore.v1beta1.StructuredQuery.FieldReference - DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.StructuredQuery.Order) + private static final com.google.firestore.v1beta1.StructuredQuery.Order DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.firestore.v1beta1.StructuredQuery.FieldReference(); + DEFAULT_INSTANCE = new com.google.firestore.v1beta1.StructuredQuery.Order(); } - public static com.google.firestore.v1beta1.StructuredQuery.FieldReference getDefaultInstance() { + public static com.google.firestore.v1beta1.StructuredQuery.Order getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public FieldReference parsePartialFrom( + public Order parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new FieldReference(input, extensionRegistry); + return new Order(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.firestore.v1beta1.StructuredQuery.FieldReference getDefaultInstanceForType() { + public com.google.firestore.v1beta1.StructuredQuery.Order getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface ProjectionOrBuilder + public interface FieldReferenceOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.firestore.v1beta1.StructuredQuery.Projection) + // @@protoc_insertion_point(interface_extends:google.firestore.v1beta1.StructuredQuery.FieldReference) com.google.protobuf.MessageOrBuilder { - /** - * - * - *
-     * The fields to return.
-     * If empty, all fields are returned. To only return the name
-     * of the document, use `['__name__']`.
-     * 
- * - * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; - */ - java.util.List getFieldsList(); - /** - * - * - *
-     * The fields to return.
-     * If empty, all fields are returned. To only return the name
-     * of the document, use `['__name__']`.
-     * 
- * - * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; - */ - com.google.firestore.v1beta1.StructuredQuery.FieldReference getFields(int index); - /** - * - * - *
-     * The fields to return.
-     * If empty, all fields are returned. To only return the name
-     * of the document, use `['__name__']`.
-     * 
- * - * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; - */ - int getFieldsCount(); - /** - * - * - *
-     * The fields to return.
-     * If empty, all fields are returned. To only return the name
-     * of the document, use `['__name__']`.
-     * 
- * - * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; - */ - java.util.List - getFieldsOrBuilderList(); - /** - * - * - *
-     * The fields to return.
-     * If empty, all fields are returned. To only return the name
-     * of the document, use `['__name__']`.
-     * 
- * - * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; - */ - com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder getFieldsOrBuilder( - int index); + /** string field_path = 2; */ + java.lang.String getFieldPath(); + /** string field_path = 2; */ + com.google.protobuf.ByteString getFieldPathBytes(); } /** * * *
-   * The projection of document's fields to return.
+   * A reference to a field, such as `max(messages.time) as max_time`.
    * 
* - * Protobuf type {@code google.firestore.v1beta1.StructuredQuery.Projection} + * Protobuf type {@code google.firestore.v1beta1.StructuredQuery.FieldReference} */ - public static final class Projection extends com.google.protobuf.GeneratedMessageV3 + public static final class FieldReference extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.firestore.v1beta1.StructuredQuery.Projection) - ProjectionOrBuilder { + // @@protoc_insertion_point(message_implements:google.firestore.v1beta1.StructuredQuery.FieldReference) + FieldReferenceOrBuilder { private static final long serialVersionUID = 0L; - // Use Projection.newBuilder() to construct. - private Projection(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use FieldReference.newBuilder() to construct. + private FieldReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Projection() { - fields_ = java.util.Collections.emptyList(); + private FieldReference() { + fieldPath_ = ""; } @java.lang.Override @@ -8099,7 +8548,7 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Projection( + private FieldReference( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -8120,16 +8569,9 @@ private Projection( break; case 18: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - fields_ = - new java.util.ArrayList< - com.google.firestore.v1beta1.StructuredQuery.FieldReference>(); - mutable_bitField0_ |= 0x00000001; - } - fields_.add( - input.readMessage( - com.google.firestore.v1beta1.StructuredQuery.FieldReference.parser(), - extensionRegistry)); + java.lang.String s = input.readStringRequireUtf8(); + + fieldPath_ = s; break; } default: @@ -8146,9 +8588,6 @@ private Projection( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - fields_ = java.util.Collections.unmodifiableList(fields_); - } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -8156,94 +8595,44 @@ private Projection( public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1beta1.QueryProto - .internal_static_google_firestore_v1beta1_StructuredQuery_Projection_descriptor; + .internal_static_google_firestore_v1beta1_StructuredQuery_FieldReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.firestore.v1beta1.QueryProto - .internal_static_google_firestore_v1beta1_StructuredQuery_Projection_fieldAccessorTable + .internal_static_google_firestore_v1beta1_StructuredQuery_FieldReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.firestore.v1beta1.StructuredQuery.Projection.class, - com.google.firestore.v1beta1.StructuredQuery.Projection.Builder.class); + com.google.firestore.v1beta1.StructuredQuery.FieldReference.class, + com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder.class); } - public static final int FIELDS_FIELD_NUMBER = 2; - private java.util.List fields_; - /** - * - * - *
-     * The fields to return.
-     * If empty, all fields are returned. To only return the name
-     * of the document, use `['__name__']`.
-     * 
- * - * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; - */ - public java.util.List - getFieldsList() { - return fields_; - } - /** - * - * - *
-     * The fields to return.
-     * If empty, all fields are returned. To only return the name
-     * of the document, use `['__name__']`.
-     * 
- * - * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; - */ - public java.util.List< - ? extends com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder> - getFieldsOrBuilderList() { - return fields_; - } - /** - * - * - *
-     * The fields to return.
-     * If empty, all fields are returned. To only return the name
-     * of the document, use `['__name__']`.
-     * 
- * - * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; - */ - public int getFieldsCount() { - return fields_.size(); - } - /** - * - * - *
-     * The fields to return.
-     * If empty, all fields are returned. To only return the name
-     * of the document, use `['__name__']`.
-     * 
- * - * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; - */ - public com.google.firestore.v1beta1.StructuredQuery.FieldReference getFields(int index) { - return fields_.get(index); + public static final int FIELD_PATH_FIELD_NUMBER = 2; + private volatile java.lang.Object fieldPath_; + /** string field_path = 2; */ + public java.lang.String getFieldPath() { + java.lang.Object ref = fieldPath_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldPath_ = s; + return s; + } } - /** - * - * - *
-     * The fields to return.
-     * If empty, all fields are returned. To only return the name
-     * of the document, use `['__name__']`.
-     * 
- * - * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; - */ - public com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder getFieldsOrBuilder( - int index) { - return fields_.get(index); + /** string field_path = 2; */ + public com.google.protobuf.ByteString getFieldPathBytes() { + java.lang.Object ref = fieldPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } private byte memoizedIsInitialized = -1; @@ -8260,8 +8649,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < fields_.size(); i++) { - output.writeMessage(2, fields_.get(i)); + if (!getFieldPathBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fieldPath_); } unknownFields.writeTo(output); } @@ -8272,8 +8661,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (int i = 0; i < fields_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, fields_.get(i)); + if (!getFieldPathBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fieldPath_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -8285,14 +8674,14 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.firestore.v1beta1.StructuredQuery.Projection)) { + if (!(obj instanceof com.google.firestore.v1beta1.StructuredQuery.FieldReference)) { return super.equals(obj); } - com.google.firestore.v1beta1.StructuredQuery.Projection other = - (com.google.firestore.v1beta1.StructuredQuery.Projection) obj; + com.google.firestore.v1beta1.StructuredQuery.FieldReference other = + (com.google.firestore.v1beta1.StructuredQuery.FieldReference) obj; boolean result = true; - result = result && getFieldsList().equals(other.getFieldsList()); + result = result && getFieldPath().equals(other.getFieldPath()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -8304,80 +8693,78 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (getFieldsCount() > 0) { - hash = (37 * hash) + FIELDS_FIELD_NUMBER; - hash = (53 * hash) + getFieldsList().hashCode(); - } + hash = (37 * hash) + FIELD_PATH_FIELD_NUMBER; + hash = (53 * hash) + getFieldPath().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.firestore.v1beta1.StructuredQuery.Projection parseFrom( + public static com.google.firestore.v1beta1.StructuredQuery.FieldReference parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.firestore.v1beta1.StructuredQuery.Projection parseFrom( + public static com.google.firestore.v1beta1.StructuredQuery.FieldReference parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.firestore.v1beta1.StructuredQuery.Projection parseFrom( + public static com.google.firestore.v1beta1.StructuredQuery.FieldReference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.firestore.v1beta1.StructuredQuery.Projection parseFrom( + public static com.google.firestore.v1beta1.StructuredQuery.FieldReference 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.firestore.v1beta1.StructuredQuery.Projection parseFrom(byte[] data) + public static com.google.firestore.v1beta1.StructuredQuery.FieldReference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.firestore.v1beta1.StructuredQuery.Projection parseFrom( + public static com.google.firestore.v1beta1.StructuredQuery.FieldReference parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.firestore.v1beta1.StructuredQuery.Projection parseFrom( + public static com.google.firestore.v1beta1.StructuredQuery.FieldReference parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.firestore.v1beta1.StructuredQuery.Projection parseFrom( + public static com.google.firestore.v1beta1.StructuredQuery.FieldReference 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.firestore.v1beta1.StructuredQuery.Projection parseDelimitedFrom( + public static com.google.firestore.v1beta1.StructuredQuery.FieldReference parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.firestore.v1beta1.StructuredQuery.Projection parseDelimitedFrom( + public static com.google.firestore.v1beta1.StructuredQuery.FieldReference 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.firestore.v1beta1.StructuredQuery.Projection parseFrom( + public static com.google.firestore.v1beta1.StructuredQuery.FieldReference parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.firestore.v1beta1.StructuredQuery.Projection parseFrom( + public static com.google.firestore.v1beta1.StructuredQuery.FieldReference parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -8395,7 +8782,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.firestore.v1beta1.StructuredQuery.Projection prototype) { + com.google.firestore.v1beta1.StructuredQuery.FieldReference prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -8414,32 +8801,32 @@ protected Builder newBuilderForType( * * *
-     * The projection of document's fields to return.
+     * A reference to a field, such as `max(messages.time) as max_time`.
      * 
* - * Protobuf type {@code google.firestore.v1beta1.StructuredQuery.Projection} + * Protobuf type {@code google.firestore.v1beta1.StructuredQuery.FieldReference} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.firestore.v1beta1.StructuredQuery.Projection) - com.google.firestore.v1beta1.StructuredQuery.ProjectionOrBuilder { + // @@protoc_insertion_point(builder_implements:google.firestore.v1beta1.StructuredQuery.FieldReference) + com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1beta1.QueryProto - .internal_static_google_firestore_v1beta1_StructuredQuery_Projection_descriptor; + .internal_static_google_firestore_v1beta1_StructuredQuery_FieldReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.firestore.v1beta1.QueryProto - .internal_static_google_firestore_v1beta1_StructuredQuery_Projection_fieldAccessorTable + .internal_static_google_firestore_v1beta1_StructuredQuery_FieldReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.firestore.v1beta1.StructuredQuery.Projection.class, - com.google.firestore.v1beta1.StructuredQuery.Projection.Builder.class); + com.google.firestore.v1beta1.StructuredQuery.FieldReference.class, + com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder.class); } - // Construct using com.google.firestore.v1beta1.StructuredQuery.Projection.newBuilder() + // Construct using com.google.firestore.v1beta1.StructuredQuery.FieldReference.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -8450,37 +8837,32 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getFieldsFieldBuilder(); - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); - if (fieldsBuilder_ == null) { - fields_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - fieldsBuilder_.clear(); - } + fieldPath_ = ""; + return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.firestore.v1beta1.QueryProto - .internal_static_google_firestore_v1beta1_StructuredQuery_Projection_descriptor; + .internal_static_google_firestore_v1beta1_StructuredQuery_FieldReference_descriptor; } @java.lang.Override - public com.google.firestore.v1beta1.StructuredQuery.Projection getDefaultInstanceForType() { - return com.google.firestore.v1beta1.StructuredQuery.Projection.getDefaultInstance(); + public com.google.firestore.v1beta1.StructuredQuery.FieldReference + getDefaultInstanceForType() { + return com.google.firestore.v1beta1.StructuredQuery.FieldReference.getDefaultInstance(); } @java.lang.Override - public com.google.firestore.v1beta1.StructuredQuery.Projection build() { - com.google.firestore.v1beta1.StructuredQuery.Projection result = buildPartial(); + public com.google.firestore.v1beta1.StructuredQuery.FieldReference build() { + com.google.firestore.v1beta1.StructuredQuery.FieldReference result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -8488,19 +8870,10 @@ public com.google.firestore.v1beta1.StructuredQuery.Projection build() { } @java.lang.Override - public com.google.firestore.v1beta1.StructuredQuery.Projection buildPartial() { - com.google.firestore.v1beta1.StructuredQuery.Projection result = - new com.google.firestore.v1beta1.StructuredQuery.Projection(this); - int from_bitField0_ = bitField0_; - if (fieldsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - fields_ = java.util.Collections.unmodifiableList(fields_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.fields_ = fields_; - } else { - result.fields_ = fieldsBuilder_.build(); - } + public com.google.firestore.v1beta1.StructuredQuery.FieldReference buildPartial() { + com.google.firestore.v1beta1.StructuredQuery.FieldReference result = + new com.google.firestore.v1beta1.StructuredQuery.FieldReference(this); + result.fieldPath_ = fieldPath_; onBuilt(); return result; } @@ -8542,479 +8915,105 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.firestore.v1beta1.StructuredQuery.Projection) { - return mergeFrom((com.google.firestore.v1beta1.StructuredQuery.Projection) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.firestore.v1beta1.StructuredQuery.Projection other) { - if (other == com.google.firestore.v1beta1.StructuredQuery.Projection.getDefaultInstance()) - return this; - if (fieldsBuilder_ == null) { - if (!other.fields_.isEmpty()) { - if (fields_.isEmpty()) { - fields_ = other.fields_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureFieldsIsMutable(); - fields_.addAll(other.fields_); - } - onChanged(); - } - } else { - if (!other.fields_.isEmpty()) { - if (fieldsBuilder_.isEmpty()) { - fieldsBuilder_.dispose(); - fieldsBuilder_ = null; - fields_ = other.fields_; - bitField0_ = (bitField0_ & ~0x00000001); - fieldsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFieldsFieldBuilder() - : null; - } else { - fieldsBuilder_.addAllMessages(other.fields_); - } - } - } - 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.firestore.v1beta1.StructuredQuery.Projection parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.firestore.v1beta1.StructuredQuery.Projection) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List fields_ = - java.util.Collections.emptyList(); - - private void ensureFieldsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - fields_ = - new java.util.ArrayList( - fields_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.firestore.v1beta1.StructuredQuery.FieldReference, - com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder, - com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder> - fieldsBuilder_; - - /** - * - * - *
-       * The fields to return.
-       * If empty, all fields are returned. To only return the name
-       * of the document, use `['__name__']`.
-       * 
- * - * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; - */ - public java.util.List - getFieldsList() { - if (fieldsBuilder_ == null) { - return java.util.Collections.unmodifiableList(fields_); - } else { - return fieldsBuilder_.getMessageList(); - } - } - /** - * - * - *
-       * The fields to return.
-       * If empty, all fields are returned. To only return the name
-       * of the document, use `['__name__']`.
-       * 
- * - * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; - */ - public int getFieldsCount() { - if (fieldsBuilder_ == null) { - return fields_.size(); - } else { - return fieldsBuilder_.getCount(); - } - } - /** - * - * - *
-       * The fields to return.
-       * If empty, all fields are returned. To only return the name
-       * of the document, use `['__name__']`.
-       * 
- * - * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; - */ - public com.google.firestore.v1beta1.StructuredQuery.FieldReference getFields(int index) { - if (fieldsBuilder_ == null) { - return fields_.get(index); - } else { - return fieldsBuilder_.getMessage(index); - } - } - /** - * - * - *
-       * The fields to return.
-       * If empty, all fields are returned. To only return the name
-       * of the document, use `['__name__']`.
-       * 
- * - * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; - */ - public Builder setFields( - int index, com.google.firestore.v1beta1.StructuredQuery.FieldReference value) { - if (fieldsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); - fields_.set(index, value); - onChanged(); - } else { - fieldsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-       * The fields to return.
-       * If empty, all fields are returned. To only return the name
-       * of the document, use `['__name__']`.
-       * 
- * - * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; - */ - public Builder setFields( - int index, - com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder builderForValue) { - if (fieldsBuilder_ == null) { - ensureFieldsIsMutable(); - fields_.set(index, builderForValue.build()); - onChanged(); - } else { - fieldsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * The fields to return.
-       * If empty, all fields are returned. To only return the name
-       * of the document, use `['__name__']`.
-       * 
- * - * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; - */ - public Builder addFields(com.google.firestore.v1beta1.StructuredQuery.FieldReference value) { - if (fieldsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); - fields_.add(value); - onChanged(); - } else { - fieldsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-       * The fields to return.
-       * If empty, all fields are returned. To only return the name
-       * of the document, use `['__name__']`.
-       * 
- * - * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; - */ - public Builder addFields( - int index, com.google.firestore.v1beta1.StructuredQuery.FieldReference value) { - if (fieldsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); - fields_.add(index, value); - onChanged(); - } else { - fieldsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-       * The fields to return.
-       * If empty, all fields are returned. To only return the name
-       * of the document, use `['__name__']`.
-       * 
- * - * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; - */ - public Builder addFields( - com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder builderForValue) { - if (fieldsBuilder_ == null) { - ensureFieldsIsMutable(); - fields_.add(builderForValue.build()); - onChanged(); - } else { - fieldsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * The fields to return.
-       * If empty, all fields are returned. To only return the name
-       * of the document, use `['__name__']`.
-       * 
- * - * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; - */ - public Builder addFields( - int index, - com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder builderForValue) { - if (fieldsBuilder_ == null) { - ensureFieldsIsMutable(); - fields_.add(index, builderForValue.build()); - onChanged(); - } else { - fieldsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * The fields to return.
-       * If empty, all fields are returned. To only return the name
-       * of the document, use `['__name__']`.
-       * 
- * - * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; - */ - public Builder addAllFields( - java.lang.Iterable - values) { - if (fieldsBuilder_ == null) { - ensureFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_); - onChanged(); + if (other instanceof com.google.firestore.v1beta1.StructuredQuery.FieldReference) { + return mergeFrom((com.google.firestore.v1beta1.StructuredQuery.FieldReference) other); } else { - fieldsBuilder_.addAllMessages(values); + super.mergeFrom(other); + return this; } - return this; } - /** - * - * - *
-       * The fields to return.
-       * If empty, all fields are returned. To only return the name
-       * of the document, use `['__name__']`.
-       * 
- * - * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; - */ - public Builder clearFields() { - if (fieldsBuilder_ == null) { - fields_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + + public Builder mergeFrom(com.google.firestore.v1beta1.StructuredQuery.FieldReference other) { + if (other + == com.google.firestore.v1beta1.StructuredQuery.FieldReference.getDefaultInstance()) + return this; + if (!other.getFieldPath().isEmpty()) { + fieldPath_ = other.fieldPath_; onChanged(); - } else { - fieldsBuilder_.clear(); } + this.mergeUnknownFields(other.unknownFields); + onChanged(); return this; } - /** - * - * - *
-       * The fields to return.
-       * If empty, all fields are returned. To only return the name
-       * of the document, use `['__name__']`.
-       * 
- * - * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; - */ - public Builder removeFields(int index) { - if (fieldsBuilder_ == null) { - ensureFieldsIsMutable(); - fields_.remove(index); - onChanged(); - } else { - fieldsBuilder_.remove(index); + + @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.firestore.v1beta1.StructuredQuery.FieldReference parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.firestore.v1beta1.StructuredQuery.FieldReference) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } } return this; } - /** - * - * - *
-       * The fields to return.
-       * If empty, all fields are returned. To only return the name
-       * of the document, use `['__name__']`.
-       * 
- * - * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; - */ - public com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder getFieldsBuilder( - int index) { - return getFieldsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-       * The fields to return.
-       * If empty, all fields are returned. To only return the name
-       * of the document, use `['__name__']`.
-       * 
- * - * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; - */ - public com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder - getFieldsOrBuilder(int index) { - if (fieldsBuilder_ == null) { - return fields_.get(index); + + private java.lang.Object fieldPath_ = ""; + /** string field_path = 2; */ + public java.lang.String getFieldPath() { + java.lang.Object ref = fieldPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldPath_ = s; + return s; } else { - return fieldsBuilder_.getMessageOrBuilder(index); + return (java.lang.String) ref; } } - /** - * - * - *
-       * The fields to return.
-       * If empty, all fields are returned. To only return the name
-       * of the document, use `['__name__']`.
-       * 
- * - * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; - */ - public java.util.List< - ? extends com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder> - getFieldsOrBuilderList() { - if (fieldsBuilder_ != null) { - return fieldsBuilder_.getMessageOrBuilderList(); + /** string field_path = 2; */ + public com.google.protobuf.ByteString getFieldPathBytes() { + java.lang.Object ref = fieldPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldPath_ = b; + return b; } else { - return java.util.Collections.unmodifiableList(fields_); + return (com.google.protobuf.ByteString) ref; } } - /** - * - * - *
-       * The fields to return.
-       * If empty, all fields are returned. To only return the name
-       * of the document, use `['__name__']`.
-       * 
- * - * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; - */ - public com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder - addFieldsBuilder() { - return getFieldsFieldBuilder() - .addBuilder( - com.google.firestore.v1beta1.StructuredQuery.FieldReference.getDefaultInstance()); - } - /** - * - * - *
-       * The fields to return.
-       * If empty, all fields are returned. To only return the name
-       * of the document, use `['__name__']`.
-       * 
- * - * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; - */ - public com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder addFieldsBuilder( - int index) { - return getFieldsFieldBuilder() - .addBuilder( - index, - com.google.firestore.v1beta1.StructuredQuery.FieldReference.getDefaultInstance()); - } - /** - * - * - *
-       * The fields to return.
-       * If empty, all fields are returned. To only return the name
-       * of the document, use `['__name__']`.
-       * 
- * - * repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2; - */ - public java.util.List - getFieldsBuilderList() { - return getFieldsFieldBuilder().getBuilderList(); + /** string field_path = 2; */ + public Builder setFieldPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + fieldPath_ = value; + onChanged(); + return this; } + /** string field_path = 2; */ + public Builder clearFieldPath() { - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.firestore.v1beta1.StructuredQuery.FieldReference, - com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder, - com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder> - getFieldsFieldBuilder() { - if (fieldsBuilder_ == null) { - fieldsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.firestore.v1beta1.StructuredQuery.FieldReference, - com.google.firestore.v1beta1.StructuredQuery.FieldReference.Builder, - com.google.firestore.v1beta1.StructuredQuery.FieldReferenceOrBuilder>( - fields_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - fields_ = null; + fieldPath_ = getDefaultInstance().getFieldPath(); + onChanged(); + return this; + } + /** string field_path = 2; */ + public Builder setFieldPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return fieldsBuilder_; + checkByteStringIsUtf8(value); + + fieldPath_ = value; + onChanged(); + return this; } @java.lang.Override @@ -9029,42 +9028,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.firestore.v1beta1.StructuredQuery.Projection) + // @@protoc_insertion_point(builder_scope:google.firestore.v1beta1.StructuredQuery.FieldReference) } - // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.StructuredQuery.Projection) - private static final com.google.firestore.v1beta1.StructuredQuery.Projection DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.StructuredQuery.FieldReference) + private static final com.google.firestore.v1beta1.StructuredQuery.FieldReference + DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.firestore.v1beta1.StructuredQuery.Projection(); + DEFAULT_INSTANCE = new com.google.firestore.v1beta1.StructuredQuery.FieldReference(); } - public static com.google.firestore.v1beta1.StructuredQuery.Projection getDefaultInstance() { + public static com.google.firestore.v1beta1.StructuredQuery.FieldReference getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public Projection parsePartialFrom( + public FieldReference parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Projection(input, extensionRegistry); + return new FieldReference(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.firestore.v1beta1.StructuredQuery.Projection getDefaultInstanceForType() { + public com.google.firestore.v1beta1.StructuredQuery.FieldReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/Target.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/Target.java index b55832125cbe..8acdc9b5d372 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/Target.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/Target.java @@ -2170,9 +2170,7 @@ public com.google.firestore.v1beta1.Target.DocumentsTargetOrBuilder getDocuments * * *
-   * A resume token from a prior
-   * [TargetChange][google.firestore.v1beta1.TargetChange] for an identical
-   * target.
+   * A resume token from a prior [TargetChange][google.firestore.v1beta1.TargetChange] for an identical target.
    * Using a resume token with a different target is unsupported and may fail.
    * 
* @@ -3175,9 +3173,7 @@ public com.google.firestore.v1beta1.Target.DocumentsTargetOrBuilder getDocuments * * *
-     * A resume token from a prior
-     * [TargetChange][google.firestore.v1beta1.TargetChange] for an identical
-     * target.
+     * A resume token from a prior [TargetChange][google.firestore.v1beta1.TargetChange] for an identical target.
      * Using a resume token with a different target is unsupported and may fail.
      * 
* @@ -3193,9 +3189,7 @@ public com.google.protobuf.ByteString getResumeToken() { * * *
-     * A resume token from a prior
-     * [TargetChange][google.firestore.v1beta1.TargetChange] for an identical
-     * target.
+     * A resume token from a prior [TargetChange][google.firestore.v1beta1.TargetChange] for an identical target.
      * Using a resume token with a different target is unsupported and may fail.
      * 
* @@ -3214,9 +3208,7 @@ public Builder setResumeToken(com.google.protobuf.ByteString value) { * * *
-     * A resume token from a prior
-     * [TargetChange][google.firestore.v1beta1.TargetChange] for an identical
-     * target.
+     * A resume token from a prior [TargetChange][google.firestore.v1beta1.TargetChange] for an identical target.
      * Using a resume token with a different target is unsupported and may fail.
      * 
* diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/TargetOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/TargetOrBuilder.java index 2832f4e6112b..a7b5a1dd63bf 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/TargetOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/TargetOrBuilder.java @@ -74,9 +74,7 @@ public interface TargetOrBuilder * * *
-   * A resume token from a prior
-   * [TargetChange][google.firestore.v1beta1.TargetChange] for an identical
-   * target.
+   * A resume token from a prior [TargetChange][google.firestore.v1beta1.TargetChange] for an identical target.
    * Using a resume token with a different target is unsupported and may fail.
    * 
* diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/UpdateDocumentRequest.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/UpdateDocumentRequest.java index 26f1cd1cebdb..1080e8c2e680 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/UpdateDocumentRequest.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/UpdateDocumentRequest.java @@ -7,8 +7,7 @@ * * *
- * The request for
- * [Firestore.UpdateDocument][google.firestore.v1beta1.Firestore.UpdateDocument].
+ * The request for [Firestore.UpdateDocument][google.firestore.v1beta1.Firestore.UpdateDocument].
  * 
* * Protobuf type {@code google.firestore.v1beta1.UpdateDocumentRequest} @@ -547,8 +546,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for
-   * [Firestore.UpdateDocument][google.firestore.v1beta1.Firestore.UpdateDocument].
+   * The request for [Firestore.UpdateDocument][google.firestore.v1beta1.Firestore.UpdateDocument].
    * 
* * Protobuf type {@code google.firestore.v1beta1.UpdateDocumentRequest} diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/WriteProto.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/WriteProto.java index 3cbc5d2b0cea..ee0ee363b822 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/WriteProto.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/WriteProto.java @@ -54,11 +54,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n$google/firestore/v1beta1/write.proto\022\030" - + "google.firestore.v1beta1\032\034google/api/ann" - + "otations.proto\032%google/firestore/v1beta1" - + "/common.proto\032\'google/firestore/v1beta1/" - + "document.proto\032\037google/protobuf/timestam" - + "p.proto\"\235\002\n\005Write\0224\n\006update\030\001 \001(\0132\".goog" + + "google.firestore.v1beta1\032%google/firesto" + + "re/v1beta1/common.proto\032\'google/firestor" + + "e/v1beta1/document.proto\032\037google/protobu" + + "f/timestamp.proto\032\034google/api/annotation" + + "s.proto\"\235\002\n\005Write\0224\n\006update\030\001 \001(\0132\".goog" + "le.firestore.v1beta1.DocumentH\000\022\020\n\006delet" + "e\030\002 \001(\tH\000\022@\n\ttransform\030\006 \001(\0132+.google.fi" + "restore.v1beta1.DocumentTransformH\000\022;\n\013u" @@ -112,10 +112,10 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.firestore.v1beta1.CommonProto.getDescriptor(), com.google.firestore.v1beta1.DocumentProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), }, assigner); internal_static_google_firestore_v1beta1_Write_descriptor = @@ -191,10 +191,10 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "TargetId", "Count", }); - com.google.api.AnnotationsProto.getDescriptor(); com.google.firestore.v1beta1.CommonProto.getDescriptor(); com.google.firestore.v1beta1.DocumentProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/WriteRequest.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/WriteRequest.java index d7b3c78613b1..556fafaed98d 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/WriteRequest.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/WriteRequest.java @@ -337,9 +337,9 @@ public com.google.firestore.v1beta1.WriteOrBuilder getWritesOrBuilder(int index) *
    * A stream token that was previously sent by the server.
    * The client should set this field to the token from the most recent
-   * [WriteResponse][google.firestore.v1beta1.WriteResponse] it has received.
-   * This acknowledges that the client has received responses up to this token.
-   * After sending this token, earlier tokens may not be used anymore.
+   * [WriteResponse][google.firestore.v1beta1.WriteResponse] it has received. This acknowledges that the client has
+   * received responses up to this token. After sending this token, earlier
+   * tokens may not be used anymore.
    * The server may close the stream if there are too many unacknowledged
    * responses.
    * Leave this field unset when creating a new stream. To resume a stream at
@@ -1539,9 +1539,9 @@ public java.util.List getWritesBuild
      * 
      * A stream token that was previously sent by the server.
      * The client should set this field to the token from the most recent
-     * [WriteResponse][google.firestore.v1beta1.WriteResponse] it has received.
-     * This acknowledges that the client has received responses up to this token.
-     * After sending this token, earlier tokens may not be used anymore.
+     * [WriteResponse][google.firestore.v1beta1.WriteResponse] it has received. This acknowledges that the client has
+     * received responses up to this token. After sending this token, earlier
+     * tokens may not be used anymore.
      * The server may close the stream if there are too many unacknowledged
      * responses.
      * Leave this field unset when creating a new stream. To resume a stream at
@@ -1560,9 +1560,9 @@ public com.google.protobuf.ByteString getStreamToken() {
      * 
      * A stream token that was previously sent by the server.
      * The client should set this field to the token from the most recent
-     * [WriteResponse][google.firestore.v1beta1.WriteResponse] it has received.
-     * This acknowledges that the client has received responses up to this token.
-     * After sending this token, earlier tokens may not be used anymore.
+     * [WriteResponse][google.firestore.v1beta1.WriteResponse] it has received. This acknowledges that the client has
+     * received responses up to this token. After sending this token, earlier
+     * tokens may not be used anymore.
      * The server may close the stream if there are too many unacknowledged
      * responses.
      * Leave this field unset when creating a new stream. To resume a stream at
@@ -1587,9 +1587,9 @@ public Builder setStreamToken(com.google.protobuf.ByteString value) {
      * 
      * A stream token that was previously sent by the server.
      * The client should set this field to the token from the most recent
-     * [WriteResponse][google.firestore.v1beta1.WriteResponse] it has received.
-     * This acknowledges that the client has received responses up to this token.
-     * After sending this token, earlier tokens may not be used anymore.
+     * [WriteResponse][google.firestore.v1beta1.WriteResponse] it has received. This acknowledges that the client has
+     * received responses up to this token. After sending this token, earlier
+     * tokens may not be used anymore.
      * The server may close the stream if there are too many unacknowledged
      * responses.
      * Leave this field unset when creating a new stream. To resume a stream at
diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/WriteRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/WriteRequestOrBuilder.java
index 0d3b0e8efef0..4bc48666300b 100644
--- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/WriteRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/WriteRequestOrBuilder.java
@@ -135,9 +135,9 @@ public interface WriteRequestOrBuilder
    * 
    * A stream token that was previously sent by the server.
    * The client should set this field to the token from the most recent
-   * [WriteResponse][google.firestore.v1beta1.WriteResponse] it has received.
-   * This acknowledges that the client has received responses up to this token.
-   * After sending this token, earlier tokens may not be used anymore.
+   * [WriteResponse][google.firestore.v1beta1.WriteResponse] it has received. This acknowledges that the client has
+   * received responses up to this token. After sending this token, earlier
+   * tokens may not be used anymore.
    * The server may close the stream if there are too many unacknowledged
    * responses.
    * Leave this field unset when creating a new stream. To resume a stream at
diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/WriteResult.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/WriteResult.java
index e4fff28a13e6..5d728f0b4555 100644
--- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/WriteResult.java
+++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/WriteResult.java
@@ -168,9 +168,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    *
    *
    * 
-   * The results of applying each
-   * [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform],
-   * in the same order.
+   * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform], in the
+   * same order.
    * 
* * repeated .google.firestore.v1beta1.Value transform_results = 2; @@ -182,9 +181,8 @@ public java.util.List getTransformResultsLis * * *
-   * The results of applying each
-   * [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform],
-   * in the same order.
+   * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform], in the
+   * same order.
    * 
* * repeated .google.firestore.v1beta1.Value transform_results = 2; @@ -197,9 +195,8 @@ public java.util.List getTransformResultsLis * * *
-   * The results of applying each
-   * [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform],
-   * in the same order.
+   * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform], in the
+   * same order.
    * 
* * repeated .google.firestore.v1beta1.Value transform_results = 2; @@ -211,9 +208,8 @@ public int getTransformResultsCount() { * * *
-   * The results of applying each
-   * [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform],
-   * in the same order.
+   * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform], in the
+   * same order.
    * 
* * repeated .google.firestore.v1beta1.Value transform_results = 2; @@ -225,9 +221,8 @@ public com.google.firestore.v1beta1.Value getTransformResults(int index) { * * *
-   * The results of applying each
-   * [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform],
-   * in the same order.
+   * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform], in the
+   * same order.
    * 
* * repeated .google.firestore.v1beta1.Value transform_results = 2; @@ -851,9 +846,8 @@ private void ensureTransformResultsIsMutable() { * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1beta1.Value transform_results = 2; @@ -869,9 +863,8 @@ public java.util.List getTransformResultsLis * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1beta1.Value transform_results = 2; @@ -887,9 +880,8 @@ public int getTransformResultsCount() { * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1beta1.Value transform_results = 2; @@ -905,9 +897,8 @@ public com.google.firestore.v1beta1.Value getTransformResults(int index) { * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1beta1.Value transform_results = 2; @@ -929,9 +920,8 @@ public Builder setTransformResults(int index, com.google.firestore.v1beta1.Value * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1beta1.Value transform_results = 2; @@ -951,9 +941,8 @@ public Builder setTransformResults( * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1beta1.Value transform_results = 2; @@ -975,9 +964,8 @@ public Builder addTransformResults(com.google.firestore.v1beta1.Value value) { * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1beta1.Value transform_results = 2; @@ -999,9 +987,8 @@ public Builder addTransformResults(int index, com.google.firestore.v1beta1.Value * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1beta1.Value transform_results = 2; @@ -1020,9 +1007,8 @@ public Builder addTransformResults(com.google.firestore.v1beta1.Value.Builder bu * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1beta1.Value transform_results = 2; @@ -1042,9 +1028,8 @@ public Builder addTransformResults( * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1beta1.Value transform_results = 2; @@ -1064,9 +1049,8 @@ public Builder addAllTransformResults( * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1beta1.Value transform_results = 2; @@ -1085,9 +1069,8 @@ public Builder clearTransformResults() { * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1beta1.Value transform_results = 2; @@ -1106,9 +1089,8 @@ public Builder removeTransformResults(int index) { * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1beta1.Value transform_results = 2; @@ -1120,9 +1102,8 @@ public com.google.firestore.v1beta1.Value.Builder getTransformResultsBuilder(int * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1beta1.Value transform_results = 2; @@ -1138,9 +1119,8 @@ public com.google.firestore.v1beta1.ValueOrBuilder getTransformResultsOrBuilder( * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1beta1.Value transform_results = 2; @@ -1157,9 +1137,8 @@ public com.google.firestore.v1beta1.ValueOrBuilder getTransformResultsOrBuilder( * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1beta1.Value transform_results = 2; @@ -1172,9 +1151,8 @@ public com.google.firestore.v1beta1.Value.Builder addTransformResultsBuilder() { * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1beta1.Value transform_results = 2; @@ -1187,9 +1165,8 @@ public com.google.firestore.v1beta1.Value.Builder addTransformResultsBuilder(int * * *
-     * The results of applying each
-     * [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform],
-     * in the same order.
+     * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform], in the
+     * same order.
      * 
* * repeated .google.firestore.v1beta1.Value transform_results = 2; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/WriteResultOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/WriteResultOrBuilder.java index 9438f1e93e57..ee3cb9ae34f9 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/WriteResultOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/WriteResultOrBuilder.java @@ -52,9 +52,8 @@ public interface WriteResultOrBuilder * * *
-   * The results of applying each
-   * [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform],
-   * in the same order.
+   * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform], in the
+   * same order.
    * 
* * repeated .google.firestore.v1beta1.Value transform_results = 2; @@ -64,9 +63,8 @@ public interface WriteResultOrBuilder * * *
-   * The results of applying each
-   * [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform],
-   * in the same order.
+   * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform], in the
+   * same order.
    * 
* * repeated .google.firestore.v1beta1.Value transform_results = 2; @@ -76,9 +74,8 @@ public interface WriteResultOrBuilder * * *
-   * The results of applying each
-   * [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform],
-   * in the same order.
+   * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform], in the
+   * same order.
    * 
* * repeated .google.firestore.v1beta1.Value transform_results = 2; @@ -88,9 +85,8 @@ public interface WriteResultOrBuilder * * *
-   * The results of applying each
-   * [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform],
-   * in the same order.
+   * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform], in the
+   * same order.
    * 
* * repeated .google.firestore.v1beta1.Value transform_results = 2; @@ -101,9 +97,8 @@ public interface WriteResultOrBuilder * * *
-   * The results of applying each
-   * [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform],
-   * in the same order.
+   * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform], in the
+   * same order.
    * 
* * repeated .google.firestore.v1beta1.Value transform_results = 2; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/common.proto b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/common.proto index 027b1a09be9d..87c88a3be630 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/common.proto +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/common.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// 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. @@ -17,8 +17,8 @@ syntax = "proto3"; package google.firestore.v1beta1; -import "google/api/annotations.proto"; import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.Firestore.V1Beta1"; option go_package = "google.golang.org/genproto/googleapis/firestore/v1beta1;firestore"; @@ -28,15 +28,14 @@ option java_package = "com.google.firestore.v1beta1"; option objc_class_prefix = "GCFS"; option php_namespace = "Google\\Cloud\\Firestore\\V1beta1"; + // A set of field paths on a document. // Used to restrict a get or update operation on a document to a subset of its // fields. // This is different from standard field masks, as this is always scoped to a -// [Document][google.firestore.v1beta1.Document], and takes in account the -// dynamic nature of [Value][google.firestore.v1beta1.Value]. +// [Document][google.firestore.v1beta1.Document], and takes in account the dynamic nature of [Value][google.firestore.v1beta1.Value]. message DocumentMask { - // The list of field paths in the mask. See - // [Document.fields][google.firestore.v1beta1.Document.fields] for a field + // The list of field paths in the mask. See [Document.fields][google.firestore.v1beta1.Document.fields] for a field // path syntax reference. repeated string field_paths = 1; } diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/document.proto b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/document.proto index 0e11eff0b542..8a043df59980 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/document.proto +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/document.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// 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. @@ -17,10 +17,10 @@ syntax = "proto3"; package google.firestore.v1beta1; -import "google/api/annotations.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; import "google/type/latlng.proto"; +import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.Firestore.V1Beta1"; option go_package = "google.golang.org/genproto/googleapis/firestore/v1beta1;firestore"; @@ -30,6 +30,7 @@ option java_package = "com.google.firestore.v1beta1"; option objc_class_prefix = "GCFS"; option php_namespace = "Google\\Cloud\\Firestore\\V1beta1"; + // A Firestore document. // // Must not exceed 1 MiB - 4 bytes. diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/firestore.proto b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/firestore.proto index dc310d70bbdd..b7ba79075a40 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/firestore.proto +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/firestore.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// 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. @@ -33,7 +33,6 @@ option java_outer_classname = "FirestoreProto"; option java_package = "com.google.firestore.v1beta1"; option objc_class_prefix = "GCFS"; option php_namespace = "Google\\Cloud\\Firestore\\V1beta1"; - // Specification of the Firestore API. // The Cloud Firestore service. @@ -94,8 +93,7 @@ service Firestore { // // Documents returned by this method are not guaranteed to be returned in the // same order that they were requested. - rpc BatchGetDocuments(BatchGetDocumentsRequest) - returns (stream BatchGetDocumentsResponse) { + rpc BatchGetDocuments(BatchGetDocumentsRequest) returns (stream BatchGetDocumentsResponse) { option (google.api.http) = { post: "/v1beta1/{database=projects/*/databases/*}/documents:batchGet" body: "*" @@ -103,8 +101,7 @@ service Firestore { } // Starts a new transaction. - rpc BeginTransaction(BeginTransactionRequest) - returns (BeginTransactionResponse) { + rpc BeginTransaction(BeginTransactionRequest) returns (BeginTransactionResponse) { option (google.api.http) = { post: "/v1beta1/{database=projects/*/databases/*}/documents:beginTransaction" body: "*" @@ -156,8 +153,7 @@ service Firestore { } // Lists all the collection IDs underneath a document. - rpc ListCollectionIds(ListCollectionIdsRequest) - returns (ListCollectionIdsResponse) { + rpc ListCollectionIds(ListCollectionIdsRequest) returns (ListCollectionIdsResponse) { option (google.api.http) = { post: "/v1beta1/{parent=projects/*/databases/*/documents}:listCollectionIds" body: "*" @@ -169,8 +165,7 @@ service Firestore { } } -// The request for -// [Firestore.GetDocument][google.firestore.v1beta1.Firestore.GetDocument]. +// The request for [Firestore.GetDocument][google.firestore.v1beta1.Firestore.GetDocument]. message GetDocumentRequest { // The resource name of the Document to get. In the format: // `projects/{project_id}/databases/{database_id}/documents/{document_path}`. @@ -194,8 +189,7 @@ message GetDocumentRequest { } } -// The request for -// [Firestore.ListDocuments][google.firestore.v1beta1.Firestore.ListDocuments]. +// The request for [Firestore.ListDocuments][google.firestore.v1beta1.Firestore.ListDocuments]. message ListDocumentsRequest { // The parent resource name. In the format: // `projects/{project_id}/databases/{database_id}/documents` or @@ -237,17 +231,15 @@ message ListDocumentsRequest { // If the list should show missing documents. A missing document is a // document that does not exist but has sub-documents. These documents will - // be returned with a key but will not have fields, - // [Document.create_time][google.firestore.v1beta1.Document.create_time], or - // [Document.update_time][google.firestore.v1beta1.Document.update_time] set. + // be returned with a key but will not have fields, [Document.create_time][google.firestore.v1beta1.Document.create_time], + // or [Document.update_time][google.firestore.v1beta1.Document.update_time] set. // // Requests with `show_missing` may not specify `where` or // `order_by`. bool show_missing = 12; } -// The response for -// [Firestore.ListDocuments][google.firestore.v1beta1.Firestore.ListDocuments]. +// The response for [Firestore.ListDocuments][google.firestore.v1beta1.Firestore.ListDocuments]. message ListDocumentsResponse { // The Documents found. repeated Document documents = 1; @@ -256,8 +248,7 @@ message ListDocumentsResponse { string next_page_token = 2; } -// The request for -// [Firestore.CreateDocument][google.firestore.v1beta1.Firestore.CreateDocument]. +// The request for [Firestore.CreateDocument][google.firestore.v1beta1.Firestore.CreateDocument]. message CreateDocumentRequest { // The parent resource. For example: // `projects/{project_id}/databases/{database_id}/documents` or @@ -282,8 +273,7 @@ message CreateDocumentRequest { DocumentMask mask = 5; } -// The request for -// [Firestore.UpdateDocument][google.firestore.v1beta1.Firestore.UpdateDocument]. +// The request for [Firestore.UpdateDocument][google.firestore.v1beta1.Firestore.UpdateDocument]. message UpdateDocumentRequest { // The updated document. // Creates the document if it does not already exist. @@ -309,8 +299,7 @@ message UpdateDocumentRequest { Precondition current_document = 4; } -// The request for -// [Firestore.DeleteDocument][google.firestore.v1beta1.Firestore.DeleteDocument]. +// The request for [Firestore.DeleteDocument][google.firestore.v1beta1.Firestore.DeleteDocument]. message DeleteDocumentRequest { // The resource name of the Document to delete. In the format: // `projects/{project_id}/databases/{database_id}/documents/{document_path}`. @@ -321,8 +310,7 @@ message DeleteDocumentRequest { Precondition current_document = 2; } -// The request for -// [Firestore.BatchGetDocuments][google.firestore.v1beta1.Firestore.BatchGetDocuments]. +// The request for [Firestore.BatchGetDocuments][google.firestore.v1beta1.Firestore.BatchGetDocuments]. message BatchGetDocumentsRequest { // The database name. In the format: // `projects/{project_id}/databases/{database_id}`. @@ -358,8 +346,7 @@ message BatchGetDocumentsRequest { } } -// The streamed response for -// [Firestore.BatchGetDocuments][google.firestore.v1beta1.Firestore.BatchGetDocuments]. +// The streamed response for [Firestore.BatchGetDocuments][google.firestore.v1beta1.Firestore.BatchGetDocuments]. message BatchGetDocumentsResponse { // A single result. // This can be empty if the server is just returning a transaction. @@ -374,8 +361,7 @@ message BatchGetDocumentsResponse { // The transaction that was started as part of this request. // Will only be set in the first response, and only if - // [BatchGetDocumentsRequest.new_transaction][google.firestore.v1beta1.BatchGetDocumentsRequest.new_transaction] - // was set in the request. + // [BatchGetDocumentsRequest.new_transaction][google.firestore.v1beta1.BatchGetDocumentsRequest.new_transaction] was set in the request. bytes transaction = 3; // The time at which the document was read. @@ -385,8 +371,7 @@ message BatchGetDocumentsResponse { google.protobuf.Timestamp read_time = 4; } -// The request for -// [Firestore.BeginTransaction][google.firestore.v1beta1.Firestore.BeginTransaction]. +// The request for [Firestore.BeginTransaction][google.firestore.v1beta1.Firestore.BeginTransaction]. message BeginTransactionRequest { // The database name. In the format: // `projects/{project_id}/databases/{database_id}`. @@ -397,15 +382,13 @@ message BeginTransactionRequest { TransactionOptions options = 2; } -// The response for -// [Firestore.BeginTransaction][google.firestore.v1beta1.Firestore.BeginTransaction]. +// The response for [Firestore.BeginTransaction][google.firestore.v1beta1.Firestore.BeginTransaction]. message BeginTransactionResponse { // The transaction that was started. bytes transaction = 1; } -// The request for -// [Firestore.Commit][google.firestore.v1beta1.Firestore.Commit]. +// The request for [Firestore.Commit][google.firestore.v1beta1.Firestore.Commit]. message CommitRequest { // The database name. In the format: // `projects/{project_id}/databases/{database_id}`. @@ -420,8 +403,7 @@ message CommitRequest { bytes transaction = 3; } -// The response for -// [Firestore.Commit][google.firestore.v1beta1.Firestore.Commit]. +// The response for [Firestore.Commit][google.firestore.v1beta1.Firestore.Commit]. message CommitResponse { // The result of applying the writes. // @@ -433,8 +415,7 @@ message CommitResponse { google.protobuf.Timestamp commit_time = 2; } -// The request for -// [Firestore.Rollback][google.firestore.v1beta1.Firestore.Rollback]. +// The request for [Firestore.Rollback][google.firestore.v1beta1.Firestore.Rollback]. message RollbackRequest { // The database name. In the format: // `projects/{project_id}/databases/{database_id}`. @@ -444,8 +425,7 @@ message RollbackRequest { bytes transaction = 2; } -// The request for -// [Firestore.RunQuery][google.firestore.v1beta1.Firestore.RunQuery]. +// The request for [Firestore.RunQuery][google.firestore.v1beta1.Firestore.RunQuery]. message RunQueryRequest { // The parent resource name. In the format: // `projects/{project_id}/databases/{database_id}/documents` or @@ -479,14 +459,12 @@ message RunQueryRequest { } } -// The response for -// [Firestore.RunQuery][google.firestore.v1beta1.Firestore.RunQuery]. +// The response for [Firestore.RunQuery][google.firestore.v1beta1.Firestore.RunQuery]. message RunQueryResponse { // The transaction that was started as part of this request. // Can only be set in the first response, and only if - // [RunQueryRequest.new_transaction][google.firestore.v1beta1.RunQueryRequest.new_transaction] - // was set in the request. If set, no other fields will be set in this - // response. + // [RunQueryRequest.new_transaction][google.firestore.v1beta1.RunQueryRequest.new_transaction] was set in the request. + // If set, no other fields will be set in this response. bytes transaction = 2; // A query result. @@ -539,9 +517,9 @@ message WriteRequest { // A stream token that was previously sent by the server. // // The client should set this field to the token from the most recent - // [WriteResponse][google.firestore.v1beta1.WriteResponse] it has received. - // This acknowledges that the client has received responses up to this token. - // After sending this token, earlier tokens may not be used anymore. + // [WriteResponse][google.firestore.v1beta1.WriteResponse] it has received. This acknowledges that the client has + // received responses up to this token. After sending this token, earlier + // tokens may not be used anymore. // // The server may close the stream if there are too many unacknowledged // responses. @@ -597,8 +575,7 @@ message ListenRequest { map labels = 4; } -// The response for -// [Firestore.Listen][google.firestore.v1beta1.Firestore.Listen]. +// The response for [Firestore.Listen][google.firestore.v1beta1.Firestore.Listen]. message ListenResponse { // The supported responses. oneof response_type { @@ -611,8 +588,8 @@ message ListenResponse { // A [Document][google.firestore.v1beta1.Document] has been deleted. DocumentDelete document_delete = 4; - // A [Document][google.firestore.v1beta1.Document] has been removed from a - // target (because it is no longer relevant to that target). + // A [Document][google.firestore.v1beta1.Document] has been removed from a target (because it is no longer + // relevant to that target). DocumentRemove document_remove = 6; // A filter to apply to the set of documents previously returned for the @@ -666,9 +643,7 @@ message Target { // If not specified, all matching Documents are returned before any // subsequent changes. oneof resume_type { - // A resume token from a prior - // [TargetChange][google.firestore.v1beta1.TargetChange] for an identical - // target. + // A resume token from a prior [TargetChange][google.firestore.v1beta1.TargetChange] for an identical target. // // Using a resume token with a different target is unsupported and may fail. bytes resume_token = 4; @@ -760,8 +735,7 @@ message TargetChange { google.protobuf.Timestamp read_time = 6; } -// The request for -// [Firestore.ListCollectionIds][google.firestore.v1beta1.Firestore.ListCollectionIds]. +// The request for [Firestore.ListCollectionIds][google.firestore.v1beta1.Firestore.ListCollectionIds]. message ListCollectionIdsRequest { // The parent document. In the format: // `projects/{project_id}/databases/{database_id}/documents/{document_path}`. @@ -777,8 +751,7 @@ message ListCollectionIdsRequest { string page_token = 3; } -// The response from -// [Firestore.ListCollectionIds][google.firestore.v1beta1.Firestore.ListCollectionIds]. +// The response from [Firestore.ListCollectionIds][google.firestore.v1beta1.Firestore.ListCollectionIds]. message ListCollectionIdsResponse { // The collection ids. repeated string collection_ids = 1; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/query.proto b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/query.proto index 9bd0ad509444..94eec9cbbf3f 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/query.proto +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/query.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// 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. @@ -17,9 +17,9 @@ syntax = "proto3"; package google.firestore.v1beta1; -import "google/api/annotations.proto"; import "google/firestore/v1beta1/document.proto"; import "google/protobuf/wrappers.proto"; +import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.Firestore.V1Beta1"; option go_package = "google.golang.org/genproto/googleapis/firestore/v1beta1;firestore"; @@ -29,6 +29,7 @@ option java_package = "com.google.firestore.v1beta1"; option objc_class_prefix = "GCFS"; option php_namespace = "Google\\Cloud\\Firestore\\V1beta1"; + // A Firestore query. message StructuredQuery { // A selection of a collection, such as `messages as m1`. @@ -114,6 +115,15 @@ message StructuredQuery { Value value = 3; } + // The projection of document's fields to return. + message Projection { + // The fields to return. + // + // If empty, all fields are returned. To only return the name + // of the document, use `['__name__']`. + repeated FieldReference fields = 2; + } + // A filter with a single operand. message UnaryFilter { // A unary operator. @@ -147,20 +157,6 @@ message StructuredQuery { Direction direction = 2; } - // A reference to a field, such as `max(messages.time) as max_time`. - message FieldReference { - string field_path = 2; - } - - // The projection of document's fields to return. - message Projection { - // The fields to return. - // - // If empty, all fields are returned. To only return the name - // of the document, use `['__name__']`. - repeated FieldReference fields = 2; - } - // A sort direction. enum Direction { // Unspecified. @@ -173,6 +169,11 @@ message StructuredQuery { DESCENDING = 2; } + // A reference to a field, such as `max(messages.time) as max_time`. + message FieldReference { + string field_path = 2; + } + // The projection to return. Projection select = 1; 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 d1ee7d32f376..4e58cc1216e1 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 @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// 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. @@ -17,10 +17,10 @@ syntax = "proto3"; package google.firestore.v1beta1; -import "google/api/annotations.proto"; import "google/firestore/v1beta1/common.proto"; import "google/firestore/v1beta1/document.proto"; import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.Firestore.V1Beta1"; option go_package = "google.golang.org/genproto/googleapis/firestore/v1beta1;firestore"; @@ -30,6 +30,7 @@ option java_package = "com.google.firestore.v1beta1"; option objc_class_prefix = "GCFS"; option php_namespace = "Google\\Cloud\\Firestore\\V1beta1"; + // A write on a document. message Write { // The operation to execute. @@ -80,9 +81,8 @@ message DocumentTransform { REQUEST_TIME = 1; } - // The path of the field. See - // [Document.fields][google.firestore.v1beta1.Document.fields] for the field - // path syntax reference. + // The path of the field. See [Document.fields][google.firestore.v1beta1.Document.fields] for the field path syntax + // reference. string field_path = 1; // The transformation to apply on the field. @@ -176,21 +176,18 @@ message WriteResult { // previous update_time. google.protobuf.Timestamp update_time = 1; - // The results of applying each - // [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform], - // in the same order. + // The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform], in the + // same order. repeated Value transform_results = 2; } // A [Document][google.firestore.v1beta1.Document] has changed. // -// May be the result of multiple [writes][google.firestore.v1beta1.Write], -// including deletes, that ultimately resulted in a new value for the -// [Document][google.firestore.v1beta1.Document]. +// May be the result of multiple [writes][google.firestore.v1beta1.Write], including deletes, that +// ultimately resulted in a new value for the [Document][google.firestore.v1beta1.Document]. // -// Multiple [DocumentChange][google.firestore.v1beta1.DocumentChange] messages -// may be returned for the same logical change, if multiple targets are -// affected. +// Multiple [DocumentChange][google.firestore.v1beta1.DocumentChange] messages may be returned for the same logical +// change, if multiple targets are affected. message DocumentChange { // The new state of the [Document][google.firestore.v1beta1.Document]. // @@ -206,16 +203,13 @@ message DocumentChange { // A [Document][google.firestore.v1beta1.Document] has been deleted. // -// May be the result of multiple [writes][google.firestore.v1beta1.Write], -// including updates, the last of which deleted the -// [Document][google.firestore.v1beta1.Document]. +// May be the result of multiple [writes][google.firestore.v1beta1.Write], including updates, the +// last of which deleted the [Document][google.firestore.v1beta1.Document]. // -// Multiple [DocumentDelete][google.firestore.v1beta1.DocumentDelete] messages -// may be returned for the same logical delete, if multiple targets are -// affected. +// Multiple [DocumentDelete][google.firestore.v1beta1.DocumentDelete] messages may be returned for the same logical +// delete, if multiple targets are affected. message DocumentDelete { - // The resource name of the [Document][google.firestore.v1beta1.Document] that - // was deleted. + // The resource name of the [Document][google.firestore.v1beta1.Document] that was deleted. string document = 1; // A set of target IDs for targets that previously matched this entity. @@ -227,19 +221,16 @@ message DocumentDelete { google.protobuf.Timestamp read_time = 4; } -// A [Document][google.firestore.v1beta1.Document] has been removed from the -// view of the targets. +// A [Document][google.firestore.v1beta1.Document] has been removed from the view of the targets. // // Sent if the document is no longer relevant to a target and is out of view. // Can be sent instead of a DocumentDelete or a DocumentChange if the server // can not send the new value of the document. // -// Multiple [DocumentRemove][google.firestore.v1beta1.DocumentRemove] messages -// may be returned for the same logical write or delete, if multiple targets are -// affected. +// Multiple [DocumentRemove][google.firestore.v1beta1.DocumentRemove] messages may be returned for the same logical +// write or delete, if multiple targets are affected. message DocumentRemove { - // The resource name of the [Document][google.firestore.v1beta1.Document] that - // has gone out of view. + // The resource name of the [Document][google.firestore.v1beta1.Document] that has gone out of view. string document = 1; // A set of target IDs for targets that previously matched this document. @@ -256,8 +247,7 @@ message ExistenceFilter { // The target ID to which this filter applies. int32 target_id = 1; - // The total count of documents that match - // [target_id][google.firestore.v1beta1.ExistenceFilter.target_id]. + // The total count of documents that match [target_id][google.firestore.v1beta1.ExistenceFilter.target_id]. // // If different from the count of documents in the client that match, the // client must manually determine which documents no longer match the target. diff --git a/google-cloud-clients/google-cloud-firestore/synth.metadata b/google-cloud-clients/google-cloud-firestore/synth.metadata index b5b51015b214..0ffd460f60b8 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-16T07:43:23.809130Z", + "updateTime": "2019-03-22T07:43:53.166974Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.17", - "dockerImage": "googleapis/artman@sha256:7231f27272231a884e09edb5953148c85ecd8467780d33c4a35c3e507885715b" + "version": "0.16.18", + "dockerImage": "googleapis/artman@sha256:e8ac9200640e76d54643f370db71a1556bf254f565ce46b45a467bbcbacbdb37" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "dab002e28c81adcc5601278c36d4302c2624c8e2", - "internalRef": "238726437" + "sha": "e2a116ac081210002ec2e634f1f840a453ebd182", + "internalRef": "239695990" } } ], From 6660080f7d30e2ee1ab8d444a472da28cdc338e7 Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Fri, 22 Mar 2019 11:18:26 -0400 Subject: [PATCH 18/20] Upgrade common protos dependency to 1.15.0. (#4722) --- google-api-grpc/pom.xml | 2 +- google-cloud-bom/pom.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/google-api-grpc/pom.xml b/google-api-grpc/pom.xml index c5cccda72c2e..2ac2ac3f61fe 100644 --- a/google-api-grpc/pom.xml +++ b/google-api-grpc/pom.xml @@ -125,7 +125,7 @@ com.google.api.grpc proto-google-common-protos - 1.14.0 + 1.15.0 com.google.api.grpc diff --git a/google-cloud-bom/pom.xml b/google-cloud-bom/pom.xml index 78247cbf4f58..90870c04577b 100644 --- a/google-cloud-bom/pom.xml +++ b/google-cloud-bom/pom.xml @@ -175,12 +175,12 @@ com.google.api.grpc proto-google-common-protos - 1.14.0 + 1.15.0 com.google.api.grpc grpc-google-common-protos - 1.14.0 + 1.15.0 com.google.api.grpc From 57018782839c5908821c7c0d98ee7d1417e7df06 Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Fri, 22 Mar 2019 10:40:30 -0700 Subject: [PATCH 19/20] V1 Admin API for Firestore (#4716) --- .../pom.xml | 31 + .../admin/v1/FirestoreAdminGrpc.java | 1434 +++++++ google-api-grpc/pom.xml | 12 + .../pom.xml | 31 + .../admin/v1/CreateIndexRequest.java | 865 ++++ .../admin/v1/CreateIndexRequestOrBuilder.java | 64 + .../firestore/admin/v1/DatabaseName.java | 180 + .../admin/v1/DeleteIndexRequest.java | 605 +++ .../admin/v1/DeleteIndexRequestOrBuilder.java | 33 + .../admin/v1/ExportDocumentsMetadata.java | 2040 ++++++++++ .../v1/ExportDocumentsMetadataOrBuilder.java | 220 ++ .../admin/v1/ExportDocumentsRequest.java | 1063 +++++ .../v1/ExportDocumentsRequestOrBuilder.java | 109 + .../admin/v1/ExportDocumentsResponse.java | 614 +++ .../v1/ExportDocumentsResponseOrBuilder.java | 35 + .../com/google/firestore/admin/v1/Field.java | 2470 ++++++++++++ .../google/firestore/admin/v1/FieldName.java | 248 ++ .../admin/v1/FieldOperationMetadata.java | 3483 +++++++++++++++++ .../v1/FieldOperationMetadataOrBuilder.java | 252 ++ .../firestore/admin/v1/FieldOrBuilder.java | 113 + .../google/firestore/admin/v1/FieldProto.java | 84 + .../admin/v1/FirestoreAdminProto.java | 263 ++ .../firestore/admin/v1/GetFieldRequest.java | 604 +++ .../admin/v1/GetFieldRequestOrBuilder.java | 33 + .../firestore/admin/v1/GetIndexRequest.java | 604 +++ .../admin/v1/GetIndexRequestOrBuilder.java | 33 + .../admin/v1/ImportDocumentsMetadata.java | 2040 ++++++++++ .../v1/ImportDocumentsMetadataOrBuilder.java | 220 ++ .../admin/v1/ImportDocumentsRequest.java | 1055 +++++ .../v1/ImportDocumentsRequestOrBuilder.java | 107 + .../com/google/firestore/admin/v1/Index.java | 3277 ++++++++++++++++ .../google/firestore/admin/v1/IndexName.java | 248 ++ .../admin/v1/IndexOperationMetadata.java | 1799 +++++++++ .../v1/IndexOperationMetadataOrBuilder.java | 181 + .../firestore/admin/v1/IndexOrBuilder.java | 185 + .../google/firestore/admin/v1/IndexProto.java | 91 + .../firestore/admin/v1/ListFieldsRequest.java | 1049 +++++ .../admin/v1/ListFieldsRequestOrBuilder.java | 98 + .../admin/v1/ListFieldsResponse.java | 1096 ++++++ .../admin/v1/ListFieldsResponseOrBuilder.java | 84 + .../admin/v1/ListIndexesRequest.java | 1021 +++++ .../admin/v1/ListIndexesRequestOrBuilder.java | 90 + .../admin/v1/ListIndexesResponse.java | 1097 ++++++ .../v1/ListIndexesResponseOrBuilder.java | 84 + .../firestore/admin/v1/LocationMetadata.java | 434 ++ .../admin/v1/LocationMetadataOrBuilder.java | 9 + .../firestore/admin/v1/LocationProto.java | 64 + .../firestore/admin/v1/OperationProto.java | 210 + .../firestore/admin/v1/OperationState.java | 263 ++ .../google/firestore/admin/v1/ParentName.java | 213 + .../google/firestore/admin/v1/Progress.java | 599 +++ .../firestore/admin/v1/ProgressOrBuilder.java | 32 + .../admin/v1/UpdateFieldRequest.java | 969 +++++ .../admin/v1/UpdateFieldRequestOrBuilder.java | 75 + .../google/firestore/admin/v1/field.proto | 96 + .../firestore/admin/v1/firestore_admin.proto | 274 ++ .../google/firestore/admin/v1/index.proto | 149 + .../google/firestore/admin/v1/location.proto | 35 + .../google/firestore/admin/v1/operation.proto | 204 + google-cloud-bom/pom.xml | 10 + .../google-cloud-firestore/pom.xml | 9 + .../firestore/v1/FirestoreAdminClient.java | 1272 ++++++ .../firestore/v1/FirestoreAdminSettings.java | 278 ++ .../firestore/v1/stub/FirestoreAdminStub.java | 97 + .../v1/stub/FirestoreAdminStubSettings.java | 595 +++ .../GrpcFirestoreAdminCallableFactory.java | 115 + .../v1/stub/GrpcFirestoreAdminStub.java | 333 ++ .../v1/FirestoreAdminClientTest.java | 485 +++ .../firestore/v1/MockFirestoreAdmin.java | 57 + .../firestore/v1/MockFirestoreAdminImpl.java | 203 + .../google-cloud-firestore/synth.metadata | 12 +- .../google-cloud-firestore/synth.py | 49 +- versions.txt | 2 + 73 files changed, 36456 insertions(+), 32 deletions(-) create mode 100644 google-api-grpc/grpc-google-cloud-firestore-admin-v1/pom.xml create mode 100644 google-api-grpc/grpc-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FirestoreAdminGrpc.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/pom.xml create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CreateIndexRequest.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CreateIndexRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DatabaseName.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DeleteIndexRequest.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DeleteIndexRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsMetadata.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsMetadataOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsRequest.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsResponse.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsResponseOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Field.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldName.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOperationMetadata.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOperationMetadataOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldProto.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FirestoreAdminProto.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetFieldRequest.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetFieldRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetIndexRequest.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetIndexRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsMetadata.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsMetadataOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsRequest.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Index.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexName.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexOperationMetadata.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexOperationMetadataOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexProto.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsRequest.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsResponse.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsResponseOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesRequest.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesResponse.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesResponseOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationMetadata.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationMetadataOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationProto.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/OperationProto.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/OperationState.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ParentName.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Progress.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ProgressOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UpdateFieldRequest.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UpdateFieldRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/field.proto create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/firestore_admin.proto create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/index.proto create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/location.proto create mode 100644 google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/operation.proto create mode 100644 google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/FirestoreAdminClient.java create mode 100644 google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/FirestoreAdminSettings.java create mode 100644 google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreAdminStub.java create mode 100644 google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreAdminStubSettings.java create mode 100644 google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/GrpcFirestoreAdminCallableFactory.java create mode 100644 google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/GrpcFirestoreAdminStub.java create mode 100644 google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/FirestoreAdminClientTest.java create mode 100644 google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockFirestoreAdmin.java create mode 100644 google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockFirestoreAdminImpl.java diff --git a/google-api-grpc/grpc-google-cloud-firestore-admin-v1/pom.xml b/google-api-grpc/grpc-google-cloud-firestore-admin-v1/pom.xml new file mode 100644 index 000000000000..cc078bb90bd8 --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-firestore-admin-v1/pom.xml @@ -0,0 +1,31 @@ + + 4.0.0 + grpc-google-cloud-firestore-admin-v1 + 0.49.1-SNAPSHOT + grpc-google-cloud-firestore-admin-v1 + GRPC library for grpc-google-cloud-firestore-admin-v1 + + com.google.api.grpc + google-api-grpc + 0.49.1-SNAPSHOT + + + + io.grpc + grpc-stub + compile + + + io.grpc + grpc-protobuf + compile + + + com.google.api.grpc + proto-google-cloud-firestore-admin-v1 + compile + + + diff --git a/google-api-grpc/grpc-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FirestoreAdminGrpc.java b/google-api-grpc/grpc-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FirestoreAdminGrpc.java new file mode 100644 index 000000000000..00fe8b48559d --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FirestoreAdminGrpc.java @@ -0,0 +1,1434 @@ +package com.google.firestore.admin.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + * + * + *
+ * Operations are created by service `FirestoreAdmin`, but are accessed via
+ * service `google.longrunning.Operations`.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/firestore/admin/v1/firestore_admin.proto") +public final class FirestoreAdminGrpc { + + private FirestoreAdminGrpc() {} + + public static final String SERVICE_NAME = "google.firestore.admin.v1.FirestoreAdmin"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getCreateIndexMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.CreateIndexRequest, com.google.longrunning.Operation> + METHOD_CREATE_INDEX = getCreateIndexMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.CreateIndexRequest, com.google.longrunning.Operation> + getCreateIndexMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.CreateIndexRequest, com.google.longrunning.Operation> + getCreateIndexMethod() { + return getCreateIndexMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.CreateIndexRequest, com.google.longrunning.Operation> + getCreateIndexMethodHelper() { + io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.CreateIndexRequest, com.google.longrunning.Operation> + getCreateIndexMethod; + if ((getCreateIndexMethod = FirestoreAdminGrpc.getCreateIndexMethod) == null) { + synchronized (FirestoreAdminGrpc.class) { + if ((getCreateIndexMethod = FirestoreAdminGrpc.getCreateIndexMethod) == null) { + FirestoreAdminGrpc.getCreateIndexMethod = + getCreateIndexMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.firestore.admin.v1.FirestoreAdmin", "CreateIndex")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.admin.v1.CreateIndexRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new FirestoreAdminMethodDescriptorSupplier("CreateIndex")) + .build(); + } + } + } + return getCreateIndexMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListIndexesMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.ListIndexesRequest, + com.google.firestore.admin.v1.ListIndexesResponse> + METHOD_LIST_INDEXES = getListIndexesMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.ListIndexesRequest, + com.google.firestore.admin.v1.ListIndexesResponse> + getListIndexesMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.ListIndexesRequest, + com.google.firestore.admin.v1.ListIndexesResponse> + getListIndexesMethod() { + return getListIndexesMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.ListIndexesRequest, + com.google.firestore.admin.v1.ListIndexesResponse> + getListIndexesMethodHelper() { + io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.ListIndexesRequest, + com.google.firestore.admin.v1.ListIndexesResponse> + getListIndexesMethod; + if ((getListIndexesMethod = FirestoreAdminGrpc.getListIndexesMethod) == null) { + synchronized (FirestoreAdminGrpc.class) { + if ((getListIndexesMethod = FirestoreAdminGrpc.getListIndexesMethod) == null) { + FirestoreAdminGrpc.getListIndexesMethod = + getListIndexesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.firestore.admin.v1.FirestoreAdmin", "ListIndexes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.admin.v1.ListIndexesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.admin.v1.ListIndexesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new FirestoreAdminMethodDescriptorSupplier("ListIndexes")) + .build(); + } + } + } + return getListIndexesMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetIndexMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.GetIndexRequest, com.google.firestore.admin.v1.Index> + METHOD_GET_INDEX = getGetIndexMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.GetIndexRequest, com.google.firestore.admin.v1.Index> + getGetIndexMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.GetIndexRequest, com.google.firestore.admin.v1.Index> + getGetIndexMethod() { + return getGetIndexMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.GetIndexRequest, com.google.firestore.admin.v1.Index> + getGetIndexMethodHelper() { + io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.GetIndexRequest, com.google.firestore.admin.v1.Index> + getGetIndexMethod; + if ((getGetIndexMethod = FirestoreAdminGrpc.getGetIndexMethod) == null) { + synchronized (FirestoreAdminGrpc.class) { + if ((getGetIndexMethod = FirestoreAdminGrpc.getGetIndexMethod) == null) { + FirestoreAdminGrpc.getGetIndexMethod = + getGetIndexMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.firestore.admin.v1.FirestoreAdmin", "GetIndex")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.admin.v1.GetIndexRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.admin.v1.Index.getDefaultInstance())) + .setSchemaDescriptor(new FirestoreAdminMethodDescriptorSupplier("GetIndex")) + .build(); + } + } + } + return getGetIndexMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getDeleteIndexMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.DeleteIndexRequest, com.google.protobuf.Empty> + METHOD_DELETE_INDEX = getDeleteIndexMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.DeleteIndexRequest, com.google.protobuf.Empty> + getDeleteIndexMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.DeleteIndexRequest, com.google.protobuf.Empty> + getDeleteIndexMethod() { + return getDeleteIndexMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.DeleteIndexRequest, com.google.protobuf.Empty> + getDeleteIndexMethodHelper() { + io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.DeleteIndexRequest, com.google.protobuf.Empty> + getDeleteIndexMethod; + if ((getDeleteIndexMethod = FirestoreAdminGrpc.getDeleteIndexMethod) == null) { + synchronized (FirestoreAdminGrpc.class) { + if ((getDeleteIndexMethod = FirestoreAdminGrpc.getDeleteIndexMethod) == null) { + FirestoreAdminGrpc.getDeleteIndexMethod = + getDeleteIndexMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.firestore.admin.v1.FirestoreAdmin", "DeleteIndex")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.admin.v1.DeleteIndexRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new FirestoreAdminMethodDescriptorSupplier("DeleteIndex")) + .build(); + } + } + } + return getDeleteIndexMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetFieldMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.GetFieldRequest, com.google.firestore.admin.v1.Field> + METHOD_GET_FIELD = getGetFieldMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.GetFieldRequest, com.google.firestore.admin.v1.Field> + getGetFieldMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.GetFieldRequest, com.google.firestore.admin.v1.Field> + getGetFieldMethod() { + return getGetFieldMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.GetFieldRequest, com.google.firestore.admin.v1.Field> + getGetFieldMethodHelper() { + io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.GetFieldRequest, com.google.firestore.admin.v1.Field> + getGetFieldMethod; + if ((getGetFieldMethod = FirestoreAdminGrpc.getGetFieldMethod) == null) { + synchronized (FirestoreAdminGrpc.class) { + if ((getGetFieldMethod = FirestoreAdminGrpc.getGetFieldMethod) == null) { + FirestoreAdminGrpc.getGetFieldMethod = + getGetFieldMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.firestore.admin.v1.FirestoreAdmin", "GetField")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.admin.v1.GetFieldRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.admin.v1.Field.getDefaultInstance())) + .setSchemaDescriptor(new FirestoreAdminMethodDescriptorSupplier("GetField")) + .build(); + } + } + } + return getGetFieldMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getUpdateFieldMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.UpdateFieldRequest, com.google.longrunning.Operation> + METHOD_UPDATE_FIELD = getUpdateFieldMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.UpdateFieldRequest, com.google.longrunning.Operation> + getUpdateFieldMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.UpdateFieldRequest, com.google.longrunning.Operation> + getUpdateFieldMethod() { + return getUpdateFieldMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.UpdateFieldRequest, com.google.longrunning.Operation> + getUpdateFieldMethodHelper() { + io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.UpdateFieldRequest, com.google.longrunning.Operation> + getUpdateFieldMethod; + if ((getUpdateFieldMethod = FirestoreAdminGrpc.getUpdateFieldMethod) == null) { + synchronized (FirestoreAdminGrpc.class) { + if ((getUpdateFieldMethod = FirestoreAdminGrpc.getUpdateFieldMethod) == null) { + FirestoreAdminGrpc.getUpdateFieldMethod = + getUpdateFieldMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.firestore.admin.v1.FirestoreAdmin", "UpdateField")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.admin.v1.UpdateFieldRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new FirestoreAdminMethodDescriptorSupplier("UpdateField")) + .build(); + } + } + } + return getUpdateFieldMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListFieldsMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.ListFieldsRequest, + com.google.firestore.admin.v1.ListFieldsResponse> + METHOD_LIST_FIELDS = getListFieldsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.ListFieldsRequest, + com.google.firestore.admin.v1.ListFieldsResponse> + getListFieldsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.ListFieldsRequest, + com.google.firestore.admin.v1.ListFieldsResponse> + getListFieldsMethod() { + return getListFieldsMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.ListFieldsRequest, + com.google.firestore.admin.v1.ListFieldsResponse> + getListFieldsMethodHelper() { + io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.ListFieldsRequest, + com.google.firestore.admin.v1.ListFieldsResponse> + getListFieldsMethod; + if ((getListFieldsMethod = FirestoreAdminGrpc.getListFieldsMethod) == null) { + synchronized (FirestoreAdminGrpc.class) { + if ((getListFieldsMethod = FirestoreAdminGrpc.getListFieldsMethod) == null) { + FirestoreAdminGrpc.getListFieldsMethod = + getListFieldsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.firestore.admin.v1.FirestoreAdmin", "ListFields")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.admin.v1.ListFieldsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.admin.v1.ListFieldsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new FirestoreAdminMethodDescriptorSupplier("ListFields")) + .build(); + } + } + } + return getListFieldsMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getExportDocumentsMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.ExportDocumentsRequest, com.google.longrunning.Operation> + METHOD_EXPORT_DOCUMENTS = getExportDocumentsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.ExportDocumentsRequest, com.google.longrunning.Operation> + getExportDocumentsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.ExportDocumentsRequest, com.google.longrunning.Operation> + getExportDocumentsMethod() { + return getExportDocumentsMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.ExportDocumentsRequest, com.google.longrunning.Operation> + getExportDocumentsMethodHelper() { + io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.ExportDocumentsRequest, com.google.longrunning.Operation> + getExportDocumentsMethod; + if ((getExportDocumentsMethod = FirestoreAdminGrpc.getExportDocumentsMethod) == null) { + synchronized (FirestoreAdminGrpc.class) { + if ((getExportDocumentsMethod = FirestoreAdminGrpc.getExportDocumentsMethod) == null) { + FirestoreAdminGrpc.getExportDocumentsMethod = + getExportDocumentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.firestore.admin.v1.FirestoreAdmin", "ExportDocuments")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.admin.v1.ExportDocumentsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new FirestoreAdminMethodDescriptorSupplier("ExportDocuments")) + .build(); + } + } + } + return getExportDocumentsMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getImportDocumentsMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.ImportDocumentsRequest, com.google.longrunning.Operation> + METHOD_IMPORT_DOCUMENTS = getImportDocumentsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.ImportDocumentsRequest, com.google.longrunning.Operation> + getImportDocumentsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.ImportDocumentsRequest, com.google.longrunning.Operation> + getImportDocumentsMethod() { + return getImportDocumentsMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.ImportDocumentsRequest, com.google.longrunning.Operation> + getImportDocumentsMethodHelper() { + io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.ImportDocumentsRequest, com.google.longrunning.Operation> + getImportDocumentsMethod; + if ((getImportDocumentsMethod = FirestoreAdminGrpc.getImportDocumentsMethod) == null) { + synchronized (FirestoreAdminGrpc.class) { + if ((getImportDocumentsMethod = FirestoreAdminGrpc.getImportDocumentsMethod) == null) { + FirestoreAdminGrpc.getImportDocumentsMethod = + getImportDocumentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.firestore.admin.v1.FirestoreAdmin", "ImportDocuments")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.admin.v1.ImportDocumentsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new FirestoreAdminMethodDescriptorSupplier("ImportDocuments")) + .build(); + } + } + } + return getImportDocumentsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static FirestoreAdminStub newStub(io.grpc.Channel channel) { + return new FirestoreAdminStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static FirestoreAdminBlockingStub newBlockingStub(io.grpc.Channel channel) { + return new FirestoreAdminBlockingStub(channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static FirestoreAdminFutureStub newFutureStub(io.grpc.Channel channel) { + return new FirestoreAdminFutureStub(channel); + } + + /** + * + * + *
+   * Operations are created by service `FirestoreAdmin`, but are accessed via
+   * service `google.longrunning.Operations`.
+   * 
+ */ + public abstract static class FirestoreAdminImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a composite index. This returns a [google.longrunning.Operation][google.longrunning.Operation]
+     * which may be used to track the status of the creation. The metadata for
+     * the operation will be the type [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata].
+     * 
+ */ + public void createIndex( + com.google.firestore.admin.v1.CreateIndexRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getCreateIndexMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Lists composite indexes.
+     * 
+ */ + public void listIndexes( + com.google.firestore.admin.v1.ListIndexesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getListIndexesMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Gets a composite index.
+     * 
+ */ + public void getIndex( + com.google.firestore.admin.v1.GetIndexRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetIndexMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Deletes a composite index.
+     * 
+ */ + public void deleteIndex( + com.google.firestore.admin.v1.DeleteIndexRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getDeleteIndexMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Gets the metadata and configuration for a Field.
+     * 
+ */ + public void getField( + com.google.firestore.admin.v1.GetFieldRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetFieldMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Updates a field configuration. Currently, field updates apply only to
+     * single field index configuration. However, calls to
+     * [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField] should provide a field mask to avoid
+     * changing any configuration that the caller isn't aware of. The field mask
+     * should be specified as: `{ paths: "index_config" }`.
+     * This call returns a [google.longrunning.Operation][google.longrunning.Operation] which may be used to
+     * track the status of the field update. The metadata for
+     * the operation will be the type [FieldOperationMetadata][google.firestore.admin.v1.FieldOperationMetadata].
+     * To configure the default field settings for the database, use
+     * the special `Field` with resource name:
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`.
+     * 
+ */ + public void updateField( + com.google.firestore.admin.v1.UpdateFieldRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getUpdateFieldMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Lists the field configuration and metadata for this database.
+     * Currently, [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields
+     * that have been explicitly overridden. To issue this query, call
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to
+     * `indexConfig.usesAncestorConfig:false`.
+     * 
+ */ + public void listFields( + com.google.firestore.admin.v1.ListFieldsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getListFieldsMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Exports a copy of all or a subset of documents from Google Cloud Firestore
+     * to another storage system, such as Google Cloud Storage. Recent updates to
+     * documents may not be reflected in the export. The export occurs in the
+     * background and its progress can be monitored and managed via the
+     * Operation resource that is created. The output of an export may only be
+     * used once the associated operation is done. If an export operation is
+     * cancelled before completion it may leave partial data behind in Google
+     * Cloud Storage.
+     * 
+ */ + public void exportDocuments( + com.google.firestore.admin.v1.ExportDocumentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getExportDocumentsMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Imports documents into Google Cloud Firestore. Existing documents with the
+     * same name are overwritten. The import occurs in the background and its
+     * progress can be monitored and managed via the Operation resource that is
+     * created. If an ImportDocuments operation is cancelled, it is possible
+     * that a subset of the data has already been imported to Cloud Firestore.
+     * 
+ */ + public void importDocuments( + com.google.firestore.admin.v1.ImportDocumentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getImportDocumentsMethodHelper(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateIndexMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.firestore.admin.v1.CreateIndexRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_INDEX))) + .addMethod( + getListIndexesMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.firestore.admin.v1.ListIndexesRequest, + com.google.firestore.admin.v1.ListIndexesResponse>( + this, METHODID_LIST_INDEXES))) + .addMethod( + getGetIndexMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.firestore.admin.v1.GetIndexRequest, + com.google.firestore.admin.v1.Index>(this, METHODID_GET_INDEX))) + .addMethod( + getDeleteIndexMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.firestore.admin.v1.DeleteIndexRequest, com.google.protobuf.Empty>( + this, METHODID_DELETE_INDEX))) + .addMethod( + getGetFieldMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.firestore.admin.v1.GetFieldRequest, + com.google.firestore.admin.v1.Field>(this, METHODID_GET_FIELD))) + .addMethod( + getUpdateFieldMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.firestore.admin.v1.UpdateFieldRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_FIELD))) + .addMethod( + getListFieldsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.firestore.admin.v1.ListFieldsRequest, + com.google.firestore.admin.v1.ListFieldsResponse>( + this, METHODID_LIST_FIELDS))) + .addMethod( + getExportDocumentsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.firestore.admin.v1.ExportDocumentsRequest, + com.google.longrunning.Operation>(this, METHODID_EXPORT_DOCUMENTS))) + .addMethod( + getImportDocumentsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.firestore.admin.v1.ImportDocumentsRequest, + com.google.longrunning.Operation>(this, METHODID_IMPORT_DOCUMENTS))) + .build(); + } + } + + /** + * + * + *
+   * Operations are created by service `FirestoreAdmin`, but are accessed via
+   * service `google.longrunning.Operations`.
+   * 
+ */ + public static final class FirestoreAdminStub + extends io.grpc.stub.AbstractStub { + private FirestoreAdminStub(io.grpc.Channel channel) { + super(channel); + } + + private FirestoreAdminStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FirestoreAdminStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FirestoreAdminStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a composite index. This returns a [google.longrunning.Operation][google.longrunning.Operation]
+     * which may be used to track the status of the creation. The metadata for
+     * the operation will be the type [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata].
+     * 
+ */ + public void createIndex( + com.google.firestore.admin.v1.CreateIndexRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCreateIndexMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists composite indexes.
+     * 
+ */ + public void listIndexes( + com.google.firestore.admin.v1.ListIndexesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListIndexesMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a composite index.
+     * 
+ */ + public void getIndex( + com.google.firestore.admin.v1.GetIndexRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetIndexMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a composite index.
+     * 
+ */ + public void deleteIndex( + com.google.firestore.admin.v1.DeleteIndexRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getDeleteIndexMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the metadata and configuration for a Field.
+     * 
+ */ + public void getField( + com.google.firestore.admin.v1.GetFieldRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetFieldMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a field configuration. Currently, field updates apply only to
+     * single field index configuration. However, calls to
+     * [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField] should provide a field mask to avoid
+     * changing any configuration that the caller isn't aware of. The field mask
+     * should be specified as: `{ paths: "index_config" }`.
+     * This call returns a [google.longrunning.Operation][google.longrunning.Operation] which may be used to
+     * track the status of the field update. The metadata for
+     * the operation will be the type [FieldOperationMetadata][google.firestore.admin.v1.FieldOperationMetadata].
+     * To configure the default field settings for the database, use
+     * the special `Field` with resource name:
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`.
+     * 
+ */ + public void updateField( + com.google.firestore.admin.v1.UpdateFieldRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateFieldMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists the field configuration and metadata for this database.
+     * Currently, [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields
+     * that have been explicitly overridden. To issue this query, call
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to
+     * `indexConfig.usesAncestorConfig:false`.
+     * 
+ */ + public void listFields( + com.google.firestore.admin.v1.ListFieldsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListFieldsMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Exports a copy of all or a subset of documents from Google Cloud Firestore
+     * to another storage system, such as Google Cloud Storage. Recent updates to
+     * documents may not be reflected in the export. The export occurs in the
+     * background and its progress can be monitored and managed via the
+     * Operation resource that is created. The output of an export may only be
+     * used once the associated operation is done. If an export operation is
+     * cancelled before completion it may leave partial data behind in Google
+     * Cloud Storage.
+     * 
+ */ + public void exportDocuments( + com.google.firestore.admin.v1.ExportDocumentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getExportDocumentsMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Imports documents into Google Cloud Firestore. Existing documents with the
+     * same name are overwritten. The import occurs in the background and its
+     * progress can be monitored and managed via the Operation resource that is
+     * created. If an ImportDocuments operation is cancelled, it is possible
+     * that a subset of the data has already been imported to Cloud Firestore.
+     * 
+ */ + public void importDocuments( + com.google.firestore.admin.v1.ImportDocumentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getImportDocumentsMethodHelper(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Operations are created by service `FirestoreAdmin`, but are accessed via
+   * service `google.longrunning.Operations`.
+   * 
+ */ + public static final class FirestoreAdminBlockingStub + extends io.grpc.stub.AbstractStub { + private FirestoreAdminBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private FirestoreAdminBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FirestoreAdminBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FirestoreAdminBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a composite index. This returns a [google.longrunning.Operation][google.longrunning.Operation]
+     * which may be used to track the status of the creation. The metadata for
+     * the operation will be the type [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata].
+     * 
+ */ + public com.google.longrunning.Operation createIndex( + com.google.firestore.admin.v1.CreateIndexRequest request) { + return blockingUnaryCall( + getChannel(), getCreateIndexMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists composite indexes.
+     * 
+ */ + public com.google.firestore.admin.v1.ListIndexesResponse listIndexes( + com.google.firestore.admin.v1.ListIndexesRequest request) { + return blockingUnaryCall( + getChannel(), getListIndexesMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a composite index.
+     * 
+ */ + public com.google.firestore.admin.v1.Index getIndex( + com.google.firestore.admin.v1.GetIndexRequest request) { + return blockingUnaryCall(getChannel(), getGetIndexMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a composite index.
+     * 
+ */ + public com.google.protobuf.Empty deleteIndex( + com.google.firestore.admin.v1.DeleteIndexRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteIndexMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the metadata and configuration for a Field.
+     * 
+ */ + public com.google.firestore.admin.v1.Field getField( + com.google.firestore.admin.v1.GetFieldRequest request) { + return blockingUnaryCall(getChannel(), getGetFieldMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a field configuration. Currently, field updates apply only to
+     * single field index configuration. However, calls to
+     * [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField] should provide a field mask to avoid
+     * changing any configuration that the caller isn't aware of. The field mask
+     * should be specified as: `{ paths: "index_config" }`.
+     * This call returns a [google.longrunning.Operation][google.longrunning.Operation] which may be used to
+     * track the status of the field update. The metadata for
+     * the operation will be the type [FieldOperationMetadata][google.firestore.admin.v1.FieldOperationMetadata].
+     * To configure the default field settings for the database, use
+     * the special `Field` with resource name:
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`.
+     * 
+ */ + public com.google.longrunning.Operation updateField( + com.google.firestore.admin.v1.UpdateFieldRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateFieldMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the field configuration and metadata for this database.
+     * Currently, [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields
+     * that have been explicitly overridden. To issue this query, call
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to
+     * `indexConfig.usesAncestorConfig:false`.
+     * 
+ */ + public com.google.firestore.admin.v1.ListFieldsResponse listFields( + com.google.firestore.admin.v1.ListFieldsRequest request) { + return blockingUnaryCall( + getChannel(), getListFieldsMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Exports a copy of all or a subset of documents from Google Cloud Firestore
+     * to another storage system, such as Google Cloud Storage. Recent updates to
+     * documents may not be reflected in the export. The export occurs in the
+     * background and its progress can be monitored and managed via the
+     * Operation resource that is created. The output of an export may only be
+     * used once the associated operation is done. If an export operation is
+     * cancelled before completion it may leave partial data behind in Google
+     * Cloud Storage.
+     * 
+ */ + public com.google.longrunning.Operation exportDocuments( + com.google.firestore.admin.v1.ExportDocumentsRequest request) { + return blockingUnaryCall( + getChannel(), getExportDocumentsMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Imports documents into Google Cloud Firestore. Existing documents with the
+     * same name are overwritten. The import occurs in the background and its
+     * progress can be monitored and managed via the Operation resource that is
+     * created. If an ImportDocuments operation is cancelled, it is possible
+     * that a subset of the data has already been imported to Cloud Firestore.
+     * 
+ */ + public com.google.longrunning.Operation importDocuments( + com.google.firestore.admin.v1.ImportDocumentsRequest request) { + return blockingUnaryCall( + getChannel(), getImportDocumentsMethodHelper(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Operations are created by service `FirestoreAdmin`, but are accessed via
+   * service `google.longrunning.Operations`.
+   * 
+ */ + public static final class FirestoreAdminFutureStub + extends io.grpc.stub.AbstractStub { + private FirestoreAdminFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private FirestoreAdminFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FirestoreAdminFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FirestoreAdminFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a composite index. This returns a [google.longrunning.Operation][google.longrunning.Operation]
+     * which may be used to track the status of the creation. The metadata for
+     * the operation will be the type [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createIndex(com.google.firestore.admin.v1.CreateIndexRequest request) { + return futureUnaryCall( + getChannel().newCall(getCreateIndexMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists composite indexes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.firestore.admin.v1.ListIndexesResponse> + listIndexes(com.google.firestore.admin.v1.ListIndexesRequest request) { + return futureUnaryCall( + getChannel().newCall(getListIndexesMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a composite index.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getIndex(com.google.firestore.admin.v1.GetIndexRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetIndexMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a composite index.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteIndex(com.google.firestore.admin.v1.DeleteIndexRequest request) { + return futureUnaryCall( + getChannel().newCall(getDeleteIndexMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the metadata and configuration for a Field.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getField(com.google.firestore.admin.v1.GetFieldRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetFieldMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a field configuration. Currently, field updates apply only to
+     * single field index configuration. However, calls to
+     * [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField] should provide a field mask to avoid
+     * changing any configuration that the caller isn't aware of. The field mask
+     * should be specified as: `{ paths: "index_config" }`.
+     * This call returns a [google.longrunning.Operation][google.longrunning.Operation] which may be used to
+     * track the status of the field update. The metadata for
+     * the operation will be the type [FieldOperationMetadata][google.firestore.admin.v1.FieldOperationMetadata].
+     * To configure the default field settings for the database, use
+     * the special `Field` with resource name:
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateField(com.google.firestore.admin.v1.UpdateFieldRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateFieldMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists the field configuration and metadata for this database.
+     * Currently, [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields
+     * that have been explicitly overridden. To issue this query, call
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to
+     * `indexConfig.usesAncestorConfig:false`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.firestore.admin.v1.ListFieldsResponse> + listFields(com.google.firestore.admin.v1.ListFieldsRequest request) { + return futureUnaryCall( + getChannel().newCall(getListFieldsMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Exports a copy of all or a subset of documents from Google Cloud Firestore
+     * to another storage system, such as Google Cloud Storage. Recent updates to
+     * documents may not be reflected in the export. The export occurs in the
+     * background and its progress can be monitored and managed via the
+     * Operation resource that is created. The output of an export may only be
+     * used once the associated operation is done. If an export operation is
+     * cancelled before completion it may leave partial data behind in Google
+     * Cloud Storage.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + exportDocuments(com.google.firestore.admin.v1.ExportDocumentsRequest request) { + return futureUnaryCall( + getChannel().newCall(getExportDocumentsMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Imports documents into Google Cloud Firestore. Existing documents with the
+     * same name are overwritten. The import occurs in the background and its
+     * progress can be monitored and managed via the Operation resource that is
+     * created. If an ImportDocuments operation is cancelled, it is possible
+     * that a subset of the data has already been imported to Cloud Firestore.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + importDocuments(com.google.firestore.admin.v1.ImportDocumentsRequest request) { + return futureUnaryCall( + getChannel().newCall(getImportDocumentsMethodHelper(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_INDEX = 0; + private static final int METHODID_LIST_INDEXES = 1; + private static final int METHODID_GET_INDEX = 2; + private static final int METHODID_DELETE_INDEX = 3; + private static final int METHODID_GET_FIELD = 4; + private static final int METHODID_UPDATE_FIELD = 5; + private static final int METHODID_LIST_FIELDS = 6; + private static final int METHODID_EXPORT_DOCUMENTS = 7; + private static final int METHODID_IMPORT_DOCUMENTS = 8; + + 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 FirestoreAdminImplBase serviceImpl; + private final int methodId; + + MethodHandlers(FirestoreAdminImplBase 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_INDEX: + serviceImpl.createIndex( + (com.google.firestore.admin.v1.CreateIndexRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_INDEXES: + serviceImpl.listIndexes( + (com.google.firestore.admin.v1.ListIndexesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_INDEX: + serviceImpl.getIndex( + (com.google.firestore.admin.v1.GetIndexRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_INDEX: + serviceImpl.deleteIndex( + (com.google.firestore.admin.v1.DeleteIndexRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_FIELD: + serviceImpl.getField( + (com.google.firestore.admin.v1.GetFieldRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_FIELD: + serviceImpl.updateField( + (com.google.firestore.admin.v1.UpdateFieldRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FIELDS: + serviceImpl.listFields( + (com.google.firestore.admin.v1.ListFieldsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_EXPORT_DOCUMENTS: + serviceImpl.exportDocuments( + (com.google.firestore.admin.v1.ExportDocumentsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IMPORT_DOCUMENTS: + serviceImpl.importDocuments( + (com.google.firestore.admin.v1.ImportDocumentsRequest) 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 FirestoreAdminBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + FirestoreAdminBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("FirestoreAdmin"); + } + } + + private static final class FirestoreAdminFileDescriptorSupplier + extends FirestoreAdminBaseDescriptorSupplier { + FirestoreAdminFileDescriptorSupplier() {} + } + + private static final class FirestoreAdminMethodDescriptorSupplier + extends FirestoreAdminBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + FirestoreAdminMethodDescriptorSupplier(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 (FirestoreAdminGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new FirestoreAdminFileDescriptorSupplier()) + .addMethod(getCreateIndexMethodHelper()) + .addMethod(getListIndexesMethodHelper()) + .addMethod(getGetIndexMethodHelper()) + .addMethod(getDeleteIndexMethodHelper()) + .addMethod(getGetFieldMethodHelper()) + .addMethod(getUpdateFieldMethodHelper()) + .addMethod(getListFieldsMethodHelper()) + .addMethod(getExportDocumentsMethodHelper()) + .addMethod(getImportDocumentsMethodHelper()) + .build(); + } + } + } + return result; + } +} diff --git a/google-api-grpc/pom.xml b/google-api-grpc/pom.xml index 2ac2ac3f61fe..4d5fed40072c 100644 --- a/google-api-grpc/pom.xml +++ b/google-api-grpc/pom.xml @@ -284,6 +284,11 @@ grpc-google-cloud-error-reporting-v1beta1 0.49.1-SNAPSHOT
+ + com.google.api.grpc + proto-google-cloud-firestore-admin-v1 + 0.49.1-SNAPSHOT + com.google.api.grpc proto-google-cloud-firestore-v1 @@ -294,6 +299,11 @@ proto-google-cloud-firestore-v1beta1 0.49.1-SNAPSHOT + + com.google.api.grpc + grpc-google-cloud-firestore-admin-v1 + 0.49.1-SNAPSHOT + com.google.api.grpc grpc-google-cloud-firestore-v1 @@ -722,6 +732,7 @@ grpc-google-cloud-dialogflow-v2beta1 grpc-google-cloud-dlp-v2 grpc-google-cloud-error-reporting-v1beta1 + grpc-google-cloud-firestore-admin-v1 grpc-google-cloud-firestore-v1 grpc-google-cloud-firestore-v1beta1 grpc-google-cloud-iamcredentials-v1 @@ -780,6 +791,7 @@ proto-google-cloud-dialogflow-v2beta1 proto-google-cloud-dlp-v2 proto-google-cloud-error-reporting-v1beta1 + proto-google-cloud-firestore-admin-v1 proto-google-cloud-firestore-v1 proto-google-cloud-firestore-v1beta1 proto-google-cloud-iamcredentials-v1 diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/pom.xml b/google-api-grpc/proto-google-cloud-firestore-admin-v1/pom.xml new file mode 100644 index 000000000000..db348ae25bec --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/pom.xml @@ -0,0 +1,31 @@ + + 4.0.0 + proto-google-cloud-firestore-admin-v1 + 0.49.1-SNAPSHOT + proto-google-cloud-firestore-admin-v1 + PROTO library for proto-google-cloud-firestore-admin-v1 + + com.google.api.grpc + google-api-grpc + 0.49.1-SNAPSHOT + + + + com.google.protobuf + protobuf-java + compile + + + com.google.api + api-common + compile + + + com.google.api.grpc + proto-google-common-protos + compile + + + diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CreateIndexRequest.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CreateIndexRequest.java new file mode 100644 index 000000000000..6ec27cf4b34b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CreateIndexRequest.java @@ -0,0 +1,865 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/firestore_admin.proto + +package com.google.firestore.admin.v1; + +/** + * + * + *
+ * The request for [FirestoreAdmin.CreateIndex][google.firestore.admin.v1.FirestoreAdmin.CreateIndex].
+ * 
+ * + * Protobuf type {@code google.firestore.admin.v1.CreateIndexRequest} + */ +public final class CreateIndexRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.CreateIndexRequest) + CreateIndexRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateIndexRequest.newBuilder() to construct. + private CreateIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateIndexRequest() { + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateIndexRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.firestore.admin.v1.Index.Builder subBuilder = null; + if (index_ != null) { + subBuilder = index_.toBuilder(); + } + index_ = + input.readMessage( + com.google.firestore.admin.v1.Index.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(index_); + index_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_CreateIndexRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_CreateIndexRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.CreateIndexRequest.class, + com.google.firestore.admin.v1.CreateIndexRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * A parent name of the form
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * A parent name of the form
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INDEX_FIELD_NUMBER = 2; + private com.google.firestore.admin.v1.Index index_; + /** + * + * + *
+   * The composite index to create.
+   * 
+ * + * .google.firestore.admin.v1.Index index = 2; + */ + public boolean hasIndex() { + return index_ != null; + } + /** + * + * + *
+   * The composite index to create.
+   * 
+ * + * .google.firestore.admin.v1.Index index = 2; + */ + public com.google.firestore.admin.v1.Index getIndex() { + return index_ == null ? com.google.firestore.admin.v1.Index.getDefaultInstance() : index_; + } + /** + * + * + *
+   * The composite index to create.
+   * 
+ * + * .google.firestore.admin.v1.Index index = 2; + */ + public com.google.firestore.admin.v1.IndexOrBuilder getIndexOrBuilder() { + return getIndex(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (index_ != null) { + output.writeMessage(2, getIndex()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (index_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIndex()); + } + 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.firestore.admin.v1.CreateIndexRequest)) { + return super.equals(obj); + } + com.google.firestore.admin.v1.CreateIndexRequest other = + (com.google.firestore.admin.v1.CreateIndexRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && (hasIndex() == other.hasIndex()); + if (hasIndex()) { + result = result && getIndex().equals(other.getIndex()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasIndex()) { + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.firestore.admin.v1.CreateIndexRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.CreateIndexRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.CreateIndexRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.CreateIndexRequest 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.firestore.admin.v1.CreateIndexRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.CreateIndexRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.CreateIndexRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.CreateIndexRequest 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.firestore.admin.v1.CreateIndexRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.CreateIndexRequest 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.firestore.admin.v1.CreateIndexRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.CreateIndexRequest 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.firestore.admin.v1.CreateIndexRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request for [FirestoreAdmin.CreateIndex][google.firestore.admin.v1.FirestoreAdmin.CreateIndex].
+   * 
+ * + * Protobuf type {@code google.firestore.admin.v1.CreateIndexRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.firestore.admin.v1.CreateIndexRequest) + com.google.firestore.admin.v1.CreateIndexRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_CreateIndexRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_CreateIndexRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.CreateIndexRequest.class, + com.google.firestore.admin.v1.CreateIndexRequest.Builder.class); + } + + // Construct using com.google.firestore.admin.v1.CreateIndexRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (indexBuilder_ == null) { + index_ = null; + } else { + index_ = null; + indexBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_CreateIndexRequest_descriptor; + } + + @java.lang.Override + public com.google.firestore.admin.v1.CreateIndexRequest getDefaultInstanceForType() { + return com.google.firestore.admin.v1.CreateIndexRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.firestore.admin.v1.CreateIndexRequest build() { + com.google.firestore.admin.v1.CreateIndexRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.firestore.admin.v1.CreateIndexRequest buildPartial() { + com.google.firestore.admin.v1.CreateIndexRequest result = + new com.google.firestore.admin.v1.CreateIndexRequest(this); + result.parent_ = parent_; + if (indexBuilder_ == null) { + result.index_ = index_; + } else { + result.index_ = indexBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.firestore.admin.v1.CreateIndexRequest) { + return mergeFrom((com.google.firestore.admin.v1.CreateIndexRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.firestore.admin.v1.CreateIndexRequest other) { + if (other == com.google.firestore.admin.v1.CreateIndexRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasIndex()) { + mergeIndex(other.getIndex()); + } + 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.firestore.admin.v1.CreateIndexRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.firestore.admin.v1.CreateIndexRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * A parent name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A parent name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A parent name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A parent name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * A parent name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.firestore.admin.v1.Index index_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Index, + com.google.firestore.admin.v1.Index.Builder, + com.google.firestore.admin.v1.IndexOrBuilder> + indexBuilder_; + /** + * + * + *
+     * The composite index to create.
+     * 
+ * + * .google.firestore.admin.v1.Index index = 2; + */ + public boolean hasIndex() { + return indexBuilder_ != null || index_ != null; + } + /** + * + * + *
+     * The composite index to create.
+     * 
+ * + * .google.firestore.admin.v1.Index index = 2; + */ + public com.google.firestore.admin.v1.Index getIndex() { + if (indexBuilder_ == null) { + return index_ == null ? com.google.firestore.admin.v1.Index.getDefaultInstance() : index_; + } else { + return indexBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The composite index to create.
+     * 
+ * + * .google.firestore.admin.v1.Index index = 2; + */ + public Builder setIndex(com.google.firestore.admin.v1.Index value) { + if (indexBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + index_ = value; + onChanged(); + } else { + indexBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The composite index to create.
+     * 
+ * + * .google.firestore.admin.v1.Index index = 2; + */ + public Builder setIndex(com.google.firestore.admin.v1.Index.Builder builderForValue) { + if (indexBuilder_ == null) { + index_ = builderForValue.build(); + onChanged(); + } else { + indexBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The composite index to create.
+     * 
+ * + * .google.firestore.admin.v1.Index index = 2; + */ + public Builder mergeIndex(com.google.firestore.admin.v1.Index value) { + if (indexBuilder_ == null) { + if (index_ != null) { + index_ = + com.google.firestore.admin.v1.Index.newBuilder(index_) + .mergeFrom(value) + .buildPartial(); + } else { + index_ = value; + } + onChanged(); + } else { + indexBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The composite index to create.
+     * 
+ * + * .google.firestore.admin.v1.Index index = 2; + */ + public Builder clearIndex() { + if (indexBuilder_ == null) { + index_ = null; + onChanged(); + } else { + index_ = null; + indexBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The composite index to create.
+     * 
+ * + * .google.firestore.admin.v1.Index index = 2; + */ + public com.google.firestore.admin.v1.Index.Builder getIndexBuilder() { + + onChanged(); + return getIndexFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The composite index to create.
+     * 
+ * + * .google.firestore.admin.v1.Index index = 2; + */ + public com.google.firestore.admin.v1.IndexOrBuilder getIndexOrBuilder() { + if (indexBuilder_ != null) { + return indexBuilder_.getMessageOrBuilder(); + } else { + return index_ == null ? com.google.firestore.admin.v1.Index.getDefaultInstance() : index_; + } + } + /** + * + * + *
+     * The composite index to create.
+     * 
+ * + * .google.firestore.admin.v1.Index index = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Index, + com.google.firestore.admin.v1.Index.Builder, + com.google.firestore.admin.v1.IndexOrBuilder> + getIndexFieldBuilder() { + if (indexBuilder_ == null) { + indexBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Index, + com.google.firestore.admin.v1.Index.Builder, + com.google.firestore.admin.v1.IndexOrBuilder>( + getIndex(), getParentForChildren(), isClean()); + index_ = null; + } + return indexBuilder_; + } + + @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.firestore.admin.v1.CreateIndexRequest) + } + + // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.CreateIndexRequest) + private static final com.google.firestore.admin.v1.CreateIndexRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.firestore.admin.v1.CreateIndexRequest(); + } + + public static com.google.firestore.admin.v1.CreateIndexRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateIndexRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateIndexRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.firestore.admin.v1.CreateIndexRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CreateIndexRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CreateIndexRequestOrBuilder.java new file mode 100644 index 000000000000..55ea0848e1e2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CreateIndexRequestOrBuilder.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/firestore_admin.proto + +package com.google.firestore.admin.v1; + +public interface CreateIndexRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.firestore.admin.v1.CreateIndexRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A parent name of the form
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * A parent name of the form
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The composite index to create.
+   * 
+ * + * .google.firestore.admin.v1.Index index = 2; + */ + boolean hasIndex(); + /** + * + * + *
+   * The composite index to create.
+   * 
+ * + * .google.firestore.admin.v1.Index index = 2; + */ + com.google.firestore.admin.v1.Index getIndex(); + /** + * + * + *
+   * The composite index to create.
+   * 
+ * + * .google.firestore.admin.v1.Index index = 2; + */ + com.google.firestore.admin.v1.IndexOrBuilder getIndexOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DatabaseName.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DatabaseName.java new file mode 100644 index 000000000000..ba472b0b6ce4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DatabaseName.java @@ -0,0 +1,180 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.firestore.admin.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class DatabaseName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/databases/{database}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String database; + + public String getProject() { + return project; + } + + public String getDatabase() { + return database; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private DatabaseName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + database = Preconditions.checkNotNull(builder.getDatabase()); + } + + public static DatabaseName of(String project, String database) { + return newBuilder().setProject(project).setDatabase(database).build(); + } + + public static String format(String project, String database) { + return newBuilder().setProject(project).setDatabase(database).build().toString(); + } + + public static DatabaseName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "DatabaseName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("database")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (DatabaseName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("database", database); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "database", database); + } + + /** Builder for DatabaseName. */ + public static class Builder { + + private String project; + private String database; + + public String getProject() { + return project; + } + + public String getDatabase() { + return database; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setDatabase(String database) { + this.database = database; + return this; + } + + private Builder() {} + + private Builder(DatabaseName databaseName) { + project = databaseName.project; + database = databaseName.database; + } + + public DatabaseName build() { + return new DatabaseName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof DatabaseName) { + DatabaseName that = (DatabaseName) o; + return (this.project.equals(that.project)) && (this.database.equals(that.database)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= database.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DeleteIndexRequest.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DeleteIndexRequest.java new file mode 100644 index 000000000000..1d887567c0b7 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DeleteIndexRequest.java @@ -0,0 +1,605 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/firestore_admin.proto + +package com.google.firestore.admin.v1; + +/** + * + * + *
+ * The request for [FirestoreAdmin.DeleteIndex][google.firestore.admin.v1.FirestoreAdmin.DeleteIndex].
+ * 
+ * + * Protobuf type {@code google.firestore.admin.v1.DeleteIndexRequest} + */ +public final class DeleteIndexRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.DeleteIndexRequest) + DeleteIndexRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteIndexRequest.newBuilder() to construct. + private DeleteIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteIndexRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteIndexRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_DeleteIndexRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_DeleteIndexRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.DeleteIndexRequest.class, + com.google.firestore.admin.v1.DeleteIndexRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * A name of the form
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * A name of the form
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.firestore.admin.v1.DeleteIndexRequest)) { + return super.equals(obj); + } + com.google.firestore.admin.v1.DeleteIndexRequest other = + (com.google.firestore.admin.v1.DeleteIndexRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.firestore.admin.v1.DeleteIndexRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.DeleteIndexRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.DeleteIndexRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.DeleteIndexRequest 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.firestore.admin.v1.DeleteIndexRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.DeleteIndexRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.DeleteIndexRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.DeleteIndexRequest 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.firestore.admin.v1.DeleteIndexRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.DeleteIndexRequest 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.firestore.admin.v1.DeleteIndexRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.DeleteIndexRequest 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.firestore.admin.v1.DeleteIndexRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request for [FirestoreAdmin.DeleteIndex][google.firestore.admin.v1.FirestoreAdmin.DeleteIndex].
+   * 
+ * + * Protobuf type {@code google.firestore.admin.v1.DeleteIndexRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.firestore.admin.v1.DeleteIndexRequest) + com.google.firestore.admin.v1.DeleteIndexRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_DeleteIndexRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_DeleteIndexRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.DeleteIndexRequest.class, + com.google.firestore.admin.v1.DeleteIndexRequest.Builder.class); + } + + // Construct using com.google.firestore.admin.v1.DeleteIndexRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_DeleteIndexRequest_descriptor; + } + + @java.lang.Override + public com.google.firestore.admin.v1.DeleteIndexRequest getDefaultInstanceForType() { + return com.google.firestore.admin.v1.DeleteIndexRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.firestore.admin.v1.DeleteIndexRequest build() { + com.google.firestore.admin.v1.DeleteIndexRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.firestore.admin.v1.DeleteIndexRequest buildPartial() { + com.google.firestore.admin.v1.DeleteIndexRequest result = + new com.google.firestore.admin.v1.DeleteIndexRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.firestore.admin.v1.DeleteIndexRequest) { + return mergeFrom((com.google.firestore.admin.v1.DeleteIndexRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.firestore.admin.v1.DeleteIndexRequest other) { + if (other == com.google.firestore.admin.v1.DeleteIndexRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.firestore.admin.v1.DeleteIndexRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.firestore.admin.v1.DeleteIndexRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * A name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * A name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.DeleteIndexRequest) + } + + // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.DeleteIndexRequest) + private static final com.google.firestore.admin.v1.DeleteIndexRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.firestore.admin.v1.DeleteIndexRequest(); + } + + public static com.google.firestore.admin.v1.DeleteIndexRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteIndexRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteIndexRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.firestore.admin.v1.DeleteIndexRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DeleteIndexRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DeleteIndexRequestOrBuilder.java new file mode 100644 index 000000000000..348bd12c3dce --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DeleteIndexRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/firestore_admin.proto + +package com.google.firestore.admin.v1; + +public interface DeleteIndexRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.firestore.admin.v1.DeleteIndexRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A name of the form
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * A name of the form
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsMetadata.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsMetadata.java new file mode 100644 index 000000000000..7ddc080e3095 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsMetadata.java @@ -0,0 +1,2040 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/operation.proto + +package com.google.firestore.admin.v1; + +/** + * + * + *
+ * Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from
+ * [FirestoreAdmin.ExportDocuments][google.firestore.admin.v1.FirestoreAdmin.ExportDocuments].
+ * 
+ * + * Protobuf type {@code google.firestore.admin.v1.ExportDocumentsMetadata} + */ +public final class ExportDocumentsMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.ExportDocumentsMetadata) + ExportDocumentsMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExportDocumentsMetadata.newBuilder() to construct. + private ExportDocumentsMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExportDocumentsMetadata() { + operationState_ = 0; + collectionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + outputUriPrefix_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExportDocumentsMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; + } + case 24: + { + int rawValue = input.readEnum(); + + operationState_ = rawValue; + break; + } + case 34: + { + com.google.firestore.admin.v1.Progress.Builder subBuilder = null; + if (progressDocuments_ != null) { + subBuilder = progressDocuments_.toBuilder(); + } + progressDocuments_ = + input.readMessage( + com.google.firestore.admin.v1.Progress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(progressDocuments_); + progressDocuments_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + com.google.firestore.admin.v1.Progress.Builder subBuilder = null; + if (progressBytes_ != null) { + subBuilder = progressBytes_.toBuilder(); + } + progressBytes_ = + input.readMessage( + com.google.firestore.admin.v1.Progress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(progressBytes_); + progressBytes_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + collectionIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000020; + } + collectionIds_.add(s); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + outputUriPrefix_ = 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)) { + collectionIds_ = collectionIds_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_ExportDocumentsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_ExportDocumentsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.ExportDocumentsMetadata.class, + com.google.firestore.admin.v1.ExportDocumentsMetadata.Builder.class); + } + + private int bitField0_; + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * The time this operation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public boolean hasStartTime() { + return startTime_ != null; + } + /** + * + * + *
+   * The time this operation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * The time this operation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * The time this operation completed. Will be unset if operation still in
+   * progress.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public boolean hasEndTime() { + return endTime_ != null; + } + /** + * + * + *
+   * The time this operation completed. Will be unset if operation still in
+   * progress.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+   * The time this operation completed. Will be unset if operation still in
+   * progress.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + public static final int OPERATION_STATE_FIELD_NUMBER = 3; + private int operationState_; + /** + * + * + *
+   * The state of the export operation.
+   * 
+ * + * .google.firestore.admin.v1.OperationState operation_state = 3; + */ + public int getOperationStateValue() { + return operationState_; + } + /** + * + * + *
+   * The state of the export operation.
+   * 
+ * + * .google.firestore.admin.v1.OperationState operation_state = 3; + */ + public com.google.firestore.admin.v1.OperationState getOperationState() { + @SuppressWarnings("deprecation") + com.google.firestore.admin.v1.OperationState result = + com.google.firestore.admin.v1.OperationState.valueOf(operationState_); + return result == null ? com.google.firestore.admin.v1.OperationState.UNRECOGNIZED : result; + } + + public static final int PROGRESS_DOCUMENTS_FIELD_NUMBER = 4; + private com.google.firestore.admin.v1.Progress progressDocuments_; + /** + * + * + *
+   * The progress, in documents, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 4; + */ + public boolean hasProgressDocuments() { + return progressDocuments_ != null; + } + /** + * + * + *
+   * The progress, in documents, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 4; + */ + public com.google.firestore.admin.v1.Progress getProgressDocuments() { + return progressDocuments_ == null + ? com.google.firestore.admin.v1.Progress.getDefaultInstance() + : progressDocuments_; + } + /** + * + * + *
+   * The progress, in documents, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 4; + */ + public com.google.firestore.admin.v1.ProgressOrBuilder getProgressDocumentsOrBuilder() { + return getProgressDocuments(); + } + + public static final int PROGRESS_BYTES_FIELD_NUMBER = 5; + private com.google.firestore.admin.v1.Progress progressBytes_; + /** + * + * + *
+   * The progress, in bytes, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 5; + */ + public boolean hasProgressBytes() { + return progressBytes_ != null; + } + /** + * + * + *
+   * The progress, in bytes, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 5; + */ + public com.google.firestore.admin.v1.Progress getProgressBytes() { + return progressBytes_ == null + ? com.google.firestore.admin.v1.Progress.getDefaultInstance() + : progressBytes_; + } + /** + * + * + *
+   * The progress, in bytes, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 5; + */ + public com.google.firestore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder() { + return getProgressBytes(); + } + + public static final int COLLECTION_IDS_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList collectionIds_; + /** + * + * + *
+   * Which collection ids are being exported.
+   * 
+ * + * repeated string collection_ids = 6; + */ + public com.google.protobuf.ProtocolStringList getCollectionIdsList() { + return collectionIds_; + } + /** + * + * + *
+   * Which collection ids are being exported.
+   * 
+ * + * repeated string collection_ids = 6; + */ + public int getCollectionIdsCount() { + return collectionIds_.size(); + } + /** + * + * + *
+   * Which collection ids are being exported.
+   * 
+ * + * repeated string collection_ids = 6; + */ + public java.lang.String getCollectionIds(int index) { + return collectionIds_.get(index); + } + /** + * + * + *
+   * Which collection ids are being exported.
+   * 
+ * + * repeated string collection_ids = 6; + */ + public com.google.protobuf.ByteString getCollectionIdsBytes(int index) { + return collectionIds_.getByteString(index); + } + + public static final int OUTPUT_URI_PREFIX_FIELD_NUMBER = 7; + private volatile java.lang.Object outputUriPrefix_; + /** + * + * + *
+   * Where the entities are being exported to.
+   * 
+ * + * string output_uri_prefix = 7; + */ + public java.lang.String getOutputUriPrefix() { + java.lang.Object ref = outputUriPrefix_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputUriPrefix_ = s; + return s; + } + } + /** + * + * + *
+   * Where the entities are being exported to.
+   * 
+ * + * string output_uri_prefix = 7; + */ + public com.google.protobuf.ByteString getOutputUriPrefixBytes() { + java.lang.Object ref = outputUriPrefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputUriPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (startTime_ != null) { + output.writeMessage(1, getStartTime()); + } + if (endTime_ != null) { + output.writeMessage(2, getEndTime()); + } + if (operationState_ + != com.google.firestore.admin.v1.OperationState.OPERATION_STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, operationState_); + } + if (progressDocuments_ != null) { + output.writeMessage(4, getProgressDocuments()); + } + if (progressBytes_ != null) { + output.writeMessage(5, getProgressBytes()); + } + for (int i = 0; i < collectionIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, collectionIds_.getRaw(i)); + } + if (!getOutputUriPrefixBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, outputUriPrefix_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (operationState_ + != com.google.firestore.admin.v1.OperationState.OPERATION_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, operationState_); + } + if (progressDocuments_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getProgressDocuments()); + } + if (progressBytes_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getProgressBytes()); + } + { + int dataSize = 0; + for (int i = 0; i < collectionIds_.size(); i++) { + dataSize += computeStringSizeNoTag(collectionIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getCollectionIdsList().size(); + } + if (!getOutputUriPrefixBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, outputUriPrefix_); + } + 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.firestore.admin.v1.ExportDocumentsMetadata)) { + return super.equals(obj); + } + com.google.firestore.admin.v1.ExportDocumentsMetadata other = + (com.google.firestore.admin.v1.ExportDocumentsMetadata) obj; + + boolean result = true; + result = result && (hasStartTime() == other.hasStartTime()); + if (hasStartTime()) { + result = result && getStartTime().equals(other.getStartTime()); + } + result = result && (hasEndTime() == other.hasEndTime()); + if (hasEndTime()) { + result = result && getEndTime().equals(other.getEndTime()); + } + result = result && operationState_ == other.operationState_; + result = result && (hasProgressDocuments() == other.hasProgressDocuments()); + if (hasProgressDocuments()) { + result = result && getProgressDocuments().equals(other.getProgressDocuments()); + } + result = result && (hasProgressBytes() == other.hasProgressBytes()); + if (hasProgressBytes()) { + result = result && getProgressBytes().equals(other.getProgressBytes()); + } + result = result && getCollectionIdsList().equals(other.getCollectionIdsList()); + result = result && getOutputUriPrefix().equals(other.getOutputUriPrefix()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + OPERATION_STATE_FIELD_NUMBER; + hash = (53 * hash) + operationState_; + if (hasProgressDocuments()) { + hash = (37 * hash) + PROGRESS_DOCUMENTS_FIELD_NUMBER; + hash = (53 * hash) + getProgressDocuments().hashCode(); + } + if (hasProgressBytes()) { + hash = (37 * hash) + PROGRESS_BYTES_FIELD_NUMBER; + hash = (53 * hash) + getProgressBytes().hashCode(); + } + if (getCollectionIdsCount() > 0) { + hash = (37 * hash) + COLLECTION_IDS_FIELD_NUMBER; + hash = (53 * hash) + getCollectionIdsList().hashCode(); + } + hash = (37 * hash) + OUTPUT_URI_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getOutputUriPrefix().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.firestore.admin.v1.ExportDocumentsMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.ExportDocumentsMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.ExportDocumentsMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.ExportDocumentsMetadata 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.firestore.admin.v1.ExportDocumentsMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.ExportDocumentsMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.ExportDocumentsMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.ExportDocumentsMetadata 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.firestore.admin.v1.ExportDocumentsMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.ExportDocumentsMetadata 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.firestore.admin.v1.ExportDocumentsMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.ExportDocumentsMetadata 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.firestore.admin.v1.ExportDocumentsMetadata 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; + } + /** + * + * + *
+   * Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from
+   * [FirestoreAdmin.ExportDocuments][google.firestore.admin.v1.FirestoreAdmin.ExportDocuments].
+   * 
+ * + * Protobuf type {@code google.firestore.admin.v1.ExportDocumentsMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.firestore.admin.v1.ExportDocumentsMetadata) + com.google.firestore.admin.v1.ExportDocumentsMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_ExportDocumentsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_ExportDocumentsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.ExportDocumentsMetadata.class, + com.google.firestore.admin.v1.ExportDocumentsMetadata.Builder.class); + } + + // Construct using com.google.firestore.admin.v1.ExportDocumentsMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + operationState_ = 0; + + if (progressDocumentsBuilder_ == null) { + progressDocuments_ = null; + } else { + progressDocuments_ = null; + progressDocumentsBuilder_ = null; + } + if (progressBytesBuilder_ == null) { + progressBytes_ = null; + } else { + progressBytes_ = null; + progressBytesBuilder_ = null; + } + collectionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + outputUriPrefix_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_ExportDocumentsMetadata_descriptor; + } + + @java.lang.Override + public com.google.firestore.admin.v1.ExportDocumentsMetadata getDefaultInstanceForType() { + return com.google.firestore.admin.v1.ExportDocumentsMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.firestore.admin.v1.ExportDocumentsMetadata build() { + com.google.firestore.admin.v1.ExportDocumentsMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.firestore.admin.v1.ExportDocumentsMetadata buildPartial() { + com.google.firestore.admin.v1.ExportDocumentsMetadata result = + new com.google.firestore.admin.v1.ExportDocumentsMetadata(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } + result.operationState_ = operationState_; + if (progressDocumentsBuilder_ == null) { + result.progressDocuments_ = progressDocuments_; + } else { + result.progressDocuments_ = progressDocumentsBuilder_.build(); + } + if (progressBytesBuilder_ == null) { + result.progressBytes_ = progressBytes_; + } else { + result.progressBytes_ = progressBytesBuilder_.build(); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + collectionIds_ = collectionIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.collectionIds_ = collectionIds_; + result.outputUriPrefix_ = outputUriPrefix_; + 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.firestore.admin.v1.ExportDocumentsMetadata) { + return mergeFrom((com.google.firestore.admin.v1.ExportDocumentsMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.firestore.admin.v1.ExportDocumentsMetadata other) { + if (other == com.google.firestore.admin.v1.ExportDocumentsMetadata.getDefaultInstance()) + return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (other.operationState_ != 0) { + setOperationStateValue(other.getOperationStateValue()); + } + if (other.hasProgressDocuments()) { + mergeProgressDocuments(other.getProgressDocuments()); + } + if (other.hasProgressBytes()) { + mergeProgressBytes(other.getProgressBytes()); + } + if (!other.collectionIds_.isEmpty()) { + if (collectionIds_.isEmpty()) { + collectionIds_ = other.collectionIds_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureCollectionIdsIsMutable(); + collectionIds_.addAll(other.collectionIds_); + } + onChanged(); + } + if (!other.getOutputUriPrefix().isEmpty()) { + outputUriPrefix_ = other.outputUriPrefix_; + 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.firestore.admin.v1.ExportDocumentsMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.firestore.admin.v1.ExportDocumentsMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp startTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private int operationState_ = 0; + /** + * + * + *
+     * The state of the export operation.
+     * 
+ * + * .google.firestore.admin.v1.OperationState operation_state = 3; + */ + public int getOperationStateValue() { + return operationState_; + } + /** + * + * + *
+     * The state of the export operation.
+     * 
+ * + * .google.firestore.admin.v1.OperationState operation_state = 3; + */ + public Builder setOperationStateValue(int value) { + operationState_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The state of the export operation.
+     * 
+ * + * .google.firestore.admin.v1.OperationState operation_state = 3; + */ + public com.google.firestore.admin.v1.OperationState getOperationState() { + @SuppressWarnings("deprecation") + com.google.firestore.admin.v1.OperationState result = + com.google.firestore.admin.v1.OperationState.valueOf(operationState_); + return result == null ? com.google.firestore.admin.v1.OperationState.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The state of the export operation.
+     * 
+ * + * .google.firestore.admin.v1.OperationState operation_state = 3; + */ + public Builder setOperationState(com.google.firestore.admin.v1.OperationState value) { + if (value == null) { + throw new NullPointerException(); + } + + operationState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The state of the export operation.
+     * 
+ * + * .google.firestore.admin.v1.OperationState operation_state = 3; + */ + public Builder clearOperationState() { + + operationState_ = 0; + onChanged(); + return this; + } + + private com.google.firestore.admin.v1.Progress progressDocuments_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Progress, + com.google.firestore.admin.v1.Progress.Builder, + com.google.firestore.admin.v1.ProgressOrBuilder> + progressDocumentsBuilder_; + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 4; + */ + public boolean hasProgressDocuments() { + return progressDocumentsBuilder_ != null || progressDocuments_ != null; + } + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 4; + */ + public com.google.firestore.admin.v1.Progress getProgressDocuments() { + if (progressDocumentsBuilder_ == null) { + return progressDocuments_ == null + ? com.google.firestore.admin.v1.Progress.getDefaultInstance() + : progressDocuments_; + } else { + return progressDocumentsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 4; + */ + public Builder setProgressDocuments(com.google.firestore.admin.v1.Progress value) { + if (progressDocumentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + progressDocuments_ = value; + onChanged(); + } else { + progressDocumentsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 4; + */ + public Builder setProgressDocuments( + com.google.firestore.admin.v1.Progress.Builder builderForValue) { + if (progressDocumentsBuilder_ == null) { + progressDocuments_ = builderForValue.build(); + onChanged(); + } else { + progressDocumentsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 4; + */ + public Builder mergeProgressDocuments(com.google.firestore.admin.v1.Progress value) { + if (progressDocumentsBuilder_ == null) { + if (progressDocuments_ != null) { + progressDocuments_ = + com.google.firestore.admin.v1.Progress.newBuilder(progressDocuments_) + .mergeFrom(value) + .buildPartial(); + } else { + progressDocuments_ = value; + } + onChanged(); + } else { + progressDocumentsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 4; + */ + public Builder clearProgressDocuments() { + if (progressDocumentsBuilder_ == null) { + progressDocuments_ = null; + onChanged(); + } else { + progressDocuments_ = null; + progressDocumentsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 4; + */ + public com.google.firestore.admin.v1.Progress.Builder getProgressDocumentsBuilder() { + + onChanged(); + return getProgressDocumentsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 4; + */ + public com.google.firestore.admin.v1.ProgressOrBuilder getProgressDocumentsOrBuilder() { + if (progressDocumentsBuilder_ != null) { + return progressDocumentsBuilder_.getMessageOrBuilder(); + } else { + return progressDocuments_ == null + ? com.google.firestore.admin.v1.Progress.getDefaultInstance() + : progressDocuments_; + } + } + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Progress, + com.google.firestore.admin.v1.Progress.Builder, + com.google.firestore.admin.v1.ProgressOrBuilder> + getProgressDocumentsFieldBuilder() { + if (progressDocumentsBuilder_ == null) { + progressDocumentsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Progress, + com.google.firestore.admin.v1.Progress.Builder, + com.google.firestore.admin.v1.ProgressOrBuilder>( + getProgressDocuments(), getParentForChildren(), isClean()); + progressDocuments_ = null; + } + return progressDocumentsBuilder_; + } + + private com.google.firestore.admin.v1.Progress progressBytes_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Progress, + com.google.firestore.admin.v1.Progress.Builder, + com.google.firestore.admin.v1.ProgressOrBuilder> + progressBytesBuilder_; + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 5; + */ + public boolean hasProgressBytes() { + return progressBytesBuilder_ != null || progressBytes_ != null; + } + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 5; + */ + public com.google.firestore.admin.v1.Progress getProgressBytes() { + if (progressBytesBuilder_ == null) { + return progressBytes_ == null + ? com.google.firestore.admin.v1.Progress.getDefaultInstance() + : progressBytes_; + } else { + return progressBytesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 5; + */ + public Builder setProgressBytes(com.google.firestore.admin.v1.Progress value) { + if (progressBytesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + progressBytes_ = value; + onChanged(); + } else { + progressBytesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 5; + */ + public Builder setProgressBytes( + com.google.firestore.admin.v1.Progress.Builder builderForValue) { + if (progressBytesBuilder_ == null) { + progressBytes_ = builderForValue.build(); + onChanged(); + } else { + progressBytesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 5; + */ + public Builder mergeProgressBytes(com.google.firestore.admin.v1.Progress value) { + if (progressBytesBuilder_ == null) { + if (progressBytes_ != null) { + progressBytes_ = + com.google.firestore.admin.v1.Progress.newBuilder(progressBytes_) + .mergeFrom(value) + .buildPartial(); + } else { + progressBytes_ = value; + } + onChanged(); + } else { + progressBytesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 5; + */ + public Builder clearProgressBytes() { + if (progressBytesBuilder_ == null) { + progressBytes_ = null; + onChanged(); + } else { + progressBytes_ = null; + progressBytesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 5; + */ + public com.google.firestore.admin.v1.Progress.Builder getProgressBytesBuilder() { + + onChanged(); + return getProgressBytesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 5; + */ + public com.google.firestore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder() { + if (progressBytesBuilder_ != null) { + return progressBytesBuilder_.getMessageOrBuilder(); + } else { + return progressBytes_ == null + ? com.google.firestore.admin.v1.Progress.getDefaultInstance() + : progressBytes_; + } + } + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Progress, + com.google.firestore.admin.v1.Progress.Builder, + com.google.firestore.admin.v1.ProgressOrBuilder> + getProgressBytesFieldBuilder() { + if (progressBytesBuilder_ == null) { + progressBytesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Progress, + com.google.firestore.admin.v1.Progress.Builder, + com.google.firestore.admin.v1.ProgressOrBuilder>( + getProgressBytes(), getParentForChildren(), isClean()); + progressBytes_ = null; + } + return progressBytesBuilder_; + } + + private com.google.protobuf.LazyStringList collectionIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureCollectionIdsIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + collectionIds_ = new com.google.protobuf.LazyStringArrayList(collectionIds_); + bitField0_ |= 0x00000020; + } + } + /** + * + * + *
+     * Which collection ids are being exported.
+     * 
+ * + * repeated string collection_ids = 6; + */ + public com.google.protobuf.ProtocolStringList getCollectionIdsList() { + return collectionIds_.getUnmodifiableView(); + } + /** + * + * + *
+     * Which collection ids are being exported.
+     * 
+ * + * repeated string collection_ids = 6; + */ + public int getCollectionIdsCount() { + return collectionIds_.size(); + } + /** + * + * + *
+     * Which collection ids are being exported.
+     * 
+ * + * repeated string collection_ids = 6; + */ + public java.lang.String getCollectionIds(int index) { + return collectionIds_.get(index); + } + /** + * + * + *
+     * Which collection ids are being exported.
+     * 
+ * + * repeated string collection_ids = 6; + */ + public com.google.protobuf.ByteString getCollectionIdsBytes(int index) { + return collectionIds_.getByteString(index); + } + /** + * + * + *
+     * Which collection ids are being exported.
+     * 
+ * + * repeated string collection_ids = 6; + */ + public Builder setCollectionIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCollectionIdsIsMutable(); + collectionIds_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Which collection ids are being exported.
+     * 
+ * + * repeated string collection_ids = 6; + */ + public Builder addCollectionIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCollectionIdsIsMutable(); + collectionIds_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Which collection ids are being exported.
+     * 
+ * + * repeated string collection_ids = 6; + */ + public Builder addAllCollectionIds(java.lang.Iterable values) { + ensureCollectionIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, collectionIds_); + onChanged(); + return this; + } + /** + * + * + *
+     * Which collection ids are being exported.
+     * 
+ * + * repeated string collection_ids = 6; + */ + public Builder clearCollectionIds() { + collectionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Which collection ids are being exported.
+     * 
+ * + * repeated string collection_ids = 6; + */ + public Builder addCollectionIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCollectionIdsIsMutable(); + collectionIds_.add(value); + onChanged(); + return this; + } + + private java.lang.Object outputUriPrefix_ = ""; + /** + * + * + *
+     * Where the entities are being exported to.
+     * 
+ * + * string output_uri_prefix = 7; + */ + public java.lang.String getOutputUriPrefix() { + java.lang.Object ref = outputUriPrefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputUriPrefix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Where the entities are being exported to.
+     * 
+ * + * string output_uri_prefix = 7; + */ + public com.google.protobuf.ByteString getOutputUriPrefixBytes() { + java.lang.Object ref = outputUriPrefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputUriPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Where the entities are being exported to.
+     * 
+ * + * string output_uri_prefix = 7; + */ + public Builder setOutputUriPrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + outputUriPrefix_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Where the entities are being exported to.
+     * 
+ * + * string output_uri_prefix = 7; + */ + public Builder clearOutputUriPrefix() { + + outputUriPrefix_ = getDefaultInstance().getOutputUriPrefix(); + onChanged(); + return this; + } + /** + * + * + *
+     * Where the entities are being exported to.
+     * 
+ * + * string output_uri_prefix = 7; + */ + public Builder setOutputUriPrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + outputUriPrefix_ = 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.firestore.admin.v1.ExportDocumentsMetadata) + } + + // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.ExportDocumentsMetadata) + private static final com.google.firestore.admin.v1.ExportDocumentsMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.firestore.admin.v1.ExportDocumentsMetadata(); + } + + public static com.google.firestore.admin.v1.ExportDocumentsMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportDocumentsMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportDocumentsMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.firestore.admin.v1.ExportDocumentsMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsMetadataOrBuilder.java new file mode 100644 index 000000000000..f97a258621f3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsMetadataOrBuilder.java @@ -0,0 +1,220 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/operation.proto + +package com.google.firestore.admin.v1; + +public interface ExportDocumentsMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.firestore.admin.v1.ExportDocumentsMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The time this operation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + boolean hasStartTime(); + /** + * + * + *
+   * The time this operation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * The time this operation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * The time this operation completed. Will be unset if operation still in
+   * progress.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + boolean hasEndTime(); + /** + * + * + *
+   * The time this operation completed. Will be unset if operation still in
+   * progress.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * The time this operation completed. Will be unset if operation still in
+   * progress.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
+   * The state of the export operation.
+   * 
+ * + * .google.firestore.admin.v1.OperationState operation_state = 3; + */ + int getOperationStateValue(); + /** + * + * + *
+   * The state of the export operation.
+   * 
+ * + * .google.firestore.admin.v1.OperationState operation_state = 3; + */ + com.google.firestore.admin.v1.OperationState getOperationState(); + + /** + * + * + *
+   * The progress, in documents, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 4; + */ + boolean hasProgressDocuments(); + /** + * + * + *
+   * The progress, in documents, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 4; + */ + com.google.firestore.admin.v1.Progress getProgressDocuments(); + /** + * + * + *
+   * The progress, in documents, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 4; + */ + com.google.firestore.admin.v1.ProgressOrBuilder getProgressDocumentsOrBuilder(); + + /** + * + * + *
+   * The progress, in bytes, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 5; + */ + boolean hasProgressBytes(); + /** + * + * + *
+   * The progress, in bytes, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 5; + */ + com.google.firestore.admin.v1.Progress getProgressBytes(); + /** + * + * + *
+   * The progress, in bytes, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 5; + */ + com.google.firestore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder(); + + /** + * + * + *
+   * Which collection ids are being exported.
+   * 
+ * + * repeated string collection_ids = 6; + */ + java.util.List getCollectionIdsList(); + /** + * + * + *
+   * Which collection ids are being exported.
+   * 
+ * + * repeated string collection_ids = 6; + */ + int getCollectionIdsCount(); + /** + * + * + *
+   * Which collection ids are being exported.
+   * 
+ * + * repeated string collection_ids = 6; + */ + java.lang.String getCollectionIds(int index); + /** + * + * + *
+   * Which collection ids are being exported.
+   * 
+ * + * repeated string collection_ids = 6; + */ + com.google.protobuf.ByteString getCollectionIdsBytes(int index); + + /** + * + * + *
+   * Where the entities are being exported to.
+   * 
+ * + * string output_uri_prefix = 7; + */ + java.lang.String getOutputUriPrefix(); + /** + * + * + *
+   * Where the entities are being exported to.
+   * 
+ * + * string output_uri_prefix = 7; + */ + com.google.protobuf.ByteString getOutputUriPrefixBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsRequest.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsRequest.java new file mode 100644 index 000000000000..a0e6235d075d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsRequest.java @@ -0,0 +1,1063 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/firestore_admin.proto + +package com.google.firestore.admin.v1; + +/** + * + * + *
+ * The request for [FirestoreAdmin.ExportDocuments][google.firestore.admin.v1.FirestoreAdmin.ExportDocuments].
+ * 
+ * + * Protobuf type {@code google.firestore.admin.v1.ExportDocumentsRequest} + */ +public final class ExportDocumentsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.ExportDocumentsRequest) + ExportDocumentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExportDocumentsRequest.newBuilder() to construct. + private ExportDocumentsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExportDocumentsRequest() { + name_ = ""; + collectionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + outputUriPrefix_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExportDocumentsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + collectionIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + collectionIds_.add(s); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + outputUriPrefix_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + collectionIds_ = collectionIds_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ExportDocumentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ExportDocumentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.ExportDocumentsRequest.class, + com.google.firestore.admin.v1.ExportDocumentsRequest.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Database to export. Should be of the form:
+   * `projects/{project_id}/databases/{database_id}`.
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Database to export. Should be of the form:
+   * `projects/{project_id}/databases/{database_id}`.
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COLLECTION_IDS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList collectionIds_; + /** + * + * + *
+   * Which collection ids to export. Unspecified means all collections.
+   * 
+ * + * repeated string collection_ids = 2; + */ + public com.google.protobuf.ProtocolStringList getCollectionIdsList() { + return collectionIds_; + } + /** + * + * + *
+   * Which collection ids to export. Unspecified means all collections.
+   * 
+ * + * repeated string collection_ids = 2; + */ + public int getCollectionIdsCount() { + return collectionIds_.size(); + } + /** + * + * + *
+   * Which collection ids to export. Unspecified means all collections.
+   * 
+ * + * repeated string collection_ids = 2; + */ + public java.lang.String getCollectionIds(int index) { + return collectionIds_.get(index); + } + /** + * + * + *
+   * Which collection ids to export. Unspecified means all collections.
+   * 
+ * + * repeated string collection_ids = 2; + */ + public com.google.protobuf.ByteString getCollectionIdsBytes(int index) { + return collectionIds_.getByteString(index); + } + + public static final int OUTPUT_URI_PREFIX_FIELD_NUMBER = 3; + private volatile java.lang.Object outputUriPrefix_; + /** + * + * + *
+   * The output URI. Currently only supports Google Cloud Storage URIs of the
+   * form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name
+   * of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional
+   * Google Cloud Storage namespace path. When
+   * choosing a name, be sure to consider Google Cloud Storage naming
+   * guidelines: https://cloud.google.com/storage/docs/naming.
+   * If the URI is a bucket (without a namespace path), a prefix will be
+   * generated based on the start time.
+   * 
+ * + * string output_uri_prefix = 3; + */ + public java.lang.String getOutputUriPrefix() { + java.lang.Object ref = outputUriPrefix_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputUriPrefix_ = s; + return s; + } + } + /** + * + * + *
+   * The output URI. Currently only supports Google Cloud Storage URIs of the
+   * form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name
+   * of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional
+   * Google Cloud Storage namespace path. When
+   * choosing a name, be sure to consider Google Cloud Storage naming
+   * guidelines: https://cloud.google.com/storage/docs/naming.
+   * If the URI is a bucket (without a namespace path), a prefix will be
+   * generated based on the start time.
+   * 
+ * + * string output_uri_prefix = 3; + */ + public com.google.protobuf.ByteString getOutputUriPrefixBytes() { + java.lang.Object ref = outputUriPrefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputUriPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + for (int i = 0; i < collectionIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, collectionIds_.getRaw(i)); + } + if (!getOutputUriPrefixBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, outputUriPrefix_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + { + int dataSize = 0; + for (int i = 0; i < collectionIds_.size(); i++) { + dataSize += computeStringSizeNoTag(collectionIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getCollectionIdsList().size(); + } + if (!getOutputUriPrefixBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, outputUriPrefix_); + } + 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.firestore.admin.v1.ExportDocumentsRequest)) { + return super.equals(obj); + } + com.google.firestore.admin.v1.ExportDocumentsRequest other = + (com.google.firestore.admin.v1.ExportDocumentsRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && getCollectionIdsList().equals(other.getCollectionIdsList()); + result = result && getOutputUriPrefix().equals(other.getOutputUriPrefix()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getCollectionIdsCount() > 0) { + hash = (37 * hash) + COLLECTION_IDS_FIELD_NUMBER; + hash = (53 * hash) + getCollectionIdsList().hashCode(); + } + hash = (37 * hash) + OUTPUT_URI_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getOutputUriPrefix().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.firestore.admin.v1.ExportDocumentsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.ExportDocumentsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.ExportDocumentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.ExportDocumentsRequest 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.firestore.admin.v1.ExportDocumentsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.ExportDocumentsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.ExportDocumentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.ExportDocumentsRequest 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.firestore.admin.v1.ExportDocumentsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.ExportDocumentsRequest 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.firestore.admin.v1.ExportDocumentsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.ExportDocumentsRequest 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.firestore.admin.v1.ExportDocumentsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request for [FirestoreAdmin.ExportDocuments][google.firestore.admin.v1.FirestoreAdmin.ExportDocuments].
+   * 
+ * + * Protobuf type {@code google.firestore.admin.v1.ExportDocumentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.firestore.admin.v1.ExportDocumentsRequest) + com.google.firestore.admin.v1.ExportDocumentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ExportDocumentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ExportDocumentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.ExportDocumentsRequest.class, + com.google.firestore.admin.v1.ExportDocumentsRequest.Builder.class); + } + + // Construct using com.google.firestore.admin.v1.ExportDocumentsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + collectionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + outputUriPrefix_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ExportDocumentsRequest_descriptor; + } + + @java.lang.Override + public com.google.firestore.admin.v1.ExportDocumentsRequest getDefaultInstanceForType() { + return com.google.firestore.admin.v1.ExportDocumentsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.firestore.admin.v1.ExportDocumentsRequest build() { + com.google.firestore.admin.v1.ExportDocumentsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.firestore.admin.v1.ExportDocumentsRequest buildPartial() { + com.google.firestore.admin.v1.ExportDocumentsRequest result = + new com.google.firestore.admin.v1.ExportDocumentsRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + collectionIds_ = collectionIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.collectionIds_ = collectionIds_; + result.outputUriPrefix_ = outputUriPrefix_; + 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.firestore.admin.v1.ExportDocumentsRequest) { + return mergeFrom((com.google.firestore.admin.v1.ExportDocumentsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.firestore.admin.v1.ExportDocumentsRequest other) { + if (other == com.google.firestore.admin.v1.ExportDocumentsRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.collectionIds_.isEmpty()) { + if (collectionIds_.isEmpty()) { + collectionIds_ = other.collectionIds_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureCollectionIdsIsMutable(); + collectionIds_.addAll(other.collectionIds_); + } + onChanged(); + } + if (!other.getOutputUriPrefix().isEmpty()) { + outputUriPrefix_ = other.outputUriPrefix_; + 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.firestore.admin.v1.ExportDocumentsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.firestore.admin.v1.ExportDocumentsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Database to export. Should be of the form:
+     * `projects/{project_id}/databases/{database_id}`.
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Database to export. Should be of the form:
+     * `projects/{project_id}/databases/{database_id}`.
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Database to export. Should be of the form:
+     * `projects/{project_id}/databases/{database_id}`.
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Database to export. Should be of the form:
+     * `projects/{project_id}/databases/{database_id}`.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Database to export. Should be of the form:
+     * `projects/{project_id}/databases/{database_id}`.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList collectionIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureCollectionIdsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + collectionIds_ = new com.google.protobuf.LazyStringArrayList(collectionIds_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Which collection ids to export. Unspecified means all collections.
+     * 
+ * + * repeated string collection_ids = 2; + */ + public com.google.protobuf.ProtocolStringList getCollectionIdsList() { + return collectionIds_.getUnmodifiableView(); + } + /** + * + * + *
+     * Which collection ids to export. Unspecified means all collections.
+     * 
+ * + * repeated string collection_ids = 2; + */ + public int getCollectionIdsCount() { + return collectionIds_.size(); + } + /** + * + * + *
+     * Which collection ids to export. Unspecified means all collections.
+     * 
+ * + * repeated string collection_ids = 2; + */ + public java.lang.String getCollectionIds(int index) { + return collectionIds_.get(index); + } + /** + * + * + *
+     * Which collection ids to export. Unspecified means all collections.
+     * 
+ * + * repeated string collection_ids = 2; + */ + public com.google.protobuf.ByteString getCollectionIdsBytes(int index) { + return collectionIds_.getByteString(index); + } + /** + * + * + *
+     * Which collection ids to export. Unspecified means all collections.
+     * 
+ * + * repeated string collection_ids = 2; + */ + public Builder setCollectionIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCollectionIdsIsMutable(); + collectionIds_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Which collection ids to export. Unspecified means all collections.
+     * 
+ * + * repeated string collection_ids = 2; + */ + public Builder addCollectionIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCollectionIdsIsMutable(); + collectionIds_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Which collection ids to export. Unspecified means all collections.
+     * 
+ * + * repeated string collection_ids = 2; + */ + public Builder addAllCollectionIds(java.lang.Iterable values) { + ensureCollectionIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, collectionIds_); + onChanged(); + return this; + } + /** + * + * + *
+     * Which collection ids to export. Unspecified means all collections.
+     * 
+ * + * repeated string collection_ids = 2; + */ + public Builder clearCollectionIds() { + collectionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Which collection ids to export. Unspecified means all collections.
+     * 
+ * + * repeated string collection_ids = 2; + */ + public Builder addCollectionIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCollectionIdsIsMutable(); + collectionIds_.add(value); + onChanged(); + return this; + } + + private java.lang.Object outputUriPrefix_ = ""; + /** + * + * + *
+     * The output URI. Currently only supports Google Cloud Storage URIs of the
+     * form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name
+     * of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional
+     * Google Cloud Storage namespace path. When
+     * choosing a name, be sure to consider Google Cloud Storage naming
+     * guidelines: https://cloud.google.com/storage/docs/naming.
+     * If the URI is a bucket (without a namespace path), a prefix will be
+     * generated based on the start time.
+     * 
+ * + * string output_uri_prefix = 3; + */ + public java.lang.String getOutputUriPrefix() { + java.lang.Object ref = outputUriPrefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputUriPrefix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The output URI. Currently only supports Google Cloud Storage URIs of the
+     * form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name
+     * of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional
+     * Google Cloud Storage namespace path. When
+     * choosing a name, be sure to consider Google Cloud Storage naming
+     * guidelines: https://cloud.google.com/storage/docs/naming.
+     * If the URI is a bucket (without a namespace path), a prefix will be
+     * generated based on the start time.
+     * 
+ * + * string output_uri_prefix = 3; + */ + public com.google.protobuf.ByteString getOutputUriPrefixBytes() { + java.lang.Object ref = outputUriPrefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputUriPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The output URI. Currently only supports Google Cloud Storage URIs of the
+     * form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name
+     * of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional
+     * Google Cloud Storage namespace path. When
+     * choosing a name, be sure to consider Google Cloud Storage naming
+     * guidelines: https://cloud.google.com/storage/docs/naming.
+     * If the URI is a bucket (without a namespace path), a prefix will be
+     * generated based on the start time.
+     * 
+ * + * string output_uri_prefix = 3; + */ + public Builder setOutputUriPrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + outputUriPrefix_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The output URI. Currently only supports Google Cloud Storage URIs of the
+     * form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name
+     * of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional
+     * Google Cloud Storage namespace path. When
+     * choosing a name, be sure to consider Google Cloud Storage naming
+     * guidelines: https://cloud.google.com/storage/docs/naming.
+     * If the URI is a bucket (without a namespace path), a prefix will be
+     * generated based on the start time.
+     * 
+ * + * string output_uri_prefix = 3; + */ + public Builder clearOutputUriPrefix() { + + outputUriPrefix_ = getDefaultInstance().getOutputUriPrefix(); + onChanged(); + return this; + } + /** + * + * + *
+     * The output URI. Currently only supports Google Cloud Storage URIs of the
+     * form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name
+     * of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional
+     * Google Cloud Storage namespace path. When
+     * choosing a name, be sure to consider Google Cloud Storage naming
+     * guidelines: https://cloud.google.com/storage/docs/naming.
+     * If the URI is a bucket (without a namespace path), a prefix will be
+     * generated based on the start time.
+     * 
+ * + * string output_uri_prefix = 3; + */ + public Builder setOutputUriPrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + outputUriPrefix_ = 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.firestore.admin.v1.ExportDocumentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.ExportDocumentsRequest) + private static final com.google.firestore.admin.v1.ExportDocumentsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.firestore.admin.v1.ExportDocumentsRequest(); + } + + public static com.google.firestore.admin.v1.ExportDocumentsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportDocumentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportDocumentsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.firestore.admin.v1.ExportDocumentsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsRequestOrBuilder.java new file mode 100644 index 000000000000..180b898ffc62 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsRequestOrBuilder.java @@ -0,0 +1,109 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/firestore_admin.proto + +package com.google.firestore.admin.v1; + +public interface ExportDocumentsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.firestore.admin.v1.ExportDocumentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Database to export. Should be of the form:
+   * `projects/{project_id}/databases/{database_id}`.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Database to export. Should be of the form:
+   * `projects/{project_id}/databases/{database_id}`.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Which collection ids to export. Unspecified means all collections.
+   * 
+ * + * repeated string collection_ids = 2; + */ + java.util.List getCollectionIdsList(); + /** + * + * + *
+   * Which collection ids to export. Unspecified means all collections.
+   * 
+ * + * repeated string collection_ids = 2; + */ + int getCollectionIdsCount(); + /** + * + * + *
+   * Which collection ids to export. Unspecified means all collections.
+   * 
+ * + * repeated string collection_ids = 2; + */ + java.lang.String getCollectionIds(int index); + /** + * + * + *
+   * Which collection ids to export. Unspecified means all collections.
+   * 
+ * + * repeated string collection_ids = 2; + */ + com.google.protobuf.ByteString getCollectionIdsBytes(int index); + + /** + * + * + *
+   * The output URI. Currently only supports Google Cloud Storage URIs of the
+   * form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name
+   * of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional
+   * Google Cloud Storage namespace path. When
+   * choosing a name, be sure to consider Google Cloud Storage naming
+   * guidelines: https://cloud.google.com/storage/docs/naming.
+   * If the URI is a bucket (without a namespace path), a prefix will be
+   * generated based on the start time.
+   * 
+ * + * string output_uri_prefix = 3; + */ + java.lang.String getOutputUriPrefix(); + /** + * + * + *
+   * The output URI. Currently only supports Google Cloud Storage URIs of the
+   * form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name
+   * of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional
+   * Google Cloud Storage namespace path. When
+   * choosing a name, be sure to consider Google Cloud Storage naming
+   * guidelines: https://cloud.google.com/storage/docs/naming.
+   * If the URI is a bucket (without a namespace path), a prefix will be
+   * generated based on the start time.
+   * 
+ * + * string output_uri_prefix = 3; + */ + com.google.protobuf.ByteString getOutputUriPrefixBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsResponse.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsResponse.java new file mode 100644 index 000000000000..6fe726211a8d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsResponse.java @@ -0,0 +1,614 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/operation.proto + +package com.google.firestore.admin.v1; + +/** + * + * + *
+ * Returned in the [google.longrunning.Operation][google.longrunning.Operation] response field.
+ * 
+ * + * Protobuf type {@code google.firestore.admin.v1.ExportDocumentsResponse} + */ +public final class ExportDocumentsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.ExportDocumentsResponse) + ExportDocumentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExportDocumentsResponse.newBuilder() to construct. + private ExportDocumentsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExportDocumentsResponse() { + outputUriPrefix_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExportDocumentsResponse( + 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(); + + outputUriPrefix_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_ExportDocumentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_ExportDocumentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.ExportDocumentsResponse.class, + com.google.firestore.admin.v1.ExportDocumentsResponse.Builder.class); + } + + public static final int OUTPUT_URI_PREFIX_FIELD_NUMBER = 1; + private volatile java.lang.Object outputUriPrefix_; + /** + * + * + *
+   * Location of the output files. This can be used to begin an import
+   * into Cloud Firestore (this project or another project) after the operation
+   * completes successfully.
+   * 
+ * + * string output_uri_prefix = 1; + */ + public java.lang.String getOutputUriPrefix() { + java.lang.Object ref = outputUriPrefix_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputUriPrefix_ = s; + return s; + } + } + /** + * + * + *
+   * Location of the output files. This can be used to begin an import
+   * into Cloud Firestore (this project or another project) after the operation
+   * completes successfully.
+   * 
+ * + * string output_uri_prefix = 1; + */ + public com.google.protobuf.ByteString getOutputUriPrefixBytes() { + java.lang.Object ref = outputUriPrefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputUriPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getOutputUriPrefixBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputUriPrefix_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getOutputUriPrefixBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputUriPrefix_); + } + 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.firestore.admin.v1.ExportDocumentsResponse)) { + return super.equals(obj); + } + com.google.firestore.admin.v1.ExportDocumentsResponse other = + (com.google.firestore.admin.v1.ExportDocumentsResponse) obj; + + boolean result = true; + result = result && getOutputUriPrefix().equals(other.getOutputUriPrefix()); + 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) + OUTPUT_URI_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getOutputUriPrefix().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.firestore.admin.v1.ExportDocumentsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.ExportDocumentsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.ExportDocumentsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.ExportDocumentsResponse 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.firestore.admin.v1.ExportDocumentsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.ExportDocumentsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.ExportDocumentsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.ExportDocumentsResponse 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.firestore.admin.v1.ExportDocumentsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.ExportDocumentsResponse 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.firestore.admin.v1.ExportDocumentsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.ExportDocumentsResponse 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.firestore.admin.v1.ExportDocumentsResponse 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; + } + /** + * + * + *
+   * Returned in the [google.longrunning.Operation][google.longrunning.Operation] response field.
+   * 
+ * + * Protobuf type {@code google.firestore.admin.v1.ExportDocumentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.firestore.admin.v1.ExportDocumentsResponse) + com.google.firestore.admin.v1.ExportDocumentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_ExportDocumentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_ExportDocumentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.ExportDocumentsResponse.class, + com.google.firestore.admin.v1.ExportDocumentsResponse.Builder.class); + } + + // Construct using com.google.firestore.admin.v1.ExportDocumentsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + outputUriPrefix_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_ExportDocumentsResponse_descriptor; + } + + @java.lang.Override + public com.google.firestore.admin.v1.ExportDocumentsResponse getDefaultInstanceForType() { + return com.google.firestore.admin.v1.ExportDocumentsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.firestore.admin.v1.ExportDocumentsResponse build() { + com.google.firestore.admin.v1.ExportDocumentsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.firestore.admin.v1.ExportDocumentsResponse buildPartial() { + com.google.firestore.admin.v1.ExportDocumentsResponse result = + new com.google.firestore.admin.v1.ExportDocumentsResponse(this); + result.outputUriPrefix_ = outputUriPrefix_; + 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.firestore.admin.v1.ExportDocumentsResponse) { + return mergeFrom((com.google.firestore.admin.v1.ExportDocumentsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.firestore.admin.v1.ExportDocumentsResponse other) { + if (other == com.google.firestore.admin.v1.ExportDocumentsResponse.getDefaultInstance()) + return this; + if (!other.getOutputUriPrefix().isEmpty()) { + outputUriPrefix_ = other.outputUriPrefix_; + 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.firestore.admin.v1.ExportDocumentsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.firestore.admin.v1.ExportDocumentsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object outputUriPrefix_ = ""; + /** + * + * + *
+     * Location of the output files. This can be used to begin an import
+     * into Cloud Firestore (this project or another project) after the operation
+     * completes successfully.
+     * 
+ * + * string output_uri_prefix = 1; + */ + public java.lang.String getOutputUriPrefix() { + java.lang.Object ref = outputUriPrefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputUriPrefix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Location of the output files. This can be used to begin an import
+     * into Cloud Firestore (this project or another project) after the operation
+     * completes successfully.
+     * 
+ * + * string output_uri_prefix = 1; + */ + public com.google.protobuf.ByteString getOutputUriPrefixBytes() { + java.lang.Object ref = outputUriPrefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputUriPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Location of the output files. This can be used to begin an import
+     * into Cloud Firestore (this project or another project) after the operation
+     * completes successfully.
+     * 
+ * + * string output_uri_prefix = 1; + */ + public Builder setOutputUriPrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + outputUriPrefix_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Location of the output files. This can be used to begin an import
+     * into Cloud Firestore (this project or another project) after the operation
+     * completes successfully.
+     * 
+ * + * string output_uri_prefix = 1; + */ + public Builder clearOutputUriPrefix() { + + outputUriPrefix_ = getDefaultInstance().getOutputUriPrefix(); + onChanged(); + return this; + } + /** + * + * + *
+     * Location of the output files. This can be used to begin an import
+     * into Cloud Firestore (this project or another project) after the operation
+     * completes successfully.
+     * 
+ * + * string output_uri_prefix = 1; + */ + public Builder setOutputUriPrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + outputUriPrefix_ = 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.firestore.admin.v1.ExportDocumentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.ExportDocumentsResponse) + private static final com.google.firestore.admin.v1.ExportDocumentsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.firestore.admin.v1.ExportDocumentsResponse(); + } + + public static com.google.firestore.admin.v1.ExportDocumentsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportDocumentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportDocumentsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.firestore.admin.v1.ExportDocumentsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsResponseOrBuilder.java new file mode 100644 index 000000000000..fa2fabdedb07 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsResponseOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/operation.proto + +package com.google.firestore.admin.v1; + +public interface ExportDocumentsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.firestore.admin.v1.ExportDocumentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Location of the output files. This can be used to begin an import
+   * into Cloud Firestore (this project or another project) after the operation
+   * completes successfully.
+   * 
+ * + * string output_uri_prefix = 1; + */ + java.lang.String getOutputUriPrefix(); + /** + * + * + *
+   * Location of the output files. This can be used to begin an import
+   * into Cloud Firestore (this project or another project) after the operation
+   * completes successfully.
+   * 
+ * + * string output_uri_prefix = 1; + */ + com.google.protobuf.ByteString getOutputUriPrefixBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Field.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Field.java new file mode 100644 index 000000000000..cd4f1f7afcc2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Field.java @@ -0,0 +1,2470 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/field.proto + +package com.google.firestore.admin.v1; + +/** + * + * + *
+ * Represents a single field in the database.
+ * Fields are grouped by their "Collection Group", which represent all
+ * collections in the database with the same id.
+ * 
+ * + * Protobuf type {@code google.firestore.admin.v1.Field} + */ +public final class Field extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.Field) + FieldOrBuilder { + private static final long serialVersionUID = 0L; + // Use Field.newBuilder() to construct. + private Field(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Field() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Field( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + com.google.firestore.admin.v1.Field.IndexConfig.Builder subBuilder = null; + if (indexConfig_ != null) { + subBuilder = indexConfig_.toBuilder(); + } + indexConfig_ = + input.readMessage( + com.google.firestore.admin.v1.Field.IndexConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(indexConfig_); + indexConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FieldProto + .internal_static_google_firestore_admin_v1_Field_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FieldProto + .internal_static_google_firestore_admin_v1_Field_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.Field.class, + com.google.firestore.admin.v1.Field.Builder.class); + } + + public interface IndexConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.firestore.admin.v1.Field.IndexConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The indexes supported for this field.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + java.util.List getIndexesList(); + /** + * + * + *
+     * The indexes supported for this field.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + com.google.firestore.admin.v1.Index getIndexes(int index); + /** + * + * + *
+     * The indexes supported for this field.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + int getIndexesCount(); + /** + * + * + *
+     * The indexes supported for this field.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + java.util.List + getIndexesOrBuilderList(); + /** + * + * + *
+     * The indexes supported for this field.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + com.google.firestore.admin.v1.IndexOrBuilder getIndexesOrBuilder(int index); + + /** + * + * + *
+     * Output only.
+     * When true, the `Field`'s index configuration is set from the
+     * configuration specified by the `ancestor_field`.
+     * When false, the `Field`'s index configuration is defined explicitly.
+     * 
+ * + * bool uses_ancestor_config = 2; + */ + boolean getUsesAncestorConfig(); + + /** + * + * + *
+     * Output only.
+     * Specifies the resource name of the `Field` from which this field's
+     * index configuration is set (when `uses_ancestor_config` is true),
+     * or from which it *would* be set if this field had no index configuration
+     * (when `uses_ancestor_config` is false).
+     * 
+ * + * string ancestor_field = 3; + */ + java.lang.String getAncestorField(); + /** + * + * + *
+     * Output only.
+     * Specifies the resource name of the `Field` from which this field's
+     * index configuration is set (when `uses_ancestor_config` is true),
+     * or from which it *would* be set if this field had no index configuration
+     * (when `uses_ancestor_config` is false).
+     * 
+ * + * string ancestor_field = 3; + */ + com.google.protobuf.ByteString getAncestorFieldBytes(); + + /** + * + * + *
+     * Output only
+     * When true, the `Field`'s index configuration is in the process of being
+     * reverted. Once complete, the index config will transition to the same
+     * state as the field specified by `ancestor_field`, at which point
+     * `uses_ancestor_config` will be `true` and `reverting` will be `false`.
+     * 
+ * + * bool reverting = 4; + */ + boolean getReverting(); + } + /** + * + * + *
+   * The index configuration for this field.
+   * 
+ * + * Protobuf type {@code google.firestore.admin.v1.Field.IndexConfig} + */ + public static final class IndexConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.Field.IndexConfig) + IndexConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use IndexConfig.newBuilder() to construct. + private IndexConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IndexConfig() { + indexes_ = java.util.Collections.emptyList(); + usesAncestorConfig_ = false; + ancestorField_ = ""; + reverting_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private IndexConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + indexes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + indexes_.add( + input.readMessage( + com.google.firestore.admin.v1.Index.parser(), extensionRegistry)); + break; + } + case 16: + { + usesAncestorConfig_ = input.readBool(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + ancestorField_ = s; + break; + } + case 32: + { + reverting_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + indexes_ = java.util.Collections.unmodifiableList(indexes_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FieldProto + .internal_static_google_firestore_admin_v1_Field_IndexConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FieldProto + .internal_static_google_firestore_admin_v1_Field_IndexConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.Field.IndexConfig.class, + com.google.firestore.admin.v1.Field.IndexConfig.Builder.class); + } + + private int bitField0_; + public static final int INDEXES_FIELD_NUMBER = 1; + private java.util.List indexes_; + /** + * + * + *
+     * The indexes supported for this field.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public java.util.List getIndexesList() { + return indexes_; + } + /** + * + * + *
+     * The indexes supported for this field.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public java.util.List + getIndexesOrBuilderList() { + return indexes_; + } + /** + * + * + *
+     * The indexes supported for this field.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public int getIndexesCount() { + return indexes_.size(); + } + /** + * + * + *
+     * The indexes supported for this field.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public com.google.firestore.admin.v1.Index getIndexes(int index) { + return indexes_.get(index); + } + /** + * + * + *
+     * The indexes supported for this field.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public com.google.firestore.admin.v1.IndexOrBuilder getIndexesOrBuilder(int index) { + return indexes_.get(index); + } + + public static final int USES_ANCESTOR_CONFIG_FIELD_NUMBER = 2; + private boolean usesAncestorConfig_; + /** + * + * + *
+     * Output only.
+     * When true, the `Field`'s index configuration is set from the
+     * configuration specified by the `ancestor_field`.
+     * When false, the `Field`'s index configuration is defined explicitly.
+     * 
+ * + * bool uses_ancestor_config = 2; + */ + public boolean getUsesAncestorConfig() { + return usesAncestorConfig_; + } + + public static final int ANCESTOR_FIELD_FIELD_NUMBER = 3; + private volatile java.lang.Object ancestorField_; + /** + * + * + *
+     * Output only.
+     * Specifies the resource name of the `Field` from which this field's
+     * index configuration is set (when `uses_ancestor_config` is true),
+     * or from which it *would* be set if this field had no index configuration
+     * (when `uses_ancestor_config` is false).
+     * 
+ * + * string ancestor_field = 3; + */ + public java.lang.String getAncestorField() { + java.lang.Object ref = ancestorField_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ancestorField_ = s; + return s; + } + } + /** + * + * + *
+     * Output only.
+     * Specifies the resource name of the `Field` from which this field's
+     * index configuration is set (when `uses_ancestor_config` is true),
+     * or from which it *would* be set if this field had no index configuration
+     * (when `uses_ancestor_config` is false).
+     * 
+ * + * string ancestor_field = 3; + */ + public com.google.protobuf.ByteString getAncestorFieldBytes() { + java.lang.Object ref = ancestorField_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ancestorField_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REVERTING_FIELD_NUMBER = 4; + private boolean reverting_; + /** + * + * + *
+     * Output only
+     * When true, the `Field`'s index configuration is in the process of being
+     * reverted. Once complete, the index config will transition to the same
+     * state as the field specified by `ancestor_field`, at which point
+     * `uses_ancestor_config` will be `true` and `reverting` will be `false`.
+     * 
+ * + * bool reverting = 4; + */ + public boolean getReverting() { + return reverting_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < indexes_.size(); i++) { + output.writeMessage(1, indexes_.get(i)); + } + if (usesAncestorConfig_ != false) { + output.writeBool(2, usesAncestorConfig_); + } + if (!getAncestorFieldBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ancestorField_); + } + if (reverting_ != false) { + output.writeBool(4, reverting_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < indexes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, indexes_.get(i)); + } + if (usesAncestorConfig_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, usesAncestorConfig_); + } + if (!getAncestorFieldBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ancestorField_); + } + if (reverting_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, reverting_); + } + 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.firestore.admin.v1.Field.IndexConfig)) { + return super.equals(obj); + } + com.google.firestore.admin.v1.Field.IndexConfig other = + (com.google.firestore.admin.v1.Field.IndexConfig) obj; + + boolean result = true; + result = result && getIndexesList().equals(other.getIndexesList()); + result = result && (getUsesAncestorConfig() == other.getUsesAncestorConfig()); + result = result && getAncestorField().equals(other.getAncestorField()); + result = result && (getReverting() == other.getReverting()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getIndexesCount() > 0) { + hash = (37 * hash) + INDEXES_FIELD_NUMBER; + hash = (53 * hash) + getIndexesList().hashCode(); + } + hash = (37 * hash) + USES_ANCESTOR_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUsesAncestorConfig()); + hash = (37 * hash) + ANCESTOR_FIELD_FIELD_NUMBER; + hash = (53 * hash) + getAncestorField().hashCode(); + hash = (37 * hash) + REVERTING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReverting()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.firestore.admin.v1.Field.IndexConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.Field.IndexConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.Field.IndexConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.Field.IndexConfig 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.firestore.admin.v1.Field.IndexConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.Field.IndexConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.Field.IndexConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.Field.IndexConfig 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.firestore.admin.v1.Field.IndexConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.Field.IndexConfig 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.firestore.admin.v1.Field.IndexConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.Field.IndexConfig 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.firestore.admin.v1.Field.IndexConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * The index configuration for this field.
+     * 
+ * + * Protobuf type {@code google.firestore.admin.v1.Field.IndexConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.firestore.admin.v1.Field.IndexConfig) + com.google.firestore.admin.v1.Field.IndexConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FieldProto + .internal_static_google_firestore_admin_v1_Field_IndexConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FieldProto + .internal_static_google_firestore_admin_v1_Field_IndexConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.Field.IndexConfig.class, + com.google.firestore.admin.v1.Field.IndexConfig.Builder.class); + } + + // Construct using com.google.firestore.admin.v1.Field.IndexConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getIndexesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (indexesBuilder_ == null) { + indexes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + indexesBuilder_.clear(); + } + usesAncestorConfig_ = false; + + ancestorField_ = ""; + + reverting_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.firestore.admin.v1.FieldProto + .internal_static_google_firestore_admin_v1_Field_IndexConfig_descriptor; + } + + @java.lang.Override + public com.google.firestore.admin.v1.Field.IndexConfig getDefaultInstanceForType() { + return com.google.firestore.admin.v1.Field.IndexConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.firestore.admin.v1.Field.IndexConfig build() { + com.google.firestore.admin.v1.Field.IndexConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.firestore.admin.v1.Field.IndexConfig buildPartial() { + com.google.firestore.admin.v1.Field.IndexConfig result = + new com.google.firestore.admin.v1.Field.IndexConfig(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (indexesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + indexes_ = java.util.Collections.unmodifiableList(indexes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.indexes_ = indexes_; + } else { + result.indexes_ = indexesBuilder_.build(); + } + result.usesAncestorConfig_ = usesAncestorConfig_; + result.ancestorField_ = ancestorField_; + result.reverting_ = reverting_; + 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.firestore.admin.v1.Field.IndexConfig) { + return mergeFrom((com.google.firestore.admin.v1.Field.IndexConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.firestore.admin.v1.Field.IndexConfig other) { + if (other == com.google.firestore.admin.v1.Field.IndexConfig.getDefaultInstance()) + return this; + if (indexesBuilder_ == null) { + if (!other.indexes_.isEmpty()) { + if (indexes_.isEmpty()) { + indexes_ = other.indexes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureIndexesIsMutable(); + indexes_.addAll(other.indexes_); + } + onChanged(); + } + } else { + if (!other.indexes_.isEmpty()) { + if (indexesBuilder_.isEmpty()) { + indexesBuilder_.dispose(); + indexesBuilder_ = null; + indexes_ = other.indexes_; + bitField0_ = (bitField0_ & ~0x00000001); + indexesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getIndexesFieldBuilder() + : null; + } else { + indexesBuilder_.addAllMessages(other.indexes_); + } + } + } + if (other.getUsesAncestorConfig() != false) { + setUsesAncestorConfig(other.getUsesAncestorConfig()); + } + if (!other.getAncestorField().isEmpty()) { + ancestorField_ = other.ancestorField_; + onChanged(); + } + if (other.getReverting() != false) { + setReverting(other.getReverting()); + } + 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.firestore.admin.v1.Field.IndexConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.firestore.admin.v1.Field.IndexConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List indexes_ = + java.util.Collections.emptyList(); + + private void ensureIndexesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + indexes_ = new java.util.ArrayList(indexes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.firestore.admin.v1.Index, + com.google.firestore.admin.v1.Index.Builder, + com.google.firestore.admin.v1.IndexOrBuilder> + indexesBuilder_; + + /** + * + * + *
+       * The indexes supported for this field.
+       * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public java.util.List getIndexesList() { + if (indexesBuilder_ == null) { + return java.util.Collections.unmodifiableList(indexes_); + } else { + return indexesBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * The indexes supported for this field.
+       * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public int getIndexesCount() { + if (indexesBuilder_ == null) { + return indexes_.size(); + } else { + return indexesBuilder_.getCount(); + } + } + /** + * + * + *
+       * The indexes supported for this field.
+       * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public com.google.firestore.admin.v1.Index getIndexes(int index) { + if (indexesBuilder_ == null) { + return indexes_.get(index); + } else { + return indexesBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * The indexes supported for this field.
+       * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public Builder setIndexes(int index, com.google.firestore.admin.v1.Index value) { + if (indexesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIndexesIsMutable(); + indexes_.set(index, value); + onChanged(); + } else { + indexesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * The indexes supported for this field.
+       * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public Builder setIndexes( + int index, com.google.firestore.admin.v1.Index.Builder builderForValue) { + if (indexesBuilder_ == null) { + ensureIndexesIsMutable(); + indexes_.set(index, builderForValue.build()); + onChanged(); + } else { + indexesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * The indexes supported for this field.
+       * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public Builder addIndexes(com.google.firestore.admin.v1.Index value) { + if (indexesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIndexesIsMutable(); + indexes_.add(value); + onChanged(); + } else { + indexesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * The indexes supported for this field.
+       * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public Builder addIndexes(int index, com.google.firestore.admin.v1.Index value) { + if (indexesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIndexesIsMutable(); + indexes_.add(index, value); + onChanged(); + } else { + indexesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * The indexes supported for this field.
+       * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public Builder addIndexes(com.google.firestore.admin.v1.Index.Builder builderForValue) { + if (indexesBuilder_ == null) { + ensureIndexesIsMutable(); + indexes_.add(builderForValue.build()); + onChanged(); + } else { + indexesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * The indexes supported for this field.
+       * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public Builder addIndexes( + int index, com.google.firestore.admin.v1.Index.Builder builderForValue) { + if (indexesBuilder_ == null) { + ensureIndexesIsMutable(); + indexes_.add(index, builderForValue.build()); + onChanged(); + } else { + indexesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * The indexes supported for this field.
+       * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public Builder addAllIndexes( + java.lang.Iterable values) { + if (indexesBuilder_ == null) { + ensureIndexesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, indexes_); + onChanged(); + } else { + indexesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * The indexes supported for this field.
+       * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public Builder clearIndexes() { + if (indexesBuilder_ == null) { + indexes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + indexesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * The indexes supported for this field.
+       * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public Builder removeIndexes(int index) { + if (indexesBuilder_ == null) { + ensureIndexesIsMutable(); + indexes_.remove(index); + onChanged(); + } else { + indexesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * The indexes supported for this field.
+       * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public com.google.firestore.admin.v1.Index.Builder getIndexesBuilder(int index) { + return getIndexesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * The indexes supported for this field.
+       * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public com.google.firestore.admin.v1.IndexOrBuilder getIndexesOrBuilder(int index) { + if (indexesBuilder_ == null) { + return indexes_.get(index); + } else { + return indexesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * The indexes supported for this field.
+       * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public java.util.List + getIndexesOrBuilderList() { + if (indexesBuilder_ != null) { + return indexesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(indexes_); + } + } + /** + * + * + *
+       * The indexes supported for this field.
+       * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public com.google.firestore.admin.v1.Index.Builder addIndexesBuilder() { + return getIndexesFieldBuilder() + .addBuilder(com.google.firestore.admin.v1.Index.getDefaultInstance()); + } + /** + * + * + *
+       * The indexes supported for this field.
+       * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public com.google.firestore.admin.v1.Index.Builder addIndexesBuilder(int index) { + return getIndexesFieldBuilder() + .addBuilder(index, com.google.firestore.admin.v1.Index.getDefaultInstance()); + } + /** + * + * + *
+       * The indexes supported for this field.
+       * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public java.util.List getIndexesBuilderList() { + return getIndexesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.firestore.admin.v1.Index, + com.google.firestore.admin.v1.Index.Builder, + com.google.firestore.admin.v1.IndexOrBuilder> + getIndexesFieldBuilder() { + if (indexesBuilder_ == null) { + indexesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.firestore.admin.v1.Index, + com.google.firestore.admin.v1.Index.Builder, + com.google.firestore.admin.v1.IndexOrBuilder>( + indexes_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + indexes_ = null; + } + return indexesBuilder_; + } + + private boolean usesAncestorConfig_; + /** + * + * + *
+       * Output only.
+       * When true, the `Field`'s index configuration is set from the
+       * configuration specified by the `ancestor_field`.
+       * When false, the `Field`'s index configuration is defined explicitly.
+       * 
+ * + * bool uses_ancestor_config = 2; + */ + public boolean getUsesAncestorConfig() { + return usesAncestorConfig_; + } + /** + * + * + *
+       * Output only.
+       * When true, the `Field`'s index configuration is set from the
+       * configuration specified by the `ancestor_field`.
+       * When false, the `Field`'s index configuration is defined explicitly.
+       * 
+ * + * bool uses_ancestor_config = 2; + */ + public Builder setUsesAncestorConfig(boolean value) { + + usesAncestorConfig_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only.
+       * When true, the `Field`'s index configuration is set from the
+       * configuration specified by the `ancestor_field`.
+       * When false, the `Field`'s index configuration is defined explicitly.
+       * 
+ * + * bool uses_ancestor_config = 2; + */ + public Builder clearUsesAncestorConfig() { + + usesAncestorConfig_ = false; + onChanged(); + return this; + } + + private java.lang.Object ancestorField_ = ""; + /** + * + * + *
+       * Output only.
+       * Specifies the resource name of the `Field` from which this field's
+       * index configuration is set (when `uses_ancestor_config` is true),
+       * or from which it *would* be set if this field had no index configuration
+       * (when `uses_ancestor_config` is false).
+       * 
+ * + * string ancestor_field = 3; + */ + public java.lang.String getAncestorField() { + java.lang.Object ref = ancestorField_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ancestorField_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only.
+       * Specifies the resource name of the `Field` from which this field's
+       * index configuration is set (when `uses_ancestor_config` is true),
+       * or from which it *would* be set if this field had no index configuration
+       * (when `uses_ancestor_config` is false).
+       * 
+ * + * string ancestor_field = 3; + */ + public com.google.protobuf.ByteString getAncestorFieldBytes() { + java.lang.Object ref = ancestorField_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ancestorField_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only.
+       * Specifies the resource name of the `Field` from which this field's
+       * index configuration is set (when `uses_ancestor_config` is true),
+       * or from which it *would* be set if this field had no index configuration
+       * (when `uses_ancestor_config` is false).
+       * 
+ * + * string ancestor_field = 3; + */ + public Builder setAncestorField(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ancestorField_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only.
+       * Specifies the resource name of the `Field` from which this field's
+       * index configuration is set (when `uses_ancestor_config` is true),
+       * or from which it *would* be set if this field had no index configuration
+       * (when `uses_ancestor_config` is false).
+       * 
+ * + * string ancestor_field = 3; + */ + public Builder clearAncestorField() { + + ancestorField_ = getDefaultInstance().getAncestorField(); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only.
+       * Specifies the resource name of the `Field` from which this field's
+       * index configuration is set (when `uses_ancestor_config` is true),
+       * or from which it *would* be set if this field had no index configuration
+       * (when `uses_ancestor_config` is false).
+       * 
+ * + * string ancestor_field = 3; + */ + public Builder setAncestorFieldBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ancestorField_ = value; + onChanged(); + return this; + } + + private boolean reverting_; + /** + * + * + *
+       * Output only
+       * When true, the `Field`'s index configuration is in the process of being
+       * reverted. Once complete, the index config will transition to the same
+       * state as the field specified by `ancestor_field`, at which point
+       * `uses_ancestor_config` will be `true` and `reverting` will be `false`.
+       * 
+ * + * bool reverting = 4; + */ + public boolean getReverting() { + return reverting_; + } + /** + * + * + *
+       * Output only
+       * When true, the `Field`'s index configuration is in the process of being
+       * reverted. Once complete, the index config will transition to the same
+       * state as the field specified by `ancestor_field`, at which point
+       * `uses_ancestor_config` will be `true` and `reverting` will be `false`.
+       * 
+ * + * bool reverting = 4; + */ + public Builder setReverting(boolean value) { + + reverting_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only
+       * When true, the `Field`'s index configuration is in the process of being
+       * reverted. Once complete, the index config will transition to the same
+       * state as the field specified by `ancestor_field`, at which point
+       * `uses_ancestor_config` will be `true` and `reverting` will be `false`.
+       * 
+ * + * bool reverting = 4; + */ + public Builder clearReverting() { + + reverting_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.Field.IndexConfig) + } + + // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.Field.IndexConfig) + private static final com.google.firestore.admin.v1.Field.IndexConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.firestore.admin.v1.Field.IndexConfig(); + } + + public static com.google.firestore.admin.v1.Field.IndexConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IndexConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IndexConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.firestore.admin.v1.Field.IndexConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * A field name of the form
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
+   * A field path may be a simple field name, e.g. `address` or a path to fields
+   * within map_value , e.g. `address.city`,
+   * or a special field path. The only valid special field is `*`, which
+   * represents any field.
+   * Field paths may be quoted using ` (backtick). The only character that needs
+   * to be escaped within a quoted field path is the backtick character itself,
+   * escaped using a backslash. Special characters in field paths that
+   * must be quoted include: `*`, `.`,
+   * ``` (backtick), `[`, `]`, as well as any ascii symbolic characters.
+   * Examples:
+   * (Note: Comments here are written in markdown syntax, so there is an
+   *  additional layer of backticks to represent a code block)
+   * `\`address.city\`` represents a field named `address.city`, not the map key
+   * `city` in the field `address`.
+   * `\`*\`` represents a field named `*`, not any field.
+   * A special `Field` contains the default indexing settings for all fields.
+   * This field's resource name is:
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`
+   * Indexes defined on this `Field` will be applied to all fields which do not
+   * have their own `Field` index configuration.
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * A field name of the form
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
+   * A field path may be a simple field name, e.g. `address` or a path to fields
+   * within map_value , e.g. `address.city`,
+   * or a special field path. The only valid special field is `*`, which
+   * represents any field.
+   * Field paths may be quoted using ` (backtick). The only character that needs
+   * to be escaped within a quoted field path is the backtick character itself,
+   * escaped using a backslash. Special characters in field paths that
+   * must be quoted include: `*`, `.`,
+   * ``` (backtick), `[`, `]`, as well as any ascii symbolic characters.
+   * Examples:
+   * (Note: Comments here are written in markdown syntax, so there is an
+   *  additional layer of backticks to represent a code block)
+   * `\`address.city\`` represents a field named `address.city`, not the map key
+   * `city` in the field `address`.
+   * `\`*\`` represents a field named `*`, not any field.
+   * A special `Field` contains the default indexing settings for all fields.
+   * This field's resource name is:
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`
+   * Indexes defined on this `Field` will be applied to all fields which do not
+   * have their own `Field` index configuration.
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INDEX_CONFIG_FIELD_NUMBER = 2; + private com.google.firestore.admin.v1.Field.IndexConfig indexConfig_; + /** + * + * + *
+   * The index configuration for this field. If unset, field indexing will
+   * revert to the configuration defined by the `ancestor_field`. To
+   * explicitly remove all indexes for this field, specify an index config
+   * with an empty list of indexes.
+   * 
+ * + * .google.firestore.admin.v1.Field.IndexConfig index_config = 2; + */ + public boolean hasIndexConfig() { + return indexConfig_ != null; + } + /** + * + * + *
+   * The index configuration for this field. If unset, field indexing will
+   * revert to the configuration defined by the `ancestor_field`. To
+   * explicitly remove all indexes for this field, specify an index config
+   * with an empty list of indexes.
+   * 
+ * + * .google.firestore.admin.v1.Field.IndexConfig index_config = 2; + */ + public com.google.firestore.admin.v1.Field.IndexConfig getIndexConfig() { + return indexConfig_ == null + ? com.google.firestore.admin.v1.Field.IndexConfig.getDefaultInstance() + : indexConfig_; + } + /** + * + * + *
+   * The index configuration for this field. If unset, field indexing will
+   * revert to the configuration defined by the `ancestor_field`. To
+   * explicitly remove all indexes for this field, specify an index config
+   * with an empty list of indexes.
+   * 
+ * + * .google.firestore.admin.v1.Field.IndexConfig index_config = 2; + */ + public com.google.firestore.admin.v1.Field.IndexConfigOrBuilder getIndexConfigOrBuilder() { + return getIndexConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (indexConfig_ != null) { + output.writeMessage(2, getIndexConfig()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (indexConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIndexConfig()); + } + 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.firestore.admin.v1.Field)) { + return super.equals(obj); + } + com.google.firestore.admin.v1.Field other = (com.google.firestore.admin.v1.Field) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && (hasIndexConfig() == other.hasIndexConfig()); + if (hasIndexConfig()) { + result = result && getIndexConfig().equals(other.getIndexConfig()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasIndexConfig()) { + hash = (37 * hash) + INDEX_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getIndexConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.firestore.admin.v1.Field parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.Field parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.Field parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.Field 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.firestore.admin.v1.Field parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.Field parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.Field parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.Field 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.firestore.admin.v1.Field parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.Field 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.firestore.admin.v1.Field parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.Field 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.firestore.admin.v1.Field 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; + } + /** + * + * + *
+   * Represents a single field in the database.
+   * Fields are grouped by their "Collection Group", which represent all
+   * collections in the database with the same id.
+   * 
+ * + * Protobuf type {@code google.firestore.admin.v1.Field} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.firestore.admin.v1.Field) + com.google.firestore.admin.v1.FieldOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FieldProto + .internal_static_google_firestore_admin_v1_Field_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FieldProto + .internal_static_google_firestore_admin_v1_Field_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.Field.class, + com.google.firestore.admin.v1.Field.Builder.class); + } + + // Construct using com.google.firestore.admin.v1.Field.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (indexConfigBuilder_ == null) { + indexConfig_ = null; + } else { + indexConfig_ = null; + indexConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.firestore.admin.v1.FieldProto + .internal_static_google_firestore_admin_v1_Field_descriptor; + } + + @java.lang.Override + public com.google.firestore.admin.v1.Field getDefaultInstanceForType() { + return com.google.firestore.admin.v1.Field.getDefaultInstance(); + } + + @java.lang.Override + public com.google.firestore.admin.v1.Field build() { + com.google.firestore.admin.v1.Field result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.firestore.admin.v1.Field buildPartial() { + com.google.firestore.admin.v1.Field result = new com.google.firestore.admin.v1.Field(this); + result.name_ = name_; + if (indexConfigBuilder_ == null) { + result.indexConfig_ = indexConfig_; + } else { + result.indexConfig_ = indexConfigBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.firestore.admin.v1.Field) { + return mergeFrom((com.google.firestore.admin.v1.Field) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.firestore.admin.v1.Field other) { + if (other == com.google.firestore.admin.v1.Field.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasIndexConfig()) { + mergeIndexConfig(other.getIndexConfig()); + } + 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.firestore.admin.v1.Field parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.firestore.admin.v1.Field) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * A field name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
+     * A field path may be a simple field name, e.g. `address` or a path to fields
+     * within map_value , e.g. `address.city`,
+     * or a special field path. The only valid special field is `*`, which
+     * represents any field.
+     * Field paths may be quoted using ` (backtick). The only character that needs
+     * to be escaped within a quoted field path is the backtick character itself,
+     * escaped using a backslash. Special characters in field paths that
+     * must be quoted include: `*`, `.`,
+     * ``` (backtick), `[`, `]`, as well as any ascii symbolic characters.
+     * Examples:
+     * (Note: Comments here are written in markdown syntax, so there is an
+     *  additional layer of backticks to represent a code block)
+     * `\`address.city\`` represents a field named `address.city`, not the map key
+     * `city` in the field `address`.
+     * `\`*\`` represents a field named `*`, not any field.
+     * A special `Field` contains the default indexing settings for all fields.
+     * This field's resource name is:
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`
+     * Indexes defined on this `Field` will be applied to all fields which do not
+     * have their own `Field` index configuration.
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A field name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
+     * A field path may be a simple field name, e.g. `address` or a path to fields
+     * within map_value , e.g. `address.city`,
+     * or a special field path. The only valid special field is `*`, which
+     * represents any field.
+     * Field paths may be quoted using ` (backtick). The only character that needs
+     * to be escaped within a quoted field path is the backtick character itself,
+     * escaped using a backslash. Special characters in field paths that
+     * must be quoted include: `*`, `.`,
+     * ``` (backtick), `[`, `]`, as well as any ascii symbolic characters.
+     * Examples:
+     * (Note: Comments here are written in markdown syntax, so there is an
+     *  additional layer of backticks to represent a code block)
+     * `\`address.city\`` represents a field named `address.city`, not the map key
+     * `city` in the field `address`.
+     * `\`*\`` represents a field named `*`, not any field.
+     * A special `Field` contains the default indexing settings for all fields.
+     * This field's resource name is:
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`
+     * Indexes defined on this `Field` will be applied to all fields which do not
+     * have their own `Field` index configuration.
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A field name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
+     * A field path may be a simple field name, e.g. `address` or a path to fields
+     * within map_value , e.g. `address.city`,
+     * or a special field path. The only valid special field is `*`, which
+     * represents any field.
+     * Field paths may be quoted using ` (backtick). The only character that needs
+     * to be escaped within a quoted field path is the backtick character itself,
+     * escaped using a backslash. Special characters in field paths that
+     * must be quoted include: `*`, `.`,
+     * ``` (backtick), `[`, `]`, as well as any ascii symbolic characters.
+     * Examples:
+     * (Note: Comments here are written in markdown syntax, so there is an
+     *  additional layer of backticks to represent a code block)
+     * `\`address.city\`` represents a field named `address.city`, not the map key
+     * `city` in the field `address`.
+     * `\`*\`` represents a field named `*`, not any field.
+     * A special `Field` contains the default indexing settings for all fields.
+     * This field's resource name is:
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`
+     * Indexes defined on this `Field` will be applied to all fields which do not
+     * have their own `Field` index configuration.
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A field name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
+     * A field path may be a simple field name, e.g. `address` or a path to fields
+     * within map_value , e.g. `address.city`,
+     * or a special field path. The only valid special field is `*`, which
+     * represents any field.
+     * Field paths may be quoted using ` (backtick). The only character that needs
+     * to be escaped within a quoted field path is the backtick character itself,
+     * escaped using a backslash. Special characters in field paths that
+     * must be quoted include: `*`, `.`,
+     * ``` (backtick), `[`, `]`, as well as any ascii symbolic characters.
+     * Examples:
+     * (Note: Comments here are written in markdown syntax, so there is an
+     *  additional layer of backticks to represent a code block)
+     * `\`address.city\`` represents a field named `address.city`, not the map key
+     * `city` in the field `address`.
+     * `\`*\`` represents a field named `*`, not any field.
+     * A special `Field` contains the default indexing settings for all fields.
+     * This field's resource name is:
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`
+     * Indexes defined on this `Field` will be applied to all fields which do not
+     * have their own `Field` index configuration.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * A field name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
+     * A field path may be a simple field name, e.g. `address` or a path to fields
+     * within map_value , e.g. `address.city`,
+     * or a special field path. The only valid special field is `*`, which
+     * represents any field.
+     * Field paths may be quoted using ` (backtick). The only character that needs
+     * to be escaped within a quoted field path is the backtick character itself,
+     * escaped using a backslash. Special characters in field paths that
+     * must be quoted include: `*`, `.`,
+     * ``` (backtick), `[`, `]`, as well as any ascii symbolic characters.
+     * Examples:
+     * (Note: Comments here are written in markdown syntax, so there is an
+     *  additional layer of backticks to represent a code block)
+     * `\`address.city\`` represents a field named `address.city`, not the map key
+     * `city` in the field `address`.
+     * `\`*\`` represents a field named `*`, not any field.
+     * A special `Field` contains the default indexing settings for all fields.
+     * This field's resource name is:
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`
+     * Indexes defined on this `Field` will be applied to all fields which do not
+     * have their own `Field` index configuration.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.firestore.admin.v1.Field.IndexConfig indexConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Field.IndexConfig, + com.google.firestore.admin.v1.Field.IndexConfig.Builder, + com.google.firestore.admin.v1.Field.IndexConfigOrBuilder> + indexConfigBuilder_; + /** + * + * + *
+     * The index configuration for this field. If unset, field indexing will
+     * revert to the configuration defined by the `ancestor_field`. To
+     * explicitly remove all indexes for this field, specify an index config
+     * with an empty list of indexes.
+     * 
+ * + * .google.firestore.admin.v1.Field.IndexConfig index_config = 2; + */ + public boolean hasIndexConfig() { + return indexConfigBuilder_ != null || indexConfig_ != null; + } + /** + * + * + *
+     * The index configuration for this field. If unset, field indexing will
+     * revert to the configuration defined by the `ancestor_field`. To
+     * explicitly remove all indexes for this field, specify an index config
+     * with an empty list of indexes.
+     * 
+ * + * .google.firestore.admin.v1.Field.IndexConfig index_config = 2; + */ + public com.google.firestore.admin.v1.Field.IndexConfig getIndexConfig() { + if (indexConfigBuilder_ == null) { + return indexConfig_ == null + ? com.google.firestore.admin.v1.Field.IndexConfig.getDefaultInstance() + : indexConfig_; + } else { + return indexConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The index configuration for this field. If unset, field indexing will
+     * revert to the configuration defined by the `ancestor_field`. To
+     * explicitly remove all indexes for this field, specify an index config
+     * with an empty list of indexes.
+     * 
+ * + * .google.firestore.admin.v1.Field.IndexConfig index_config = 2; + */ + public Builder setIndexConfig(com.google.firestore.admin.v1.Field.IndexConfig value) { + if (indexConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + indexConfig_ = value; + onChanged(); + } else { + indexConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The index configuration for this field. If unset, field indexing will
+     * revert to the configuration defined by the `ancestor_field`. To
+     * explicitly remove all indexes for this field, specify an index config
+     * with an empty list of indexes.
+     * 
+ * + * .google.firestore.admin.v1.Field.IndexConfig index_config = 2; + */ + public Builder setIndexConfig( + com.google.firestore.admin.v1.Field.IndexConfig.Builder builderForValue) { + if (indexConfigBuilder_ == null) { + indexConfig_ = builderForValue.build(); + onChanged(); + } else { + indexConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The index configuration for this field. If unset, field indexing will
+     * revert to the configuration defined by the `ancestor_field`. To
+     * explicitly remove all indexes for this field, specify an index config
+     * with an empty list of indexes.
+     * 
+ * + * .google.firestore.admin.v1.Field.IndexConfig index_config = 2; + */ + public Builder mergeIndexConfig(com.google.firestore.admin.v1.Field.IndexConfig value) { + if (indexConfigBuilder_ == null) { + if (indexConfig_ != null) { + indexConfig_ = + com.google.firestore.admin.v1.Field.IndexConfig.newBuilder(indexConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + indexConfig_ = value; + } + onChanged(); + } else { + indexConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The index configuration for this field. If unset, field indexing will
+     * revert to the configuration defined by the `ancestor_field`. To
+     * explicitly remove all indexes for this field, specify an index config
+     * with an empty list of indexes.
+     * 
+ * + * .google.firestore.admin.v1.Field.IndexConfig index_config = 2; + */ + public Builder clearIndexConfig() { + if (indexConfigBuilder_ == null) { + indexConfig_ = null; + onChanged(); + } else { + indexConfig_ = null; + indexConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The index configuration for this field. If unset, field indexing will
+     * revert to the configuration defined by the `ancestor_field`. To
+     * explicitly remove all indexes for this field, specify an index config
+     * with an empty list of indexes.
+     * 
+ * + * .google.firestore.admin.v1.Field.IndexConfig index_config = 2; + */ + public com.google.firestore.admin.v1.Field.IndexConfig.Builder getIndexConfigBuilder() { + + onChanged(); + return getIndexConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The index configuration for this field. If unset, field indexing will
+     * revert to the configuration defined by the `ancestor_field`. To
+     * explicitly remove all indexes for this field, specify an index config
+     * with an empty list of indexes.
+     * 
+ * + * .google.firestore.admin.v1.Field.IndexConfig index_config = 2; + */ + public com.google.firestore.admin.v1.Field.IndexConfigOrBuilder getIndexConfigOrBuilder() { + if (indexConfigBuilder_ != null) { + return indexConfigBuilder_.getMessageOrBuilder(); + } else { + return indexConfig_ == null + ? com.google.firestore.admin.v1.Field.IndexConfig.getDefaultInstance() + : indexConfig_; + } + } + /** + * + * + *
+     * The index configuration for this field. If unset, field indexing will
+     * revert to the configuration defined by the `ancestor_field`. To
+     * explicitly remove all indexes for this field, specify an index config
+     * with an empty list of indexes.
+     * 
+ * + * .google.firestore.admin.v1.Field.IndexConfig index_config = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Field.IndexConfig, + com.google.firestore.admin.v1.Field.IndexConfig.Builder, + com.google.firestore.admin.v1.Field.IndexConfigOrBuilder> + getIndexConfigFieldBuilder() { + if (indexConfigBuilder_ == null) { + indexConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Field.IndexConfig, + com.google.firestore.admin.v1.Field.IndexConfig.Builder, + com.google.firestore.admin.v1.Field.IndexConfigOrBuilder>( + getIndexConfig(), getParentForChildren(), isClean()); + indexConfig_ = null; + } + return indexConfigBuilder_; + } + + @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.firestore.admin.v1.Field) + } + + // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.Field) + private static final com.google.firestore.admin.v1.Field DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.firestore.admin.v1.Field(); + } + + public static com.google.firestore.admin.v1.Field getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Field parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Field(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.firestore.admin.v1.Field getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldName.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldName.java new file mode 100644 index 000000000000..dd2b2e9f7d58 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldName.java @@ -0,0 +1,248 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.firestore.admin.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class FieldName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/databases/{database}/collectionGroups/{collection_id}/fields/{field_id}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String database; + private final String collectionId; + private final String fieldId; + + public String getProject() { + return project; + } + + public String getDatabase() { + return database; + } + + public String getCollectionId() { + return collectionId; + } + + public String getFieldId() { + return fieldId; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private FieldName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + database = Preconditions.checkNotNull(builder.getDatabase()); + collectionId = Preconditions.checkNotNull(builder.getCollectionId()); + fieldId = Preconditions.checkNotNull(builder.getFieldId()); + } + + public static FieldName of(String project, String database, String collectionId, String fieldId) { + return newBuilder() + .setProject(project) + .setDatabase(database) + .setCollectionId(collectionId) + .setFieldId(fieldId) + .build(); + } + + public static String format( + String project, String database, String collectionId, String fieldId) { + return newBuilder() + .setProject(project) + .setDatabase(database) + .setCollectionId(collectionId) + .setFieldId(fieldId) + .build() + .toString(); + } + + public static FieldName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "FieldName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("database"), + matchMap.get("collection_id"), + matchMap.get("field_id")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (FieldName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("database", database); + fieldMapBuilder.put("collectionId", collectionId); + fieldMapBuilder.put("fieldId", fieldId); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate( + "project", + project, + "database", + database, + "collection_id", + collectionId, + "field_id", + fieldId); + } + + /** Builder for FieldName. */ + public static class Builder { + + private String project; + private String database; + private String collectionId; + private String fieldId; + + public String getProject() { + return project; + } + + public String getDatabase() { + return database; + } + + public String getCollectionId() { + return collectionId; + } + + public String getFieldId() { + return fieldId; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setDatabase(String database) { + this.database = database; + return this; + } + + public Builder setCollectionId(String collectionId) { + this.collectionId = collectionId; + return this; + } + + public Builder setFieldId(String fieldId) { + this.fieldId = fieldId; + return this; + } + + private Builder() {} + + private Builder(FieldName fieldName) { + project = fieldName.project; + database = fieldName.database; + collectionId = fieldName.collectionId; + fieldId = fieldName.fieldId; + } + + public FieldName build() { + return new FieldName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof FieldName) { + FieldName that = (FieldName) o; + return (this.project.equals(that.project)) + && (this.database.equals(that.database)) + && (this.collectionId.equals(that.collectionId)) + && (this.fieldId.equals(that.fieldId)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= database.hashCode(); + h *= 1000003; + h ^= collectionId.hashCode(); + h *= 1000003; + h ^= fieldId.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOperationMetadata.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOperationMetadata.java new file mode 100644 index 000000000000..1f1237648846 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOperationMetadata.java @@ -0,0 +1,3483 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/operation.proto + +package com.google.firestore.admin.v1; + +/** + * + * + *
+ * Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from
+ * [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField].
+ * 
+ * + * Protobuf type {@code google.firestore.admin.v1.FieldOperationMetadata} + */ +public final class FieldOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.FieldOperationMetadata) + FieldOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use FieldOperationMetadata.newBuilder() to construct. + private FieldOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FieldOperationMetadata() { + field_ = ""; + indexConfigDeltas_ = java.util.Collections.emptyList(); + state_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FieldOperationMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + field_ = s; + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + indexConfigDeltas_ = + new java.util.ArrayList< + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta>(); + mutable_bitField0_ |= 0x00000008; + } + indexConfigDeltas_.add( + input.readMessage( + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta + .parser(), + extensionRegistry)); + break; + } + case 40: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 50: + { + com.google.firestore.admin.v1.Progress.Builder subBuilder = null; + if (progressDocuments_ != null) { + subBuilder = progressDocuments_.toBuilder(); + } + progressDocuments_ = + input.readMessage( + com.google.firestore.admin.v1.Progress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(progressDocuments_); + progressDocuments_ = subBuilder.buildPartial(); + } + + break; + } + case 58: + { + com.google.firestore.admin.v1.Progress.Builder subBuilder = null; + if (progressBytes_ != null) { + subBuilder = progressBytes_.toBuilder(); + } + progressBytes_ = + input.readMessage( + com.google.firestore.admin.v1.Progress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(progressBytes_); + progressBytes_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + indexConfigDeltas_ = java.util.Collections.unmodifiableList(indexConfigDeltas_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_FieldOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_FieldOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.FieldOperationMetadata.class, + com.google.firestore.admin.v1.FieldOperationMetadata.Builder.class); + } + + public interface IndexConfigDeltaOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Specifies how the index is changing.
+     * 
+ * + * + * .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType change_type = 1; + * + */ + int getChangeTypeValue(); + /** + * + * + *
+     * Specifies how the index is changing.
+     * 
+ * + * + * .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType change_type = 1; + * + */ + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType + getChangeType(); + + /** + * + * + *
+     * The index being changed.
+     * 
+ * + * .google.firestore.admin.v1.Index index = 2; + */ + boolean hasIndex(); + /** + * + * + *
+     * The index being changed.
+     * 
+ * + * .google.firestore.admin.v1.Index index = 2; + */ + com.google.firestore.admin.v1.Index getIndex(); + /** + * + * + *
+     * The index being changed.
+     * 
+ * + * .google.firestore.admin.v1.Index index = 2; + */ + com.google.firestore.admin.v1.IndexOrBuilder getIndexOrBuilder(); + } + /** + * + * + *
+   * Information about an index configuration change.
+   * 
+ * + * Protobuf type {@code google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta} + */ + public static final class IndexConfigDelta extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta) + IndexConfigDeltaOrBuilder { + private static final long serialVersionUID = 0L; + // Use IndexConfigDelta.newBuilder() to construct. + private IndexConfigDelta(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IndexConfigDelta() { + changeType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private IndexConfigDelta( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + changeType_ = rawValue; + break; + } + case 18: + { + com.google.firestore.admin.v1.Index.Builder subBuilder = null; + if (index_ != null) { + subBuilder = index_.toBuilder(); + } + index_ = + input.readMessage( + com.google.firestore.admin.v1.Index.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(index_); + index_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_FieldOperationMetadata_IndexConfigDelta_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_FieldOperationMetadata_IndexConfigDelta_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.class, + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder.class); + } + + /** + * + * + *
+     * Specifies how the index is changing.
+     * 
+ * + * Protobuf enum {@code + * google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType} + */ + public enum ChangeType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * The type of change is not specified or known.
+       * 
+ * + * CHANGE_TYPE_UNSPECIFIED = 0; + */ + CHANGE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+       * The single field index is being added.
+       * 
+ * + * ADD = 1; + */ + ADD(1), + /** + * + * + *
+       * The single field index is being removed.
+       * 
+ * + * REMOVE = 2; + */ + REMOVE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * The type of change is not specified or known.
+       * 
+ * + * CHANGE_TYPE_UNSPECIFIED = 0; + */ + public static final int CHANGE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * The single field index is being added.
+       * 
+ * + * ADD = 1; + */ + public static final int ADD_VALUE = 1; + /** + * + * + *
+       * The single field index is being removed.
+       * 
+ * + * REMOVE = 2; + */ + public static final int REMOVE_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static ChangeType valueOf(int value) { + return forNumber(value); + } + + public static ChangeType forNumber(int value) { + switch (value) { + case 0: + return CHANGE_TYPE_UNSPECIFIED; + case 1: + return ADD; + case 2: + return REMOVE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ChangeType findValueByNumber(int number) { + return ChangeType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ChangeType[] VALUES = values(); + + public static ChangeType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ChangeType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType) + } + + public static final int CHANGE_TYPE_FIELD_NUMBER = 1; + private int changeType_; + /** + * + * + *
+     * Specifies how the index is changing.
+     * 
+ * + * + * .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType change_type = 1; + * + */ + public int getChangeTypeValue() { + return changeType_; + } + /** + * + * + *
+     * Specifies how the index is changing.
+     * 
+ * + * + * .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType change_type = 1; + * + */ + public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType + getChangeType() { + @SuppressWarnings("deprecation") + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType result = + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType.valueOf( + changeType_); + return result == null + ? com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType + .UNRECOGNIZED + : result; + } + + public static final int INDEX_FIELD_NUMBER = 2; + private com.google.firestore.admin.v1.Index index_; + /** + * + * + *
+     * The index being changed.
+     * 
+ * + * .google.firestore.admin.v1.Index index = 2; + */ + public boolean hasIndex() { + return index_ != null; + } + /** + * + * + *
+     * The index being changed.
+     * 
+ * + * .google.firestore.admin.v1.Index index = 2; + */ + public com.google.firestore.admin.v1.Index getIndex() { + return index_ == null ? com.google.firestore.admin.v1.Index.getDefaultInstance() : index_; + } + /** + * + * + *
+     * The index being changed.
+     * 
+ * + * .google.firestore.admin.v1.Index index = 2; + */ + public com.google.firestore.admin.v1.IndexOrBuilder getIndexOrBuilder() { + return getIndex(); + } + + 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 (changeType_ + != com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType + .CHANGE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, changeType_); + } + if (index_ != null) { + output.writeMessage(2, getIndex()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (changeType_ + != com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType + .CHANGE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, changeType_); + } + if (index_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIndex()); + } + 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.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta)) { + return super.equals(obj); + } + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta other = + (com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta) obj; + + boolean result = true; + result = result && changeType_ == other.changeType_; + result = result && (hasIndex() == other.hasIndex()); + if (hasIndex()) { + result = result && getIndex().equals(other.getIndex()); + } + 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) + CHANGE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + changeType_; + if (hasIndex()) { + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta 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.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta 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.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta + 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.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta 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.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta 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; + } + /** + * + * + *
+     * Information about an index configuration change.
+     * 
+ * + * Protobuf type {@code google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta) + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDeltaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_FieldOperationMetadata_IndexConfigDelta_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_FieldOperationMetadata_IndexConfigDelta_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.class, + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder + .class); + } + + // Construct using + // com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + changeType_ = 0; + + if (indexBuilder_ == null) { + index_ = null; + } else { + index_ = null; + indexBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_FieldOperationMetadata_IndexConfigDelta_descriptor; + } + + @java.lang.Override + public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta + getDefaultInstanceForType() { + return com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta build() { + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta buildPartial() { + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta result = + new com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta(this); + result.changeType_ = changeType_; + if (indexBuilder_ == null) { + result.index_ = index_; + } else { + result.index_ = indexBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta) { + return mergeFrom( + (com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta other) { + if (other + == com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta + .getDefaultInstance()) return this; + if (other.changeType_ != 0) { + setChangeTypeValue(other.getChangeTypeValue()); + } + if (other.hasIndex()) { + mergeIndex(other.getIndex()); + } + 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.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int changeType_ = 0; + /** + * + * + *
+       * Specifies how the index is changing.
+       * 
+ * + * + * .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType change_type = 1; + * + */ + public int getChangeTypeValue() { + return changeType_; + } + /** + * + * + *
+       * Specifies how the index is changing.
+       * 
+ * + * + * .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType change_type = 1; + * + */ + public Builder setChangeTypeValue(int value) { + changeType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Specifies how the index is changing.
+       * 
+ * + * + * .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType change_type = 1; + * + */ + public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType + getChangeType() { + @SuppressWarnings("deprecation") + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType result = + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType + .valueOf(changeType_); + return result == null + ? com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType + .UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Specifies how the index is changing.
+       * 
+ * + * + * .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType change_type = 1; + * + */ + public Builder setChangeType( + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType value) { + if (value == null) { + throw new NullPointerException(); + } + + changeType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Specifies how the index is changing.
+       * 
+ * + * + * .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType change_type = 1; + * + */ + public Builder clearChangeType() { + + changeType_ = 0; + onChanged(); + return this; + } + + private com.google.firestore.admin.v1.Index index_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Index, + com.google.firestore.admin.v1.Index.Builder, + com.google.firestore.admin.v1.IndexOrBuilder> + indexBuilder_; + /** + * + * + *
+       * The index being changed.
+       * 
+ * + * .google.firestore.admin.v1.Index index = 2; + */ + public boolean hasIndex() { + return indexBuilder_ != null || index_ != null; + } + /** + * + * + *
+       * The index being changed.
+       * 
+ * + * .google.firestore.admin.v1.Index index = 2; + */ + public com.google.firestore.admin.v1.Index getIndex() { + if (indexBuilder_ == null) { + return index_ == null ? com.google.firestore.admin.v1.Index.getDefaultInstance() : index_; + } else { + return indexBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The index being changed.
+       * 
+ * + * .google.firestore.admin.v1.Index index = 2; + */ + public Builder setIndex(com.google.firestore.admin.v1.Index value) { + if (indexBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + index_ = value; + onChanged(); + } else { + indexBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * The index being changed.
+       * 
+ * + * .google.firestore.admin.v1.Index index = 2; + */ + public Builder setIndex(com.google.firestore.admin.v1.Index.Builder builderForValue) { + if (indexBuilder_ == null) { + index_ = builderForValue.build(); + onChanged(); + } else { + indexBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * The index being changed.
+       * 
+ * + * .google.firestore.admin.v1.Index index = 2; + */ + public Builder mergeIndex(com.google.firestore.admin.v1.Index value) { + if (indexBuilder_ == null) { + if (index_ != null) { + index_ = + com.google.firestore.admin.v1.Index.newBuilder(index_) + .mergeFrom(value) + .buildPartial(); + } else { + index_ = value; + } + onChanged(); + } else { + indexBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * The index being changed.
+       * 
+ * + * .google.firestore.admin.v1.Index index = 2; + */ + public Builder clearIndex() { + if (indexBuilder_ == null) { + index_ = null; + onChanged(); + } else { + index_ = null; + indexBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * The index being changed.
+       * 
+ * + * .google.firestore.admin.v1.Index index = 2; + */ + public com.google.firestore.admin.v1.Index.Builder getIndexBuilder() { + + onChanged(); + return getIndexFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The index being changed.
+       * 
+ * + * .google.firestore.admin.v1.Index index = 2; + */ + public com.google.firestore.admin.v1.IndexOrBuilder getIndexOrBuilder() { + if (indexBuilder_ != null) { + return indexBuilder_.getMessageOrBuilder(); + } else { + return index_ == null ? com.google.firestore.admin.v1.Index.getDefaultInstance() : index_; + } + } + /** + * + * + *
+       * The index being changed.
+       * 
+ * + * .google.firestore.admin.v1.Index index = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Index, + com.google.firestore.admin.v1.Index.Builder, + com.google.firestore.admin.v1.IndexOrBuilder> + getIndexFieldBuilder() { + if (indexBuilder_ == null) { + indexBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Index, + com.google.firestore.admin.v1.Index.Builder, + com.google.firestore.admin.v1.IndexOrBuilder>( + getIndex(), getParentForChildren(), isClean()); + index_ = null; + } + return indexBuilder_; + } + + @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.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta) + } + + // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta) + private static final com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta(); + } + + public static com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IndexConfigDelta parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IndexConfigDelta(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * The time this operation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public boolean hasStartTime() { + return startTime_ != null; + } + /** + * + * + *
+   * The time this operation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * The time this operation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * The time this operation completed. Will be unset if operation still in
+   * progress.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public boolean hasEndTime() { + return endTime_ != null; + } + /** + * + * + *
+   * The time this operation completed. Will be unset if operation still in
+   * progress.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+   * The time this operation completed. Will be unset if operation still in
+   * progress.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + public static final int FIELD_FIELD_NUMBER = 3; + private volatile java.lang.Object field_; + /** + * + * + *
+   * The field resource that this operation is acting on. For example:
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
+   * 
+ * + * string field = 3; + */ + public java.lang.String getField() { + java.lang.Object ref = field_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + field_ = s; + return s; + } + } + /** + * + * + *
+   * The field resource that this operation is acting on. For example:
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
+   * 
+ * + * string field = 3; + */ + public com.google.protobuf.ByteString getFieldBytes() { + java.lang.Object ref = field_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + field_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INDEX_CONFIG_DELTAS_FIELD_NUMBER = 4; + private java.util.List + indexConfigDeltas_; + /** + * + * + *
+   * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
+   * operation.
+   * 
+ * + * + * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4; + * + */ + public java.util.List + getIndexConfigDeltasList() { + return indexConfigDeltas_; + } + /** + * + * + *
+   * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
+   * operation.
+   * 
+ * + * + * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4; + * + */ + public java.util.List< + ? extends com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDeltaOrBuilder> + getIndexConfigDeltasOrBuilderList() { + return indexConfigDeltas_; + } + /** + * + * + *
+   * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
+   * operation.
+   * 
+ * + * + * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4; + * + */ + public int getIndexConfigDeltasCount() { + return indexConfigDeltas_.size(); + } + /** + * + * + *
+   * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
+   * operation.
+   * 
+ * + * + * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4; + * + */ + public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta getIndexConfigDeltas( + int index) { + return indexConfigDeltas_.get(index); + } + /** + * + * + *
+   * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
+   * operation.
+   * 
+ * + * + * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4; + * + */ + public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDeltaOrBuilder + getIndexConfigDeltasOrBuilder(int index) { + return indexConfigDeltas_.get(index); + } + + public static final int STATE_FIELD_NUMBER = 5; + private int state_; + /** + * + * + *
+   * The state of the operation.
+   * 
+ * + * .google.firestore.admin.v1.OperationState state = 5; + */ + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * The state of the operation.
+   * 
+ * + * .google.firestore.admin.v1.OperationState state = 5; + */ + public com.google.firestore.admin.v1.OperationState getState() { + @SuppressWarnings("deprecation") + com.google.firestore.admin.v1.OperationState result = + com.google.firestore.admin.v1.OperationState.valueOf(state_); + return result == null ? com.google.firestore.admin.v1.OperationState.UNRECOGNIZED : result; + } + + public static final int PROGRESS_DOCUMENTS_FIELD_NUMBER = 6; + private com.google.firestore.admin.v1.Progress progressDocuments_; + /** + * + * + *
+   * The progress, in documents, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 6; + */ + public boolean hasProgressDocuments() { + return progressDocuments_ != null; + } + /** + * + * + *
+   * The progress, in documents, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 6; + */ + public com.google.firestore.admin.v1.Progress getProgressDocuments() { + return progressDocuments_ == null + ? com.google.firestore.admin.v1.Progress.getDefaultInstance() + : progressDocuments_; + } + /** + * + * + *
+   * The progress, in documents, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 6; + */ + public com.google.firestore.admin.v1.ProgressOrBuilder getProgressDocumentsOrBuilder() { + return getProgressDocuments(); + } + + public static final int PROGRESS_BYTES_FIELD_NUMBER = 7; + private com.google.firestore.admin.v1.Progress progressBytes_; + /** + * + * + *
+   * The progress, in bytes, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 7; + */ + public boolean hasProgressBytes() { + return progressBytes_ != null; + } + /** + * + * + *
+   * The progress, in bytes, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 7; + */ + public com.google.firestore.admin.v1.Progress getProgressBytes() { + return progressBytes_ == null + ? com.google.firestore.admin.v1.Progress.getDefaultInstance() + : progressBytes_; + } + /** + * + * + *
+   * The progress, in bytes, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 7; + */ + public com.google.firestore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder() { + return getProgressBytes(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (startTime_ != null) { + output.writeMessage(1, getStartTime()); + } + if (endTime_ != null) { + output.writeMessage(2, getEndTime()); + } + if (!getFieldBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, field_); + } + for (int i = 0; i < indexConfigDeltas_.size(); i++) { + output.writeMessage(4, indexConfigDeltas_.get(i)); + } + if (state_ + != com.google.firestore.admin.v1.OperationState.OPERATION_STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(5, state_); + } + if (progressDocuments_ != null) { + output.writeMessage(6, getProgressDocuments()); + } + if (progressBytes_ != null) { + output.writeMessage(7, getProgressBytes()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (!getFieldBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, field_); + } + for (int i = 0; i < indexConfigDeltas_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, indexConfigDeltas_.get(i)); + } + if (state_ + != com.google.firestore.admin.v1.OperationState.OPERATION_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + } + if (progressDocuments_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getProgressDocuments()); + } + if (progressBytes_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getProgressBytes()); + } + 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.firestore.admin.v1.FieldOperationMetadata)) { + return super.equals(obj); + } + com.google.firestore.admin.v1.FieldOperationMetadata other = + (com.google.firestore.admin.v1.FieldOperationMetadata) obj; + + boolean result = true; + result = result && (hasStartTime() == other.hasStartTime()); + if (hasStartTime()) { + result = result && getStartTime().equals(other.getStartTime()); + } + result = result && (hasEndTime() == other.hasEndTime()); + if (hasEndTime()) { + result = result && getEndTime().equals(other.getEndTime()); + } + result = result && getField().equals(other.getField()); + result = result && getIndexConfigDeltasList().equals(other.getIndexConfigDeltasList()); + result = result && state_ == other.state_; + result = result && (hasProgressDocuments() == other.hasProgressDocuments()); + if (hasProgressDocuments()) { + result = result && getProgressDocuments().equals(other.getProgressDocuments()); + } + result = result && (hasProgressBytes() == other.hasProgressBytes()); + if (hasProgressBytes()) { + result = result && getProgressBytes().equals(other.getProgressBytes()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + FIELD_FIELD_NUMBER; + hash = (53 * hash) + getField().hashCode(); + if (getIndexConfigDeltasCount() > 0) { + hash = (37 * hash) + INDEX_CONFIG_DELTAS_FIELD_NUMBER; + hash = (53 * hash) + getIndexConfigDeltasList().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasProgressDocuments()) { + hash = (37 * hash) + PROGRESS_DOCUMENTS_FIELD_NUMBER; + hash = (53 * hash) + getProgressDocuments().hashCode(); + } + if (hasProgressBytes()) { + hash = (37 * hash) + PROGRESS_BYTES_FIELD_NUMBER; + hash = (53 * hash) + getProgressBytes().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.firestore.admin.v1.FieldOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.FieldOperationMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.FieldOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.FieldOperationMetadata 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.firestore.admin.v1.FieldOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.FieldOperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.FieldOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.FieldOperationMetadata 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.firestore.admin.v1.FieldOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.FieldOperationMetadata 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.firestore.admin.v1.FieldOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.FieldOperationMetadata 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.firestore.admin.v1.FieldOperationMetadata 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; + } + /** + * + * + *
+   * Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from
+   * [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField].
+   * 
+ * + * Protobuf type {@code google.firestore.admin.v1.FieldOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.firestore.admin.v1.FieldOperationMetadata) + com.google.firestore.admin.v1.FieldOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_FieldOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_FieldOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.FieldOperationMetadata.class, + com.google.firestore.admin.v1.FieldOperationMetadata.Builder.class); + } + + // Construct using com.google.firestore.admin.v1.FieldOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getIndexConfigDeltasFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + field_ = ""; + + if (indexConfigDeltasBuilder_ == null) { + indexConfigDeltas_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + indexConfigDeltasBuilder_.clear(); + } + state_ = 0; + + if (progressDocumentsBuilder_ == null) { + progressDocuments_ = null; + } else { + progressDocuments_ = null; + progressDocumentsBuilder_ = null; + } + if (progressBytesBuilder_ == null) { + progressBytes_ = null; + } else { + progressBytes_ = null; + progressBytesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_FieldOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.firestore.admin.v1.FieldOperationMetadata getDefaultInstanceForType() { + return com.google.firestore.admin.v1.FieldOperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.firestore.admin.v1.FieldOperationMetadata build() { + com.google.firestore.admin.v1.FieldOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.firestore.admin.v1.FieldOperationMetadata buildPartial() { + com.google.firestore.admin.v1.FieldOperationMetadata result = + new com.google.firestore.admin.v1.FieldOperationMetadata(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } + result.field_ = field_; + if (indexConfigDeltasBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + indexConfigDeltas_ = java.util.Collections.unmodifiableList(indexConfigDeltas_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.indexConfigDeltas_ = indexConfigDeltas_; + } else { + result.indexConfigDeltas_ = indexConfigDeltasBuilder_.build(); + } + result.state_ = state_; + if (progressDocumentsBuilder_ == null) { + result.progressDocuments_ = progressDocuments_; + } else { + result.progressDocuments_ = progressDocumentsBuilder_.build(); + } + if (progressBytesBuilder_ == null) { + result.progressBytes_ = progressBytes_; + } else { + result.progressBytes_ = progressBytesBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.firestore.admin.v1.FieldOperationMetadata) { + return mergeFrom((com.google.firestore.admin.v1.FieldOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.firestore.admin.v1.FieldOperationMetadata other) { + if (other == com.google.firestore.admin.v1.FieldOperationMetadata.getDefaultInstance()) + return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (!other.getField().isEmpty()) { + field_ = other.field_; + onChanged(); + } + if (indexConfigDeltasBuilder_ == null) { + if (!other.indexConfigDeltas_.isEmpty()) { + if (indexConfigDeltas_.isEmpty()) { + indexConfigDeltas_ = other.indexConfigDeltas_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureIndexConfigDeltasIsMutable(); + indexConfigDeltas_.addAll(other.indexConfigDeltas_); + } + onChanged(); + } + } else { + if (!other.indexConfigDeltas_.isEmpty()) { + if (indexConfigDeltasBuilder_.isEmpty()) { + indexConfigDeltasBuilder_.dispose(); + indexConfigDeltasBuilder_ = null; + indexConfigDeltas_ = other.indexConfigDeltas_; + bitField0_ = (bitField0_ & ~0x00000008); + indexConfigDeltasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getIndexConfigDeltasFieldBuilder() + : null; + } else { + indexConfigDeltasBuilder_.addAllMessages(other.indexConfigDeltas_); + } + } + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasProgressDocuments()) { + mergeProgressDocuments(other.getProgressDocuments()); + } + if (other.hasProgressBytes()) { + mergeProgressBytes(other.getProgressBytes()); + } + 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.firestore.admin.v1.FieldOperationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.firestore.admin.v1.FieldOperationMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp startTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private java.lang.Object field_ = ""; + /** + * + * + *
+     * The field resource that this operation is acting on. For example:
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
+     * 
+ * + * string field = 3; + */ + public java.lang.String getField() { + java.lang.Object ref = field_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + field_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The field resource that this operation is acting on. For example:
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
+     * 
+ * + * string field = 3; + */ + public com.google.protobuf.ByteString getFieldBytes() { + java.lang.Object ref = field_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + field_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The field resource that this operation is acting on. For example:
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
+     * 
+ * + * string field = 3; + */ + public Builder setField(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + field_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The field resource that this operation is acting on. For example:
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
+     * 
+ * + * string field = 3; + */ + public Builder clearField() { + + field_ = getDefaultInstance().getField(); + onChanged(); + return this; + } + /** + * + * + *
+     * The field resource that this operation is acting on. For example:
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
+     * 
+ * + * string field = 3; + */ + public Builder setFieldBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + field_ = value; + onChanged(); + return this; + } + + private java.util.List + indexConfigDeltas_ = java.util.Collections.emptyList(); + + private void ensureIndexConfigDeltasIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + indexConfigDeltas_ = + new java.util.ArrayList< + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta>( + indexConfigDeltas_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta, + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder, + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDeltaOrBuilder> + indexConfigDeltasBuilder_; + + /** + * + * + *
+     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
+     * operation.
+     * 
+ * + * + * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4; + * + */ + public java.util.List + getIndexConfigDeltasList() { + if (indexConfigDeltasBuilder_ == null) { + return java.util.Collections.unmodifiableList(indexConfigDeltas_); + } else { + return indexConfigDeltasBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
+     * operation.
+     * 
+ * + * + * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4; + * + */ + public int getIndexConfigDeltasCount() { + if (indexConfigDeltasBuilder_ == null) { + return indexConfigDeltas_.size(); + } else { + return indexConfigDeltasBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
+     * operation.
+     * 
+ * + * + * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4; + * + */ + public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta + getIndexConfigDeltas(int index) { + if (indexConfigDeltasBuilder_ == null) { + return indexConfigDeltas_.get(index); + } else { + return indexConfigDeltasBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
+     * operation.
+     * 
+ * + * + * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4; + * + */ + public Builder setIndexConfigDeltas( + int index, com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta value) { + if (indexConfigDeltasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIndexConfigDeltasIsMutable(); + indexConfigDeltas_.set(index, value); + onChanged(); + } else { + indexConfigDeltasBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
+     * operation.
+     * 
+ * + * + * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4; + * + */ + public Builder setIndexConfigDeltas( + int index, + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder + builderForValue) { + if (indexConfigDeltasBuilder_ == null) { + ensureIndexConfigDeltasIsMutable(); + indexConfigDeltas_.set(index, builderForValue.build()); + onChanged(); + } else { + indexConfigDeltasBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
+     * operation.
+     * 
+ * + * + * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4; + * + */ + public Builder addIndexConfigDeltas( + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta value) { + if (indexConfigDeltasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIndexConfigDeltasIsMutable(); + indexConfigDeltas_.add(value); + onChanged(); + } else { + indexConfigDeltasBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
+     * operation.
+     * 
+ * + * + * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4; + * + */ + public Builder addIndexConfigDeltas( + int index, com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta value) { + if (indexConfigDeltasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIndexConfigDeltasIsMutable(); + indexConfigDeltas_.add(index, value); + onChanged(); + } else { + indexConfigDeltasBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
+     * operation.
+     * 
+ * + * + * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4; + * + */ + public Builder addIndexConfigDeltas( + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder + builderForValue) { + if (indexConfigDeltasBuilder_ == null) { + ensureIndexConfigDeltasIsMutable(); + indexConfigDeltas_.add(builderForValue.build()); + onChanged(); + } else { + indexConfigDeltasBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
+     * operation.
+     * 
+ * + * + * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4; + * + */ + public Builder addIndexConfigDeltas( + int index, + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder + builderForValue) { + if (indexConfigDeltasBuilder_ == null) { + ensureIndexConfigDeltasIsMutable(); + indexConfigDeltas_.add(index, builderForValue.build()); + onChanged(); + } else { + indexConfigDeltasBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
+     * operation.
+     * 
+ * + * + * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4; + * + */ + public Builder addAllIndexConfigDeltas( + java.lang.Iterable< + ? extends com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta> + values) { + if (indexConfigDeltasBuilder_ == null) { + ensureIndexConfigDeltasIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, indexConfigDeltas_); + onChanged(); + } else { + indexConfigDeltasBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
+     * operation.
+     * 
+ * + * + * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4; + * + */ + public Builder clearIndexConfigDeltas() { + if (indexConfigDeltasBuilder_ == null) { + indexConfigDeltas_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + indexConfigDeltasBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
+     * operation.
+     * 
+ * + * + * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4; + * + */ + public Builder removeIndexConfigDeltas(int index) { + if (indexConfigDeltasBuilder_ == null) { + ensureIndexConfigDeltasIsMutable(); + indexConfigDeltas_.remove(index); + onChanged(); + } else { + indexConfigDeltasBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
+     * operation.
+     * 
+ * + * + * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4; + * + */ + public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder + getIndexConfigDeltasBuilder(int index) { + return getIndexConfigDeltasFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
+     * operation.
+     * 
+ * + * + * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4; + * + */ + public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDeltaOrBuilder + getIndexConfigDeltasOrBuilder(int index) { + if (indexConfigDeltasBuilder_ == null) { + return indexConfigDeltas_.get(index); + } else { + return indexConfigDeltasBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
+     * operation.
+     * 
+ * + * + * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4; + * + */ + public java.util.List< + ? extends + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDeltaOrBuilder> + getIndexConfigDeltasOrBuilderList() { + if (indexConfigDeltasBuilder_ != null) { + return indexConfigDeltasBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(indexConfigDeltas_); + } + } + /** + * + * + *
+     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
+     * operation.
+     * 
+ * + * + * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4; + * + */ + public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder + addIndexConfigDeltasBuilder() { + return getIndexConfigDeltasFieldBuilder() + .addBuilder( + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta + .getDefaultInstance()); + } + /** + * + * + *
+     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
+     * operation.
+     * 
+ * + * + * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4; + * + */ + public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder + addIndexConfigDeltasBuilder(int index) { + return getIndexConfigDeltasFieldBuilder() + .addBuilder( + index, + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta + .getDefaultInstance()); + } + /** + * + * + *
+     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
+     * operation.
+     * 
+ * + * + * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4; + * + */ + public java.util.List< + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder> + getIndexConfigDeltasBuilderList() { + return getIndexConfigDeltasFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta, + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder, + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDeltaOrBuilder> + getIndexConfigDeltasFieldBuilder() { + if (indexConfigDeltasBuilder_ == null) { + indexConfigDeltasBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta, + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder, + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDeltaOrBuilder>( + indexConfigDeltas_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + indexConfigDeltas_ = null; + } + return indexConfigDeltasBuilder_; + } + + private int state_ = 0; + /** + * + * + *
+     * The state of the operation.
+     * 
+ * + * .google.firestore.admin.v1.OperationState state = 5; + */ + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * The state of the operation.
+     * 
+ * + * .google.firestore.admin.v1.OperationState state = 5; + */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The state of the operation.
+     * 
+ * + * .google.firestore.admin.v1.OperationState state = 5; + */ + public com.google.firestore.admin.v1.OperationState getState() { + @SuppressWarnings("deprecation") + com.google.firestore.admin.v1.OperationState result = + com.google.firestore.admin.v1.OperationState.valueOf(state_); + return result == null ? com.google.firestore.admin.v1.OperationState.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The state of the operation.
+     * 
+ * + * .google.firestore.admin.v1.OperationState state = 5; + */ + public Builder setState(com.google.firestore.admin.v1.OperationState value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The state of the operation.
+     * 
+ * + * .google.firestore.admin.v1.OperationState state = 5; + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private com.google.firestore.admin.v1.Progress progressDocuments_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Progress, + com.google.firestore.admin.v1.Progress.Builder, + com.google.firestore.admin.v1.ProgressOrBuilder> + progressDocumentsBuilder_; + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 6; + */ + public boolean hasProgressDocuments() { + return progressDocumentsBuilder_ != null || progressDocuments_ != null; + } + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 6; + */ + public com.google.firestore.admin.v1.Progress getProgressDocuments() { + if (progressDocumentsBuilder_ == null) { + return progressDocuments_ == null + ? com.google.firestore.admin.v1.Progress.getDefaultInstance() + : progressDocuments_; + } else { + return progressDocumentsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 6; + */ + public Builder setProgressDocuments(com.google.firestore.admin.v1.Progress value) { + if (progressDocumentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + progressDocuments_ = value; + onChanged(); + } else { + progressDocumentsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 6; + */ + public Builder setProgressDocuments( + com.google.firestore.admin.v1.Progress.Builder builderForValue) { + if (progressDocumentsBuilder_ == null) { + progressDocuments_ = builderForValue.build(); + onChanged(); + } else { + progressDocumentsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 6; + */ + public Builder mergeProgressDocuments(com.google.firestore.admin.v1.Progress value) { + if (progressDocumentsBuilder_ == null) { + if (progressDocuments_ != null) { + progressDocuments_ = + com.google.firestore.admin.v1.Progress.newBuilder(progressDocuments_) + .mergeFrom(value) + .buildPartial(); + } else { + progressDocuments_ = value; + } + onChanged(); + } else { + progressDocumentsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 6; + */ + public Builder clearProgressDocuments() { + if (progressDocumentsBuilder_ == null) { + progressDocuments_ = null; + onChanged(); + } else { + progressDocuments_ = null; + progressDocumentsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 6; + */ + public com.google.firestore.admin.v1.Progress.Builder getProgressDocumentsBuilder() { + + onChanged(); + return getProgressDocumentsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 6; + */ + public com.google.firestore.admin.v1.ProgressOrBuilder getProgressDocumentsOrBuilder() { + if (progressDocumentsBuilder_ != null) { + return progressDocumentsBuilder_.getMessageOrBuilder(); + } else { + return progressDocuments_ == null + ? com.google.firestore.admin.v1.Progress.getDefaultInstance() + : progressDocuments_; + } + } + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Progress, + com.google.firestore.admin.v1.Progress.Builder, + com.google.firestore.admin.v1.ProgressOrBuilder> + getProgressDocumentsFieldBuilder() { + if (progressDocumentsBuilder_ == null) { + progressDocumentsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Progress, + com.google.firestore.admin.v1.Progress.Builder, + com.google.firestore.admin.v1.ProgressOrBuilder>( + getProgressDocuments(), getParentForChildren(), isClean()); + progressDocuments_ = null; + } + return progressDocumentsBuilder_; + } + + private com.google.firestore.admin.v1.Progress progressBytes_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Progress, + com.google.firestore.admin.v1.Progress.Builder, + com.google.firestore.admin.v1.ProgressOrBuilder> + progressBytesBuilder_; + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 7; + */ + public boolean hasProgressBytes() { + return progressBytesBuilder_ != null || progressBytes_ != null; + } + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 7; + */ + public com.google.firestore.admin.v1.Progress getProgressBytes() { + if (progressBytesBuilder_ == null) { + return progressBytes_ == null + ? com.google.firestore.admin.v1.Progress.getDefaultInstance() + : progressBytes_; + } else { + return progressBytesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 7; + */ + public Builder setProgressBytes(com.google.firestore.admin.v1.Progress value) { + if (progressBytesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + progressBytes_ = value; + onChanged(); + } else { + progressBytesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 7; + */ + public Builder setProgressBytes( + com.google.firestore.admin.v1.Progress.Builder builderForValue) { + if (progressBytesBuilder_ == null) { + progressBytes_ = builderForValue.build(); + onChanged(); + } else { + progressBytesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 7; + */ + public Builder mergeProgressBytes(com.google.firestore.admin.v1.Progress value) { + if (progressBytesBuilder_ == null) { + if (progressBytes_ != null) { + progressBytes_ = + com.google.firestore.admin.v1.Progress.newBuilder(progressBytes_) + .mergeFrom(value) + .buildPartial(); + } else { + progressBytes_ = value; + } + onChanged(); + } else { + progressBytesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 7; + */ + public Builder clearProgressBytes() { + if (progressBytesBuilder_ == null) { + progressBytes_ = null; + onChanged(); + } else { + progressBytes_ = null; + progressBytesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 7; + */ + public com.google.firestore.admin.v1.Progress.Builder getProgressBytesBuilder() { + + onChanged(); + return getProgressBytesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 7; + */ + public com.google.firestore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder() { + if (progressBytesBuilder_ != null) { + return progressBytesBuilder_.getMessageOrBuilder(); + } else { + return progressBytes_ == null + ? com.google.firestore.admin.v1.Progress.getDefaultInstance() + : progressBytes_; + } + } + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Progress, + com.google.firestore.admin.v1.Progress.Builder, + com.google.firestore.admin.v1.ProgressOrBuilder> + getProgressBytesFieldBuilder() { + if (progressBytesBuilder_ == null) { + progressBytesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Progress, + com.google.firestore.admin.v1.Progress.Builder, + com.google.firestore.admin.v1.ProgressOrBuilder>( + getProgressBytes(), getParentForChildren(), isClean()); + progressBytes_ = null; + } + return progressBytesBuilder_; + } + + @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.firestore.admin.v1.FieldOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.FieldOperationMetadata) + private static final com.google.firestore.admin.v1.FieldOperationMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.firestore.admin.v1.FieldOperationMetadata(); + } + + public static com.google.firestore.admin.v1.FieldOperationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FieldOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FieldOperationMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.firestore.admin.v1.FieldOperationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOperationMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..3221c865649e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOperationMetadataOrBuilder.java @@ -0,0 +1,252 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/operation.proto + +package com.google.firestore.admin.v1; + +public interface FieldOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.firestore.admin.v1.FieldOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The time this operation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + boolean hasStartTime(); + /** + * + * + *
+   * The time this operation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * The time this operation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * The time this operation completed. Will be unset if operation still in
+   * progress.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + boolean hasEndTime(); + /** + * + * + *
+   * The time this operation completed. Will be unset if operation still in
+   * progress.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * The time this operation completed. Will be unset if operation still in
+   * progress.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
+   * The field resource that this operation is acting on. For example:
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
+   * 
+ * + * string field = 3; + */ + java.lang.String getField(); + /** + * + * + *
+   * The field resource that this operation is acting on. For example:
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
+   * 
+ * + * string field = 3; + */ + com.google.protobuf.ByteString getFieldBytes(); + + /** + * + * + *
+   * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
+   * operation.
+   * 
+ * + * + * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4; + * + */ + java.util.List + getIndexConfigDeltasList(); + /** + * + * + *
+   * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
+   * operation.
+   * 
+ * + * + * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4; + * + */ + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta getIndexConfigDeltas( + int index); + /** + * + * + *
+   * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
+   * operation.
+   * 
+ * + * + * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4; + * + */ + int getIndexConfigDeltasCount(); + /** + * + * + *
+   * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
+   * operation.
+   * 
+ * + * + * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4; + * + */ + java.util.List< + ? extends com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDeltaOrBuilder> + getIndexConfigDeltasOrBuilderList(); + /** + * + * + *
+   * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
+   * operation.
+   * 
+ * + * + * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4; + * + */ + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDeltaOrBuilder + getIndexConfigDeltasOrBuilder(int index); + + /** + * + * + *
+   * The state of the operation.
+   * 
+ * + * .google.firestore.admin.v1.OperationState state = 5; + */ + int getStateValue(); + /** + * + * + *
+   * The state of the operation.
+   * 
+ * + * .google.firestore.admin.v1.OperationState state = 5; + */ + com.google.firestore.admin.v1.OperationState getState(); + + /** + * + * + *
+   * The progress, in documents, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 6; + */ + boolean hasProgressDocuments(); + /** + * + * + *
+   * The progress, in documents, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 6; + */ + com.google.firestore.admin.v1.Progress getProgressDocuments(); + /** + * + * + *
+   * The progress, in documents, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 6; + */ + com.google.firestore.admin.v1.ProgressOrBuilder getProgressDocumentsOrBuilder(); + + /** + * + * + *
+   * The progress, in bytes, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 7; + */ + boolean hasProgressBytes(); + /** + * + * + *
+   * The progress, in bytes, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 7; + */ + com.google.firestore.admin.v1.Progress getProgressBytes(); + /** + * + * + *
+   * The progress, in bytes, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 7; + */ + com.google.firestore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOrBuilder.java new file mode 100644 index 000000000000..117cfa5a0db1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOrBuilder.java @@ -0,0 +1,113 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/field.proto + +package com.google.firestore.admin.v1; + +public interface FieldOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.firestore.admin.v1.Field) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A field name of the form
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
+   * A field path may be a simple field name, e.g. `address` or a path to fields
+   * within map_value , e.g. `address.city`,
+   * or a special field path. The only valid special field is `*`, which
+   * represents any field.
+   * Field paths may be quoted using ` (backtick). The only character that needs
+   * to be escaped within a quoted field path is the backtick character itself,
+   * escaped using a backslash. Special characters in field paths that
+   * must be quoted include: `*`, `.`,
+   * ``` (backtick), `[`, `]`, as well as any ascii symbolic characters.
+   * Examples:
+   * (Note: Comments here are written in markdown syntax, so there is an
+   *  additional layer of backticks to represent a code block)
+   * `\`address.city\`` represents a field named `address.city`, not the map key
+   * `city` in the field `address`.
+   * `\`*\`` represents a field named `*`, not any field.
+   * A special `Field` contains the default indexing settings for all fields.
+   * This field's resource name is:
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`
+   * Indexes defined on this `Field` will be applied to all fields which do not
+   * have their own `Field` index configuration.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * A field name of the form
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
+   * A field path may be a simple field name, e.g. `address` or a path to fields
+   * within map_value , e.g. `address.city`,
+   * or a special field path. The only valid special field is `*`, which
+   * represents any field.
+   * Field paths may be quoted using ` (backtick). The only character that needs
+   * to be escaped within a quoted field path is the backtick character itself,
+   * escaped using a backslash. Special characters in field paths that
+   * must be quoted include: `*`, `.`,
+   * ``` (backtick), `[`, `]`, as well as any ascii symbolic characters.
+   * Examples:
+   * (Note: Comments here are written in markdown syntax, so there is an
+   *  additional layer of backticks to represent a code block)
+   * `\`address.city\`` represents a field named `address.city`, not the map key
+   * `city` in the field `address`.
+   * `\`*\`` represents a field named `*`, not any field.
+   * A special `Field` contains the default indexing settings for all fields.
+   * This field's resource name is:
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`
+   * Indexes defined on this `Field` will be applied to all fields which do not
+   * have their own `Field` index configuration.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The index configuration for this field. If unset, field indexing will
+   * revert to the configuration defined by the `ancestor_field`. To
+   * explicitly remove all indexes for this field, specify an index config
+   * with an empty list of indexes.
+   * 
+ * + * .google.firestore.admin.v1.Field.IndexConfig index_config = 2; + */ + boolean hasIndexConfig(); + /** + * + * + *
+   * The index configuration for this field. If unset, field indexing will
+   * revert to the configuration defined by the `ancestor_field`. To
+   * explicitly remove all indexes for this field, specify an index config
+   * with an empty list of indexes.
+   * 
+ * + * .google.firestore.admin.v1.Field.IndexConfig index_config = 2; + */ + com.google.firestore.admin.v1.Field.IndexConfig getIndexConfig(); + /** + * + * + *
+   * The index configuration for this field. If unset, field indexing will
+   * revert to the configuration defined by the `ancestor_field`. To
+   * explicitly remove all indexes for this field, specify an index config
+   * with an empty list of indexes.
+   * 
+ * + * .google.firestore.admin.v1.Field.IndexConfig index_config = 2; + */ + com.google.firestore.admin.v1.Field.IndexConfigOrBuilder getIndexConfigOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldProto.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldProto.java new file mode 100644 index 000000000000..bb1d6c386ef6 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldProto.java @@ -0,0 +1,84 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/field.proto + +package com.google.firestore.admin.v1; + +public final class FieldProto { + private FieldProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_firestore_admin_v1_Field_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_firestore_admin_v1_Field_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_firestore_admin_v1_Field_IndexConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_firestore_admin_v1_Field_IndexConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n%google/firestore/admin/v1/field.proto\022" + + "\031google.firestore.admin.v1\032%google/fires" + + "tore/admin/v1/index.proto\032\034google/api/an" + + "notations.proto\"\345\001\n\005Field\022\014\n\004name\030\001 \001(\t\022" + + "B\n\014index_config\030\002 \001(\0132,.google.firestore" + + ".admin.v1.Field.IndexConfig\032\211\001\n\013IndexCon" + + "fig\0221\n\007indexes\030\001 \003(\0132 .google.firestore." + + "admin.v1.Index\022\034\n\024uses_ancestor_config\030\002" + + " \001(\010\022\026\n\016ancestor_field\030\003 \001(\t\022\021\n\trevertin" + + "g\030\004 \001(\010B\270\001\n\035com.google.firestore.admin.v" + + "1B\nFieldProtoP\001Z>google.golang.org/genpr" + + "oto/googleapis/firestore/admin/v1;admin\242" + + "\002\004GCFS\252\002\037Google.Cloud.Firestore.Admin.V1" + + "\312\002\037Google\\Cloud\\Firestore\\Admin\\V1b\006prot" + + "o3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.firestore.admin.v1.IndexProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }, + assigner); + internal_static_google_firestore_admin_v1_Field_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_firestore_admin_v1_Field_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_firestore_admin_v1_Field_descriptor, + new java.lang.String[] { + "Name", "IndexConfig", + }); + internal_static_google_firestore_admin_v1_Field_IndexConfig_descriptor = + internal_static_google_firestore_admin_v1_Field_descriptor.getNestedTypes().get(0); + internal_static_google_firestore_admin_v1_Field_IndexConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_firestore_admin_v1_Field_IndexConfig_descriptor, + new java.lang.String[] { + "Indexes", "UsesAncestorConfig", "AncestorField", "Reverting", + }); + com.google.firestore.admin.v1.IndexProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FirestoreAdminProto.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FirestoreAdminProto.java new file mode 100644 index 000000000000..c058711f5eda --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FirestoreAdminProto.java @@ -0,0 +1,263 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/firestore_admin.proto + +package com.google.firestore.admin.v1; + +public final class FirestoreAdminProto { + private FirestoreAdminProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_firestore_admin_v1_CreateIndexRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_firestore_admin_v1_CreateIndexRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_firestore_admin_v1_ListIndexesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_firestore_admin_v1_ListIndexesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_firestore_admin_v1_ListIndexesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_firestore_admin_v1_ListIndexesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_firestore_admin_v1_GetIndexRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_firestore_admin_v1_GetIndexRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_firestore_admin_v1_DeleteIndexRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_firestore_admin_v1_DeleteIndexRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_firestore_admin_v1_UpdateFieldRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_firestore_admin_v1_UpdateFieldRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_firestore_admin_v1_GetFieldRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_firestore_admin_v1_GetFieldRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_firestore_admin_v1_ListFieldsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_firestore_admin_v1_ListFieldsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_firestore_admin_v1_ListFieldsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_firestore_admin_v1_ListFieldsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_firestore_admin_v1_ExportDocumentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_firestore_admin_v1_ExportDocumentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_firestore_admin_v1_ImportDocumentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_firestore_admin_v1_ImportDocumentsRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n/google/firestore/admin/v1/firestore_ad" + + "min.proto\022\031google.firestore.admin.v1\032\034go" + + "ogle/api/annotations.proto\032%google/fires" + + "tore/admin/v1/field.proto\032%google/firest" + + "ore/admin/v1/index.proto\032#google/longrun" + + "ning/operations.proto\032\033google/protobuf/e" + + "mpty.proto\032 google/protobuf/field_mask.p" + + "roto\"U\n\022CreateIndexRequest\022\016\n\006parent\030\001 \001" + + "(\t\022/\n\005index\030\002 \001(\0132 .google.firestore.adm" + + "in.v1.Index\"[\n\022ListIndexesRequest\022\016\n\006par" + + "ent\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003" + + " \001(\005\022\022\n\npage_token\030\004 \001(\t\"a\n\023ListIndexesR" + + "esponse\0221\n\007indexes\030\001 \003(\0132 .google.firest" + + "ore.admin.v1.Index\022\027\n\017next_page_token\030\002 " + + "\001(\t\"\037\n\017GetIndexRequest\022\014\n\004name\030\001 \001(\t\"\"\n\022" + + "DeleteIndexRequest\022\014\n\004name\030\001 \001(\t\"v\n\022Upda" + + "teFieldRequest\022/\n\005field\030\001 \001(\0132 .google.f" + + "irestore.admin.v1.Field\022/\n\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMask\"\037\n\017GetF" + + "ieldRequest\022\014\n\004name\030\001 \001(\t\"Z\n\021ListFieldsR" + + "equest\022\016\n\006parent\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\021" + + "\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"_\n" + + "\022ListFieldsResponse\0220\n\006fields\030\001 \003(\0132 .go" + + "ogle.firestore.admin.v1.Field\022\027\n\017next_pa" + + "ge_token\030\002 \001(\t\"Y\n\026ExportDocumentsRequest" + + "\022\014\n\004name\030\001 \001(\t\022\026\n\016collection_ids\030\002 \003(\t\022\031" + + "\n\021output_uri_prefix\030\003 \001(\t\"X\n\026ImportDocum" + + "entsRequest\022\014\n\004name\030\001 \001(\t\022\026\n\016collection_" + + "ids\030\002 \003(\t\022\030\n\020input_uri_prefix\030\003 \001(\t2\205\014\n\016" + + "FirestoreAdmin\022\252\001\n\013CreateIndex\022-.google." + + "firestore.admin.v1.CreateIndexRequest\032\035." + + "google.longrunning.Operation\"M\202\323\344\223\002G\">/v" + + "1/{parent=projects/*/databases/*/collect" + + "ionGroups/*}/indexes:\005index\022\264\001\n\013ListInde" + + "xes\022-.google.firestore.admin.v1.ListInde" + + "xesRequest\032..google.firestore.admin.v1.L" + + "istIndexesResponse\"F\202\323\344\223\002@\022>/v1/{parent=" + + "projects/*/databases/*/collectionGroups/" + + "*}/indexes\022\240\001\n\010GetIndex\022*.google.firesto" + + "re.admin.v1.GetIndexRequest\032 .google.fir" + + "estore.admin.v1.Index\"F\202\323\344\223\002@\022>/v1/{name" + + "=projects/*/databases/*/collectionGroups" + + "/*/indexes/*}\022\234\001\n\013DeleteIndex\022-.google.f" + + "irestore.admin.v1.DeleteIndexRequest\032\026.g" + + "oogle.protobuf.Empty\"F\202\323\344\223\002@*>/v1/{name=" + + "projects/*/databases/*/collectionGroups/" + + "*/indexes/*}\022\237\001\n\010GetField\022*.google.fires" + + "tore.admin.v1.GetFieldRequest\032 .google.f" + + "irestore.admin.v1.Field\"E\202\323\344\223\002?\022=/v1/{na" + + "me=projects/*/databases/*/collectionGrou" + + "ps/*/fields/*}\022\257\001\n\013UpdateField\022-.google." + + "firestore.admin.v1.UpdateFieldRequest\032\035." + + "google.longrunning.Operation\"R\202\323\344\223\002L2C/v" + + "1/{field.name=projects/*/databases/*/col" + + "lectionGroups/*/fields/*}:\005field\022\260\001\n\nLis" + + "tFields\022,.google.firestore.admin.v1.List" + + "FieldsRequest\032-.google.firestore.admin.v" + + "1.ListFieldsResponse\"E\202\323\344\223\002?\022=/v1/{paren" + + "t=projects/*/databases/*/collectionGroup" + + "s/*}/fields\022\241\001\n\017ExportDocuments\0221.google" + + ".firestore.admin.v1.ExportDocumentsReque" + + "st\032\035.google.longrunning.Operation\"<\202\323\344\223\002" + + "6\"1/v1/{name=projects/*/databases/*}:exp" + + "ortDocuments:\001*\022\241\001\n\017ImportDocuments\0221.go" + + "ogle.firestore.admin.v1.ImportDocumentsR" + + "equest\032\035.google.longrunning.Operation\"<\202" + + "\323\344\223\0026\"1/v1/{name=projects/*/databases/*}" + + ":importDocuments:\001*B\301\001\n\035com.google.fires" + + "tore.admin.v1B\023FirestoreAdminProtoP\001Z>go" + + "ogle.golang.org/genproto/googleapis/fire" + + "store/admin/v1;admin\242\002\004GCFS\252\002\037Google.Clo" + + "ud.Firestore.Admin.V1\312\002\037Google\\Cloud\\Fir" + + "estore\\Admin\\V1b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.firestore.admin.v1.FieldProto.getDescriptor(), + com.google.firestore.admin.v1.IndexProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }, + assigner); + internal_static_google_firestore_admin_v1_CreateIndexRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_firestore_admin_v1_CreateIndexRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_firestore_admin_v1_CreateIndexRequest_descriptor, + new java.lang.String[] { + "Parent", "Index", + }); + internal_static_google_firestore_admin_v1_ListIndexesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_firestore_admin_v1_ListIndexesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_firestore_admin_v1_ListIndexesRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", + }); + internal_static_google_firestore_admin_v1_ListIndexesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_firestore_admin_v1_ListIndexesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_firestore_admin_v1_ListIndexesResponse_descriptor, + new java.lang.String[] { + "Indexes", "NextPageToken", + }); + internal_static_google_firestore_admin_v1_GetIndexRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_firestore_admin_v1_GetIndexRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_firestore_admin_v1_GetIndexRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_firestore_admin_v1_DeleteIndexRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_firestore_admin_v1_DeleteIndexRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_firestore_admin_v1_DeleteIndexRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_firestore_admin_v1_UpdateFieldRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_firestore_admin_v1_UpdateFieldRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_firestore_admin_v1_UpdateFieldRequest_descriptor, + new java.lang.String[] { + "Field", "UpdateMask", + }); + internal_static_google_firestore_admin_v1_GetFieldRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_firestore_admin_v1_GetFieldRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_firestore_admin_v1_GetFieldRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_firestore_admin_v1_ListFieldsRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_firestore_admin_v1_ListFieldsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_firestore_admin_v1_ListFieldsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", + }); + internal_static_google_firestore_admin_v1_ListFieldsResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_firestore_admin_v1_ListFieldsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_firestore_admin_v1_ListFieldsResponse_descriptor, + new java.lang.String[] { + "Fields", "NextPageToken", + }); + internal_static_google_firestore_admin_v1_ExportDocumentsRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_firestore_admin_v1_ExportDocumentsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_firestore_admin_v1_ExportDocumentsRequest_descriptor, + new java.lang.String[] { + "Name", "CollectionIds", "OutputUriPrefix", + }); + internal_static_google_firestore_admin_v1_ImportDocumentsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_firestore_admin_v1_ImportDocumentsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_firestore_admin_v1_ImportDocumentsRequest_descriptor, + new java.lang.String[] { + "Name", "CollectionIds", "InputUriPrefix", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.firestore.admin.v1.FieldProto.getDescriptor(); + com.google.firestore.admin.v1.IndexProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetFieldRequest.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetFieldRequest.java new file mode 100644 index 000000000000..22c24383e2b6 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetFieldRequest.java @@ -0,0 +1,604 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/firestore_admin.proto + +package com.google.firestore.admin.v1; + +/** + * + * + *
+ * The request for [FirestoreAdmin.GetField][google.firestore.admin.v1.FirestoreAdmin.GetField].
+ * 
+ * + * Protobuf type {@code google.firestore.admin.v1.GetFieldRequest} + */ +public final class GetFieldRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.GetFieldRequest) + GetFieldRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetFieldRequest.newBuilder() to construct. + private GetFieldRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetFieldRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetFieldRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_GetFieldRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_GetFieldRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.GetFieldRequest.class, + com.google.firestore.admin.v1.GetFieldRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * A name of the form
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}`
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * A name of the form
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}`
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.firestore.admin.v1.GetFieldRequest)) { + return super.equals(obj); + } + com.google.firestore.admin.v1.GetFieldRequest other = + (com.google.firestore.admin.v1.GetFieldRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.firestore.admin.v1.GetFieldRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.GetFieldRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.GetFieldRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.GetFieldRequest 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.firestore.admin.v1.GetFieldRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.GetFieldRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.GetFieldRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.GetFieldRequest 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.firestore.admin.v1.GetFieldRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.GetFieldRequest 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.firestore.admin.v1.GetFieldRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.GetFieldRequest 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.firestore.admin.v1.GetFieldRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request for [FirestoreAdmin.GetField][google.firestore.admin.v1.FirestoreAdmin.GetField].
+   * 
+ * + * Protobuf type {@code google.firestore.admin.v1.GetFieldRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.firestore.admin.v1.GetFieldRequest) + com.google.firestore.admin.v1.GetFieldRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_GetFieldRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_GetFieldRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.GetFieldRequest.class, + com.google.firestore.admin.v1.GetFieldRequest.Builder.class); + } + + // Construct using com.google.firestore.admin.v1.GetFieldRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_GetFieldRequest_descriptor; + } + + @java.lang.Override + public com.google.firestore.admin.v1.GetFieldRequest getDefaultInstanceForType() { + return com.google.firestore.admin.v1.GetFieldRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.firestore.admin.v1.GetFieldRequest build() { + com.google.firestore.admin.v1.GetFieldRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.firestore.admin.v1.GetFieldRequest buildPartial() { + com.google.firestore.admin.v1.GetFieldRequest result = + new com.google.firestore.admin.v1.GetFieldRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.firestore.admin.v1.GetFieldRequest) { + return mergeFrom((com.google.firestore.admin.v1.GetFieldRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.firestore.admin.v1.GetFieldRequest other) { + if (other == com.google.firestore.admin.v1.GetFieldRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.firestore.admin.v1.GetFieldRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.firestore.admin.v1.GetFieldRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * A name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}`
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}`
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}`
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}`
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * A name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}`
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.GetFieldRequest) + } + + // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.GetFieldRequest) + private static final com.google.firestore.admin.v1.GetFieldRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.firestore.admin.v1.GetFieldRequest(); + } + + public static com.google.firestore.admin.v1.GetFieldRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFieldRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetFieldRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.firestore.admin.v1.GetFieldRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetFieldRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetFieldRequestOrBuilder.java new file mode 100644 index 000000000000..0f49e1030980 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetFieldRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/firestore_admin.proto + +package com.google.firestore.admin.v1; + +public interface GetFieldRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.firestore.admin.v1.GetFieldRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A name of the form
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}`
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * A name of the form
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}`
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetIndexRequest.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetIndexRequest.java new file mode 100644 index 000000000000..2e318046789e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetIndexRequest.java @@ -0,0 +1,604 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/firestore_admin.proto + +package com.google.firestore.admin.v1; + +/** + * + * + *
+ * The request for [FirestoreAdmin.GetIndex][google.firestore.admin.v1.FirestoreAdmin.GetIndex].
+ * 
+ * + * Protobuf type {@code google.firestore.admin.v1.GetIndexRequest} + */ +public final class GetIndexRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.GetIndexRequest) + GetIndexRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetIndexRequest.newBuilder() to construct. + private GetIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetIndexRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetIndexRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_GetIndexRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_GetIndexRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.GetIndexRequest.class, + com.google.firestore.admin.v1.GetIndexRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * A name of the form
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * A name of the form
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.firestore.admin.v1.GetIndexRequest)) { + return super.equals(obj); + } + com.google.firestore.admin.v1.GetIndexRequest other = + (com.google.firestore.admin.v1.GetIndexRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.firestore.admin.v1.GetIndexRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.GetIndexRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.GetIndexRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.GetIndexRequest 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.firestore.admin.v1.GetIndexRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.GetIndexRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.GetIndexRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.GetIndexRequest 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.firestore.admin.v1.GetIndexRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.GetIndexRequest 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.firestore.admin.v1.GetIndexRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.GetIndexRequest 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.firestore.admin.v1.GetIndexRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request for [FirestoreAdmin.GetIndex][google.firestore.admin.v1.FirestoreAdmin.GetIndex].
+   * 
+ * + * Protobuf type {@code google.firestore.admin.v1.GetIndexRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.firestore.admin.v1.GetIndexRequest) + com.google.firestore.admin.v1.GetIndexRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_GetIndexRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_GetIndexRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.GetIndexRequest.class, + com.google.firestore.admin.v1.GetIndexRequest.Builder.class); + } + + // Construct using com.google.firestore.admin.v1.GetIndexRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_GetIndexRequest_descriptor; + } + + @java.lang.Override + public com.google.firestore.admin.v1.GetIndexRequest getDefaultInstanceForType() { + return com.google.firestore.admin.v1.GetIndexRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.firestore.admin.v1.GetIndexRequest build() { + com.google.firestore.admin.v1.GetIndexRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.firestore.admin.v1.GetIndexRequest buildPartial() { + com.google.firestore.admin.v1.GetIndexRequest result = + new com.google.firestore.admin.v1.GetIndexRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.firestore.admin.v1.GetIndexRequest) { + return mergeFrom((com.google.firestore.admin.v1.GetIndexRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.firestore.admin.v1.GetIndexRequest other) { + if (other == com.google.firestore.admin.v1.GetIndexRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.firestore.admin.v1.GetIndexRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.firestore.admin.v1.GetIndexRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * A name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * A name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.GetIndexRequest) + } + + // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.GetIndexRequest) + private static final com.google.firestore.admin.v1.GetIndexRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.firestore.admin.v1.GetIndexRequest(); + } + + public static com.google.firestore.admin.v1.GetIndexRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetIndexRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetIndexRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.firestore.admin.v1.GetIndexRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetIndexRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetIndexRequestOrBuilder.java new file mode 100644 index 000000000000..b01fc7cce544 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetIndexRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/firestore_admin.proto + +package com.google.firestore.admin.v1; + +public interface GetIndexRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.firestore.admin.v1.GetIndexRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A name of the form
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * A name of the form
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsMetadata.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsMetadata.java new file mode 100644 index 000000000000..9df25955c345 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsMetadata.java @@ -0,0 +1,2040 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/operation.proto + +package com.google.firestore.admin.v1; + +/** + * + * + *
+ * Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from
+ * [FirestoreAdmin.ImportDocuments][google.firestore.admin.v1.FirestoreAdmin.ImportDocuments].
+ * 
+ * + * Protobuf type {@code google.firestore.admin.v1.ImportDocumentsMetadata} + */ +public final class ImportDocumentsMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.ImportDocumentsMetadata) + ImportDocumentsMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportDocumentsMetadata.newBuilder() to construct. + private ImportDocumentsMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportDocumentsMetadata() { + operationState_ = 0; + collectionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + inputUriPrefix_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ImportDocumentsMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; + } + case 24: + { + int rawValue = input.readEnum(); + + operationState_ = rawValue; + break; + } + case 34: + { + com.google.firestore.admin.v1.Progress.Builder subBuilder = null; + if (progressDocuments_ != null) { + subBuilder = progressDocuments_.toBuilder(); + } + progressDocuments_ = + input.readMessage( + com.google.firestore.admin.v1.Progress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(progressDocuments_); + progressDocuments_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + com.google.firestore.admin.v1.Progress.Builder subBuilder = null; + if (progressBytes_ != null) { + subBuilder = progressBytes_.toBuilder(); + } + progressBytes_ = + input.readMessage( + com.google.firestore.admin.v1.Progress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(progressBytes_); + progressBytes_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + collectionIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000020; + } + collectionIds_.add(s); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + inputUriPrefix_ = 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)) { + collectionIds_ = collectionIds_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_ImportDocumentsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_ImportDocumentsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.ImportDocumentsMetadata.class, + com.google.firestore.admin.v1.ImportDocumentsMetadata.Builder.class); + } + + private int bitField0_; + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * The time this operation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public boolean hasStartTime() { + return startTime_ != null; + } + /** + * + * + *
+   * The time this operation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * The time this operation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * The time this operation completed. Will be unset if operation still in
+   * progress.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public boolean hasEndTime() { + return endTime_ != null; + } + /** + * + * + *
+   * The time this operation completed. Will be unset if operation still in
+   * progress.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+   * The time this operation completed. Will be unset if operation still in
+   * progress.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + public static final int OPERATION_STATE_FIELD_NUMBER = 3; + private int operationState_; + /** + * + * + *
+   * The state of the import operation.
+   * 
+ * + * .google.firestore.admin.v1.OperationState operation_state = 3; + */ + public int getOperationStateValue() { + return operationState_; + } + /** + * + * + *
+   * The state of the import operation.
+   * 
+ * + * .google.firestore.admin.v1.OperationState operation_state = 3; + */ + public com.google.firestore.admin.v1.OperationState getOperationState() { + @SuppressWarnings("deprecation") + com.google.firestore.admin.v1.OperationState result = + com.google.firestore.admin.v1.OperationState.valueOf(operationState_); + return result == null ? com.google.firestore.admin.v1.OperationState.UNRECOGNIZED : result; + } + + public static final int PROGRESS_DOCUMENTS_FIELD_NUMBER = 4; + private com.google.firestore.admin.v1.Progress progressDocuments_; + /** + * + * + *
+   * The progress, in documents, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 4; + */ + public boolean hasProgressDocuments() { + return progressDocuments_ != null; + } + /** + * + * + *
+   * The progress, in documents, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 4; + */ + public com.google.firestore.admin.v1.Progress getProgressDocuments() { + return progressDocuments_ == null + ? com.google.firestore.admin.v1.Progress.getDefaultInstance() + : progressDocuments_; + } + /** + * + * + *
+   * The progress, in documents, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 4; + */ + public com.google.firestore.admin.v1.ProgressOrBuilder getProgressDocumentsOrBuilder() { + return getProgressDocuments(); + } + + public static final int PROGRESS_BYTES_FIELD_NUMBER = 5; + private com.google.firestore.admin.v1.Progress progressBytes_; + /** + * + * + *
+   * The progress, in bytes, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 5; + */ + public boolean hasProgressBytes() { + return progressBytes_ != null; + } + /** + * + * + *
+   * The progress, in bytes, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 5; + */ + public com.google.firestore.admin.v1.Progress getProgressBytes() { + return progressBytes_ == null + ? com.google.firestore.admin.v1.Progress.getDefaultInstance() + : progressBytes_; + } + /** + * + * + *
+   * The progress, in bytes, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 5; + */ + public com.google.firestore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder() { + return getProgressBytes(); + } + + public static final int COLLECTION_IDS_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList collectionIds_; + /** + * + * + *
+   * Which collection ids are being imported.
+   * 
+ * + * repeated string collection_ids = 6; + */ + public com.google.protobuf.ProtocolStringList getCollectionIdsList() { + return collectionIds_; + } + /** + * + * + *
+   * Which collection ids are being imported.
+   * 
+ * + * repeated string collection_ids = 6; + */ + public int getCollectionIdsCount() { + return collectionIds_.size(); + } + /** + * + * + *
+   * Which collection ids are being imported.
+   * 
+ * + * repeated string collection_ids = 6; + */ + public java.lang.String getCollectionIds(int index) { + return collectionIds_.get(index); + } + /** + * + * + *
+   * Which collection ids are being imported.
+   * 
+ * + * repeated string collection_ids = 6; + */ + public com.google.protobuf.ByteString getCollectionIdsBytes(int index) { + return collectionIds_.getByteString(index); + } + + public static final int INPUT_URI_PREFIX_FIELD_NUMBER = 7; + private volatile java.lang.Object inputUriPrefix_; + /** + * + * + *
+   * The location of the documents being imported.
+   * 
+ * + * string input_uri_prefix = 7; + */ + public java.lang.String getInputUriPrefix() { + java.lang.Object ref = inputUriPrefix_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUriPrefix_ = s; + return s; + } + } + /** + * + * + *
+   * The location of the documents being imported.
+   * 
+ * + * string input_uri_prefix = 7; + */ + public com.google.protobuf.ByteString getInputUriPrefixBytes() { + java.lang.Object ref = inputUriPrefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inputUriPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (startTime_ != null) { + output.writeMessage(1, getStartTime()); + } + if (endTime_ != null) { + output.writeMessage(2, getEndTime()); + } + if (operationState_ + != com.google.firestore.admin.v1.OperationState.OPERATION_STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, operationState_); + } + if (progressDocuments_ != null) { + output.writeMessage(4, getProgressDocuments()); + } + if (progressBytes_ != null) { + output.writeMessage(5, getProgressBytes()); + } + for (int i = 0; i < collectionIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, collectionIds_.getRaw(i)); + } + if (!getInputUriPrefixBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, inputUriPrefix_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (operationState_ + != com.google.firestore.admin.v1.OperationState.OPERATION_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, operationState_); + } + if (progressDocuments_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getProgressDocuments()); + } + if (progressBytes_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getProgressBytes()); + } + { + int dataSize = 0; + for (int i = 0; i < collectionIds_.size(); i++) { + dataSize += computeStringSizeNoTag(collectionIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getCollectionIdsList().size(); + } + if (!getInputUriPrefixBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, inputUriPrefix_); + } + 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.firestore.admin.v1.ImportDocumentsMetadata)) { + return super.equals(obj); + } + com.google.firestore.admin.v1.ImportDocumentsMetadata other = + (com.google.firestore.admin.v1.ImportDocumentsMetadata) obj; + + boolean result = true; + result = result && (hasStartTime() == other.hasStartTime()); + if (hasStartTime()) { + result = result && getStartTime().equals(other.getStartTime()); + } + result = result && (hasEndTime() == other.hasEndTime()); + if (hasEndTime()) { + result = result && getEndTime().equals(other.getEndTime()); + } + result = result && operationState_ == other.operationState_; + result = result && (hasProgressDocuments() == other.hasProgressDocuments()); + if (hasProgressDocuments()) { + result = result && getProgressDocuments().equals(other.getProgressDocuments()); + } + result = result && (hasProgressBytes() == other.hasProgressBytes()); + if (hasProgressBytes()) { + result = result && getProgressBytes().equals(other.getProgressBytes()); + } + result = result && getCollectionIdsList().equals(other.getCollectionIdsList()); + result = result && getInputUriPrefix().equals(other.getInputUriPrefix()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + OPERATION_STATE_FIELD_NUMBER; + hash = (53 * hash) + operationState_; + if (hasProgressDocuments()) { + hash = (37 * hash) + PROGRESS_DOCUMENTS_FIELD_NUMBER; + hash = (53 * hash) + getProgressDocuments().hashCode(); + } + if (hasProgressBytes()) { + hash = (37 * hash) + PROGRESS_BYTES_FIELD_NUMBER; + hash = (53 * hash) + getProgressBytes().hashCode(); + } + if (getCollectionIdsCount() > 0) { + hash = (37 * hash) + COLLECTION_IDS_FIELD_NUMBER; + hash = (53 * hash) + getCollectionIdsList().hashCode(); + } + hash = (37 * hash) + INPUT_URI_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getInputUriPrefix().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.firestore.admin.v1.ImportDocumentsMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.ImportDocumentsMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.ImportDocumentsMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.ImportDocumentsMetadata 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.firestore.admin.v1.ImportDocumentsMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.ImportDocumentsMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.ImportDocumentsMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.ImportDocumentsMetadata 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.firestore.admin.v1.ImportDocumentsMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.ImportDocumentsMetadata 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.firestore.admin.v1.ImportDocumentsMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.ImportDocumentsMetadata 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.firestore.admin.v1.ImportDocumentsMetadata 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; + } + /** + * + * + *
+   * Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from
+   * [FirestoreAdmin.ImportDocuments][google.firestore.admin.v1.FirestoreAdmin.ImportDocuments].
+   * 
+ * + * Protobuf type {@code google.firestore.admin.v1.ImportDocumentsMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.firestore.admin.v1.ImportDocumentsMetadata) + com.google.firestore.admin.v1.ImportDocumentsMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_ImportDocumentsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_ImportDocumentsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.ImportDocumentsMetadata.class, + com.google.firestore.admin.v1.ImportDocumentsMetadata.Builder.class); + } + + // Construct using com.google.firestore.admin.v1.ImportDocumentsMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + operationState_ = 0; + + if (progressDocumentsBuilder_ == null) { + progressDocuments_ = null; + } else { + progressDocuments_ = null; + progressDocumentsBuilder_ = null; + } + if (progressBytesBuilder_ == null) { + progressBytes_ = null; + } else { + progressBytes_ = null; + progressBytesBuilder_ = null; + } + collectionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + inputUriPrefix_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_ImportDocumentsMetadata_descriptor; + } + + @java.lang.Override + public com.google.firestore.admin.v1.ImportDocumentsMetadata getDefaultInstanceForType() { + return com.google.firestore.admin.v1.ImportDocumentsMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.firestore.admin.v1.ImportDocumentsMetadata build() { + com.google.firestore.admin.v1.ImportDocumentsMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.firestore.admin.v1.ImportDocumentsMetadata buildPartial() { + com.google.firestore.admin.v1.ImportDocumentsMetadata result = + new com.google.firestore.admin.v1.ImportDocumentsMetadata(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } + result.operationState_ = operationState_; + if (progressDocumentsBuilder_ == null) { + result.progressDocuments_ = progressDocuments_; + } else { + result.progressDocuments_ = progressDocumentsBuilder_.build(); + } + if (progressBytesBuilder_ == null) { + result.progressBytes_ = progressBytes_; + } else { + result.progressBytes_ = progressBytesBuilder_.build(); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + collectionIds_ = collectionIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.collectionIds_ = collectionIds_; + result.inputUriPrefix_ = inputUriPrefix_; + 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.firestore.admin.v1.ImportDocumentsMetadata) { + return mergeFrom((com.google.firestore.admin.v1.ImportDocumentsMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.firestore.admin.v1.ImportDocumentsMetadata other) { + if (other == com.google.firestore.admin.v1.ImportDocumentsMetadata.getDefaultInstance()) + return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (other.operationState_ != 0) { + setOperationStateValue(other.getOperationStateValue()); + } + if (other.hasProgressDocuments()) { + mergeProgressDocuments(other.getProgressDocuments()); + } + if (other.hasProgressBytes()) { + mergeProgressBytes(other.getProgressBytes()); + } + if (!other.collectionIds_.isEmpty()) { + if (collectionIds_.isEmpty()) { + collectionIds_ = other.collectionIds_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureCollectionIdsIsMutable(); + collectionIds_.addAll(other.collectionIds_); + } + onChanged(); + } + if (!other.getInputUriPrefix().isEmpty()) { + inputUriPrefix_ = other.inputUriPrefix_; + 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.firestore.admin.v1.ImportDocumentsMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.firestore.admin.v1.ImportDocumentsMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp startTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private int operationState_ = 0; + /** + * + * + *
+     * The state of the import operation.
+     * 
+ * + * .google.firestore.admin.v1.OperationState operation_state = 3; + */ + public int getOperationStateValue() { + return operationState_; + } + /** + * + * + *
+     * The state of the import operation.
+     * 
+ * + * .google.firestore.admin.v1.OperationState operation_state = 3; + */ + public Builder setOperationStateValue(int value) { + operationState_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The state of the import operation.
+     * 
+ * + * .google.firestore.admin.v1.OperationState operation_state = 3; + */ + public com.google.firestore.admin.v1.OperationState getOperationState() { + @SuppressWarnings("deprecation") + com.google.firestore.admin.v1.OperationState result = + com.google.firestore.admin.v1.OperationState.valueOf(operationState_); + return result == null ? com.google.firestore.admin.v1.OperationState.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The state of the import operation.
+     * 
+ * + * .google.firestore.admin.v1.OperationState operation_state = 3; + */ + public Builder setOperationState(com.google.firestore.admin.v1.OperationState value) { + if (value == null) { + throw new NullPointerException(); + } + + operationState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The state of the import operation.
+     * 
+ * + * .google.firestore.admin.v1.OperationState operation_state = 3; + */ + public Builder clearOperationState() { + + operationState_ = 0; + onChanged(); + return this; + } + + private com.google.firestore.admin.v1.Progress progressDocuments_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Progress, + com.google.firestore.admin.v1.Progress.Builder, + com.google.firestore.admin.v1.ProgressOrBuilder> + progressDocumentsBuilder_; + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 4; + */ + public boolean hasProgressDocuments() { + return progressDocumentsBuilder_ != null || progressDocuments_ != null; + } + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 4; + */ + public com.google.firestore.admin.v1.Progress getProgressDocuments() { + if (progressDocumentsBuilder_ == null) { + return progressDocuments_ == null + ? com.google.firestore.admin.v1.Progress.getDefaultInstance() + : progressDocuments_; + } else { + return progressDocumentsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 4; + */ + public Builder setProgressDocuments(com.google.firestore.admin.v1.Progress value) { + if (progressDocumentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + progressDocuments_ = value; + onChanged(); + } else { + progressDocumentsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 4; + */ + public Builder setProgressDocuments( + com.google.firestore.admin.v1.Progress.Builder builderForValue) { + if (progressDocumentsBuilder_ == null) { + progressDocuments_ = builderForValue.build(); + onChanged(); + } else { + progressDocumentsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 4; + */ + public Builder mergeProgressDocuments(com.google.firestore.admin.v1.Progress value) { + if (progressDocumentsBuilder_ == null) { + if (progressDocuments_ != null) { + progressDocuments_ = + com.google.firestore.admin.v1.Progress.newBuilder(progressDocuments_) + .mergeFrom(value) + .buildPartial(); + } else { + progressDocuments_ = value; + } + onChanged(); + } else { + progressDocumentsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 4; + */ + public Builder clearProgressDocuments() { + if (progressDocumentsBuilder_ == null) { + progressDocuments_ = null; + onChanged(); + } else { + progressDocuments_ = null; + progressDocumentsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 4; + */ + public com.google.firestore.admin.v1.Progress.Builder getProgressDocumentsBuilder() { + + onChanged(); + return getProgressDocumentsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 4; + */ + public com.google.firestore.admin.v1.ProgressOrBuilder getProgressDocumentsOrBuilder() { + if (progressDocumentsBuilder_ != null) { + return progressDocumentsBuilder_.getMessageOrBuilder(); + } else { + return progressDocuments_ == null + ? com.google.firestore.admin.v1.Progress.getDefaultInstance() + : progressDocuments_; + } + } + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Progress, + com.google.firestore.admin.v1.Progress.Builder, + com.google.firestore.admin.v1.ProgressOrBuilder> + getProgressDocumentsFieldBuilder() { + if (progressDocumentsBuilder_ == null) { + progressDocumentsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Progress, + com.google.firestore.admin.v1.Progress.Builder, + com.google.firestore.admin.v1.ProgressOrBuilder>( + getProgressDocuments(), getParentForChildren(), isClean()); + progressDocuments_ = null; + } + return progressDocumentsBuilder_; + } + + private com.google.firestore.admin.v1.Progress progressBytes_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Progress, + com.google.firestore.admin.v1.Progress.Builder, + com.google.firestore.admin.v1.ProgressOrBuilder> + progressBytesBuilder_; + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 5; + */ + public boolean hasProgressBytes() { + return progressBytesBuilder_ != null || progressBytes_ != null; + } + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 5; + */ + public com.google.firestore.admin.v1.Progress getProgressBytes() { + if (progressBytesBuilder_ == null) { + return progressBytes_ == null + ? com.google.firestore.admin.v1.Progress.getDefaultInstance() + : progressBytes_; + } else { + return progressBytesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 5; + */ + public Builder setProgressBytes(com.google.firestore.admin.v1.Progress value) { + if (progressBytesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + progressBytes_ = value; + onChanged(); + } else { + progressBytesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 5; + */ + public Builder setProgressBytes( + com.google.firestore.admin.v1.Progress.Builder builderForValue) { + if (progressBytesBuilder_ == null) { + progressBytes_ = builderForValue.build(); + onChanged(); + } else { + progressBytesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 5; + */ + public Builder mergeProgressBytes(com.google.firestore.admin.v1.Progress value) { + if (progressBytesBuilder_ == null) { + if (progressBytes_ != null) { + progressBytes_ = + com.google.firestore.admin.v1.Progress.newBuilder(progressBytes_) + .mergeFrom(value) + .buildPartial(); + } else { + progressBytes_ = value; + } + onChanged(); + } else { + progressBytesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 5; + */ + public Builder clearProgressBytes() { + if (progressBytesBuilder_ == null) { + progressBytes_ = null; + onChanged(); + } else { + progressBytes_ = null; + progressBytesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 5; + */ + public com.google.firestore.admin.v1.Progress.Builder getProgressBytesBuilder() { + + onChanged(); + return getProgressBytesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 5; + */ + public com.google.firestore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder() { + if (progressBytesBuilder_ != null) { + return progressBytesBuilder_.getMessageOrBuilder(); + } else { + return progressBytes_ == null + ? com.google.firestore.admin.v1.Progress.getDefaultInstance() + : progressBytes_; + } + } + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Progress, + com.google.firestore.admin.v1.Progress.Builder, + com.google.firestore.admin.v1.ProgressOrBuilder> + getProgressBytesFieldBuilder() { + if (progressBytesBuilder_ == null) { + progressBytesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Progress, + com.google.firestore.admin.v1.Progress.Builder, + com.google.firestore.admin.v1.ProgressOrBuilder>( + getProgressBytes(), getParentForChildren(), isClean()); + progressBytes_ = null; + } + return progressBytesBuilder_; + } + + private com.google.protobuf.LazyStringList collectionIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureCollectionIdsIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + collectionIds_ = new com.google.protobuf.LazyStringArrayList(collectionIds_); + bitField0_ |= 0x00000020; + } + } + /** + * + * + *
+     * Which collection ids are being imported.
+     * 
+ * + * repeated string collection_ids = 6; + */ + public com.google.protobuf.ProtocolStringList getCollectionIdsList() { + return collectionIds_.getUnmodifiableView(); + } + /** + * + * + *
+     * Which collection ids are being imported.
+     * 
+ * + * repeated string collection_ids = 6; + */ + public int getCollectionIdsCount() { + return collectionIds_.size(); + } + /** + * + * + *
+     * Which collection ids are being imported.
+     * 
+ * + * repeated string collection_ids = 6; + */ + public java.lang.String getCollectionIds(int index) { + return collectionIds_.get(index); + } + /** + * + * + *
+     * Which collection ids are being imported.
+     * 
+ * + * repeated string collection_ids = 6; + */ + public com.google.protobuf.ByteString getCollectionIdsBytes(int index) { + return collectionIds_.getByteString(index); + } + /** + * + * + *
+     * Which collection ids are being imported.
+     * 
+ * + * repeated string collection_ids = 6; + */ + public Builder setCollectionIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCollectionIdsIsMutable(); + collectionIds_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Which collection ids are being imported.
+     * 
+ * + * repeated string collection_ids = 6; + */ + public Builder addCollectionIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCollectionIdsIsMutable(); + collectionIds_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Which collection ids are being imported.
+     * 
+ * + * repeated string collection_ids = 6; + */ + public Builder addAllCollectionIds(java.lang.Iterable values) { + ensureCollectionIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, collectionIds_); + onChanged(); + return this; + } + /** + * + * + *
+     * Which collection ids are being imported.
+     * 
+ * + * repeated string collection_ids = 6; + */ + public Builder clearCollectionIds() { + collectionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Which collection ids are being imported.
+     * 
+ * + * repeated string collection_ids = 6; + */ + public Builder addCollectionIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCollectionIdsIsMutable(); + collectionIds_.add(value); + onChanged(); + return this; + } + + private java.lang.Object inputUriPrefix_ = ""; + /** + * + * + *
+     * The location of the documents being imported.
+     * 
+ * + * string input_uri_prefix = 7; + */ + public java.lang.String getInputUriPrefix() { + java.lang.Object ref = inputUriPrefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUriPrefix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The location of the documents being imported.
+     * 
+ * + * string input_uri_prefix = 7; + */ + public com.google.protobuf.ByteString getInputUriPrefixBytes() { + java.lang.Object ref = inputUriPrefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inputUriPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The location of the documents being imported.
+     * 
+ * + * string input_uri_prefix = 7; + */ + public Builder setInputUriPrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + inputUriPrefix_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The location of the documents being imported.
+     * 
+ * + * string input_uri_prefix = 7; + */ + public Builder clearInputUriPrefix() { + + inputUriPrefix_ = getDefaultInstance().getInputUriPrefix(); + onChanged(); + return this; + } + /** + * + * + *
+     * The location of the documents being imported.
+     * 
+ * + * string input_uri_prefix = 7; + */ + public Builder setInputUriPrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inputUriPrefix_ = 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.firestore.admin.v1.ImportDocumentsMetadata) + } + + // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.ImportDocumentsMetadata) + private static final com.google.firestore.admin.v1.ImportDocumentsMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.firestore.admin.v1.ImportDocumentsMetadata(); + } + + public static com.google.firestore.admin.v1.ImportDocumentsMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportDocumentsMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportDocumentsMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.firestore.admin.v1.ImportDocumentsMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsMetadataOrBuilder.java new file mode 100644 index 000000000000..9c7c5cb59260 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsMetadataOrBuilder.java @@ -0,0 +1,220 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/operation.proto + +package com.google.firestore.admin.v1; + +public interface ImportDocumentsMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.firestore.admin.v1.ImportDocumentsMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The time this operation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + boolean hasStartTime(); + /** + * + * + *
+   * The time this operation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * The time this operation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * The time this operation completed. Will be unset if operation still in
+   * progress.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + boolean hasEndTime(); + /** + * + * + *
+   * The time this operation completed. Will be unset if operation still in
+   * progress.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * The time this operation completed. Will be unset if operation still in
+   * progress.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
+   * The state of the import operation.
+   * 
+ * + * .google.firestore.admin.v1.OperationState operation_state = 3; + */ + int getOperationStateValue(); + /** + * + * + *
+   * The state of the import operation.
+   * 
+ * + * .google.firestore.admin.v1.OperationState operation_state = 3; + */ + com.google.firestore.admin.v1.OperationState getOperationState(); + + /** + * + * + *
+   * The progress, in documents, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 4; + */ + boolean hasProgressDocuments(); + /** + * + * + *
+   * The progress, in documents, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 4; + */ + com.google.firestore.admin.v1.Progress getProgressDocuments(); + /** + * + * + *
+   * The progress, in documents, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 4; + */ + com.google.firestore.admin.v1.ProgressOrBuilder getProgressDocumentsOrBuilder(); + + /** + * + * + *
+   * The progress, in bytes, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 5; + */ + boolean hasProgressBytes(); + /** + * + * + *
+   * The progress, in bytes, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 5; + */ + com.google.firestore.admin.v1.Progress getProgressBytes(); + /** + * + * + *
+   * The progress, in bytes, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 5; + */ + com.google.firestore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder(); + + /** + * + * + *
+   * Which collection ids are being imported.
+   * 
+ * + * repeated string collection_ids = 6; + */ + java.util.List getCollectionIdsList(); + /** + * + * + *
+   * Which collection ids are being imported.
+   * 
+ * + * repeated string collection_ids = 6; + */ + int getCollectionIdsCount(); + /** + * + * + *
+   * Which collection ids are being imported.
+   * 
+ * + * repeated string collection_ids = 6; + */ + java.lang.String getCollectionIds(int index); + /** + * + * + *
+   * Which collection ids are being imported.
+   * 
+ * + * repeated string collection_ids = 6; + */ + com.google.protobuf.ByteString getCollectionIdsBytes(int index); + + /** + * + * + *
+   * The location of the documents being imported.
+   * 
+ * + * string input_uri_prefix = 7; + */ + java.lang.String getInputUriPrefix(); + /** + * + * + *
+   * The location of the documents being imported.
+   * 
+ * + * string input_uri_prefix = 7; + */ + com.google.protobuf.ByteString getInputUriPrefixBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsRequest.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsRequest.java new file mode 100644 index 000000000000..0b2bd2219716 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsRequest.java @@ -0,0 +1,1055 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/firestore_admin.proto + +package com.google.firestore.admin.v1; + +/** + * + * + *
+ * The request for [FirestoreAdmin.ImportDocuments][google.firestore.admin.v1.FirestoreAdmin.ImportDocuments].
+ * 
+ * + * Protobuf type {@code google.firestore.admin.v1.ImportDocumentsRequest} + */ +public final class ImportDocumentsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.ImportDocumentsRequest) + ImportDocumentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportDocumentsRequest.newBuilder() to construct. + private ImportDocumentsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportDocumentsRequest() { + name_ = ""; + collectionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + inputUriPrefix_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ImportDocumentsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + collectionIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + collectionIds_.add(s); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + inputUriPrefix_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + collectionIds_ = collectionIds_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ImportDocumentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ImportDocumentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.ImportDocumentsRequest.class, + com.google.firestore.admin.v1.ImportDocumentsRequest.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Database to import into. Should be of the form:
+   * `projects/{project_id}/databases/{database_id}`.
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Database to import into. Should be of the form:
+   * `projects/{project_id}/databases/{database_id}`.
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COLLECTION_IDS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList collectionIds_; + /** + * + * + *
+   * Which collection ids to import. Unspecified means all collections included
+   * in the import.
+   * 
+ * + * repeated string collection_ids = 2; + */ + public com.google.protobuf.ProtocolStringList getCollectionIdsList() { + return collectionIds_; + } + /** + * + * + *
+   * Which collection ids to import. Unspecified means all collections included
+   * in the import.
+   * 
+ * + * repeated string collection_ids = 2; + */ + public int getCollectionIdsCount() { + return collectionIds_.size(); + } + /** + * + * + *
+   * Which collection ids to import. Unspecified means all collections included
+   * in the import.
+   * 
+ * + * repeated string collection_ids = 2; + */ + public java.lang.String getCollectionIds(int index) { + return collectionIds_.get(index); + } + /** + * + * + *
+   * Which collection ids to import. Unspecified means all collections included
+   * in the import.
+   * 
+ * + * repeated string collection_ids = 2; + */ + public com.google.protobuf.ByteString getCollectionIdsBytes(int index) { + return collectionIds_.getByteString(index); + } + + public static final int INPUT_URI_PREFIX_FIELD_NUMBER = 3; + private volatile java.lang.Object inputUriPrefix_; + /** + * + * + *
+   * Location of the exported files.
+   * This must match the output_uri_prefix of an ExportDocumentsResponse from
+   * an export that has completed successfully.
+   * See:
+   * [google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix].
+   * 
+ * + * string input_uri_prefix = 3; + */ + public java.lang.String getInputUriPrefix() { + java.lang.Object ref = inputUriPrefix_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUriPrefix_ = s; + return s; + } + } + /** + * + * + *
+   * Location of the exported files.
+   * This must match the output_uri_prefix of an ExportDocumentsResponse from
+   * an export that has completed successfully.
+   * See:
+   * [google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix].
+   * 
+ * + * string input_uri_prefix = 3; + */ + public com.google.protobuf.ByteString getInputUriPrefixBytes() { + java.lang.Object ref = inputUriPrefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inputUriPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + for (int i = 0; i < collectionIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, collectionIds_.getRaw(i)); + } + if (!getInputUriPrefixBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, inputUriPrefix_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + { + int dataSize = 0; + for (int i = 0; i < collectionIds_.size(); i++) { + dataSize += computeStringSizeNoTag(collectionIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getCollectionIdsList().size(); + } + if (!getInputUriPrefixBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, inputUriPrefix_); + } + 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.firestore.admin.v1.ImportDocumentsRequest)) { + return super.equals(obj); + } + com.google.firestore.admin.v1.ImportDocumentsRequest other = + (com.google.firestore.admin.v1.ImportDocumentsRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && getCollectionIdsList().equals(other.getCollectionIdsList()); + result = result && getInputUriPrefix().equals(other.getInputUriPrefix()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getCollectionIdsCount() > 0) { + hash = (37 * hash) + COLLECTION_IDS_FIELD_NUMBER; + hash = (53 * hash) + getCollectionIdsList().hashCode(); + } + hash = (37 * hash) + INPUT_URI_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getInputUriPrefix().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.firestore.admin.v1.ImportDocumentsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.ImportDocumentsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.ImportDocumentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.ImportDocumentsRequest 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.firestore.admin.v1.ImportDocumentsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.ImportDocumentsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.ImportDocumentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.ImportDocumentsRequest 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.firestore.admin.v1.ImportDocumentsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.ImportDocumentsRequest 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.firestore.admin.v1.ImportDocumentsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.ImportDocumentsRequest 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.firestore.admin.v1.ImportDocumentsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request for [FirestoreAdmin.ImportDocuments][google.firestore.admin.v1.FirestoreAdmin.ImportDocuments].
+   * 
+ * + * Protobuf type {@code google.firestore.admin.v1.ImportDocumentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.firestore.admin.v1.ImportDocumentsRequest) + com.google.firestore.admin.v1.ImportDocumentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ImportDocumentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ImportDocumentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.ImportDocumentsRequest.class, + com.google.firestore.admin.v1.ImportDocumentsRequest.Builder.class); + } + + // Construct using com.google.firestore.admin.v1.ImportDocumentsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + collectionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + inputUriPrefix_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ImportDocumentsRequest_descriptor; + } + + @java.lang.Override + public com.google.firestore.admin.v1.ImportDocumentsRequest getDefaultInstanceForType() { + return com.google.firestore.admin.v1.ImportDocumentsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.firestore.admin.v1.ImportDocumentsRequest build() { + com.google.firestore.admin.v1.ImportDocumentsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.firestore.admin.v1.ImportDocumentsRequest buildPartial() { + com.google.firestore.admin.v1.ImportDocumentsRequest result = + new com.google.firestore.admin.v1.ImportDocumentsRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + collectionIds_ = collectionIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.collectionIds_ = collectionIds_; + result.inputUriPrefix_ = inputUriPrefix_; + 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.firestore.admin.v1.ImportDocumentsRequest) { + return mergeFrom((com.google.firestore.admin.v1.ImportDocumentsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.firestore.admin.v1.ImportDocumentsRequest other) { + if (other == com.google.firestore.admin.v1.ImportDocumentsRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.collectionIds_.isEmpty()) { + if (collectionIds_.isEmpty()) { + collectionIds_ = other.collectionIds_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureCollectionIdsIsMutable(); + collectionIds_.addAll(other.collectionIds_); + } + onChanged(); + } + if (!other.getInputUriPrefix().isEmpty()) { + inputUriPrefix_ = other.inputUriPrefix_; + 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.firestore.admin.v1.ImportDocumentsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.firestore.admin.v1.ImportDocumentsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Database to import into. Should be of the form:
+     * `projects/{project_id}/databases/{database_id}`.
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Database to import into. Should be of the form:
+     * `projects/{project_id}/databases/{database_id}`.
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Database to import into. Should be of the form:
+     * `projects/{project_id}/databases/{database_id}`.
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Database to import into. Should be of the form:
+     * `projects/{project_id}/databases/{database_id}`.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Database to import into. Should be of the form:
+     * `projects/{project_id}/databases/{database_id}`.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList collectionIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureCollectionIdsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + collectionIds_ = new com.google.protobuf.LazyStringArrayList(collectionIds_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Which collection ids to import. Unspecified means all collections included
+     * in the import.
+     * 
+ * + * repeated string collection_ids = 2; + */ + public com.google.protobuf.ProtocolStringList getCollectionIdsList() { + return collectionIds_.getUnmodifiableView(); + } + /** + * + * + *
+     * Which collection ids to import. Unspecified means all collections included
+     * in the import.
+     * 
+ * + * repeated string collection_ids = 2; + */ + public int getCollectionIdsCount() { + return collectionIds_.size(); + } + /** + * + * + *
+     * Which collection ids to import. Unspecified means all collections included
+     * in the import.
+     * 
+ * + * repeated string collection_ids = 2; + */ + public java.lang.String getCollectionIds(int index) { + return collectionIds_.get(index); + } + /** + * + * + *
+     * Which collection ids to import. Unspecified means all collections included
+     * in the import.
+     * 
+ * + * repeated string collection_ids = 2; + */ + public com.google.protobuf.ByteString getCollectionIdsBytes(int index) { + return collectionIds_.getByteString(index); + } + /** + * + * + *
+     * Which collection ids to import. Unspecified means all collections included
+     * in the import.
+     * 
+ * + * repeated string collection_ids = 2; + */ + public Builder setCollectionIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCollectionIdsIsMutable(); + collectionIds_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Which collection ids to import. Unspecified means all collections included
+     * in the import.
+     * 
+ * + * repeated string collection_ids = 2; + */ + public Builder addCollectionIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCollectionIdsIsMutable(); + collectionIds_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Which collection ids to import. Unspecified means all collections included
+     * in the import.
+     * 
+ * + * repeated string collection_ids = 2; + */ + public Builder addAllCollectionIds(java.lang.Iterable values) { + ensureCollectionIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, collectionIds_); + onChanged(); + return this; + } + /** + * + * + *
+     * Which collection ids to import. Unspecified means all collections included
+     * in the import.
+     * 
+ * + * repeated string collection_ids = 2; + */ + public Builder clearCollectionIds() { + collectionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Which collection ids to import. Unspecified means all collections included
+     * in the import.
+     * 
+ * + * repeated string collection_ids = 2; + */ + public Builder addCollectionIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCollectionIdsIsMutable(); + collectionIds_.add(value); + onChanged(); + return this; + } + + private java.lang.Object inputUriPrefix_ = ""; + /** + * + * + *
+     * Location of the exported files.
+     * This must match the output_uri_prefix of an ExportDocumentsResponse from
+     * an export that has completed successfully.
+     * See:
+     * [google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix].
+     * 
+ * + * string input_uri_prefix = 3; + */ + public java.lang.String getInputUriPrefix() { + java.lang.Object ref = inputUriPrefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUriPrefix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Location of the exported files.
+     * This must match the output_uri_prefix of an ExportDocumentsResponse from
+     * an export that has completed successfully.
+     * See:
+     * [google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix].
+     * 
+ * + * string input_uri_prefix = 3; + */ + public com.google.protobuf.ByteString getInputUriPrefixBytes() { + java.lang.Object ref = inputUriPrefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inputUriPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Location of the exported files.
+     * This must match the output_uri_prefix of an ExportDocumentsResponse from
+     * an export that has completed successfully.
+     * See:
+     * [google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix].
+     * 
+ * + * string input_uri_prefix = 3; + */ + public Builder setInputUriPrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + inputUriPrefix_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Location of the exported files.
+     * This must match the output_uri_prefix of an ExportDocumentsResponse from
+     * an export that has completed successfully.
+     * See:
+     * [google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix].
+     * 
+ * + * string input_uri_prefix = 3; + */ + public Builder clearInputUriPrefix() { + + inputUriPrefix_ = getDefaultInstance().getInputUriPrefix(); + onChanged(); + return this; + } + /** + * + * + *
+     * Location of the exported files.
+     * This must match the output_uri_prefix of an ExportDocumentsResponse from
+     * an export that has completed successfully.
+     * See:
+     * [google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix].
+     * 
+ * + * string input_uri_prefix = 3; + */ + public Builder setInputUriPrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inputUriPrefix_ = 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.firestore.admin.v1.ImportDocumentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.ImportDocumentsRequest) + private static final com.google.firestore.admin.v1.ImportDocumentsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.firestore.admin.v1.ImportDocumentsRequest(); + } + + public static com.google.firestore.admin.v1.ImportDocumentsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportDocumentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportDocumentsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.firestore.admin.v1.ImportDocumentsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsRequestOrBuilder.java new file mode 100644 index 000000000000..b9efe59427e1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsRequestOrBuilder.java @@ -0,0 +1,107 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/firestore_admin.proto + +package com.google.firestore.admin.v1; + +public interface ImportDocumentsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.firestore.admin.v1.ImportDocumentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Database to import into. Should be of the form:
+   * `projects/{project_id}/databases/{database_id}`.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Database to import into. Should be of the form:
+   * `projects/{project_id}/databases/{database_id}`.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Which collection ids to import. Unspecified means all collections included
+   * in the import.
+   * 
+ * + * repeated string collection_ids = 2; + */ + java.util.List getCollectionIdsList(); + /** + * + * + *
+   * Which collection ids to import. Unspecified means all collections included
+   * in the import.
+   * 
+ * + * repeated string collection_ids = 2; + */ + int getCollectionIdsCount(); + /** + * + * + *
+   * Which collection ids to import. Unspecified means all collections included
+   * in the import.
+   * 
+ * + * repeated string collection_ids = 2; + */ + java.lang.String getCollectionIds(int index); + /** + * + * + *
+   * Which collection ids to import. Unspecified means all collections included
+   * in the import.
+   * 
+ * + * repeated string collection_ids = 2; + */ + com.google.protobuf.ByteString getCollectionIdsBytes(int index); + + /** + * + * + *
+   * Location of the exported files.
+   * This must match the output_uri_prefix of an ExportDocumentsResponse from
+   * an export that has completed successfully.
+   * See:
+   * [google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix].
+   * 
+ * + * string input_uri_prefix = 3; + */ + java.lang.String getInputUriPrefix(); + /** + * + * + *
+   * Location of the exported files.
+   * This must match the output_uri_prefix of an ExportDocumentsResponse from
+   * an export that has completed successfully.
+   * See:
+   * [google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix].
+   * 
+ * + * string input_uri_prefix = 3; + */ + com.google.protobuf.ByteString getInputUriPrefixBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Index.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Index.java new file mode 100644 index 000000000000..25f161687743 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Index.java @@ -0,0 +1,3277 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/index.proto + +package com.google.firestore.admin.v1; + +/** + * + * + *
+ * Cloud Firestore indexes enable simple and complex queries against
+ * documents in a database.
+ * 
+ * + * Protobuf type {@code google.firestore.admin.v1.Index} + */ +public final class Index extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.Index) + IndexOrBuilder { + private static final long serialVersionUID = 0L; + // Use Index.newBuilder() to construct. + private Index(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Index() { + name_ = ""; + queryScope_ = 0; + fields_ = java.util.Collections.emptyList(); + state_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Index( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + queryScope_ = rawValue; + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + fields_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + fields_.add( + input.readMessage( + com.google.firestore.admin.v1.Index.IndexField.parser(), extensionRegistry)); + break; + } + case 32: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + fields_ = java.util.Collections.unmodifiableList(fields_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.IndexProto + .internal_static_google_firestore_admin_v1_Index_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.IndexProto + .internal_static_google_firestore_admin_v1_Index_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.Index.class, + com.google.firestore.admin.v1.Index.Builder.class); + } + + /** + * + * + *
+   * Query Scope defines the scope at which a query is run. This is specified on
+   * a StructuredQuery's `from` field.
+   * 
+ * + * Protobuf enum {@code google.firestore.admin.v1.Index.QueryScope} + */ + public enum QueryScope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The query scope is unspecified. Not a valid option.
+     * 
+ * + * QUERY_SCOPE_UNSPECIFIED = 0; + */ + QUERY_SCOPE_UNSPECIFIED(0), + /** + * + * + *
+     * Indexes with a collection query scope specified allow queries
+     * against a collection that is the child of a specific document, specified
+     * at query time, and that has the collection id specified by the index.
+     * 
+ * + * COLLECTION = 1; + */ + COLLECTION(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The query scope is unspecified. Not a valid option.
+     * 
+ * + * QUERY_SCOPE_UNSPECIFIED = 0; + */ + public static final int QUERY_SCOPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Indexes with a collection query scope specified allow queries
+     * against a collection that is the child of a specific document, specified
+     * at query time, and that has the collection id specified by the index.
+     * 
+ * + * COLLECTION = 1; + */ + public static final int COLLECTION_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static QueryScope valueOf(int value) { + return forNumber(value); + } + + public static QueryScope forNumber(int value) { + switch (value) { + case 0: + return QUERY_SCOPE_UNSPECIFIED; + case 1: + return COLLECTION; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public QueryScope findValueByNumber(int number) { + return QueryScope.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.firestore.admin.v1.Index.getDescriptor().getEnumTypes().get(0); + } + + private static final QueryScope[] VALUES = values(); + + public static QueryScope valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private QueryScope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.firestore.admin.v1.Index.QueryScope) + } + + /** + * + * + *
+   * The state of an index. During index creation, an index will be in the
+   * `CREATING` state. If the index is created successfully, it will transition
+   * to the `READY` state. If the index creation encounters a problem, the index
+   * will transition to the `NEEDS_REPAIR` state.
+   * 
+ * + * Protobuf enum {@code google.firestore.admin.v1.Index.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The state is unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The index is being created.
+     * There is an active long-running operation for the index.
+     * The index is updated when writing a document.
+     * Some index data may exist.
+     * 
+ * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
+     * The index is ready to be used.
+     * The index is updated when writing a document.
+     * The index is fully populated from all stored documents it applies to.
+     * 
+ * + * READY = 2; + */ + READY(2), + /** + * + * + *
+     * The index was being created, but something went wrong.
+     * There is no active long-running operation for the index,
+     * and the most recently finished long-running operation failed.
+     * The index is not updated when writing a document.
+     * Some index data may exist.
+     * Use the google.longrunning.Operations API to determine why the operation
+     * that last attempted to create this index failed, then re-create the
+     * index.
+     * 
+ * + * NEEDS_REPAIR = 3; + */ + NEEDS_REPAIR(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The state is unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The index is being created.
+     * There is an active long-running operation for the index.
+     * The index is updated when writing a document.
+     * Some index data may exist.
+     * 
+ * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + /** + * + * + *
+     * The index is ready to be used.
+     * The index is updated when writing a document.
+     * The index is fully populated from all stored documents it applies to.
+     * 
+ * + * READY = 2; + */ + public static final int READY_VALUE = 2; + /** + * + * + *
+     * The index was being created, but something went wrong.
+     * There is no active long-running operation for the index,
+     * and the most recently finished long-running operation failed.
+     * The index is not updated when writing a document.
+     * Some index data may exist.
+     * Use the google.longrunning.Operations API to determine why the operation
+     * that last attempted to create this index failed, then re-create the
+     * index.
+     * 
+ * + * NEEDS_REPAIR = 3; + */ + public static final int NEEDS_REPAIR_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return READY; + case 3: + return NEEDS_REPAIR; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.firestore.admin.v1.Index.getDescriptor().getEnumTypes().get(1); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.firestore.admin.v1.Index.State) + } + + public interface IndexFieldOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.firestore.admin.v1.Index.IndexField) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Can be __name__.
+     * For single field indexes, this must match the name of the field or may
+     * be omitted.
+     * 
+ * + * string field_path = 1; + */ + java.lang.String getFieldPath(); + /** + * + * + *
+     * Can be __name__.
+     * For single field indexes, this must match the name of the field or may
+     * be omitted.
+     * 
+ * + * string field_path = 1; + */ + com.google.protobuf.ByteString getFieldPathBytes(); + + /** + * + * + *
+     * Indicates that this field supports ordering by the specified order or
+     * comparing using =, <, <=, >, >=.
+     * 
+ * + * .google.firestore.admin.v1.Index.IndexField.Order order = 2; + */ + int getOrderValue(); + /** + * + * + *
+     * Indicates that this field supports ordering by the specified order or
+     * comparing using =, <, <=, >, >=.
+     * 
+ * + * .google.firestore.admin.v1.Index.IndexField.Order order = 2; + */ + com.google.firestore.admin.v1.Index.IndexField.Order getOrder(); + + /** + * + * + *
+     * Indicates that this field supports operations on `array_value`s.
+     * 
+ * + * .google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3; + */ + int getArrayConfigValue(); + /** + * + * + *
+     * Indicates that this field supports operations on `array_value`s.
+     * 
+ * + * .google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3; + */ + com.google.firestore.admin.v1.Index.IndexField.ArrayConfig getArrayConfig(); + + public com.google.firestore.admin.v1.Index.IndexField.ValueModeCase getValueModeCase(); + } + /** + * + * + *
+   * A field in an index.
+   * The field_path describes which field is indexed, the value_mode describes
+   * how the field value is indexed.
+   * 
+ * + * Protobuf type {@code google.firestore.admin.v1.Index.IndexField} + */ + public static final class IndexField extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.Index.IndexField) + IndexFieldOrBuilder { + private static final long serialVersionUID = 0L; + // Use IndexField.newBuilder() to construct. + private IndexField(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IndexField() { + fieldPath_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private IndexField( + 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(); + + fieldPath_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + valueModeCase_ = 2; + valueMode_ = rawValue; + break; + } + case 24: + { + int rawValue = input.readEnum(); + valueModeCase_ = 3; + valueMode_ = rawValue; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.IndexProto + .internal_static_google_firestore_admin_v1_Index_IndexField_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.IndexProto + .internal_static_google_firestore_admin_v1_Index_IndexField_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.Index.IndexField.class, + com.google.firestore.admin.v1.Index.IndexField.Builder.class); + } + + /** + * + * + *
+     * The supported orderings.
+     * 
+ * + * Protobuf enum {@code google.firestore.admin.v1.Index.IndexField.Order} + */ + public enum Order implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * The ordering is unspecified. Not a valid option.
+       * 
+ * + * ORDER_UNSPECIFIED = 0; + */ + ORDER_UNSPECIFIED(0), + /** + * + * + *
+       * The field is ordered by ascending field value.
+       * 
+ * + * ASCENDING = 1; + */ + ASCENDING(1), + /** + * + * + *
+       * The field is ordered by descending field value.
+       * 
+ * + * DESCENDING = 2; + */ + DESCENDING(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * The ordering is unspecified. Not a valid option.
+       * 
+ * + * ORDER_UNSPECIFIED = 0; + */ + public static final int ORDER_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * The field is ordered by ascending field value.
+       * 
+ * + * ASCENDING = 1; + */ + public static final int ASCENDING_VALUE = 1; + /** + * + * + *
+       * The field is ordered by descending field value.
+       * 
+ * + * DESCENDING = 2; + */ + public static final int DESCENDING_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static Order valueOf(int value) { + return forNumber(value); + } + + public static Order forNumber(int value) { + switch (value) { + case 0: + return ORDER_UNSPECIFIED; + case 1: + return ASCENDING; + case 2: + return DESCENDING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Order findValueByNumber(int number) { + return Order.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.firestore.admin.v1.Index.IndexField.getDescriptor().getEnumTypes().get(0); + } + + private static final Order[] VALUES = values(); + + public static Order valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Order(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.firestore.admin.v1.Index.IndexField.Order) + } + + /** + * + * + *
+     * The supported array value configurations.
+     * 
+ * + * Protobuf enum {@code google.firestore.admin.v1.Index.IndexField.ArrayConfig} + */ + public enum ArrayConfig implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * The index does not support additional array queries.
+       * 
+ * + * ARRAY_CONFIG_UNSPECIFIED = 0; + */ + ARRAY_CONFIG_UNSPECIFIED(0), + /** + * + * + *
+       * The index supports array containment queries.
+       * 
+ * + * CONTAINS = 1; + */ + CONTAINS(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * The index does not support additional array queries.
+       * 
+ * + * ARRAY_CONFIG_UNSPECIFIED = 0; + */ + public static final int ARRAY_CONFIG_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * The index supports array containment queries.
+       * 
+ * + * CONTAINS = 1; + */ + public static final int CONTAINS_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static ArrayConfig valueOf(int value) { + return forNumber(value); + } + + public static ArrayConfig forNumber(int value) { + switch (value) { + case 0: + return ARRAY_CONFIG_UNSPECIFIED; + case 1: + return CONTAINS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ArrayConfig findValueByNumber(int number) { + return ArrayConfig.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.firestore.admin.v1.Index.IndexField.getDescriptor().getEnumTypes().get(1); + } + + private static final ArrayConfig[] VALUES = values(); + + public static ArrayConfig valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ArrayConfig(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.firestore.admin.v1.Index.IndexField.ArrayConfig) + } + + private int valueModeCase_ = 0; + private java.lang.Object valueMode_; + + public enum ValueModeCase implements com.google.protobuf.Internal.EnumLite { + ORDER(2), + ARRAY_CONFIG(3), + VALUEMODE_NOT_SET(0); + private final int value; + + private ValueModeCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static ValueModeCase valueOf(int value) { + return forNumber(value); + } + + public static ValueModeCase forNumber(int value) { + switch (value) { + case 2: + return ORDER; + case 3: + return ARRAY_CONFIG; + case 0: + return VALUEMODE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ValueModeCase getValueModeCase() { + return ValueModeCase.forNumber(valueModeCase_); + } + + public static final int FIELD_PATH_FIELD_NUMBER = 1; + private volatile java.lang.Object fieldPath_; + /** + * + * + *
+     * Can be __name__.
+     * For single field indexes, this must match the name of the field or may
+     * be omitted.
+     * 
+ * + * string field_path = 1; + */ + public java.lang.String getFieldPath() { + java.lang.Object ref = fieldPath_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldPath_ = s; + return s; + } + } + /** + * + * + *
+     * Can be __name__.
+     * For single field indexes, this must match the name of the field or may
+     * be omitted.
+     * 
+ * + * string field_path = 1; + */ + public com.google.protobuf.ByteString getFieldPathBytes() { + java.lang.Object ref = fieldPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_FIELD_NUMBER = 2; + /** + * + * + *
+     * Indicates that this field supports ordering by the specified order or
+     * comparing using =, <, <=, >, >=.
+     * 
+ * + * .google.firestore.admin.v1.Index.IndexField.Order order = 2; + */ + public int getOrderValue() { + if (valueModeCase_ == 2) { + return (java.lang.Integer) valueMode_; + } + return 0; + } + /** + * + * + *
+     * Indicates that this field supports ordering by the specified order or
+     * comparing using =, <, <=, >, >=.
+     * 
+ * + * .google.firestore.admin.v1.Index.IndexField.Order order = 2; + */ + public com.google.firestore.admin.v1.Index.IndexField.Order getOrder() { + if (valueModeCase_ == 2) { + @SuppressWarnings("deprecation") + com.google.firestore.admin.v1.Index.IndexField.Order result = + com.google.firestore.admin.v1.Index.IndexField.Order.valueOf( + (java.lang.Integer) valueMode_); + return result == null + ? com.google.firestore.admin.v1.Index.IndexField.Order.UNRECOGNIZED + : result; + } + return com.google.firestore.admin.v1.Index.IndexField.Order.ORDER_UNSPECIFIED; + } + + public static final int ARRAY_CONFIG_FIELD_NUMBER = 3; + /** + * + * + *
+     * Indicates that this field supports operations on `array_value`s.
+     * 
+ * + * .google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3; + */ + public int getArrayConfigValue() { + if (valueModeCase_ == 3) { + return (java.lang.Integer) valueMode_; + } + return 0; + } + /** + * + * + *
+     * Indicates that this field supports operations on `array_value`s.
+     * 
+ * + * .google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3; + */ + public com.google.firestore.admin.v1.Index.IndexField.ArrayConfig getArrayConfig() { + if (valueModeCase_ == 3) { + @SuppressWarnings("deprecation") + com.google.firestore.admin.v1.Index.IndexField.ArrayConfig result = + com.google.firestore.admin.v1.Index.IndexField.ArrayConfig.valueOf( + (java.lang.Integer) valueMode_); + return result == null + ? com.google.firestore.admin.v1.Index.IndexField.ArrayConfig.UNRECOGNIZED + : result; + } + return com.google.firestore.admin.v1.Index.IndexField.ArrayConfig.ARRAY_CONFIG_UNSPECIFIED; + } + + 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 (!getFieldPathBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldPath_); + } + if (valueModeCase_ == 2) { + output.writeEnum(2, ((java.lang.Integer) valueMode_)); + } + if (valueModeCase_ == 3) { + output.writeEnum(3, ((java.lang.Integer) valueMode_)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getFieldPathBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldPath_); + } + if (valueModeCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 2, ((java.lang.Integer) valueMode_)); + } + if (valueModeCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 3, ((java.lang.Integer) valueMode_)); + } + 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.firestore.admin.v1.Index.IndexField)) { + return super.equals(obj); + } + com.google.firestore.admin.v1.Index.IndexField other = + (com.google.firestore.admin.v1.Index.IndexField) obj; + + boolean result = true; + result = result && getFieldPath().equals(other.getFieldPath()); + result = result && getValueModeCase().equals(other.getValueModeCase()); + if (!result) return false; + switch (valueModeCase_) { + case 2: + result = result && getOrderValue() == other.getOrderValue(); + break; + case 3: + result = result && getArrayConfigValue() == other.getArrayConfigValue(); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FIELD_PATH_FIELD_NUMBER; + hash = (53 * hash) + getFieldPath().hashCode(); + switch (valueModeCase_) { + case 2: + hash = (37 * hash) + ORDER_FIELD_NUMBER; + hash = (53 * hash) + getOrderValue(); + break; + case 3: + hash = (37 * hash) + ARRAY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getArrayConfigValue(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.firestore.admin.v1.Index.IndexField parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.Index.IndexField parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.Index.IndexField parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.Index.IndexField 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.firestore.admin.v1.Index.IndexField parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.Index.IndexField parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.Index.IndexField parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.Index.IndexField 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.firestore.admin.v1.Index.IndexField parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.Index.IndexField 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.firestore.admin.v1.Index.IndexField parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.Index.IndexField 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.firestore.admin.v1.Index.IndexField prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * A field in an index.
+     * The field_path describes which field is indexed, the value_mode describes
+     * how the field value is indexed.
+     * 
+ * + * Protobuf type {@code google.firestore.admin.v1.Index.IndexField} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.firestore.admin.v1.Index.IndexField) + com.google.firestore.admin.v1.Index.IndexFieldOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.IndexProto + .internal_static_google_firestore_admin_v1_Index_IndexField_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.IndexProto + .internal_static_google_firestore_admin_v1_Index_IndexField_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.Index.IndexField.class, + com.google.firestore.admin.v1.Index.IndexField.Builder.class); + } + + // Construct using com.google.firestore.admin.v1.Index.IndexField.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + fieldPath_ = ""; + + valueModeCase_ = 0; + valueMode_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.firestore.admin.v1.IndexProto + .internal_static_google_firestore_admin_v1_Index_IndexField_descriptor; + } + + @java.lang.Override + public com.google.firestore.admin.v1.Index.IndexField getDefaultInstanceForType() { + return com.google.firestore.admin.v1.Index.IndexField.getDefaultInstance(); + } + + @java.lang.Override + public com.google.firestore.admin.v1.Index.IndexField build() { + com.google.firestore.admin.v1.Index.IndexField result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.firestore.admin.v1.Index.IndexField buildPartial() { + com.google.firestore.admin.v1.Index.IndexField result = + new com.google.firestore.admin.v1.Index.IndexField(this); + result.fieldPath_ = fieldPath_; + if (valueModeCase_ == 2) { + result.valueMode_ = valueMode_; + } + if (valueModeCase_ == 3) { + result.valueMode_ = valueMode_; + } + result.valueModeCase_ = valueModeCase_; + 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.firestore.admin.v1.Index.IndexField) { + return mergeFrom((com.google.firestore.admin.v1.Index.IndexField) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.firestore.admin.v1.Index.IndexField other) { + if (other == com.google.firestore.admin.v1.Index.IndexField.getDefaultInstance()) + return this; + if (!other.getFieldPath().isEmpty()) { + fieldPath_ = other.fieldPath_; + onChanged(); + } + switch (other.getValueModeCase()) { + case ORDER: + { + setOrderValue(other.getOrderValue()); + break; + } + case ARRAY_CONFIG: + { + setArrayConfigValue(other.getArrayConfigValue()); + break; + } + case VALUEMODE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.firestore.admin.v1.Index.IndexField parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.firestore.admin.v1.Index.IndexField) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int valueModeCase_ = 0; + private java.lang.Object valueMode_; + + public ValueModeCase getValueModeCase() { + return ValueModeCase.forNumber(valueModeCase_); + } + + public Builder clearValueMode() { + valueModeCase_ = 0; + valueMode_ = null; + onChanged(); + return this; + } + + private java.lang.Object fieldPath_ = ""; + /** + * + * + *
+       * Can be __name__.
+       * For single field indexes, this must match the name of the field or may
+       * be omitted.
+       * 
+ * + * string field_path = 1; + */ + public java.lang.String getFieldPath() { + java.lang.Object ref = fieldPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Can be __name__.
+       * For single field indexes, this must match the name of the field or may
+       * be omitted.
+       * 
+ * + * string field_path = 1; + */ + public com.google.protobuf.ByteString getFieldPathBytes() { + java.lang.Object ref = fieldPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Can be __name__.
+       * For single field indexes, this must match the name of the field or may
+       * be omitted.
+       * 
+ * + * string field_path = 1; + */ + public Builder setFieldPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + fieldPath_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Can be __name__.
+       * For single field indexes, this must match the name of the field or may
+       * be omitted.
+       * 
+ * + * string field_path = 1; + */ + public Builder clearFieldPath() { + + fieldPath_ = getDefaultInstance().getFieldPath(); + onChanged(); + return this; + } + /** + * + * + *
+       * Can be __name__.
+       * For single field indexes, this must match the name of the field or may
+       * be omitted.
+       * 
+ * + * string field_path = 1; + */ + public Builder setFieldPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + fieldPath_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+       * Indicates that this field supports ordering by the specified order or
+       * comparing using =, <, <=, >, >=.
+       * 
+ * + * .google.firestore.admin.v1.Index.IndexField.Order order = 2; + */ + public int getOrderValue() { + if (valueModeCase_ == 2) { + return ((java.lang.Integer) valueMode_).intValue(); + } + return 0; + } + /** + * + * + *
+       * Indicates that this field supports ordering by the specified order or
+       * comparing using =, <, <=, >, >=.
+       * 
+ * + * .google.firestore.admin.v1.Index.IndexField.Order order = 2; + */ + public Builder setOrderValue(int value) { + valueModeCase_ = 2; + valueMode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Indicates that this field supports ordering by the specified order or
+       * comparing using =, <, <=, >, >=.
+       * 
+ * + * .google.firestore.admin.v1.Index.IndexField.Order order = 2; + */ + public com.google.firestore.admin.v1.Index.IndexField.Order getOrder() { + if (valueModeCase_ == 2) { + @SuppressWarnings("deprecation") + com.google.firestore.admin.v1.Index.IndexField.Order result = + com.google.firestore.admin.v1.Index.IndexField.Order.valueOf( + (java.lang.Integer) valueMode_); + return result == null + ? com.google.firestore.admin.v1.Index.IndexField.Order.UNRECOGNIZED + : result; + } + return com.google.firestore.admin.v1.Index.IndexField.Order.ORDER_UNSPECIFIED; + } + /** + * + * + *
+       * Indicates that this field supports ordering by the specified order or
+       * comparing using =, <, <=, >, >=.
+       * 
+ * + * .google.firestore.admin.v1.Index.IndexField.Order order = 2; + */ + public Builder setOrder(com.google.firestore.admin.v1.Index.IndexField.Order value) { + if (value == null) { + throw new NullPointerException(); + } + valueModeCase_ = 2; + valueMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Indicates that this field supports ordering by the specified order or
+       * comparing using =, <, <=, >, >=.
+       * 
+ * + * .google.firestore.admin.v1.Index.IndexField.Order order = 2; + */ + public Builder clearOrder() { + if (valueModeCase_ == 2) { + valueModeCase_ = 0; + valueMode_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Indicates that this field supports operations on `array_value`s.
+       * 
+ * + * .google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3; + */ + public int getArrayConfigValue() { + if (valueModeCase_ == 3) { + return ((java.lang.Integer) valueMode_).intValue(); + } + return 0; + } + /** + * + * + *
+       * Indicates that this field supports operations on `array_value`s.
+       * 
+ * + * .google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3; + */ + public Builder setArrayConfigValue(int value) { + valueModeCase_ = 3; + valueMode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Indicates that this field supports operations on `array_value`s.
+       * 
+ * + * .google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3; + */ + public com.google.firestore.admin.v1.Index.IndexField.ArrayConfig getArrayConfig() { + if (valueModeCase_ == 3) { + @SuppressWarnings("deprecation") + com.google.firestore.admin.v1.Index.IndexField.ArrayConfig result = + com.google.firestore.admin.v1.Index.IndexField.ArrayConfig.valueOf( + (java.lang.Integer) valueMode_); + return result == null + ? com.google.firestore.admin.v1.Index.IndexField.ArrayConfig.UNRECOGNIZED + : result; + } + return com.google.firestore.admin.v1.Index.IndexField.ArrayConfig.ARRAY_CONFIG_UNSPECIFIED; + } + /** + * + * + *
+       * Indicates that this field supports operations on `array_value`s.
+       * 
+ * + * .google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3; + */ + public Builder setArrayConfig( + com.google.firestore.admin.v1.Index.IndexField.ArrayConfig value) { + if (value == null) { + throw new NullPointerException(); + } + valueModeCase_ = 3; + valueMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Indicates that this field supports operations on `array_value`s.
+       * 
+ * + * .google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3; + */ + public Builder clearArrayConfig() { + if (valueModeCase_ == 3) { + valueModeCase_ = 0; + valueMode_ = null; + onChanged(); + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.Index.IndexField) + } + + // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.Index.IndexField) + private static final com.google.firestore.admin.v1.Index.IndexField DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.firestore.admin.v1.Index.IndexField(); + } + + public static com.google.firestore.admin.v1.Index.IndexField getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IndexField parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IndexField(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.firestore.admin.v1.Index.IndexField getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only.
+   * A server defined name for this index.
+   * The form of this name for composite indexes will be:
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}`
+   * For single field indexes, this field will be empty.
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only.
+   * A server defined name for this index.
+   * The form of this name for composite indexes will be:
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}`
+   * For single field indexes, this field will be empty.
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_SCOPE_FIELD_NUMBER = 2; + private int queryScope_; + /** + * + * + *
+   * Indexes with a collection query scope specified allow queries
+   * against a collection that is the child of a specific document, specified at
+   * query time, and that has the same collection id.
+   * Indexes with a collection group query scope specified allow queries against
+   * all collections descended from a specific document, specified at query
+   * time, and that have the same collection id as this index.
+   * 
+ * + * .google.firestore.admin.v1.Index.QueryScope query_scope = 2; + */ + public int getQueryScopeValue() { + return queryScope_; + } + /** + * + * + *
+   * Indexes with a collection query scope specified allow queries
+   * against a collection that is the child of a specific document, specified at
+   * query time, and that has the same collection id.
+   * Indexes with a collection group query scope specified allow queries against
+   * all collections descended from a specific document, specified at query
+   * time, and that have the same collection id as this index.
+   * 
+ * + * .google.firestore.admin.v1.Index.QueryScope query_scope = 2; + */ + public com.google.firestore.admin.v1.Index.QueryScope getQueryScope() { + @SuppressWarnings("deprecation") + com.google.firestore.admin.v1.Index.QueryScope result = + com.google.firestore.admin.v1.Index.QueryScope.valueOf(queryScope_); + return result == null ? com.google.firestore.admin.v1.Index.QueryScope.UNRECOGNIZED : result; + } + + public static final int FIELDS_FIELD_NUMBER = 3; + private java.util.List fields_; + /** + * + * + *
+   * The fields supported by this index.
+   * For composite indexes, this is always 2 or more fields.
+   * The last field entry is always for the field path `__name__`. If, on
+   * creation, `__name__` was not specified as the last field, it will be added
+   * automatically with the same direction as that of the last field defined. If
+   * the final field in a composite index is not directional, the `__name__`
+   * will be ordered ASCENDING (unless explicitly specified).
+   * For single field indexes, this will always be exactly one entry with a
+   * field path equal to the field path of the associated field.
+   * 
+ * + * repeated .google.firestore.admin.v1.Index.IndexField fields = 3; + */ + public java.util.List getFieldsList() { + return fields_; + } + /** + * + * + *
+   * The fields supported by this index.
+   * For composite indexes, this is always 2 or more fields.
+   * The last field entry is always for the field path `__name__`. If, on
+   * creation, `__name__` was not specified as the last field, it will be added
+   * automatically with the same direction as that of the last field defined. If
+   * the final field in a composite index is not directional, the `__name__`
+   * will be ordered ASCENDING (unless explicitly specified).
+   * For single field indexes, this will always be exactly one entry with a
+   * field path equal to the field path of the associated field.
+   * 
+ * + * repeated .google.firestore.admin.v1.Index.IndexField fields = 3; + */ + public java.util.List + getFieldsOrBuilderList() { + return fields_; + } + /** + * + * + *
+   * The fields supported by this index.
+   * For composite indexes, this is always 2 or more fields.
+   * The last field entry is always for the field path `__name__`. If, on
+   * creation, `__name__` was not specified as the last field, it will be added
+   * automatically with the same direction as that of the last field defined. If
+   * the final field in a composite index is not directional, the `__name__`
+   * will be ordered ASCENDING (unless explicitly specified).
+   * For single field indexes, this will always be exactly one entry with a
+   * field path equal to the field path of the associated field.
+   * 
+ * + * repeated .google.firestore.admin.v1.Index.IndexField fields = 3; + */ + public int getFieldsCount() { + return fields_.size(); + } + /** + * + * + *
+   * The fields supported by this index.
+   * For composite indexes, this is always 2 or more fields.
+   * The last field entry is always for the field path `__name__`. If, on
+   * creation, `__name__` was not specified as the last field, it will be added
+   * automatically with the same direction as that of the last field defined. If
+   * the final field in a composite index is not directional, the `__name__`
+   * will be ordered ASCENDING (unless explicitly specified).
+   * For single field indexes, this will always be exactly one entry with a
+   * field path equal to the field path of the associated field.
+   * 
+ * + * repeated .google.firestore.admin.v1.Index.IndexField fields = 3; + */ + public com.google.firestore.admin.v1.Index.IndexField getFields(int index) { + return fields_.get(index); + } + /** + * + * + *
+   * The fields supported by this index.
+   * For composite indexes, this is always 2 or more fields.
+   * The last field entry is always for the field path `__name__`. If, on
+   * creation, `__name__` was not specified as the last field, it will be added
+   * automatically with the same direction as that of the last field defined. If
+   * the final field in a composite index is not directional, the `__name__`
+   * will be ordered ASCENDING (unless explicitly specified).
+   * For single field indexes, this will always be exactly one entry with a
+   * field path equal to the field path of the associated field.
+   * 
+ * + * repeated .google.firestore.admin.v1.Index.IndexField fields = 3; + */ + public com.google.firestore.admin.v1.Index.IndexFieldOrBuilder getFieldsOrBuilder(int index) { + return fields_.get(index); + } + + public static final int STATE_FIELD_NUMBER = 4; + private int state_; + /** + * + * + *
+   * Output only.
+   * The serving state of the index.
+   * 
+ * + * .google.firestore.admin.v1.Index.State state = 4; + */ + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only.
+   * The serving state of the index.
+   * 
+ * + * .google.firestore.admin.v1.Index.State state = 4; + */ + public com.google.firestore.admin.v1.Index.State getState() { + @SuppressWarnings("deprecation") + com.google.firestore.admin.v1.Index.State result = + com.google.firestore.admin.v1.Index.State.valueOf(state_); + return result == null ? com.google.firestore.admin.v1.Index.State.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (queryScope_ + != com.google.firestore.admin.v1.Index.QueryScope.QUERY_SCOPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, queryScope_); + } + for (int i = 0; i < fields_.size(); i++) { + output.writeMessage(3, fields_.get(i)); + } + if (state_ != com.google.firestore.admin.v1.Index.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, state_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (queryScope_ + != com.google.firestore.admin.v1.Index.QueryScope.QUERY_SCOPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, queryScope_); + } + for (int i = 0; i < fields_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, fields_.get(i)); + } + if (state_ != com.google.firestore.admin.v1.Index.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + } + 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.firestore.admin.v1.Index)) { + return super.equals(obj); + } + com.google.firestore.admin.v1.Index other = (com.google.firestore.admin.v1.Index) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && queryScope_ == other.queryScope_; + result = result && getFieldsList().equals(other.getFieldsList()); + result = result && state_ == other.state_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + QUERY_SCOPE_FIELD_NUMBER; + hash = (53 * hash) + queryScope_; + if (getFieldsCount() > 0) { + hash = (37 * hash) + FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getFieldsList().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.firestore.admin.v1.Index parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.Index parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.Index parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.Index 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.firestore.admin.v1.Index parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.Index parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.Index parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.Index 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.firestore.admin.v1.Index parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.Index 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.firestore.admin.v1.Index parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.Index 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.firestore.admin.v1.Index prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Cloud Firestore indexes enable simple and complex queries against
+   * documents in a database.
+   * 
+ * + * Protobuf type {@code google.firestore.admin.v1.Index} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.firestore.admin.v1.Index) + com.google.firestore.admin.v1.IndexOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.IndexProto + .internal_static_google_firestore_admin_v1_Index_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.IndexProto + .internal_static_google_firestore_admin_v1_Index_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.Index.class, + com.google.firestore.admin.v1.Index.Builder.class); + } + + // Construct using com.google.firestore.admin.v1.Index.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFieldsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + queryScope_ = 0; + + if (fieldsBuilder_ == null) { + fields_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + fieldsBuilder_.clear(); + } + state_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.firestore.admin.v1.IndexProto + .internal_static_google_firestore_admin_v1_Index_descriptor; + } + + @java.lang.Override + public com.google.firestore.admin.v1.Index getDefaultInstanceForType() { + return com.google.firestore.admin.v1.Index.getDefaultInstance(); + } + + @java.lang.Override + public com.google.firestore.admin.v1.Index build() { + com.google.firestore.admin.v1.Index result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.firestore.admin.v1.Index buildPartial() { + com.google.firestore.admin.v1.Index result = new com.google.firestore.admin.v1.Index(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + result.queryScope_ = queryScope_; + if (fieldsBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + fields_ = java.util.Collections.unmodifiableList(fields_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.fields_ = fields_; + } else { + result.fields_ = fieldsBuilder_.build(); + } + result.state_ = state_; + 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.firestore.admin.v1.Index) { + return mergeFrom((com.google.firestore.admin.v1.Index) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.firestore.admin.v1.Index other) { + if (other == com.google.firestore.admin.v1.Index.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.queryScope_ != 0) { + setQueryScopeValue(other.getQueryScopeValue()); + } + if (fieldsBuilder_ == null) { + if (!other.fields_.isEmpty()) { + if (fields_.isEmpty()) { + fields_ = other.fields_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureFieldsIsMutable(); + fields_.addAll(other.fields_); + } + onChanged(); + } + } else { + if (!other.fields_.isEmpty()) { + if (fieldsBuilder_.isEmpty()) { + fieldsBuilder_.dispose(); + fieldsBuilder_ = null; + fields_ = other.fields_; + bitField0_ = (bitField0_ & ~0x00000004); + fieldsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFieldsFieldBuilder() + : null; + } else { + fieldsBuilder_.addAllMessages(other.fields_); + } + } + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + 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.firestore.admin.v1.Index parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.firestore.admin.v1.Index) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only.
+     * A server defined name for this index.
+     * The form of this name for composite indexes will be:
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}`
+     * For single field indexes, this field will be empty.
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only.
+     * A server defined name for this index.
+     * The form of this name for composite indexes will be:
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}`
+     * For single field indexes, this field will be empty.
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only.
+     * A server defined name for this index.
+     * The form of this name for composite indexes will be:
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}`
+     * For single field indexes, this field will be empty.
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only.
+     * A server defined name for this index.
+     * The form of this name for composite indexes will be:
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}`
+     * For single field indexes, this field will be empty.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only.
+     * A server defined name for this index.
+     * The form of this name for composite indexes will be:
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}`
+     * For single field indexes, this field will be empty.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int queryScope_ = 0; + /** + * + * + *
+     * Indexes with a collection query scope specified allow queries
+     * against a collection that is the child of a specific document, specified at
+     * query time, and that has the same collection id.
+     * Indexes with a collection group query scope specified allow queries against
+     * all collections descended from a specific document, specified at query
+     * time, and that have the same collection id as this index.
+     * 
+ * + * .google.firestore.admin.v1.Index.QueryScope query_scope = 2; + */ + public int getQueryScopeValue() { + return queryScope_; + } + /** + * + * + *
+     * Indexes with a collection query scope specified allow queries
+     * against a collection that is the child of a specific document, specified at
+     * query time, and that has the same collection id.
+     * Indexes with a collection group query scope specified allow queries against
+     * all collections descended from a specific document, specified at query
+     * time, and that have the same collection id as this index.
+     * 
+ * + * .google.firestore.admin.v1.Index.QueryScope query_scope = 2; + */ + public Builder setQueryScopeValue(int value) { + queryScope_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Indexes with a collection query scope specified allow queries
+     * against a collection that is the child of a specific document, specified at
+     * query time, and that has the same collection id.
+     * Indexes with a collection group query scope specified allow queries against
+     * all collections descended from a specific document, specified at query
+     * time, and that have the same collection id as this index.
+     * 
+ * + * .google.firestore.admin.v1.Index.QueryScope query_scope = 2; + */ + public com.google.firestore.admin.v1.Index.QueryScope getQueryScope() { + @SuppressWarnings("deprecation") + com.google.firestore.admin.v1.Index.QueryScope result = + com.google.firestore.admin.v1.Index.QueryScope.valueOf(queryScope_); + return result == null ? com.google.firestore.admin.v1.Index.QueryScope.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Indexes with a collection query scope specified allow queries
+     * against a collection that is the child of a specific document, specified at
+     * query time, and that has the same collection id.
+     * Indexes with a collection group query scope specified allow queries against
+     * all collections descended from a specific document, specified at query
+     * time, and that have the same collection id as this index.
+     * 
+ * + * .google.firestore.admin.v1.Index.QueryScope query_scope = 2; + */ + public Builder setQueryScope(com.google.firestore.admin.v1.Index.QueryScope value) { + if (value == null) { + throw new NullPointerException(); + } + + queryScope_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Indexes with a collection query scope specified allow queries
+     * against a collection that is the child of a specific document, specified at
+     * query time, and that has the same collection id.
+     * Indexes with a collection group query scope specified allow queries against
+     * all collections descended from a specific document, specified at query
+     * time, and that have the same collection id as this index.
+     * 
+ * + * .google.firestore.admin.v1.Index.QueryScope query_scope = 2; + */ + public Builder clearQueryScope() { + + queryScope_ = 0; + onChanged(); + return this; + } + + private java.util.List fields_ = + java.util.Collections.emptyList(); + + private void ensureFieldsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + fields_ = new java.util.ArrayList(fields_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.firestore.admin.v1.Index.IndexField, + com.google.firestore.admin.v1.Index.IndexField.Builder, + com.google.firestore.admin.v1.Index.IndexFieldOrBuilder> + fieldsBuilder_; + + /** + * + * + *
+     * The fields supported by this index.
+     * For composite indexes, this is always 2 or more fields.
+     * The last field entry is always for the field path `__name__`. If, on
+     * creation, `__name__` was not specified as the last field, it will be added
+     * automatically with the same direction as that of the last field defined. If
+     * the final field in a composite index is not directional, the `__name__`
+     * will be ordered ASCENDING (unless explicitly specified).
+     * For single field indexes, this will always be exactly one entry with a
+     * field path equal to the field path of the associated field.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index.IndexField fields = 3; + */ + public java.util.List getFieldsList() { + if (fieldsBuilder_ == null) { + return java.util.Collections.unmodifiableList(fields_); + } else { + return fieldsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The fields supported by this index.
+     * For composite indexes, this is always 2 or more fields.
+     * The last field entry is always for the field path `__name__`. If, on
+     * creation, `__name__` was not specified as the last field, it will be added
+     * automatically with the same direction as that of the last field defined. If
+     * the final field in a composite index is not directional, the `__name__`
+     * will be ordered ASCENDING (unless explicitly specified).
+     * For single field indexes, this will always be exactly one entry with a
+     * field path equal to the field path of the associated field.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index.IndexField fields = 3; + */ + public int getFieldsCount() { + if (fieldsBuilder_ == null) { + return fields_.size(); + } else { + return fieldsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The fields supported by this index.
+     * For composite indexes, this is always 2 or more fields.
+     * The last field entry is always for the field path `__name__`. If, on
+     * creation, `__name__` was not specified as the last field, it will be added
+     * automatically with the same direction as that of the last field defined. If
+     * the final field in a composite index is not directional, the `__name__`
+     * will be ordered ASCENDING (unless explicitly specified).
+     * For single field indexes, this will always be exactly one entry with a
+     * field path equal to the field path of the associated field.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index.IndexField fields = 3; + */ + public com.google.firestore.admin.v1.Index.IndexField getFields(int index) { + if (fieldsBuilder_ == null) { + return fields_.get(index); + } else { + return fieldsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The fields supported by this index.
+     * For composite indexes, this is always 2 or more fields.
+     * The last field entry is always for the field path `__name__`. If, on
+     * creation, `__name__` was not specified as the last field, it will be added
+     * automatically with the same direction as that of the last field defined. If
+     * the final field in a composite index is not directional, the `__name__`
+     * will be ordered ASCENDING (unless explicitly specified).
+     * For single field indexes, this will always be exactly one entry with a
+     * field path equal to the field path of the associated field.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index.IndexField fields = 3; + */ + public Builder setFields(int index, com.google.firestore.admin.v1.Index.IndexField value) { + if (fieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsIsMutable(); + fields_.set(index, value); + onChanged(); + } else { + fieldsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The fields supported by this index.
+     * For composite indexes, this is always 2 or more fields.
+     * The last field entry is always for the field path `__name__`. If, on
+     * creation, `__name__` was not specified as the last field, it will be added
+     * automatically with the same direction as that of the last field defined. If
+     * the final field in a composite index is not directional, the `__name__`
+     * will be ordered ASCENDING (unless explicitly specified).
+     * For single field indexes, this will always be exactly one entry with a
+     * field path equal to the field path of the associated field.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index.IndexField fields = 3; + */ + public Builder setFields( + int index, com.google.firestore.admin.v1.Index.IndexField.Builder builderForValue) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.set(index, builderForValue.build()); + onChanged(); + } else { + fieldsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The fields supported by this index.
+     * For composite indexes, this is always 2 or more fields.
+     * The last field entry is always for the field path `__name__`. If, on
+     * creation, `__name__` was not specified as the last field, it will be added
+     * automatically with the same direction as that of the last field defined. If
+     * the final field in a composite index is not directional, the `__name__`
+     * will be ordered ASCENDING (unless explicitly specified).
+     * For single field indexes, this will always be exactly one entry with a
+     * field path equal to the field path of the associated field.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index.IndexField fields = 3; + */ + public Builder addFields(com.google.firestore.admin.v1.Index.IndexField value) { + if (fieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsIsMutable(); + fields_.add(value); + onChanged(); + } else { + fieldsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The fields supported by this index.
+     * For composite indexes, this is always 2 or more fields.
+     * The last field entry is always for the field path `__name__`. If, on
+     * creation, `__name__` was not specified as the last field, it will be added
+     * automatically with the same direction as that of the last field defined. If
+     * the final field in a composite index is not directional, the `__name__`
+     * will be ordered ASCENDING (unless explicitly specified).
+     * For single field indexes, this will always be exactly one entry with a
+     * field path equal to the field path of the associated field.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index.IndexField fields = 3; + */ + public Builder addFields(int index, com.google.firestore.admin.v1.Index.IndexField value) { + if (fieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsIsMutable(); + fields_.add(index, value); + onChanged(); + } else { + fieldsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The fields supported by this index.
+     * For composite indexes, this is always 2 or more fields.
+     * The last field entry is always for the field path `__name__`. If, on
+     * creation, `__name__` was not specified as the last field, it will be added
+     * automatically with the same direction as that of the last field defined. If
+     * the final field in a composite index is not directional, the `__name__`
+     * will be ordered ASCENDING (unless explicitly specified).
+     * For single field indexes, this will always be exactly one entry with a
+     * field path equal to the field path of the associated field.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index.IndexField fields = 3; + */ + public Builder addFields( + com.google.firestore.admin.v1.Index.IndexField.Builder builderForValue) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(builderForValue.build()); + onChanged(); + } else { + fieldsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The fields supported by this index.
+     * For composite indexes, this is always 2 or more fields.
+     * The last field entry is always for the field path `__name__`. If, on
+     * creation, `__name__` was not specified as the last field, it will be added
+     * automatically with the same direction as that of the last field defined. If
+     * the final field in a composite index is not directional, the `__name__`
+     * will be ordered ASCENDING (unless explicitly specified).
+     * For single field indexes, this will always be exactly one entry with a
+     * field path equal to the field path of the associated field.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index.IndexField fields = 3; + */ + public Builder addFields( + int index, com.google.firestore.admin.v1.Index.IndexField.Builder builderForValue) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(index, builderForValue.build()); + onChanged(); + } else { + fieldsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The fields supported by this index.
+     * For composite indexes, this is always 2 or more fields.
+     * The last field entry is always for the field path `__name__`. If, on
+     * creation, `__name__` was not specified as the last field, it will be added
+     * automatically with the same direction as that of the last field defined. If
+     * the final field in a composite index is not directional, the `__name__`
+     * will be ordered ASCENDING (unless explicitly specified).
+     * For single field indexes, this will always be exactly one entry with a
+     * field path equal to the field path of the associated field.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index.IndexField fields = 3; + */ + public Builder addAllFields( + java.lang.Iterable values) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_); + onChanged(); + } else { + fieldsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The fields supported by this index.
+     * For composite indexes, this is always 2 or more fields.
+     * The last field entry is always for the field path `__name__`. If, on
+     * creation, `__name__` was not specified as the last field, it will be added
+     * automatically with the same direction as that of the last field defined. If
+     * the final field in a composite index is not directional, the `__name__`
+     * will be ordered ASCENDING (unless explicitly specified).
+     * For single field indexes, this will always be exactly one entry with a
+     * field path equal to the field path of the associated field.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index.IndexField fields = 3; + */ + public Builder clearFields() { + if (fieldsBuilder_ == null) { + fields_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + fieldsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The fields supported by this index.
+     * For composite indexes, this is always 2 or more fields.
+     * The last field entry is always for the field path `__name__`. If, on
+     * creation, `__name__` was not specified as the last field, it will be added
+     * automatically with the same direction as that of the last field defined. If
+     * the final field in a composite index is not directional, the `__name__`
+     * will be ordered ASCENDING (unless explicitly specified).
+     * For single field indexes, this will always be exactly one entry with a
+     * field path equal to the field path of the associated field.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index.IndexField fields = 3; + */ + public Builder removeFields(int index) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.remove(index); + onChanged(); + } else { + fieldsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The fields supported by this index.
+     * For composite indexes, this is always 2 or more fields.
+     * The last field entry is always for the field path `__name__`. If, on
+     * creation, `__name__` was not specified as the last field, it will be added
+     * automatically with the same direction as that of the last field defined. If
+     * the final field in a composite index is not directional, the `__name__`
+     * will be ordered ASCENDING (unless explicitly specified).
+     * For single field indexes, this will always be exactly one entry with a
+     * field path equal to the field path of the associated field.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index.IndexField fields = 3; + */ + public com.google.firestore.admin.v1.Index.IndexField.Builder getFieldsBuilder(int index) { + return getFieldsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The fields supported by this index.
+     * For composite indexes, this is always 2 or more fields.
+     * The last field entry is always for the field path `__name__`. If, on
+     * creation, `__name__` was not specified as the last field, it will be added
+     * automatically with the same direction as that of the last field defined. If
+     * the final field in a composite index is not directional, the `__name__`
+     * will be ordered ASCENDING (unless explicitly specified).
+     * For single field indexes, this will always be exactly one entry with a
+     * field path equal to the field path of the associated field.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index.IndexField fields = 3; + */ + public com.google.firestore.admin.v1.Index.IndexFieldOrBuilder getFieldsOrBuilder(int index) { + if (fieldsBuilder_ == null) { + return fields_.get(index); + } else { + return fieldsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The fields supported by this index.
+     * For composite indexes, this is always 2 or more fields.
+     * The last field entry is always for the field path `__name__`. If, on
+     * creation, `__name__` was not specified as the last field, it will be added
+     * automatically with the same direction as that of the last field defined. If
+     * the final field in a composite index is not directional, the `__name__`
+     * will be ordered ASCENDING (unless explicitly specified).
+     * For single field indexes, this will always be exactly one entry with a
+     * field path equal to the field path of the associated field.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index.IndexField fields = 3; + */ + public java.util.List + getFieldsOrBuilderList() { + if (fieldsBuilder_ != null) { + return fieldsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(fields_); + } + } + /** + * + * + *
+     * The fields supported by this index.
+     * For composite indexes, this is always 2 or more fields.
+     * The last field entry is always for the field path `__name__`. If, on
+     * creation, `__name__` was not specified as the last field, it will be added
+     * automatically with the same direction as that of the last field defined. If
+     * the final field in a composite index is not directional, the `__name__`
+     * will be ordered ASCENDING (unless explicitly specified).
+     * For single field indexes, this will always be exactly one entry with a
+     * field path equal to the field path of the associated field.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index.IndexField fields = 3; + */ + public com.google.firestore.admin.v1.Index.IndexField.Builder addFieldsBuilder() { + return getFieldsFieldBuilder() + .addBuilder(com.google.firestore.admin.v1.Index.IndexField.getDefaultInstance()); + } + /** + * + * + *
+     * The fields supported by this index.
+     * For composite indexes, this is always 2 or more fields.
+     * The last field entry is always for the field path `__name__`. If, on
+     * creation, `__name__` was not specified as the last field, it will be added
+     * automatically with the same direction as that of the last field defined. If
+     * the final field in a composite index is not directional, the `__name__`
+     * will be ordered ASCENDING (unless explicitly specified).
+     * For single field indexes, this will always be exactly one entry with a
+     * field path equal to the field path of the associated field.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index.IndexField fields = 3; + */ + public com.google.firestore.admin.v1.Index.IndexField.Builder addFieldsBuilder(int index) { + return getFieldsFieldBuilder() + .addBuilder(index, com.google.firestore.admin.v1.Index.IndexField.getDefaultInstance()); + } + /** + * + * + *
+     * The fields supported by this index.
+     * For composite indexes, this is always 2 or more fields.
+     * The last field entry is always for the field path `__name__`. If, on
+     * creation, `__name__` was not specified as the last field, it will be added
+     * automatically with the same direction as that of the last field defined. If
+     * the final field in a composite index is not directional, the `__name__`
+     * will be ordered ASCENDING (unless explicitly specified).
+     * For single field indexes, this will always be exactly one entry with a
+     * field path equal to the field path of the associated field.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index.IndexField fields = 3; + */ + public java.util.List + getFieldsBuilderList() { + return getFieldsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.firestore.admin.v1.Index.IndexField, + com.google.firestore.admin.v1.Index.IndexField.Builder, + com.google.firestore.admin.v1.Index.IndexFieldOrBuilder> + getFieldsFieldBuilder() { + if (fieldsBuilder_ == null) { + fieldsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.firestore.admin.v1.Index.IndexField, + com.google.firestore.admin.v1.Index.IndexField.Builder, + com.google.firestore.admin.v1.Index.IndexFieldOrBuilder>( + fields_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + fields_ = null; + } + return fieldsBuilder_; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only.
+     * The serving state of the index.
+     * 
+ * + * .google.firestore.admin.v1.Index.State state = 4; + */ + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only.
+     * The serving state of the index.
+     * 
+ * + * .google.firestore.admin.v1.Index.State state = 4; + */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only.
+     * The serving state of the index.
+     * 
+ * + * .google.firestore.admin.v1.Index.State state = 4; + */ + public com.google.firestore.admin.v1.Index.State getState() { + @SuppressWarnings("deprecation") + com.google.firestore.admin.v1.Index.State result = + com.google.firestore.admin.v1.Index.State.valueOf(state_); + return result == null ? com.google.firestore.admin.v1.Index.State.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Output only.
+     * The serving state of the index.
+     * 
+ * + * .google.firestore.admin.v1.Index.State state = 4; + */ + public Builder setState(com.google.firestore.admin.v1.Index.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only.
+     * The serving state of the index.
+     * 
+ * + * .google.firestore.admin.v1.Index.State state = 4; + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.Index) + } + + // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.Index) + private static final com.google.firestore.admin.v1.Index DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.firestore.admin.v1.Index(); + } + + public static com.google.firestore.admin.v1.Index getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Index parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Index(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.firestore.admin.v1.Index getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexName.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexName.java new file mode 100644 index 000000000000..2b62e32d30da --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexName.java @@ -0,0 +1,248 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.firestore.admin.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class IndexName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/databases/{database}/collectionGroups/{collection_id}/indexes/{index_id}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String database; + private final String collectionId; + private final String indexId; + + public String getProject() { + return project; + } + + public String getDatabase() { + return database; + } + + public String getCollectionId() { + return collectionId; + } + + public String getIndexId() { + return indexId; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private IndexName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + database = Preconditions.checkNotNull(builder.getDatabase()); + collectionId = Preconditions.checkNotNull(builder.getCollectionId()); + indexId = Preconditions.checkNotNull(builder.getIndexId()); + } + + public static IndexName of(String project, String database, String collectionId, String indexId) { + return newBuilder() + .setProject(project) + .setDatabase(database) + .setCollectionId(collectionId) + .setIndexId(indexId) + .build(); + } + + public static String format( + String project, String database, String collectionId, String indexId) { + return newBuilder() + .setProject(project) + .setDatabase(database) + .setCollectionId(collectionId) + .setIndexId(indexId) + .build() + .toString(); + } + + public static IndexName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "IndexName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("database"), + matchMap.get("collection_id"), + matchMap.get("index_id")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (IndexName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("database", database); + fieldMapBuilder.put("collectionId", collectionId); + fieldMapBuilder.put("indexId", indexId); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate( + "project", + project, + "database", + database, + "collection_id", + collectionId, + "index_id", + indexId); + } + + /** Builder for IndexName. */ + public static class Builder { + + private String project; + private String database; + private String collectionId; + private String indexId; + + public String getProject() { + return project; + } + + public String getDatabase() { + return database; + } + + public String getCollectionId() { + return collectionId; + } + + public String getIndexId() { + return indexId; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setDatabase(String database) { + this.database = database; + return this; + } + + public Builder setCollectionId(String collectionId) { + this.collectionId = collectionId; + return this; + } + + public Builder setIndexId(String indexId) { + this.indexId = indexId; + return this; + } + + private Builder() {} + + private Builder(IndexName indexName) { + project = indexName.project; + database = indexName.database; + collectionId = indexName.collectionId; + indexId = indexName.indexId; + } + + public IndexName build() { + return new IndexName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof IndexName) { + IndexName that = (IndexName) o; + return (this.project.equals(that.project)) + && (this.database.equals(that.database)) + && (this.collectionId.equals(that.collectionId)) + && (this.indexId.equals(that.indexId)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= database.hashCode(); + h *= 1000003; + h ^= collectionId.hashCode(); + h *= 1000003; + h ^= indexId.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexOperationMetadata.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexOperationMetadata.java new file mode 100644 index 000000000000..28b57180dd1b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexOperationMetadata.java @@ -0,0 +1,1799 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/operation.proto + +package com.google.firestore.admin.v1; + +/** + * + * + *
+ * Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from
+ * [FirestoreAdmin.CreateIndex][google.firestore.admin.v1.FirestoreAdmin.CreateIndex].
+ * 
+ * + * Protobuf type {@code google.firestore.admin.v1.IndexOperationMetadata} + */ +public final class IndexOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.IndexOperationMetadata) + IndexOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use IndexOperationMetadata.newBuilder() to construct. + private IndexOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IndexOperationMetadata() { + index_ = ""; + state_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private IndexOperationMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + index_ = s; + break; + } + case 32: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 42: + { + com.google.firestore.admin.v1.Progress.Builder subBuilder = null; + if (progressDocuments_ != null) { + subBuilder = progressDocuments_.toBuilder(); + } + progressDocuments_ = + input.readMessage( + com.google.firestore.admin.v1.Progress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(progressDocuments_); + progressDocuments_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + com.google.firestore.admin.v1.Progress.Builder subBuilder = null; + if (progressBytes_ != null) { + subBuilder = progressBytes_.toBuilder(); + } + progressBytes_ = + input.readMessage( + com.google.firestore.admin.v1.Progress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(progressBytes_); + progressBytes_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_IndexOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_IndexOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.IndexOperationMetadata.class, + com.google.firestore.admin.v1.IndexOperationMetadata.Builder.class); + } + + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * The time this operation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public boolean hasStartTime() { + return startTime_ != null; + } + /** + * + * + *
+   * The time this operation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * The time this operation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * The time this operation completed. Will be unset if operation still in
+   * progress.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public boolean hasEndTime() { + return endTime_ != null; + } + /** + * + * + *
+   * The time this operation completed. Will be unset if operation still in
+   * progress.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+   * The time this operation completed. Will be unset if operation still in
+   * progress.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + public static final int INDEX_FIELD_NUMBER = 3; + private volatile java.lang.Object index_; + /** + * + * + *
+   * The index resource that this operation is acting on. For example:
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
+   * 
+ * + * string index = 3; + */ + public java.lang.String getIndex() { + java.lang.Object ref = index_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + index_ = s; + return s; + } + } + /** + * + * + *
+   * The index resource that this operation is acting on. For example:
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
+   * 
+ * + * string index = 3; + */ + public com.google.protobuf.ByteString getIndexBytes() { + java.lang.Object ref = index_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + index_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 4; + private int state_; + /** + * + * + *
+   * The state of the operation.
+   * 
+ * + * .google.firestore.admin.v1.OperationState state = 4; + */ + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * The state of the operation.
+   * 
+ * + * .google.firestore.admin.v1.OperationState state = 4; + */ + public com.google.firestore.admin.v1.OperationState getState() { + @SuppressWarnings("deprecation") + com.google.firestore.admin.v1.OperationState result = + com.google.firestore.admin.v1.OperationState.valueOf(state_); + return result == null ? com.google.firestore.admin.v1.OperationState.UNRECOGNIZED : result; + } + + public static final int PROGRESS_DOCUMENTS_FIELD_NUMBER = 5; + private com.google.firestore.admin.v1.Progress progressDocuments_; + /** + * + * + *
+   * The progress, in documents, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 5; + */ + public boolean hasProgressDocuments() { + return progressDocuments_ != null; + } + /** + * + * + *
+   * The progress, in documents, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 5; + */ + public com.google.firestore.admin.v1.Progress getProgressDocuments() { + return progressDocuments_ == null + ? com.google.firestore.admin.v1.Progress.getDefaultInstance() + : progressDocuments_; + } + /** + * + * + *
+   * The progress, in documents, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 5; + */ + public com.google.firestore.admin.v1.ProgressOrBuilder getProgressDocumentsOrBuilder() { + return getProgressDocuments(); + } + + public static final int PROGRESS_BYTES_FIELD_NUMBER = 6; + private com.google.firestore.admin.v1.Progress progressBytes_; + /** + * + * + *
+   * The progress, in bytes, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 6; + */ + public boolean hasProgressBytes() { + return progressBytes_ != null; + } + /** + * + * + *
+   * The progress, in bytes, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 6; + */ + public com.google.firestore.admin.v1.Progress getProgressBytes() { + return progressBytes_ == null + ? com.google.firestore.admin.v1.Progress.getDefaultInstance() + : progressBytes_; + } + /** + * + * + *
+   * The progress, in bytes, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 6; + */ + public com.google.firestore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder() { + return getProgressBytes(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (startTime_ != null) { + output.writeMessage(1, getStartTime()); + } + if (endTime_ != null) { + output.writeMessage(2, getEndTime()); + } + if (!getIndexBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, index_); + } + if (state_ + != com.google.firestore.admin.v1.OperationState.OPERATION_STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, state_); + } + if (progressDocuments_ != null) { + output.writeMessage(5, getProgressDocuments()); + } + if (progressBytes_ != null) { + output.writeMessage(6, getProgressBytes()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (!getIndexBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, index_); + } + if (state_ + != com.google.firestore.admin.v1.OperationState.OPERATION_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + } + if (progressDocuments_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getProgressDocuments()); + } + if (progressBytes_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getProgressBytes()); + } + 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.firestore.admin.v1.IndexOperationMetadata)) { + return super.equals(obj); + } + com.google.firestore.admin.v1.IndexOperationMetadata other = + (com.google.firestore.admin.v1.IndexOperationMetadata) obj; + + boolean result = true; + result = result && (hasStartTime() == other.hasStartTime()); + if (hasStartTime()) { + result = result && getStartTime().equals(other.getStartTime()); + } + result = result && (hasEndTime() == other.hasEndTime()); + if (hasEndTime()) { + result = result && getEndTime().equals(other.getEndTime()); + } + result = result && getIndex().equals(other.getIndex()); + result = result && state_ == other.state_; + result = result && (hasProgressDocuments() == other.hasProgressDocuments()); + if (hasProgressDocuments()) { + result = result && getProgressDocuments().equals(other.getProgressDocuments()); + } + result = result && (hasProgressBytes() == other.hasProgressBytes()); + if (hasProgressBytes()) { + result = result && getProgressBytes().equals(other.getProgressBytes()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasProgressDocuments()) { + hash = (37 * hash) + PROGRESS_DOCUMENTS_FIELD_NUMBER; + hash = (53 * hash) + getProgressDocuments().hashCode(); + } + if (hasProgressBytes()) { + hash = (37 * hash) + PROGRESS_BYTES_FIELD_NUMBER; + hash = (53 * hash) + getProgressBytes().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.firestore.admin.v1.IndexOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.IndexOperationMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.IndexOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.IndexOperationMetadata 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.firestore.admin.v1.IndexOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.IndexOperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.IndexOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.IndexOperationMetadata 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.firestore.admin.v1.IndexOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.IndexOperationMetadata 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.firestore.admin.v1.IndexOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.IndexOperationMetadata 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.firestore.admin.v1.IndexOperationMetadata 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; + } + /** + * + * + *
+   * Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from
+   * [FirestoreAdmin.CreateIndex][google.firestore.admin.v1.FirestoreAdmin.CreateIndex].
+   * 
+ * + * Protobuf type {@code google.firestore.admin.v1.IndexOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.firestore.admin.v1.IndexOperationMetadata) + com.google.firestore.admin.v1.IndexOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_IndexOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_IndexOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.IndexOperationMetadata.class, + com.google.firestore.admin.v1.IndexOperationMetadata.Builder.class); + } + + // Construct using com.google.firestore.admin.v1.IndexOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + index_ = ""; + + state_ = 0; + + if (progressDocumentsBuilder_ == null) { + progressDocuments_ = null; + } else { + progressDocuments_ = null; + progressDocumentsBuilder_ = null; + } + if (progressBytesBuilder_ == null) { + progressBytes_ = null; + } else { + progressBytes_ = null; + progressBytesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_IndexOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.firestore.admin.v1.IndexOperationMetadata getDefaultInstanceForType() { + return com.google.firestore.admin.v1.IndexOperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.firestore.admin.v1.IndexOperationMetadata build() { + com.google.firestore.admin.v1.IndexOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.firestore.admin.v1.IndexOperationMetadata buildPartial() { + com.google.firestore.admin.v1.IndexOperationMetadata result = + new com.google.firestore.admin.v1.IndexOperationMetadata(this); + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } + result.index_ = index_; + result.state_ = state_; + if (progressDocumentsBuilder_ == null) { + result.progressDocuments_ = progressDocuments_; + } else { + result.progressDocuments_ = progressDocumentsBuilder_.build(); + } + if (progressBytesBuilder_ == null) { + result.progressBytes_ = progressBytes_; + } else { + result.progressBytes_ = progressBytesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.firestore.admin.v1.IndexOperationMetadata) { + return mergeFrom((com.google.firestore.admin.v1.IndexOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.firestore.admin.v1.IndexOperationMetadata other) { + if (other == com.google.firestore.admin.v1.IndexOperationMetadata.getDefaultInstance()) + return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (!other.getIndex().isEmpty()) { + index_ = other.index_; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasProgressDocuments()) { + mergeProgressDocuments(other.getProgressDocuments()); + } + if (other.hasProgressBytes()) { + mergeProgressBytes(other.getProgressBytes()); + } + 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.firestore.admin.v1.IndexOperationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.firestore.admin.v1.IndexOperationMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Timestamp startTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * The time this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * The time this operation completed. Will be unset if operation still in
+     * progress.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private java.lang.Object index_ = ""; + /** + * + * + *
+     * The index resource that this operation is acting on. For example:
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
+     * 
+ * + * string index = 3; + */ + public java.lang.String getIndex() { + java.lang.Object ref = index_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + index_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The index resource that this operation is acting on. For example:
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
+     * 
+ * + * string index = 3; + */ + public com.google.protobuf.ByteString getIndexBytes() { + java.lang.Object ref = index_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + index_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The index resource that this operation is acting on. For example:
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
+     * 
+ * + * string index = 3; + */ + public Builder setIndex(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + index_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The index resource that this operation is acting on. For example:
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
+     * 
+ * + * string index = 3; + */ + public Builder clearIndex() { + + index_ = getDefaultInstance().getIndex(); + onChanged(); + return this; + } + /** + * + * + *
+     * The index resource that this operation is acting on. For example:
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
+     * 
+ * + * string index = 3; + */ + public Builder setIndexBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + index_ = value; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * The state of the operation.
+     * 
+ * + * .google.firestore.admin.v1.OperationState state = 4; + */ + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * The state of the operation.
+     * 
+ * + * .google.firestore.admin.v1.OperationState state = 4; + */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The state of the operation.
+     * 
+ * + * .google.firestore.admin.v1.OperationState state = 4; + */ + public com.google.firestore.admin.v1.OperationState getState() { + @SuppressWarnings("deprecation") + com.google.firestore.admin.v1.OperationState result = + com.google.firestore.admin.v1.OperationState.valueOf(state_); + return result == null ? com.google.firestore.admin.v1.OperationState.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The state of the operation.
+     * 
+ * + * .google.firestore.admin.v1.OperationState state = 4; + */ + public Builder setState(com.google.firestore.admin.v1.OperationState value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The state of the operation.
+     * 
+ * + * .google.firestore.admin.v1.OperationState state = 4; + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private com.google.firestore.admin.v1.Progress progressDocuments_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Progress, + com.google.firestore.admin.v1.Progress.Builder, + com.google.firestore.admin.v1.ProgressOrBuilder> + progressDocumentsBuilder_; + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 5; + */ + public boolean hasProgressDocuments() { + return progressDocumentsBuilder_ != null || progressDocuments_ != null; + } + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 5; + */ + public com.google.firestore.admin.v1.Progress getProgressDocuments() { + if (progressDocumentsBuilder_ == null) { + return progressDocuments_ == null + ? com.google.firestore.admin.v1.Progress.getDefaultInstance() + : progressDocuments_; + } else { + return progressDocumentsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 5; + */ + public Builder setProgressDocuments(com.google.firestore.admin.v1.Progress value) { + if (progressDocumentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + progressDocuments_ = value; + onChanged(); + } else { + progressDocumentsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 5; + */ + public Builder setProgressDocuments( + com.google.firestore.admin.v1.Progress.Builder builderForValue) { + if (progressDocumentsBuilder_ == null) { + progressDocuments_ = builderForValue.build(); + onChanged(); + } else { + progressDocumentsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 5; + */ + public Builder mergeProgressDocuments(com.google.firestore.admin.v1.Progress value) { + if (progressDocumentsBuilder_ == null) { + if (progressDocuments_ != null) { + progressDocuments_ = + com.google.firestore.admin.v1.Progress.newBuilder(progressDocuments_) + .mergeFrom(value) + .buildPartial(); + } else { + progressDocuments_ = value; + } + onChanged(); + } else { + progressDocumentsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 5; + */ + public Builder clearProgressDocuments() { + if (progressDocumentsBuilder_ == null) { + progressDocuments_ = null; + onChanged(); + } else { + progressDocuments_ = null; + progressDocumentsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 5; + */ + public com.google.firestore.admin.v1.Progress.Builder getProgressDocumentsBuilder() { + + onChanged(); + return getProgressDocumentsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 5; + */ + public com.google.firestore.admin.v1.ProgressOrBuilder getProgressDocumentsOrBuilder() { + if (progressDocumentsBuilder_ != null) { + return progressDocumentsBuilder_.getMessageOrBuilder(); + } else { + return progressDocuments_ == null + ? com.google.firestore.admin.v1.Progress.getDefaultInstance() + : progressDocuments_; + } + } + /** + * + * + *
+     * The progress, in documents, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Progress, + com.google.firestore.admin.v1.Progress.Builder, + com.google.firestore.admin.v1.ProgressOrBuilder> + getProgressDocumentsFieldBuilder() { + if (progressDocumentsBuilder_ == null) { + progressDocumentsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Progress, + com.google.firestore.admin.v1.Progress.Builder, + com.google.firestore.admin.v1.ProgressOrBuilder>( + getProgressDocuments(), getParentForChildren(), isClean()); + progressDocuments_ = null; + } + return progressDocumentsBuilder_; + } + + private com.google.firestore.admin.v1.Progress progressBytes_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Progress, + com.google.firestore.admin.v1.Progress.Builder, + com.google.firestore.admin.v1.ProgressOrBuilder> + progressBytesBuilder_; + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 6; + */ + public boolean hasProgressBytes() { + return progressBytesBuilder_ != null || progressBytes_ != null; + } + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 6; + */ + public com.google.firestore.admin.v1.Progress getProgressBytes() { + if (progressBytesBuilder_ == null) { + return progressBytes_ == null + ? com.google.firestore.admin.v1.Progress.getDefaultInstance() + : progressBytes_; + } else { + return progressBytesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 6; + */ + public Builder setProgressBytes(com.google.firestore.admin.v1.Progress value) { + if (progressBytesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + progressBytes_ = value; + onChanged(); + } else { + progressBytesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 6; + */ + public Builder setProgressBytes( + com.google.firestore.admin.v1.Progress.Builder builderForValue) { + if (progressBytesBuilder_ == null) { + progressBytes_ = builderForValue.build(); + onChanged(); + } else { + progressBytesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 6; + */ + public Builder mergeProgressBytes(com.google.firestore.admin.v1.Progress value) { + if (progressBytesBuilder_ == null) { + if (progressBytes_ != null) { + progressBytes_ = + com.google.firestore.admin.v1.Progress.newBuilder(progressBytes_) + .mergeFrom(value) + .buildPartial(); + } else { + progressBytes_ = value; + } + onChanged(); + } else { + progressBytesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 6; + */ + public Builder clearProgressBytes() { + if (progressBytesBuilder_ == null) { + progressBytes_ = null; + onChanged(); + } else { + progressBytes_ = null; + progressBytesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 6; + */ + public com.google.firestore.admin.v1.Progress.Builder getProgressBytesBuilder() { + + onChanged(); + return getProgressBytesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 6; + */ + public com.google.firestore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder() { + if (progressBytesBuilder_ != null) { + return progressBytesBuilder_.getMessageOrBuilder(); + } else { + return progressBytes_ == null + ? com.google.firestore.admin.v1.Progress.getDefaultInstance() + : progressBytes_; + } + } + /** + * + * + *
+     * The progress, in bytes, of this operation.
+     * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Progress, + com.google.firestore.admin.v1.Progress.Builder, + com.google.firestore.admin.v1.ProgressOrBuilder> + getProgressBytesFieldBuilder() { + if (progressBytesBuilder_ == null) { + progressBytesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Progress, + com.google.firestore.admin.v1.Progress.Builder, + com.google.firestore.admin.v1.ProgressOrBuilder>( + getProgressBytes(), getParentForChildren(), isClean()); + progressBytes_ = null; + } + return progressBytesBuilder_; + } + + @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.firestore.admin.v1.IndexOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.IndexOperationMetadata) + private static final com.google.firestore.admin.v1.IndexOperationMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.firestore.admin.v1.IndexOperationMetadata(); + } + + public static com.google.firestore.admin.v1.IndexOperationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IndexOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IndexOperationMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.firestore.admin.v1.IndexOperationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexOperationMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..4fbed77b4f73 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexOperationMetadataOrBuilder.java @@ -0,0 +1,181 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/operation.proto + +package com.google.firestore.admin.v1; + +public interface IndexOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.firestore.admin.v1.IndexOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The time this operation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + boolean hasStartTime(); + /** + * + * + *
+   * The time this operation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * The time this operation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * The time this operation completed. Will be unset if operation still in
+   * progress.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + boolean hasEndTime(); + /** + * + * + *
+   * The time this operation completed. Will be unset if operation still in
+   * progress.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * The time this operation completed. Will be unset if operation still in
+   * progress.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
+   * The index resource that this operation is acting on. For example:
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
+   * 
+ * + * string index = 3; + */ + java.lang.String getIndex(); + /** + * + * + *
+   * The index resource that this operation is acting on. For example:
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
+   * 
+ * + * string index = 3; + */ + com.google.protobuf.ByteString getIndexBytes(); + + /** + * + * + *
+   * The state of the operation.
+   * 
+ * + * .google.firestore.admin.v1.OperationState state = 4; + */ + int getStateValue(); + /** + * + * + *
+   * The state of the operation.
+   * 
+ * + * .google.firestore.admin.v1.OperationState state = 4; + */ + com.google.firestore.admin.v1.OperationState getState(); + + /** + * + * + *
+   * The progress, in documents, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 5; + */ + boolean hasProgressDocuments(); + /** + * + * + *
+   * The progress, in documents, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 5; + */ + com.google.firestore.admin.v1.Progress getProgressDocuments(); + /** + * + * + *
+   * The progress, in documents, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_documents = 5; + */ + com.google.firestore.admin.v1.ProgressOrBuilder getProgressDocumentsOrBuilder(); + + /** + * + * + *
+   * The progress, in bytes, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 6; + */ + boolean hasProgressBytes(); + /** + * + * + *
+   * The progress, in bytes, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 6; + */ + com.google.firestore.admin.v1.Progress getProgressBytes(); + /** + * + * + *
+   * The progress, in bytes, of this operation.
+   * 
+ * + * .google.firestore.admin.v1.Progress progress_bytes = 6; + */ + com.google.firestore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexOrBuilder.java new file mode 100644 index 000000000000..ce495b677d7b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexOrBuilder.java @@ -0,0 +1,185 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/index.proto + +package com.google.firestore.admin.v1; + +public interface IndexOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.firestore.admin.v1.Index) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only.
+   * A server defined name for this index.
+   * The form of this name for composite indexes will be:
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}`
+   * For single field indexes, this field will be empty.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only.
+   * A server defined name for this index.
+   * The form of this name for composite indexes will be:
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}`
+   * For single field indexes, this field will be empty.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Indexes with a collection query scope specified allow queries
+   * against a collection that is the child of a specific document, specified at
+   * query time, and that has the same collection id.
+   * Indexes with a collection group query scope specified allow queries against
+   * all collections descended from a specific document, specified at query
+   * time, and that have the same collection id as this index.
+   * 
+ * + * .google.firestore.admin.v1.Index.QueryScope query_scope = 2; + */ + int getQueryScopeValue(); + /** + * + * + *
+   * Indexes with a collection query scope specified allow queries
+   * against a collection that is the child of a specific document, specified at
+   * query time, and that has the same collection id.
+   * Indexes with a collection group query scope specified allow queries against
+   * all collections descended from a specific document, specified at query
+   * time, and that have the same collection id as this index.
+   * 
+ * + * .google.firestore.admin.v1.Index.QueryScope query_scope = 2; + */ + com.google.firestore.admin.v1.Index.QueryScope getQueryScope(); + + /** + * + * + *
+   * The fields supported by this index.
+   * For composite indexes, this is always 2 or more fields.
+   * The last field entry is always for the field path `__name__`. If, on
+   * creation, `__name__` was not specified as the last field, it will be added
+   * automatically with the same direction as that of the last field defined. If
+   * the final field in a composite index is not directional, the `__name__`
+   * will be ordered ASCENDING (unless explicitly specified).
+   * For single field indexes, this will always be exactly one entry with a
+   * field path equal to the field path of the associated field.
+   * 
+ * + * repeated .google.firestore.admin.v1.Index.IndexField fields = 3; + */ + java.util.List getFieldsList(); + /** + * + * + *
+   * The fields supported by this index.
+   * For composite indexes, this is always 2 or more fields.
+   * The last field entry is always for the field path `__name__`. If, on
+   * creation, `__name__` was not specified as the last field, it will be added
+   * automatically with the same direction as that of the last field defined. If
+   * the final field in a composite index is not directional, the `__name__`
+   * will be ordered ASCENDING (unless explicitly specified).
+   * For single field indexes, this will always be exactly one entry with a
+   * field path equal to the field path of the associated field.
+   * 
+ * + * repeated .google.firestore.admin.v1.Index.IndexField fields = 3; + */ + com.google.firestore.admin.v1.Index.IndexField getFields(int index); + /** + * + * + *
+   * The fields supported by this index.
+   * For composite indexes, this is always 2 or more fields.
+   * The last field entry is always for the field path `__name__`. If, on
+   * creation, `__name__` was not specified as the last field, it will be added
+   * automatically with the same direction as that of the last field defined. If
+   * the final field in a composite index is not directional, the `__name__`
+   * will be ordered ASCENDING (unless explicitly specified).
+   * For single field indexes, this will always be exactly one entry with a
+   * field path equal to the field path of the associated field.
+   * 
+ * + * repeated .google.firestore.admin.v1.Index.IndexField fields = 3; + */ + int getFieldsCount(); + /** + * + * + *
+   * The fields supported by this index.
+   * For composite indexes, this is always 2 or more fields.
+   * The last field entry is always for the field path `__name__`. If, on
+   * creation, `__name__` was not specified as the last field, it will be added
+   * automatically with the same direction as that of the last field defined. If
+   * the final field in a composite index is not directional, the `__name__`
+   * will be ordered ASCENDING (unless explicitly specified).
+   * For single field indexes, this will always be exactly one entry with a
+   * field path equal to the field path of the associated field.
+   * 
+ * + * repeated .google.firestore.admin.v1.Index.IndexField fields = 3; + */ + java.util.List + getFieldsOrBuilderList(); + /** + * + * + *
+   * The fields supported by this index.
+   * For composite indexes, this is always 2 or more fields.
+   * The last field entry is always for the field path `__name__`. If, on
+   * creation, `__name__` was not specified as the last field, it will be added
+   * automatically with the same direction as that of the last field defined. If
+   * the final field in a composite index is not directional, the `__name__`
+   * will be ordered ASCENDING (unless explicitly specified).
+   * For single field indexes, this will always be exactly one entry with a
+   * field path equal to the field path of the associated field.
+   * 
+ * + * repeated .google.firestore.admin.v1.Index.IndexField fields = 3; + */ + com.google.firestore.admin.v1.Index.IndexFieldOrBuilder getFieldsOrBuilder(int index); + + /** + * + * + *
+   * Output only.
+   * The serving state of the index.
+   * 
+ * + * .google.firestore.admin.v1.Index.State state = 4; + */ + int getStateValue(); + /** + * + * + *
+   * Output only.
+   * The serving state of the index.
+   * 
+ * + * .google.firestore.admin.v1.Index.State state = 4; + */ + com.google.firestore.admin.v1.Index.State getState(); +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexProto.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexProto.java new file mode 100644 index 000000000000..ef5191e5fc23 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexProto.java @@ -0,0 +1,91 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/index.proto + +package com.google.firestore.admin.v1; + +public final class IndexProto { + private IndexProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_firestore_admin_v1_Index_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_firestore_admin_v1_Index_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_firestore_admin_v1_Index_IndexField_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_firestore_admin_v1_Index_IndexField_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n%google/firestore/admin/v1/index.proto\022" + + "\031google.firestore.admin.v1\032\034google/api/a" + + "nnotations.proto\"\221\005\n\005Index\022\014\n\004name\030\001 \001(\t" + + "\022@\n\013query_scope\030\002 \001(\0162+.google.firestore" + + ".admin.v1.Index.QueryScope\022;\n\006fields\030\003 \003" + + "(\0132+.google.firestore.admin.v1.Index.Ind" + + "exField\0225\n\005state\030\004 \001(\0162&.google.firestor" + + "e.admin.v1.Index.State\032\275\002\n\nIndexField\022\022\n" + + "\nfield_path\030\001 \001(\t\022B\n\005order\030\002 \001(\01621.googl" + + "e.firestore.admin.v1.Index.IndexField.Or" + + "derH\000\022O\n\014array_config\030\003 \001(\01627.google.fir" + + "estore.admin.v1.Index.IndexField.ArrayCo" + + "nfigH\000\"=\n\005Order\022\025\n\021ORDER_UNSPECIFIED\020\000\022\r" + + "\n\tASCENDING\020\001\022\016\n\nDESCENDING\020\002\"9\n\013ArrayCo" + + "nfig\022\034\n\030ARRAY_CONFIG_UNSPECIFIED\020\000\022\014\n\010CO" + + "NTAINS\020\001B\014\n\nvalue_mode\"9\n\nQueryScope\022\033\n\027" + + "QUERY_SCOPE_UNSPECIFIED\020\000\022\016\n\nCOLLECTION\020" + + "\001\"I\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CRE" + + "ATING\020\001\022\t\n\005READY\020\002\022\020\n\014NEEDS_REPAIR\020\003B\270\001\n" + + "\035com.google.firestore.admin.v1B\nIndexPro" + + "toP\001Z>google.golang.org/genproto/googlea" + + "pis/firestore/admin/v1;admin\242\002\004GCFS\252\002\037Go" + + "ogle.Cloud.Firestore.Admin.V1\312\002\037Google\\C" + + "loud\\Firestore\\Admin\\V1b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }, + assigner); + internal_static_google_firestore_admin_v1_Index_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_firestore_admin_v1_Index_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_firestore_admin_v1_Index_descriptor, + new java.lang.String[] { + "Name", "QueryScope", "Fields", "State", + }); + internal_static_google_firestore_admin_v1_Index_IndexField_descriptor = + internal_static_google_firestore_admin_v1_Index_descriptor.getNestedTypes().get(0); + internal_static_google_firestore_admin_v1_Index_IndexField_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_firestore_admin_v1_Index_IndexField_descriptor, + new java.lang.String[] { + "FieldPath", "Order", "ArrayConfig", "ValueMode", + }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsRequest.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsRequest.java new file mode 100644 index 000000000000..cc3e7dc8bde8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsRequest.java @@ -0,0 +1,1049 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/firestore_admin.proto + +package com.google.firestore.admin.v1; + +/** + * + * + *
+ * The request for [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields].
+ * 
+ * + * Protobuf type {@code google.firestore.admin.v1.ListFieldsRequest} + */ +public final class ListFieldsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.ListFieldsRequest) + ListFieldsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListFieldsRequest.newBuilder() to construct. + private ListFieldsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListFieldsRequest() { + parent_ = ""; + filter_ = ""; + pageSize_ = 0; + pageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListFieldsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ListFieldsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ListFieldsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.ListFieldsRequest.class, + com.google.firestore.admin.v1.ListFieldsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * A parent name of the form
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * A parent name of the form
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * The filter to apply to list results. Currently,
+   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields
+   * that have been explicitly overridden. To issue this query, call
+   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to
+   * `indexConfig.usesAncestorConfig:false`.
+   * 
+ * + * string filter = 2; + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * The filter to apply to list results. Currently,
+   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields
+   * that have been explicitly overridden. To issue this query, call
+   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to
+   * `indexConfig.usesAncestorConfig:false`.
+   * 
+ * + * string filter = 2; + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_; + /** + * + * + *
+   * The number of results to return.
+   * 
+ * + * int32 page_size = 3; + */ + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * A page token, returned from a previous call to
+   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields], that may be used to get the next
+   * page of results.
+   * 
+ * + * string page_token = 4; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, returned from a previous call to
+   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields], that may be used to get the next
+   * page of results.
+   * 
+ * + * string page_token = 4; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!getFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!getFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.firestore.admin.v1.ListFieldsRequest)) { + return super.equals(obj); + } + com.google.firestore.admin.v1.ListFieldsRequest other = + (com.google.firestore.admin.v1.ListFieldsRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && getFilter().equals(other.getFilter()); + result = result && (getPageSize() == other.getPageSize()); + result = result && getPageToken().equals(other.getPageToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.firestore.admin.v1.ListFieldsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.ListFieldsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.ListFieldsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.ListFieldsRequest 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.firestore.admin.v1.ListFieldsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.ListFieldsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.ListFieldsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.ListFieldsRequest 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.firestore.admin.v1.ListFieldsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.ListFieldsRequest 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.firestore.admin.v1.ListFieldsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.ListFieldsRequest 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.firestore.admin.v1.ListFieldsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request for [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields].
+   * 
+ * + * Protobuf type {@code google.firestore.admin.v1.ListFieldsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.firestore.admin.v1.ListFieldsRequest) + com.google.firestore.admin.v1.ListFieldsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ListFieldsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ListFieldsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.ListFieldsRequest.class, + com.google.firestore.admin.v1.ListFieldsRequest.Builder.class); + } + + // Construct using com.google.firestore.admin.v1.ListFieldsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + filter_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ListFieldsRequest_descriptor; + } + + @java.lang.Override + public com.google.firestore.admin.v1.ListFieldsRequest getDefaultInstanceForType() { + return com.google.firestore.admin.v1.ListFieldsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.firestore.admin.v1.ListFieldsRequest build() { + com.google.firestore.admin.v1.ListFieldsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.firestore.admin.v1.ListFieldsRequest buildPartial() { + com.google.firestore.admin.v1.ListFieldsRequest result = + new com.google.firestore.admin.v1.ListFieldsRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.firestore.admin.v1.ListFieldsRequest) { + return mergeFrom((com.google.firestore.admin.v1.ListFieldsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.firestore.admin.v1.ListFieldsRequest other) { + if (other == com.google.firestore.admin.v1.ListFieldsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.firestore.admin.v1.ListFieldsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.firestore.admin.v1.ListFieldsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * A parent name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A parent name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A parent name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A parent name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * A parent name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * The filter to apply to list results. Currently,
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields
+     * that have been explicitly overridden. To issue this query, call
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to
+     * `indexConfig.usesAncestorConfig:false`.
+     * 
+ * + * string filter = 2; + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The filter to apply to list results. Currently,
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields
+     * that have been explicitly overridden. To issue this query, call
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to
+     * `indexConfig.usesAncestorConfig:false`.
+     * 
+ * + * string filter = 2; + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The filter to apply to list results. Currently,
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields
+     * that have been explicitly overridden. To issue this query, call
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to
+     * `indexConfig.usesAncestorConfig:false`.
+     * 
+ * + * string filter = 2; + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The filter to apply to list results. Currently,
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields
+     * that have been explicitly overridden. To issue this query, call
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to
+     * `indexConfig.usesAncestorConfig:false`.
+     * 
+ * + * string filter = 2; + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * The filter to apply to list results. Currently,
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields
+     * that have been explicitly overridden. To issue this query, call
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to
+     * `indexConfig.usesAncestorConfig:false`.
+     * 
+ * + * string filter = 2; + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The number of results to return.
+     * 
+ * + * int32 page_size = 3; + */ + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The number of results to return.
+     * 
+ * + * int32 page_size = 3; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of results to return.
+     * 
+ * + * int32 page_size = 3; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, returned from a previous call to
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields], that may be used to get the next
+     * page of results.
+     * 
+ * + * string page_token = 4; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, returned from a previous call to
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields], that may be used to get the next
+     * page of results.
+     * 
+ * + * string page_token = 4; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, returned from a previous call to
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields], that may be used to get the next
+     * page of results.
+     * 
+ * + * string page_token = 4; + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, returned from a previous call to
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields], that may be used to get the next
+     * page of results.
+     * 
+ * + * string page_token = 4; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, returned from a previous call to
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields], that may be used to get the next
+     * page of results.
+     * 
+ * + * string page_token = 4; + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.ListFieldsRequest) + } + + // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.ListFieldsRequest) + private static final com.google.firestore.admin.v1.ListFieldsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.firestore.admin.v1.ListFieldsRequest(); + } + + public static com.google.firestore.admin.v1.ListFieldsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFieldsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFieldsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.firestore.admin.v1.ListFieldsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsRequestOrBuilder.java new file mode 100644 index 000000000000..3456c29b4eaa --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsRequestOrBuilder.java @@ -0,0 +1,98 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/firestore_admin.proto + +package com.google.firestore.admin.v1; + +public interface ListFieldsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.firestore.admin.v1.ListFieldsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A parent name of the form
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * A parent name of the form
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The filter to apply to list results. Currently,
+   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields
+   * that have been explicitly overridden. To issue this query, call
+   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to
+   * `indexConfig.usesAncestorConfig:false`.
+   * 
+ * + * string filter = 2; + */ + java.lang.String getFilter(); + /** + * + * + *
+   * The filter to apply to list results. Currently,
+   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields
+   * that have been explicitly overridden. To issue this query, call
+   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to
+   * `indexConfig.usesAncestorConfig:false`.
+   * 
+ * + * string filter = 2; + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * The number of results to return.
+   * 
+ * + * int32 page_size = 3; + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, returned from a previous call to
+   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields], that may be used to get the next
+   * page of results.
+   * 
+ * + * string page_token = 4; + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, returned from a previous call to
+   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields], that may be used to get the next
+   * page of results.
+   * 
+ * + * string page_token = 4; + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsResponse.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsResponse.java new file mode 100644 index 000000000000..86c31d29d88d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsResponse.java @@ -0,0 +1,1096 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/firestore_admin.proto + +package com.google.firestore.admin.v1; + +/** + * + * + *
+ * The response for [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields].
+ * 
+ * + * Protobuf type {@code google.firestore.admin.v1.ListFieldsResponse} + */ +public final class ListFieldsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.ListFieldsResponse) + ListFieldsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListFieldsResponse.newBuilder() to construct. + private ListFieldsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListFieldsResponse() { + fields_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListFieldsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + fields_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + fields_.add( + input.readMessage( + com.google.firestore.admin.v1.Field.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + fields_ = java.util.Collections.unmodifiableList(fields_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ListFieldsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ListFieldsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.ListFieldsResponse.class, + com.google.firestore.admin.v1.ListFieldsResponse.Builder.class); + } + + private int bitField0_; + public static final int FIELDS_FIELD_NUMBER = 1; + private java.util.List fields_; + /** + * + * + *
+   * The requested fields.
+   * 
+ * + * repeated .google.firestore.admin.v1.Field fields = 1; + */ + public java.util.List getFieldsList() { + return fields_; + } + /** + * + * + *
+   * The requested fields.
+   * 
+ * + * repeated .google.firestore.admin.v1.Field fields = 1; + */ + public java.util.List + getFieldsOrBuilderList() { + return fields_; + } + /** + * + * + *
+   * The requested fields.
+   * 
+ * + * repeated .google.firestore.admin.v1.Field fields = 1; + */ + public int getFieldsCount() { + return fields_.size(); + } + /** + * + * + *
+   * The requested fields.
+   * 
+ * + * repeated .google.firestore.admin.v1.Field fields = 1; + */ + public com.google.firestore.admin.v1.Field getFields(int index) { + return fields_.get(index); + } + /** + * + * + *
+   * The requested fields.
+   * 
+ * + * repeated .google.firestore.admin.v1.Field fields = 1; + */ + public com.google.firestore.admin.v1.FieldOrBuilder getFieldsOrBuilder(int index) { + return fields_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A page token that may be used to request another page of results. If blank,
+   * this is the last page.
+   * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token that may be used to request another page of results. If blank,
+   * this is the last page.
+   * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < fields_.size(); i++) { + output.writeMessage(1, fields_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < fields_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, fields_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.firestore.admin.v1.ListFieldsResponse)) { + return super.equals(obj); + } + com.google.firestore.admin.v1.ListFieldsResponse other = + (com.google.firestore.admin.v1.ListFieldsResponse) obj; + + boolean result = true; + result = result && getFieldsList().equals(other.getFieldsList()); + result = result && getNextPageToken().equals(other.getNextPageToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getFieldsCount() > 0) { + hash = (37 * hash) + FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getFieldsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.firestore.admin.v1.ListFieldsResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.ListFieldsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.ListFieldsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.ListFieldsResponse 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.firestore.admin.v1.ListFieldsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.ListFieldsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.ListFieldsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.ListFieldsResponse 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.firestore.admin.v1.ListFieldsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.ListFieldsResponse 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.firestore.admin.v1.ListFieldsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.ListFieldsResponse 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.firestore.admin.v1.ListFieldsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The response for [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields].
+   * 
+ * + * Protobuf type {@code google.firestore.admin.v1.ListFieldsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.firestore.admin.v1.ListFieldsResponse) + com.google.firestore.admin.v1.ListFieldsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ListFieldsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ListFieldsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.ListFieldsResponse.class, + com.google.firestore.admin.v1.ListFieldsResponse.Builder.class); + } + + // Construct using com.google.firestore.admin.v1.ListFieldsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFieldsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (fieldsBuilder_ == null) { + fields_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + fieldsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ListFieldsResponse_descriptor; + } + + @java.lang.Override + public com.google.firestore.admin.v1.ListFieldsResponse getDefaultInstanceForType() { + return com.google.firestore.admin.v1.ListFieldsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.firestore.admin.v1.ListFieldsResponse build() { + com.google.firestore.admin.v1.ListFieldsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.firestore.admin.v1.ListFieldsResponse buildPartial() { + com.google.firestore.admin.v1.ListFieldsResponse result = + new com.google.firestore.admin.v1.ListFieldsResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (fieldsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + fields_ = java.util.Collections.unmodifiableList(fields_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.fields_ = fields_; + } else { + result.fields_ = fieldsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.firestore.admin.v1.ListFieldsResponse) { + return mergeFrom((com.google.firestore.admin.v1.ListFieldsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.firestore.admin.v1.ListFieldsResponse other) { + if (other == com.google.firestore.admin.v1.ListFieldsResponse.getDefaultInstance()) + return this; + if (fieldsBuilder_ == null) { + if (!other.fields_.isEmpty()) { + if (fields_.isEmpty()) { + fields_ = other.fields_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFieldsIsMutable(); + fields_.addAll(other.fields_); + } + onChanged(); + } + } else { + if (!other.fields_.isEmpty()) { + if (fieldsBuilder_.isEmpty()) { + fieldsBuilder_.dispose(); + fieldsBuilder_ = null; + fields_ = other.fields_; + bitField0_ = (bitField0_ & ~0x00000001); + fieldsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFieldsFieldBuilder() + : null; + } else { + fieldsBuilder_.addAllMessages(other.fields_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.firestore.admin.v1.ListFieldsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.firestore.admin.v1.ListFieldsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List fields_ = + java.util.Collections.emptyList(); + + private void ensureFieldsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + fields_ = new java.util.ArrayList(fields_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.firestore.admin.v1.Field, + com.google.firestore.admin.v1.Field.Builder, + com.google.firestore.admin.v1.FieldOrBuilder> + fieldsBuilder_; + + /** + * + * + *
+     * The requested fields.
+     * 
+ * + * repeated .google.firestore.admin.v1.Field fields = 1; + */ + public java.util.List getFieldsList() { + if (fieldsBuilder_ == null) { + return java.util.Collections.unmodifiableList(fields_); + } else { + return fieldsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The requested fields.
+     * 
+ * + * repeated .google.firestore.admin.v1.Field fields = 1; + */ + public int getFieldsCount() { + if (fieldsBuilder_ == null) { + return fields_.size(); + } else { + return fieldsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The requested fields.
+     * 
+ * + * repeated .google.firestore.admin.v1.Field fields = 1; + */ + public com.google.firestore.admin.v1.Field getFields(int index) { + if (fieldsBuilder_ == null) { + return fields_.get(index); + } else { + return fieldsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The requested fields.
+     * 
+ * + * repeated .google.firestore.admin.v1.Field fields = 1; + */ + public Builder setFields(int index, com.google.firestore.admin.v1.Field value) { + if (fieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsIsMutable(); + fields_.set(index, value); + onChanged(); + } else { + fieldsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The requested fields.
+     * 
+ * + * repeated .google.firestore.admin.v1.Field fields = 1; + */ + public Builder setFields( + int index, com.google.firestore.admin.v1.Field.Builder builderForValue) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.set(index, builderForValue.build()); + onChanged(); + } else { + fieldsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The requested fields.
+     * 
+ * + * repeated .google.firestore.admin.v1.Field fields = 1; + */ + public Builder addFields(com.google.firestore.admin.v1.Field value) { + if (fieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsIsMutable(); + fields_.add(value); + onChanged(); + } else { + fieldsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The requested fields.
+     * 
+ * + * repeated .google.firestore.admin.v1.Field fields = 1; + */ + public Builder addFields(int index, com.google.firestore.admin.v1.Field value) { + if (fieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsIsMutable(); + fields_.add(index, value); + onChanged(); + } else { + fieldsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The requested fields.
+     * 
+ * + * repeated .google.firestore.admin.v1.Field fields = 1; + */ + public Builder addFields(com.google.firestore.admin.v1.Field.Builder builderForValue) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(builderForValue.build()); + onChanged(); + } else { + fieldsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The requested fields.
+     * 
+ * + * repeated .google.firestore.admin.v1.Field fields = 1; + */ + public Builder addFields( + int index, com.google.firestore.admin.v1.Field.Builder builderForValue) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(index, builderForValue.build()); + onChanged(); + } else { + fieldsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The requested fields.
+     * 
+ * + * repeated .google.firestore.admin.v1.Field fields = 1; + */ + public Builder addAllFields( + java.lang.Iterable values) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_); + onChanged(); + } else { + fieldsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The requested fields.
+     * 
+ * + * repeated .google.firestore.admin.v1.Field fields = 1; + */ + public Builder clearFields() { + if (fieldsBuilder_ == null) { + fields_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + fieldsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The requested fields.
+     * 
+ * + * repeated .google.firestore.admin.v1.Field fields = 1; + */ + public Builder removeFields(int index) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.remove(index); + onChanged(); + } else { + fieldsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The requested fields.
+     * 
+ * + * repeated .google.firestore.admin.v1.Field fields = 1; + */ + public com.google.firestore.admin.v1.Field.Builder getFieldsBuilder(int index) { + return getFieldsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The requested fields.
+     * 
+ * + * repeated .google.firestore.admin.v1.Field fields = 1; + */ + public com.google.firestore.admin.v1.FieldOrBuilder getFieldsOrBuilder(int index) { + if (fieldsBuilder_ == null) { + return fields_.get(index); + } else { + return fieldsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The requested fields.
+     * 
+ * + * repeated .google.firestore.admin.v1.Field fields = 1; + */ + public java.util.List + getFieldsOrBuilderList() { + if (fieldsBuilder_ != null) { + return fieldsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(fields_); + } + } + /** + * + * + *
+     * The requested fields.
+     * 
+ * + * repeated .google.firestore.admin.v1.Field fields = 1; + */ + public com.google.firestore.admin.v1.Field.Builder addFieldsBuilder() { + return getFieldsFieldBuilder() + .addBuilder(com.google.firestore.admin.v1.Field.getDefaultInstance()); + } + /** + * + * + *
+     * The requested fields.
+     * 
+ * + * repeated .google.firestore.admin.v1.Field fields = 1; + */ + public com.google.firestore.admin.v1.Field.Builder addFieldsBuilder(int index) { + return getFieldsFieldBuilder() + .addBuilder(index, com.google.firestore.admin.v1.Field.getDefaultInstance()); + } + /** + * + * + *
+     * The requested fields.
+     * 
+ * + * repeated .google.firestore.admin.v1.Field fields = 1; + */ + public java.util.List getFieldsBuilderList() { + return getFieldsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.firestore.admin.v1.Field, + com.google.firestore.admin.v1.Field.Builder, + com.google.firestore.admin.v1.FieldOrBuilder> + getFieldsFieldBuilder() { + if (fieldsBuilder_ == null) { + fieldsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.firestore.admin.v1.Field, + com.google.firestore.admin.v1.Field.Builder, + com.google.firestore.admin.v1.FieldOrBuilder>( + fields_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + fields_ = null; + } + return fieldsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A page token that may be used to request another page of results. If blank,
+     * this is the last page.
+     * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token that may be used to request another page of results. If blank,
+     * this is the last page.
+     * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token that may be used to request another page of results. If blank,
+     * this is the last page.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token that may be used to request another page of results. If blank,
+     * this is the last page.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token that may be used to request another page of results. If blank,
+     * this is the last page.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.ListFieldsResponse) + } + + // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.ListFieldsResponse) + private static final com.google.firestore.admin.v1.ListFieldsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.firestore.admin.v1.ListFieldsResponse(); + } + + public static com.google.firestore.admin.v1.ListFieldsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFieldsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFieldsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.firestore.admin.v1.ListFieldsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsResponseOrBuilder.java new file mode 100644 index 000000000000..95251958ebf3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsResponseOrBuilder.java @@ -0,0 +1,84 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/firestore_admin.proto + +package com.google.firestore.admin.v1; + +public interface ListFieldsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.firestore.admin.v1.ListFieldsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The requested fields.
+   * 
+ * + * repeated .google.firestore.admin.v1.Field fields = 1; + */ + java.util.List getFieldsList(); + /** + * + * + *
+   * The requested fields.
+   * 
+ * + * repeated .google.firestore.admin.v1.Field fields = 1; + */ + com.google.firestore.admin.v1.Field getFields(int index); + /** + * + * + *
+   * The requested fields.
+   * 
+ * + * repeated .google.firestore.admin.v1.Field fields = 1; + */ + int getFieldsCount(); + /** + * + * + *
+   * The requested fields.
+   * 
+ * + * repeated .google.firestore.admin.v1.Field fields = 1; + */ + java.util.List getFieldsOrBuilderList(); + /** + * + * + *
+   * The requested fields.
+   * 
+ * + * repeated .google.firestore.admin.v1.Field fields = 1; + */ + com.google.firestore.admin.v1.FieldOrBuilder getFieldsOrBuilder(int index); + + /** + * + * + *
+   * A page token that may be used to request another page of results. If blank,
+   * this is the last page.
+   * 
+ * + * string next_page_token = 2; + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A page token that may be used to request another page of results. If blank,
+   * this is the last page.
+   * 
+ * + * string next_page_token = 2; + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesRequest.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesRequest.java new file mode 100644 index 000000000000..7ae03770204e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesRequest.java @@ -0,0 +1,1021 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/firestore_admin.proto + +package com.google.firestore.admin.v1; + +/** + * + * + *
+ * The request for [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes].
+ * 
+ * + * Protobuf type {@code google.firestore.admin.v1.ListIndexesRequest} + */ +public final class ListIndexesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.ListIndexesRequest) + ListIndexesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListIndexesRequest.newBuilder() to construct. + private ListIndexesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListIndexesRequest() { + parent_ = ""; + filter_ = ""; + pageSize_ = 0; + pageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListIndexesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ListIndexesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ListIndexesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.ListIndexesRequest.class, + com.google.firestore.admin.v1.ListIndexesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * A parent name of the form
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * A parent name of the form
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * The filter to apply to list results.
+   * 
+ * + * string filter = 2; + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * The filter to apply to list results.
+   * 
+ * + * string filter = 2; + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_; + /** + * + * + *
+   * The number of results to return.
+   * 
+ * + * int32 page_size = 3; + */ + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * A page token, returned from a previous call to
+   * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes], that may be used to get the next
+   * page of results.
+   * 
+ * + * string page_token = 4; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, returned from a previous call to
+   * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes], that may be used to get the next
+   * page of results.
+   * 
+ * + * string page_token = 4; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!getFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!getFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.firestore.admin.v1.ListIndexesRequest)) { + return super.equals(obj); + } + com.google.firestore.admin.v1.ListIndexesRequest other = + (com.google.firestore.admin.v1.ListIndexesRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && getFilter().equals(other.getFilter()); + result = result && (getPageSize() == other.getPageSize()); + result = result && getPageToken().equals(other.getPageToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.firestore.admin.v1.ListIndexesRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.ListIndexesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.ListIndexesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.ListIndexesRequest 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.firestore.admin.v1.ListIndexesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.ListIndexesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.ListIndexesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.ListIndexesRequest 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.firestore.admin.v1.ListIndexesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.ListIndexesRequest 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.firestore.admin.v1.ListIndexesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.ListIndexesRequest 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.firestore.admin.v1.ListIndexesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request for [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes].
+   * 
+ * + * Protobuf type {@code google.firestore.admin.v1.ListIndexesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.firestore.admin.v1.ListIndexesRequest) + com.google.firestore.admin.v1.ListIndexesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ListIndexesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ListIndexesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.ListIndexesRequest.class, + com.google.firestore.admin.v1.ListIndexesRequest.Builder.class); + } + + // Construct using com.google.firestore.admin.v1.ListIndexesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + filter_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ListIndexesRequest_descriptor; + } + + @java.lang.Override + public com.google.firestore.admin.v1.ListIndexesRequest getDefaultInstanceForType() { + return com.google.firestore.admin.v1.ListIndexesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.firestore.admin.v1.ListIndexesRequest build() { + com.google.firestore.admin.v1.ListIndexesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.firestore.admin.v1.ListIndexesRequest buildPartial() { + com.google.firestore.admin.v1.ListIndexesRequest result = + new com.google.firestore.admin.v1.ListIndexesRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.firestore.admin.v1.ListIndexesRequest) { + return mergeFrom((com.google.firestore.admin.v1.ListIndexesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.firestore.admin.v1.ListIndexesRequest other) { + if (other == com.google.firestore.admin.v1.ListIndexesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.firestore.admin.v1.ListIndexesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.firestore.admin.v1.ListIndexesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * A parent name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A parent name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A parent name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A parent name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * A parent name of the form
+     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * The filter to apply to list results.
+     * 
+ * + * string filter = 2; + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The filter to apply to list results.
+     * 
+ * + * string filter = 2; + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The filter to apply to list results.
+     * 
+ * + * string filter = 2; + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The filter to apply to list results.
+     * 
+ * + * string filter = 2; + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * The filter to apply to list results.
+     * 
+ * + * string filter = 2; + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The number of results to return.
+     * 
+ * + * int32 page_size = 3; + */ + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The number of results to return.
+     * 
+ * + * int32 page_size = 3; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of results to return.
+     * 
+ * + * int32 page_size = 3; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, returned from a previous call to
+     * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes], that may be used to get the next
+     * page of results.
+     * 
+ * + * string page_token = 4; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, returned from a previous call to
+     * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes], that may be used to get the next
+     * page of results.
+     * 
+ * + * string page_token = 4; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, returned from a previous call to
+     * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes], that may be used to get the next
+     * page of results.
+     * 
+ * + * string page_token = 4; + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, returned from a previous call to
+     * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes], that may be used to get the next
+     * page of results.
+     * 
+ * + * string page_token = 4; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, returned from a previous call to
+     * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes], that may be used to get the next
+     * page of results.
+     * 
+ * + * string page_token = 4; + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.ListIndexesRequest) + } + + // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.ListIndexesRequest) + private static final com.google.firestore.admin.v1.ListIndexesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.firestore.admin.v1.ListIndexesRequest(); + } + + public static com.google.firestore.admin.v1.ListIndexesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListIndexesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListIndexesRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.firestore.admin.v1.ListIndexesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesRequestOrBuilder.java new file mode 100644 index 000000000000..f12656278692 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesRequestOrBuilder.java @@ -0,0 +1,90 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/firestore_admin.proto + +package com.google.firestore.admin.v1; + +public interface ListIndexesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.firestore.admin.v1.ListIndexesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A parent name of the form
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * A parent name of the form
+   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The filter to apply to list results.
+   * 
+ * + * string filter = 2; + */ + java.lang.String getFilter(); + /** + * + * + *
+   * The filter to apply to list results.
+   * 
+ * + * string filter = 2; + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * The number of results to return.
+   * 
+ * + * int32 page_size = 3; + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, returned from a previous call to
+   * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes], that may be used to get the next
+   * page of results.
+   * 
+ * + * string page_token = 4; + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, returned from a previous call to
+   * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes], that may be used to get the next
+   * page of results.
+   * 
+ * + * string page_token = 4; + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesResponse.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesResponse.java new file mode 100644 index 000000000000..f53c26194814 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesResponse.java @@ -0,0 +1,1097 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/firestore_admin.proto + +package com.google.firestore.admin.v1; + +/** + * + * + *
+ * The response for [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes].
+ * 
+ * + * Protobuf type {@code google.firestore.admin.v1.ListIndexesResponse} + */ +public final class ListIndexesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.ListIndexesResponse) + ListIndexesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListIndexesResponse.newBuilder() to construct. + private ListIndexesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListIndexesResponse() { + indexes_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListIndexesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + indexes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + indexes_.add( + input.readMessage( + com.google.firestore.admin.v1.Index.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + indexes_ = java.util.Collections.unmodifiableList(indexes_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ListIndexesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ListIndexesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.ListIndexesResponse.class, + com.google.firestore.admin.v1.ListIndexesResponse.Builder.class); + } + + private int bitField0_; + public static final int INDEXES_FIELD_NUMBER = 1; + private java.util.List indexes_; + /** + * + * + *
+   * The requested indexes.
+   * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public java.util.List getIndexesList() { + return indexes_; + } + /** + * + * + *
+   * The requested indexes.
+   * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public java.util.List + getIndexesOrBuilderList() { + return indexes_; + } + /** + * + * + *
+   * The requested indexes.
+   * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public int getIndexesCount() { + return indexes_.size(); + } + /** + * + * + *
+   * The requested indexes.
+   * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public com.google.firestore.admin.v1.Index getIndexes(int index) { + return indexes_.get(index); + } + /** + * + * + *
+   * The requested indexes.
+   * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public com.google.firestore.admin.v1.IndexOrBuilder getIndexesOrBuilder(int index) { + return indexes_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A page token that may be used to request another page of results. If blank,
+   * this is the last page.
+   * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token that may be used to request another page of results. If blank,
+   * this is the last page.
+   * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < indexes_.size(); i++) { + output.writeMessage(1, indexes_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < indexes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, indexes_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.firestore.admin.v1.ListIndexesResponse)) { + return super.equals(obj); + } + com.google.firestore.admin.v1.ListIndexesResponse other = + (com.google.firestore.admin.v1.ListIndexesResponse) obj; + + boolean result = true; + result = result && getIndexesList().equals(other.getIndexesList()); + result = result && getNextPageToken().equals(other.getNextPageToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getIndexesCount() > 0) { + hash = (37 * hash) + INDEXES_FIELD_NUMBER; + hash = (53 * hash) + getIndexesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.firestore.admin.v1.ListIndexesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.ListIndexesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.ListIndexesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.ListIndexesResponse 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.firestore.admin.v1.ListIndexesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.ListIndexesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.ListIndexesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.ListIndexesResponse 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.firestore.admin.v1.ListIndexesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.ListIndexesResponse 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.firestore.admin.v1.ListIndexesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.ListIndexesResponse 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.firestore.admin.v1.ListIndexesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The response for [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes].
+   * 
+ * + * Protobuf type {@code google.firestore.admin.v1.ListIndexesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.firestore.admin.v1.ListIndexesResponse) + com.google.firestore.admin.v1.ListIndexesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ListIndexesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ListIndexesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.ListIndexesResponse.class, + com.google.firestore.admin.v1.ListIndexesResponse.Builder.class); + } + + // Construct using com.google.firestore.admin.v1.ListIndexesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getIndexesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (indexesBuilder_ == null) { + indexes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + indexesBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ListIndexesResponse_descriptor; + } + + @java.lang.Override + public com.google.firestore.admin.v1.ListIndexesResponse getDefaultInstanceForType() { + return com.google.firestore.admin.v1.ListIndexesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.firestore.admin.v1.ListIndexesResponse build() { + com.google.firestore.admin.v1.ListIndexesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.firestore.admin.v1.ListIndexesResponse buildPartial() { + com.google.firestore.admin.v1.ListIndexesResponse result = + new com.google.firestore.admin.v1.ListIndexesResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (indexesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + indexes_ = java.util.Collections.unmodifiableList(indexes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.indexes_ = indexes_; + } else { + result.indexes_ = indexesBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.firestore.admin.v1.ListIndexesResponse) { + return mergeFrom((com.google.firestore.admin.v1.ListIndexesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.firestore.admin.v1.ListIndexesResponse other) { + if (other == com.google.firestore.admin.v1.ListIndexesResponse.getDefaultInstance()) + return this; + if (indexesBuilder_ == null) { + if (!other.indexes_.isEmpty()) { + if (indexes_.isEmpty()) { + indexes_ = other.indexes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureIndexesIsMutable(); + indexes_.addAll(other.indexes_); + } + onChanged(); + } + } else { + if (!other.indexes_.isEmpty()) { + if (indexesBuilder_.isEmpty()) { + indexesBuilder_.dispose(); + indexesBuilder_ = null; + indexes_ = other.indexes_; + bitField0_ = (bitField0_ & ~0x00000001); + indexesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getIndexesFieldBuilder() + : null; + } else { + indexesBuilder_.addAllMessages(other.indexes_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.firestore.admin.v1.ListIndexesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.firestore.admin.v1.ListIndexesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List indexes_ = + java.util.Collections.emptyList(); + + private void ensureIndexesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + indexes_ = new java.util.ArrayList(indexes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.firestore.admin.v1.Index, + com.google.firestore.admin.v1.Index.Builder, + com.google.firestore.admin.v1.IndexOrBuilder> + indexesBuilder_; + + /** + * + * + *
+     * The requested indexes.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public java.util.List getIndexesList() { + if (indexesBuilder_ == null) { + return java.util.Collections.unmodifiableList(indexes_); + } else { + return indexesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The requested indexes.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public int getIndexesCount() { + if (indexesBuilder_ == null) { + return indexes_.size(); + } else { + return indexesBuilder_.getCount(); + } + } + /** + * + * + *
+     * The requested indexes.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public com.google.firestore.admin.v1.Index getIndexes(int index) { + if (indexesBuilder_ == null) { + return indexes_.get(index); + } else { + return indexesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The requested indexes.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public Builder setIndexes(int index, com.google.firestore.admin.v1.Index value) { + if (indexesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIndexesIsMutable(); + indexes_.set(index, value); + onChanged(); + } else { + indexesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The requested indexes.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public Builder setIndexes( + int index, com.google.firestore.admin.v1.Index.Builder builderForValue) { + if (indexesBuilder_ == null) { + ensureIndexesIsMutable(); + indexes_.set(index, builderForValue.build()); + onChanged(); + } else { + indexesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The requested indexes.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public Builder addIndexes(com.google.firestore.admin.v1.Index value) { + if (indexesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIndexesIsMutable(); + indexes_.add(value); + onChanged(); + } else { + indexesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The requested indexes.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public Builder addIndexes(int index, com.google.firestore.admin.v1.Index value) { + if (indexesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIndexesIsMutable(); + indexes_.add(index, value); + onChanged(); + } else { + indexesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The requested indexes.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public Builder addIndexes(com.google.firestore.admin.v1.Index.Builder builderForValue) { + if (indexesBuilder_ == null) { + ensureIndexesIsMutable(); + indexes_.add(builderForValue.build()); + onChanged(); + } else { + indexesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The requested indexes.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public Builder addIndexes( + int index, com.google.firestore.admin.v1.Index.Builder builderForValue) { + if (indexesBuilder_ == null) { + ensureIndexesIsMutable(); + indexes_.add(index, builderForValue.build()); + onChanged(); + } else { + indexesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The requested indexes.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public Builder addAllIndexes( + java.lang.Iterable values) { + if (indexesBuilder_ == null) { + ensureIndexesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, indexes_); + onChanged(); + } else { + indexesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The requested indexes.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public Builder clearIndexes() { + if (indexesBuilder_ == null) { + indexes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + indexesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The requested indexes.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public Builder removeIndexes(int index) { + if (indexesBuilder_ == null) { + ensureIndexesIsMutable(); + indexes_.remove(index); + onChanged(); + } else { + indexesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The requested indexes.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public com.google.firestore.admin.v1.Index.Builder getIndexesBuilder(int index) { + return getIndexesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The requested indexes.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public com.google.firestore.admin.v1.IndexOrBuilder getIndexesOrBuilder(int index) { + if (indexesBuilder_ == null) { + return indexes_.get(index); + } else { + return indexesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The requested indexes.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public java.util.List + getIndexesOrBuilderList() { + if (indexesBuilder_ != null) { + return indexesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(indexes_); + } + } + /** + * + * + *
+     * The requested indexes.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public com.google.firestore.admin.v1.Index.Builder addIndexesBuilder() { + return getIndexesFieldBuilder() + .addBuilder(com.google.firestore.admin.v1.Index.getDefaultInstance()); + } + /** + * + * + *
+     * The requested indexes.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public com.google.firestore.admin.v1.Index.Builder addIndexesBuilder(int index) { + return getIndexesFieldBuilder() + .addBuilder(index, com.google.firestore.admin.v1.Index.getDefaultInstance()); + } + /** + * + * + *
+     * The requested indexes.
+     * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + public java.util.List getIndexesBuilderList() { + return getIndexesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.firestore.admin.v1.Index, + com.google.firestore.admin.v1.Index.Builder, + com.google.firestore.admin.v1.IndexOrBuilder> + getIndexesFieldBuilder() { + if (indexesBuilder_ == null) { + indexesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.firestore.admin.v1.Index, + com.google.firestore.admin.v1.Index.Builder, + com.google.firestore.admin.v1.IndexOrBuilder>( + indexes_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + indexes_ = null; + } + return indexesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A page token that may be used to request another page of results. If blank,
+     * this is the last page.
+     * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token that may be used to request another page of results. If blank,
+     * this is the last page.
+     * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token that may be used to request another page of results. If blank,
+     * this is the last page.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token that may be used to request another page of results. If blank,
+     * this is the last page.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token that may be used to request another page of results. If blank,
+     * this is the last page.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.ListIndexesResponse) + } + + // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.ListIndexesResponse) + private static final com.google.firestore.admin.v1.ListIndexesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.firestore.admin.v1.ListIndexesResponse(); + } + + public static com.google.firestore.admin.v1.ListIndexesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListIndexesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListIndexesResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.firestore.admin.v1.ListIndexesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesResponseOrBuilder.java new file mode 100644 index 000000000000..84c68c85e704 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesResponseOrBuilder.java @@ -0,0 +1,84 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/firestore_admin.proto + +package com.google.firestore.admin.v1; + +public interface ListIndexesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.firestore.admin.v1.ListIndexesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The requested indexes.
+   * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + java.util.List getIndexesList(); + /** + * + * + *
+   * The requested indexes.
+   * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + com.google.firestore.admin.v1.Index getIndexes(int index); + /** + * + * + *
+   * The requested indexes.
+   * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + int getIndexesCount(); + /** + * + * + *
+   * The requested indexes.
+   * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + java.util.List getIndexesOrBuilderList(); + /** + * + * + *
+   * The requested indexes.
+   * 
+ * + * repeated .google.firestore.admin.v1.Index indexes = 1; + */ + com.google.firestore.admin.v1.IndexOrBuilder getIndexesOrBuilder(int index); + + /** + * + * + *
+   * A page token that may be used to request another page of results. If blank,
+   * this is the last page.
+   * 
+ * + * string next_page_token = 2; + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A page token that may be used to request another page of results. If blank,
+   * this is the last page.
+   * 
+ * + * string next_page_token = 2; + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationMetadata.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationMetadata.java new file mode 100644 index 000000000000..8e609d46c228 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationMetadata.java @@ -0,0 +1,434 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/location.proto + +package com.google.firestore.admin.v1; + +/** + * + * + *
+ * The metadata message for [google.cloud.location.Location.metadata][google.cloud.location.Location.metadata].
+ * 
+ * + * Protobuf type {@code google.firestore.admin.v1.LocationMetadata} + */ +public final class LocationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.LocationMetadata) + LocationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use LocationMetadata.newBuilder() to construct. + private LocationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LocationMetadata() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private LocationMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.LocationProto + .internal_static_google_firestore_admin_v1_LocationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.LocationProto + .internal_static_google_firestore_admin_v1_LocationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.LocationMetadata.class, + com.google.firestore.admin.v1.LocationMetadata.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.firestore.admin.v1.LocationMetadata)) { + return super.equals(obj); + } + com.google.firestore.admin.v1.LocationMetadata other = + (com.google.firestore.admin.v1.LocationMetadata) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.firestore.admin.v1.LocationMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.LocationMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.LocationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.LocationMetadata 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.firestore.admin.v1.LocationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.LocationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.LocationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.LocationMetadata 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.firestore.admin.v1.LocationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.LocationMetadata 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.firestore.admin.v1.LocationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.LocationMetadata 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.firestore.admin.v1.LocationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The metadata message for [google.cloud.location.Location.metadata][google.cloud.location.Location.metadata].
+   * 
+ * + * Protobuf type {@code google.firestore.admin.v1.LocationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.firestore.admin.v1.LocationMetadata) + com.google.firestore.admin.v1.LocationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.LocationProto + .internal_static_google_firestore_admin_v1_LocationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.LocationProto + .internal_static_google_firestore_admin_v1_LocationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.LocationMetadata.class, + com.google.firestore.admin.v1.LocationMetadata.Builder.class); + } + + // Construct using com.google.firestore.admin.v1.LocationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.firestore.admin.v1.LocationProto + .internal_static_google_firestore_admin_v1_LocationMetadata_descriptor; + } + + @java.lang.Override + public com.google.firestore.admin.v1.LocationMetadata getDefaultInstanceForType() { + return com.google.firestore.admin.v1.LocationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.firestore.admin.v1.LocationMetadata build() { + com.google.firestore.admin.v1.LocationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.firestore.admin.v1.LocationMetadata buildPartial() { + com.google.firestore.admin.v1.LocationMetadata result = + new com.google.firestore.admin.v1.LocationMetadata(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.firestore.admin.v1.LocationMetadata) { + return mergeFrom((com.google.firestore.admin.v1.LocationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.firestore.admin.v1.LocationMetadata other) { + if (other == com.google.firestore.admin.v1.LocationMetadata.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.firestore.admin.v1.LocationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.firestore.admin.v1.LocationMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.LocationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.LocationMetadata) + private static final com.google.firestore.admin.v1.LocationMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.firestore.admin.v1.LocationMetadata(); + } + + public static com.google.firestore.admin.v1.LocationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LocationMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.firestore.admin.v1.LocationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationMetadataOrBuilder.java new file mode 100644 index 000000000000..d2dbd814a6a4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationMetadataOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/location.proto + +package com.google.firestore.admin.v1; + +public interface LocationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.firestore.admin.v1.LocationMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationProto.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationProto.java new file mode 100644 index 000000000000..47d7b90ffcc5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationProto.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/location.proto + +package com.google.firestore.admin.v1; + +public final class LocationProto { + private LocationProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_firestore_admin_v1_LocationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_firestore_admin_v1_LocationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n(google/firestore/admin/v1/location.pro" + + "to\022\031google.firestore.admin.v1\032\030google/ty" + + "pe/latlng.proto\032\034google/api/annotations." + + "proto\"\022\n\020LocationMetadataB\273\001\n\035com.google" + + ".firestore.admin.v1B\rLocationProtoP\001Z>go" + + "ogle.golang.org/genproto/googleapis/fire" + + "store/admin/v1;admin\242\002\004GCFS\252\002\037Google.Clo" + + "ud.Firestore.Admin.V1\312\002\037Google\\Cloud\\Fir" + + "estore\\Admin\\V1b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.type.LatLngProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }, + assigner); + internal_static_google_firestore_admin_v1_LocationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_firestore_admin_v1_LocationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_firestore_admin_v1_LocationMetadata_descriptor, + new java.lang.String[] {}); + com.google.type.LatLngProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/OperationProto.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/OperationProto.java new file mode 100644 index 000000000000..6ab4f963e23d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/OperationProto.java @@ -0,0 +1,210 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/operation.proto + +package com.google.firestore.admin.v1; + +public final class OperationProto { + private OperationProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_firestore_admin_v1_IndexOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_firestore_admin_v1_IndexOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_firestore_admin_v1_FieldOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_firestore_admin_v1_FieldOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_firestore_admin_v1_FieldOperationMetadata_IndexConfigDelta_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_firestore_admin_v1_FieldOperationMetadata_IndexConfigDelta_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_firestore_admin_v1_ExportDocumentsMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_firestore_admin_v1_ExportDocumentsMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_firestore_admin_v1_ImportDocumentsMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_firestore_admin_v1_ImportDocumentsMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_firestore_admin_v1_ExportDocumentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_firestore_admin_v1_ExportDocumentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_firestore_admin_v1_Progress_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_firestore_admin_v1_Progress_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/firestore/admin/v1/operation.pr" + + "oto\022\031google.firestore.admin.v1\032%google/f" + + "irestore/admin/v1/index.proto\032\037google/pr" + + "otobuf/timestamp.proto\032\034google/api/annot" + + "ations.proto\"\275\002\n\026IndexOperationMetadata\022" + + ".\n\nstart_time\030\001 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022,\n\010end_time\030\002 \001(\0132\032.google.proto" + + "buf.Timestamp\022\r\n\005index\030\003 \001(\t\0228\n\005state\030\004 " + + "\001(\0162).google.firestore.admin.v1.Operatio" + + "nState\022?\n\022progress_documents\030\005 \001(\0132#.goo" + + "gle.firestore.admin.v1.Progress\022;\n\016progr" + + "ess_bytes\030\006 \001(\0132#.google.firestore.admin" + + ".v1.Progress\"\210\005\n\026FieldOperationMetadata\022" + + ".\n\nstart_time\030\001 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022,\n\010end_time\030\002 \001(\0132\032.google.proto" + + "buf.Timestamp\022\r\n\005field\030\003 \001(\t\022_\n\023index_co" + + "nfig_deltas\030\004 \003(\0132B.google.firestore.adm" + + "in.v1.FieldOperationMetadata.IndexConfig" + + "Delta\0228\n\005state\030\005 \001(\0162).google.firestore." + + "admin.v1.OperationState\022?\n\022progress_docu" + + "ments\030\006 \001(\0132#.google.firestore.admin.v1." + + "Progress\022;\n\016progress_bytes\030\007 \001(\0132#.googl" + + "e.firestore.admin.v1.Progress\032\347\001\n\020IndexC" + + "onfigDelta\022b\n\013change_type\030\001 \001(\0162M.google" + + ".firestore.admin.v1.FieldOperationMetada" + + "ta.IndexConfigDelta.ChangeType\022/\n\005index\030" + + "\002 \001(\0132 .google.firestore.admin.v1.Index\"" + + ">\n\nChangeType\022\033\n\027CHANGE_TYPE_UNSPECIFIED" + + "\020\000\022\007\n\003ADD\020\001\022\n\n\006REMOVE\020\002\"\354\002\n\027ExportDocume" + + "ntsMetadata\022.\n\nstart_time\030\001 \001(\0132\032.google" + + ".protobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032." + + "google.protobuf.Timestamp\022B\n\017operation_s" + + "tate\030\003 \001(\0162).google.firestore.admin.v1.O" + + "perationState\022?\n\022progress_documents\030\004 \001(" + + "\0132#.google.firestore.admin.v1.Progress\022;" + + "\n\016progress_bytes\030\005 \001(\0132#.google.firestor" + + "e.admin.v1.Progress\022\026\n\016collection_ids\030\006 " + + "\003(\t\022\031\n\021output_uri_prefix\030\007 \001(\t\"\353\002\n\027Impor" + + "tDocumentsMetadata\022.\n\nstart_time\030\001 \001(\0132\032" + + ".google.protobuf.Timestamp\022,\n\010end_time\030\002" + + " \001(\0132\032.google.protobuf.Timestamp\022B\n\017oper" + + "ation_state\030\003 \001(\0162).google.firestore.adm" + + "in.v1.OperationState\022?\n\022progress_documen" + + "ts\030\004 \001(\0132#.google.firestore.admin.v1.Pro" + + "gress\022;\n\016progress_bytes\030\005 \001(\0132#.google.f" + + "irestore.admin.v1.Progress\022\026\n\016collection" + + "_ids\030\006 \003(\t\022\030\n\020input_uri_prefix\030\007 \001(\t\"4\n\027" + + "ExportDocumentsResponse\022\031\n\021output_uri_pr" + + "efix\030\001 \001(\t\":\n\010Progress\022\026\n\016estimated_work" + + "\030\001 \001(\003\022\026\n\016completed_work\030\002 \001(\003*\236\001\n\016Opera" + + "tionState\022\037\n\033OPERATION_STATE_UNSPECIFIED" + + "\020\000\022\020\n\014INITIALIZING\020\001\022\016\n\nPROCESSING\020\002\022\016\n\n" + + "CANCELLING\020\003\022\016\n\nFINALIZING\020\004\022\016\n\nSUCCESSF" + + "UL\020\005\022\n\n\006FAILED\020\006\022\r\n\tCANCELLED\020\007B\274\001\n\035com." + + "google.firestore.admin.v1B\016OperationProt" + + "oP\001Z>google.golang.org/genproto/googleap" + + "is/firestore/admin/v1;admin\242\002\004GCFS\252\002\037Goo" + + "gle.Cloud.Firestore.Admin.V1\312\002\037Google\\Cl" + + "oud\\Firestore\\Admin\\V1b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.firestore.admin.v1.IndexProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }, + assigner); + internal_static_google_firestore_admin_v1_IndexOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_firestore_admin_v1_IndexOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_firestore_admin_v1_IndexOperationMetadata_descriptor, + new java.lang.String[] { + "StartTime", "EndTime", "Index", "State", "ProgressDocuments", "ProgressBytes", + }); + internal_static_google_firestore_admin_v1_FieldOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_firestore_admin_v1_FieldOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_firestore_admin_v1_FieldOperationMetadata_descriptor, + new java.lang.String[] { + "StartTime", + "EndTime", + "Field", + "IndexConfigDeltas", + "State", + "ProgressDocuments", + "ProgressBytes", + }); + internal_static_google_firestore_admin_v1_FieldOperationMetadata_IndexConfigDelta_descriptor = + internal_static_google_firestore_admin_v1_FieldOperationMetadata_descriptor + .getNestedTypes() + .get(0); + internal_static_google_firestore_admin_v1_FieldOperationMetadata_IndexConfigDelta_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_firestore_admin_v1_FieldOperationMetadata_IndexConfigDelta_descriptor, + new java.lang.String[] { + "ChangeType", "Index", + }); + internal_static_google_firestore_admin_v1_ExportDocumentsMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_firestore_admin_v1_ExportDocumentsMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_firestore_admin_v1_ExportDocumentsMetadata_descriptor, + new java.lang.String[] { + "StartTime", + "EndTime", + "OperationState", + "ProgressDocuments", + "ProgressBytes", + "CollectionIds", + "OutputUriPrefix", + }); + internal_static_google_firestore_admin_v1_ImportDocumentsMetadata_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_firestore_admin_v1_ImportDocumentsMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_firestore_admin_v1_ImportDocumentsMetadata_descriptor, + new java.lang.String[] { + "StartTime", + "EndTime", + "OperationState", + "ProgressDocuments", + "ProgressBytes", + "CollectionIds", + "InputUriPrefix", + }); + internal_static_google_firestore_admin_v1_ExportDocumentsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_firestore_admin_v1_ExportDocumentsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_firestore_admin_v1_ExportDocumentsResponse_descriptor, + new java.lang.String[] { + "OutputUriPrefix", + }); + internal_static_google_firestore_admin_v1_Progress_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_firestore_admin_v1_Progress_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_firestore_admin_v1_Progress_descriptor, + new java.lang.String[] { + "EstimatedWork", "CompletedWork", + }); + com.google.firestore.admin.v1.IndexProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/OperationState.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/OperationState.java new file mode 100644 index 000000000000..c67fa8148333 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/OperationState.java @@ -0,0 +1,263 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/operation.proto + +package com.google.firestore.admin.v1; + +/** + * + * + *
+ * Describes the state of the operation.
+ * 
+ * + * Protobuf enum {@code google.firestore.admin.v1.OperationState} + */ +public enum OperationState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified.
+   * 
+ * + * OPERATION_STATE_UNSPECIFIED = 0; + */ + OPERATION_STATE_UNSPECIFIED(0), + /** + * + * + *
+   * Request is being prepared for processing.
+   * 
+ * + * INITIALIZING = 1; + */ + INITIALIZING(1), + /** + * + * + *
+   * Request is actively being processed.
+   * 
+ * + * PROCESSING = 2; + */ + PROCESSING(2), + /** + * + * + *
+   * Request is in the process of being cancelled after user called
+   * google.longrunning.Operations.CancelOperation on the operation.
+   * 
+ * + * CANCELLING = 3; + */ + CANCELLING(3), + /** + * + * + *
+   * Request has been processed and is in its finalization stage.
+   * 
+ * + * FINALIZING = 4; + */ + FINALIZING(4), + /** + * + * + *
+   * Request has completed successfully.
+   * 
+ * + * SUCCESSFUL = 5; + */ + SUCCESSFUL(5), + /** + * + * + *
+   * Request has finished being processed, but encountered an error.
+   * 
+ * + * FAILED = 6; + */ + FAILED(6), + /** + * + * + *
+   * Request has finished being cancelled after user called
+   * google.longrunning.Operations.CancelOperation.
+   * 
+ * + * CANCELLED = 7; + */ + CANCELLED(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unspecified.
+   * 
+ * + * OPERATION_STATE_UNSPECIFIED = 0; + */ + public static final int OPERATION_STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Request is being prepared for processing.
+   * 
+ * + * INITIALIZING = 1; + */ + public static final int INITIALIZING_VALUE = 1; + /** + * + * + *
+   * Request is actively being processed.
+   * 
+ * + * PROCESSING = 2; + */ + public static final int PROCESSING_VALUE = 2; + /** + * + * + *
+   * Request is in the process of being cancelled after user called
+   * google.longrunning.Operations.CancelOperation on the operation.
+   * 
+ * + * CANCELLING = 3; + */ + public static final int CANCELLING_VALUE = 3; + /** + * + * + *
+   * Request has been processed and is in its finalization stage.
+   * 
+ * + * FINALIZING = 4; + */ + public static final int FINALIZING_VALUE = 4; + /** + * + * + *
+   * Request has completed successfully.
+   * 
+ * + * SUCCESSFUL = 5; + */ + public static final int SUCCESSFUL_VALUE = 5; + /** + * + * + *
+   * Request has finished being processed, but encountered an error.
+   * 
+ * + * FAILED = 6; + */ + public static final int FAILED_VALUE = 6; + /** + * + * + *
+   * Request has finished being cancelled after user called
+   * google.longrunning.Operations.CancelOperation.
+   * 
+ * + * CANCELLED = 7; + */ + public static final int CANCELLED_VALUE = 7; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static OperationState valueOf(int value) { + return forNumber(value); + } + + public static OperationState forNumber(int value) { + switch (value) { + case 0: + return OPERATION_STATE_UNSPECIFIED; + case 1: + return INITIALIZING; + case 2: + return PROCESSING; + case 3: + return CANCELLING; + case 4: + return FINALIZING; + case 5: + return SUCCESSFUL; + case 6: + return FAILED; + case 7: + return CANCELLED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OperationState findValueByNumber(int number) { + return OperationState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.firestore.admin.v1.OperationProto.getDescriptor().getEnumTypes().get(0); + } + + private static final OperationState[] VALUES = values(); + + public static OperationState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private OperationState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.firestore.admin.v1.OperationState) +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ParentName.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ParentName.java new file mode 100644 index 000000000000..55ddd317273b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ParentName.java @@ -0,0 +1,213 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.firestore.admin.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class ParentName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/databases/{database}/collectionGroups/{collection_id}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String database; + private final String collectionId; + + public String getProject() { + return project; + } + + public String getDatabase() { + return database; + } + + public String getCollectionId() { + return collectionId; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private ParentName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + database = Preconditions.checkNotNull(builder.getDatabase()); + collectionId = Preconditions.checkNotNull(builder.getCollectionId()); + } + + public static ParentName of(String project, String database, String collectionId) { + return newBuilder() + .setProject(project) + .setDatabase(database) + .setCollectionId(collectionId) + .build(); + } + + public static String format(String project, String database, String collectionId) { + return newBuilder() + .setProject(project) + .setDatabase(database) + .setCollectionId(collectionId) + .build() + .toString(); + } + + public static ParentName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "ParentName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("database"), matchMap.get("collection_id")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (ParentName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("database", database); + fieldMapBuilder.put("collectionId", collectionId); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate( + "project", project, "database", database, "collection_id", collectionId); + } + + /** Builder for ParentName. */ + public static class Builder { + + private String project; + private String database; + private String collectionId; + + public String getProject() { + return project; + } + + public String getDatabase() { + return database; + } + + public String getCollectionId() { + return collectionId; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setDatabase(String database) { + this.database = database; + return this; + } + + public Builder setCollectionId(String collectionId) { + this.collectionId = collectionId; + return this; + } + + private Builder() {} + + private Builder(ParentName parentName) { + project = parentName.project; + database = parentName.database; + collectionId = parentName.collectionId; + } + + public ParentName build() { + return new ParentName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof ParentName) { + ParentName that = (ParentName) o; + return (this.project.equals(that.project)) + && (this.database.equals(that.database)) + && (this.collectionId.equals(that.collectionId)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= database.hashCode(); + h *= 1000003; + h ^= collectionId.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Progress.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Progress.java new file mode 100644 index 000000000000..b68e086dee42 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Progress.java @@ -0,0 +1,599 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/operation.proto + +package com.google.firestore.admin.v1; + +/** + * + * + *
+ * Describes the progress of the operation.
+ * Unit of work is generic and must be interpreted based on where [Progress][google.firestore.admin.v1.Progress]
+ * is used.
+ * 
+ * + * Protobuf type {@code google.firestore.admin.v1.Progress} + */ +public final class Progress extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.Progress) + ProgressOrBuilder { + private static final long serialVersionUID = 0L; + // Use Progress.newBuilder() to construct. + private Progress(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Progress() { + estimatedWork_ = 0L; + completedWork_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Progress( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + estimatedWork_ = input.readInt64(); + break; + } + case 16: + { + completedWork_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_Progress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_Progress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.Progress.class, + com.google.firestore.admin.v1.Progress.Builder.class); + } + + public static final int ESTIMATED_WORK_FIELD_NUMBER = 1; + private long estimatedWork_; + /** + * + * + *
+   * The amount of work estimated.
+   * 
+ * + * int64 estimated_work = 1; + */ + public long getEstimatedWork() { + return estimatedWork_; + } + + public static final int COMPLETED_WORK_FIELD_NUMBER = 2; + private long completedWork_; + /** + * + * + *
+   * The amount of work completed.
+   * 
+ * + * int64 completed_work = 2; + */ + public long getCompletedWork() { + return completedWork_; + } + + 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 (estimatedWork_ != 0L) { + output.writeInt64(1, estimatedWork_); + } + if (completedWork_ != 0L) { + output.writeInt64(2, completedWork_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (estimatedWork_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, estimatedWork_); + } + if (completedWork_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, completedWork_); + } + 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.firestore.admin.v1.Progress)) { + return super.equals(obj); + } + com.google.firestore.admin.v1.Progress other = (com.google.firestore.admin.v1.Progress) obj; + + boolean result = true; + result = result && (getEstimatedWork() == other.getEstimatedWork()); + result = result && (getCompletedWork() == other.getCompletedWork()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ESTIMATED_WORK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEstimatedWork()); + hash = (37 * hash) + COMPLETED_WORK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCompletedWork()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.firestore.admin.v1.Progress parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.Progress parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.Progress parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.Progress 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.firestore.admin.v1.Progress parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.Progress parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.Progress parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.Progress 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.firestore.admin.v1.Progress parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.Progress 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.firestore.admin.v1.Progress parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.Progress 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.firestore.admin.v1.Progress 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; + } + /** + * + * + *
+   * Describes the progress of the operation.
+   * Unit of work is generic and must be interpreted based on where [Progress][google.firestore.admin.v1.Progress]
+   * is used.
+   * 
+ * + * Protobuf type {@code google.firestore.admin.v1.Progress} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.firestore.admin.v1.Progress) + com.google.firestore.admin.v1.ProgressOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_Progress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_Progress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.Progress.class, + com.google.firestore.admin.v1.Progress.Builder.class); + } + + // Construct using com.google.firestore.admin.v1.Progress.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + estimatedWork_ = 0L; + + completedWork_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_Progress_descriptor; + } + + @java.lang.Override + public com.google.firestore.admin.v1.Progress getDefaultInstanceForType() { + return com.google.firestore.admin.v1.Progress.getDefaultInstance(); + } + + @java.lang.Override + public com.google.firestore.admin.v1.Progress build() { + com.google.firestore.admin.v1.Progress result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.firestore.admin.v1.Progress buildPartial() { + com.google.firestore.admin.v1.Progress result = + new com.google.firestore.admin.v1.Progress(this); + result.estimatedWork_ = estimatedWork_; + result.completedWork_ = completedWork_; + 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.firestore.admin.v1.Progress) { + return mergeFrom((com.google.firestore.admin.v1.Progress) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.firestore.admin.v1.Progress other) { + if (other == com.google.firestore.admin.v1.Progress.getDefaultInstance()) return this; + if (other.getEstimatedWork() != 0L) { + setEstimatedWork(other.getEstimatedWork()); + } + if (other.getCompletedWork() != 0L) { + setCompletedWork(other.getCompletedWork()); + } + 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.firestore.admin.v1.Progress parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.firestore.admin.v1.Progress) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long estimatedWork_; + /** + * + * + *
+     * The amount of work estimated.
+     * 
+ * + * int64 estimated_work = 1; + */ + public long getEstimatedWork() { + return estimatedWork_; + } + /** + * + * + *
+     * The amount of work estimated.
+     * 
+ * + * int64 estimated_work = 1; + */ + public Builder setEstimatedWork(long value) { + + estimatedWork_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The amount of work estimated.
+     * 
+ * + * int64 estimated_work = 1; + */ + public Builder clearEstimatedWork() { + + estimatedWork_ = 0L; + onChanged(); + return this; + } + + private long completedWork_; + /** + * + * + *
+     * The amount of work completed.
+     * 
+ * + * int64 completed_work = 2; + */ + public long getCompletedWork() { + return completedWork_; + } + /** + * + * + *
+     * The amount of work completed.
+     * 
+ * + * int64 completed_work = 2; + */ + public Builder setCompletedWork(long value) { + + completedWork_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The amount of work completed.
+     * 
+ * + * int64 completed_work = 2; + */ + public Builder clearCompletedWork() { + + completedWork_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.Progress) + } + + // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.Progress) + private static final com.google.firestore.admin.v1.Progress DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.firestore.admin.v1.Progress(); + } + + public static com.google.firestore.admin.v1.Progress getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Progress parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Progress(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.firestore.admin.v1.Progress getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ProgressOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ProgressOrBuilder.java new file mode 100644 index 000000000000..5eeffb29ca97 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ProgressOrBuilder.java @@ -0,0 +1,32 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/operation.proto + +package com.google.firestore.admin.v1; + +public interface ProgressOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.firestore.admin.v1.Progress) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The amount of work estimated.
+   * 
+ * + * int64 estimated_work = 1; + */ + long getEstimatedWork(); + + /** + * + * + *
+   * The amount of work completed.
+   * 
+ * + * int64 completed_work = 2; + */ + long getCompletedWork(); +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UpdateFieldRequest.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UpdateFieldRequest.java new file mode 100644 index 000000000000..347c7e881f9a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UpdateFieldRequest.java @@ -0,0 +1,969 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/firestore_admin.proto + +package com.google.firestore.admin.v1; + +/** + * + * + *
+ * The request for [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField].
+ * 
+ * + * Protobuf type {@code google.firestore.admin.v1.UpdateFieldRequest} + */ +public final class UpdateFieldRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.UpdateFieldRequest) + UpdateFieldRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateFieldRequest.newBuilder() to construct. + private UpdateFieldRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateFieldRequest() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateFieldRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.firestore.admin.v1.Field.Builder subBuilder = null; + if (field_ != null) { + subBuilder = field_.toBuilder(); + } + field_ = + input.readMessage( + com.google.firestore.admin.v1.Field.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(field_); + field_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_UpdateFieldRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_UpdateFieldRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.UpdateFieldRequest.class, + com.google.firestore.admin.v1.UpdateFieldRequest.Builder.class); + } + + public static final int FIELD_FIELD_NUMBER = 1; + private com.google.firestore.admin.v1.Field field_; + /** + * + * + *
+   * The field to be updated.
+   * 
+ * + * .google.firestore.admin.v1.Field field = 1; + */ + public boolean hasField() { + return field_ != null; + } + /** + * + * + *
+   * The field to be updated.
+   * 
+ * + * .google.firestore.admin.v1.Field field = 1; + */ + public com.google.firestore.admin.v1.Field getField() { + return field_ == null ? com.google.firestore.admin.v1.Field.getDefaultInstance() : field_; + } + /** + * + * + *
+   * The field to be updated.
+   * 
+ * + * .google.firestore.admin.v1.Field field = 1; + */ + public com.google.firestore.admin.v1.FieldOrBuilder getFieldOrBuilder() { + return getField(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * A mask, relative to the field. If specified, only configuration specified
+   * by this field_mask will be updated in the field.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * A mask, relative to the field. If specified, only configuration specified
+   * by this field_mask will be updated in the field.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * A mask, relative to the field. If specified, only configuration specified
+   * by this field_mask will be updated in the field.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (field_ != null) { + output.writeMessage(1, getField()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (field_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getField()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.firestore.admin.v1.UpdateFieldRequest)) { + return super.equals(obj); + } + com.google.firestore.admin.v1.UpdateFieldRequest other = + (com.google.firestore.admin.v1.UpdateFieldRequest) obj; + + boolean result = true; + result = result && (hasField() == other.hasField()); + if (hasField()) { + result = result && getField().equals(other.getField()); + } + result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask()) { + result = result && getUpdateMask().equals(other.getUpdateMask()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasField()) { + hash = (37 * hash) + FIELD_FIELD_NUMBER; + hash = (53 * hash) + getField().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.firestore.admin.v1.UpdateFieldRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.UpdateFieldRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.UpdateFieldRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.UpdateFieldRequest 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.firestore.admin.v1.UpdateFieldRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.UpdateFieldRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.UpdateFieldRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.UpdateFieldRequest 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.firestore.admin.v1.UpdateFieldRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.UpdateFieldRequest 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.firestore.admin.v1.UpdateFieldRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.UpdateFieldRequest 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.firestore.admin.v1.UpdateFieldRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request for [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField].
+   * 
+ * + * Protobuf type {@code google.firestore.admin.v1.UpdateFieldRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.firestore.admin.v1.UpdateFieldRequest) + com.google.firestore.admin.v1.UpdateFieldRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_UpdateFieldRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_UpdateFieldRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.UpdateFieldRequest.class, + com.google.firestore.admin.v1.UpdateFieldRequest.Builder.class); + } + + // Construct using com.google.firestore.admin.v1.UpdateFieldRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (fieldBuilder_ == null) { + field_ = null; + } else { + field_ = null; + fieldBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_UpdateFieldRequest_descriptor; + } + + @java.lang.Override + public com.google.firestore.admin.v1.UpdateFieldRequest getDefaultInstanceForType() { + return com.google.firestore.admin.v1.UpdateFieldRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.firestore.admin.v1.UpdateFieldRequest build() { + com.google.firestore.admin.v1.UpdateFieldRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.firestore.admin.v1.UpdateFieldRequest buildPartial() { + com.google.firestore.admin.v1.UpdateFieldRequest result = + new com.google.firestore.admin.v1.UpdateFieldRequest(this); + if (fieldBuilder_ == null) { + result.field_ = field_; + } else { + result.field_ = fieldBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.firestore.admin.v1.UpdateFieldRequest) { + return mergeFrom((com.google.firestore.admin.v1.UpdateFieldRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.firestore.admin.v1.UpdateFieldRequest other) { + if (other == com.google.firestore.admin.v1.UpdateFieldRequest.getDefaultInstance()) + return this; + if (other.hasField()) { + mergeField(other.getField()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.firestore.admin.v1.UpdateFieldRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.firestore.admin.v1.UpdateFieldRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.firestore.admin.v1.Field field_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Field, + com.google.firestore.admin.v1.Field.Builder, + com.google.firestore.admin.v1.FieldOrBuilder> + fieldBuilder_; + /** + * + * + *
+     * The field to be updated.
+     * 
+ * + * .google.firestore.admin.v1.Field field = 1; + */ + public boolean hasField() { + return fieldBuilder_ != null || field_ != null; + } + /** + * + * + *
+     * The field to be updated.
+     * 
+ * + * .google.firestore.admin.v1.Field field = 1; + */ + public com.google.firestore.admin.v1.Field getField() { + if (fieldBuilder_ == null) { + return field_ == null ? com.google.firestore.admin.v1.Field.getDefaultInstance() : field_; + } else { + return fieldBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The field to be updated.
+     * 
+ * + * .google.firestore.admin.v1.Field field = 1; + */ + public Builder setField(com.google.firestore.admin.v1.Field value) { + if (fieldBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + field_ = value; + onChanged(); + } else { + fieldBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The field to be updated.
+     * 
+ * + * .google.firestore.admin.v1.Field field = 1; + */ + public Builder setField(com.google.firestore.admin.v1.Field.Builder builderForValue) { + if (fieldBuilder_ == null) { + field_ = builderForValue.build(); + onChanged(); + } else { + fieldBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The field to be updated.
+     * 
+ * + * .google.firestore.admin.v1.Field field = 1; + */ + public Builder mergeField(com.google.firestore.admin.v1.Field value) { + if (fieldBuilder_ == null) { + if (field_ != null) { + field_ = + com.google.firestore.admin.v1.Field.newBuilder(field_) + .mergeFrom(value) + .buildPartial(); + } else { + field_ = value; + } + onChanged(); + } else { + fieldBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The field to be updated.
+     * 
+ * + * .google.firestore.admin.v1.Field field = 1; + */ + public Builder clearField() { + if (fieldBuilder_ == null) { + field_ = null; + onChanged(); + } else { + field_ = null; + fieldBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The field to be updated.
+     * 
+ * + * .google.firestore.admin.v1.Field field = 1; + */ + public com.google.firestore.admin.v1.Field.Builder getFieldBuilder() { + + onChanged(); + return getFieldFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The field to be updated.
+     * 
+ * + * .google.firestore.admin.v1.Field field = 1; + */ + public com.google.firestore.admin.v1.FieldOrBuilder getFieldOrBuilder() { + if (fieldBuilder_ != null) { + return fieldBuilder_.getMessageOrBuilder(); + } else { + return field_ == null ? com.google.firestore.admin.v1.Field.getDefaultInstance() : field_; + } + } + /** + * + * + *
+     * The field to be updated.
+     * 
+ * + * .google.firestore.admin.v1.Field field = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Field, + com.google.firestore.admin.v1.Field.Builder, + com.google.firestore.admin.v1.FieldOrBuilder> + getFieldFieldBuilder() { + if (fieldBuilder_ == null) { + fieldBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Field, + com.google.firestore.admin.v1.Field.Builder, + com.google.firestore.admin.v1.FieldOrBuilder>( + getField(), getParentForChildren(), isClean()); + field_ = null; + } + return fieldBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * A mask, relative to the field. If specified, only configuration specified
+     * by this field_mask will be updated in the field.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * A mask, relative to the field. If specified, only configuration specified
+     * by this field_mask will be updated in the field.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * A mask, relative to the field. If specified, only configuration specified
+     * by this field_mask will be updated in the field.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * A mask, relative to the field. If specified, only configuration specified
+     * by this field_mask will be updated in the field.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * A mask, relative to the field. If specified, only configuration specified
+     * by this field_mask will be updated in the field.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * A mask, relative to the field. If specified, only configuration specified
+     * by this field_mask will be updated in the field.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * A mask, relative to the field. If specified, only configuration specified
+     * by this field_mask will be updated in the field.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A mask, relative to the field. If specified, only configuration specified
+     * by this field_mask will be updated in the field.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * A mask, relative to the field. If specified, only configuration specified
+     * by this field_mask will be updated in the field.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.UpdateFieldRequest) + } + + // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.UpdateFieldRequest) + private static final com.google.firestore.admin.v1.UpdateFieldRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.firestore.admin.v1.UpdateFieldRequest(); + } + + public static com.google.firestore.admin.v1.UpdateFieldRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFieldRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateFieldRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.firestore.admin.v1.UpdateFieldRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UpdateFieldRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UpdateFieldRequestOrBuilder.java new file mode 100644 index 000000000000..802bd7622410 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UpdateFieldRequestOrBuilder.java @@ -0,0 +1,75 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/firestore_admin.proto + +package com.google.firestore.admin.v1; + +public interface UpdateFieldRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.firestore.admin.v1.UpdateFieldRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The field to be updated.
+   * 
+ * + * .google.firestore.admin.v1.Field field = 1; + */ + boolean hasField(); + /** + * + * + *
+   * The field to be updated.
+   * 
+ * + * .google.firestore.admin.v1.Field field = 1; + */ + com.google.firestore.admin.v1.Field getField(); + /** + * + * + *
+   * The field to be updated.
+   * 
+ * + * .google.firestore.admin.v1.Field field = 1; + */ + com.google.firestore.admin.v1.FieldOrBuilder getFieldOrBuilder(); + + /** + * + * + *
+   * A mask, relative to the field. If specified, only configuration specified
+   * by this field_mask will be updated in the field.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * A mask, relative to the field. If specified, only configuration specified
+   * by this field_mask will be updated in the field.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * A mask, relative to the field. If specified, only configuration specified
+   * by this field_mask will be updated in the field.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/field.proto b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/field.proto new file mode 100644 index 000000000000..a24e1aaf1dc4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/field.proto @@ -0,0 +1,96 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.firestore.admin.v1; + +import "google/firestore/admin/v1/index.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Cloud.Firestore.Admin.V1"; +option go_package = "google.golang.org/genproto/googleapis/firestore/admin/v1;admin"; +option java_multiple_files = true; +option java_outer_classname = "FieldProto"; +option java_package = "com.google.firestore.admin.v1"; +option objc_class_prefix = "GCFS"; +option php_namespace = "Google\\Cloud\\Firestore\\Admin\\V1"; + + +// Represents a single field in the database. +// +// Fields are grouped by their "Collection Group", which represent all +// collections in the database with the same id. +message Field { + // The index configuration for this field. + message IndexConfig { + // The indexes supported for this field. + repeated Index indexes = 1; + + // Output only. + // When true, the `Field`'s index configuration is set from the + // configuration specified by the `ancestor_field`. + // When false, the `Field`'s index configuration is defined explicitly. + bool uses_ancestor_config = 2; + + // Output only. + // Specifies the resource name of the `Field` from which this field's + // index configuration is set (when `uses_ancestor_config` is true), + // or from which it *would* be set if this field had no index configuration + // (when `uses_ancestor_config` is false). + string ancestor_field = 3; + + // Output only + // When true, the `Field`'s index configuration is in the process of being + // reverted. Once complete, the index config will transition to the same + // state as the field specified by `ancestor_field`, at which point + // `uses_ancestor_config` will be `true` and `reverting` will be `false`. + bool reverting = 4; + } + + // A field name of the form + // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` + // + // A field path may be a simple field name, e.g. `address` or a path to fields + // within map_value , e.g. `address.city`, + // or a special field path. The only valid special field is `*`, which + // represents any field. + // + // Field paths may be quoted using ` (backtick). The only character that needs + // to be escaped within a quoted field path is the backtick character itself, + // escaped using a backslash. Special characters in field paths that + // must be quoted include: `*`, `.`, + // ``` (backtick), `[`, `]`, as well as any ascii symbolic characters. + // + // Examples: + // (Note: Comments here are written in markdown syntax, so there is an + // additional layer of backticks to represent a code block) + // `\`address.city\`` represents a field named `address.city`, not the map key + // `city` in the field `address`. + // `\`*\`` represents a field named `*`, not any field. + // + // A special `Field` contains the default indexing settings for all fields. + // This field's resource name is: + // `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*` + // Indexes defined on this `Field` will be applied to all fields which do not + // have their own `Field` index configuration. + string name = 1; + + // The index configuration for this field. If unset, field indexing will + // revert to the configuration defined by the `ancestor_field`. To + // explicitly remove all indexes for this field, specify an index config + // with an empty list of indexes. + IndexConfig index_config = 2; +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/firestore_admin.proto b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/firestore_admin.proto new file mode 100644 index 000000000000..e753686b200e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/firestore_admin.proto @@ -0,0 +1,274 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.firestore.admin.v1; + +import "google/api/annotations.proto"; +import "google/firestore/admin/v1/field.proto"; +import "google/firestore/admin/v1/index.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.Firestore.Admin.V1"; +option go_package = "google.golang.org/genproto/googleapis/firestore/admin/v1;admin"; +option java_multiple_files = true; +option java_outer_classname = "FirestoreAdminProto"; +option java_package = "com.google.firestore.admin.v1"; +option objc_class_prefix = "GCFS"; +option php_namespace = "Google\\Cloud\\Firestore\\Admin\\V1"; + + +// Operations are created by service `FirestoreAdmin`, but are accessed via +// service `google.longrunning.Operations`. +service FirestoreAdmin { + // Creates a composite index. This returns a [google.longrunning.Operation][google.longrunning.Operation] + // which may be used to track the status of the creation. The metadata for + // the operation will be the type [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata]. + rpc CreateIndex(CreateIndexRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/databases/*/collectionGroups/*}/indexes" + body: "index" + }; + } + + // Lists composite indexes. + rpc ListIndexes(ListIndexesRequest) returns (ListIndexesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/databases/*/collectionGroups/*}/indexes" + }; + } + + // Gets a composite index. + rpc GetIndex(GetIndexRequest) returns (Index) { + option (google.api.http) = { + get: "/v1/{name=projects/*/databases/*/collectionGroups/*/indexes/*}" + }; + } + + // Deletes a composite index. + rpc DeleteIndex(DeleteIndexRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/databases/*/collectionGroups/*/indexes/*}" + }; + } + + // Gets the metadata and configuration for a Field. + rpc GetField(GetFieldRequest) returns (Field) { + option (google.api.http) = { + get: "/v1/{name=projects/*/databases/*/collectionGroups/*/fields/*}" + }; + } + + // Updates a field configuration. Currently, field updates apply only to + // single field index configuration. However, calls to + // [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField] should provide a field mask to avoid + // changing any configuration that the caller isn't aware of. The field mask + // should be specified as: `{ paths: "index_config" }`. + // + // This call returns a [google.longrunning.Operation][google.longrunning.Operation] which may be used to + // track the status of the field update. The metadata for + // the operation will be the type [FieldOperationMetadata][google.firestore.admin.v1.FieldOperationMetadata]. + // + // To configure the default field settings for the database, use + // the special `Field` with resource name: + // `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`. + rpc UpdateField(UpdateFieldRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{field.name=projects/*/databases/*/collectionGroups/*/fields/*}" + body: "field" + }; + } + + // Lists the field configuration and metadata for this database. + // + // Currently, [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields + // that have been explicitly overridden. To issue this query, call + // [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to + // `indexConfig.usesAncestorConfig:false`. + rpc ListFields(ListFieldsRequest) returns (ListFieldsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/databases/*/collectionGroups/*}/fields" + }; + } + + // Exports a copy of all or a subset of documents from Google Cloud Firestore + // to another storage system, such as Google Cloud Storage. Recent updates to + // documents may not be reflected in the export. The export occurs in the + // background and its progress can be monitored and managed via the + // Operation resource that is created. The output of an export may only be + // used once the associated operation is done. If an export operation is + // cancelled before completion it may leave partial data behind in Google + // Cloud Storage. + rpc ExportDocuments(ExportDocumentsRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/databases/*}:exportDocuments" + body: "*" + }; + } + + // Imports documents into Google Cloud Firestore. Existing documents with the + // same name are overwritten. The import occurs in the background and its + // progress can be monitored and managed via the Operation resource that is + // created. If an ImportDocuments operation is cancelled, it is possible + // that a subset of the data has already been imported to Cloud Firestore. + rpc ImportDocuments(ImportDocumentsRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/databases/*}:importDocuments" + body: "*" + }; + } +} + +// The request for [FirestoreAdmin.CreateIndex][google.firestore.admin.v1.FirestoreAdmin.CreateIndex]. +message CreateIndexRequest { + // A parent name of the form + // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + string parent = 1; + + // The composite index to create. + Index index = 2; +} + +// The request for [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes]. +message ListIndexesRequest { + // A parent name of the form + // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + string parent = 1; + + // The filter to apply to list results. + string filter = 2; + + // The number of results to return. + int32 page_size = 3; + + // A page token, returned from a previous call to + // [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes], that may be used to get the next + // page of results. + string page_token = 4; +} + +// The response for [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes]. +message ListIndexesResponse { + // The requested indexes. + repeated Index indexes = 1; + + // A page token that may be used to request another page of results. If blank, + // this is the last page. + string next_page_token = 2; +} + +// The request for [FirestoreAdmin.GetIndex][google.firestore.admin.v1.FirestoreAdmin.GetIndex]. +message GetIndexRequest { + // A name of the form + // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + string name = 1; +} + +// The request for [FirestoreAdmin.DeleteIndex][google.firestore.admin.v1.FirestoreAdmin.DeleteIndex]. +message DeleteIndexRequest { + // A name of the form + // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + string name = 1; +} + +// The request for [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField]. +message UpdateFieldRequest { + // The field to be updated. + Field field = 1; + + // A mask, relative to the field. If specified, only configuration specified + // by this field_mask will be updated in the field. + google.protobuf.FieldMask update_mask = 2; +} + +// The request for [FirestoreAdmin.GetField][google.firestore.admin.v1.FirestoreAdmin.GetField]. +message GetFieldRequest { + // A name of the form + // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}` + string name = 1; +} + +// The request for [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]. +message ListFieldsRequest { + // A parent name of the form + // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + string parent = 1; + + // The filter to apply to list results. Currently, + // [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields + // that have been explicitly overridden. To issue this query, call + // [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to + // `indexConfig.usesAncestorConfig:false`. + string filter = 2; + + // The number of results to return. + int32 page_size = 3; + + // A page token, returned from a previous call to + // [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields], that may be used to get the next + // page of results. + string page_token = 4; +} + +// The response for [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]. +message ListFieldsResponse { + // The requested fields. + repeated Field fields = 1; + + // A page token that may be used to request another page of results. If blank, + // this is the last page. + string next_page_token = 2; +} + +// The request for [FirestoreAdmin.ExportDocuments][google.firestore.admin.v1.FirestoreAdmin.ExportDocuments]. +message ExportDocumentsRequest { + // Database to export. Should be of the form: + // `projects/{project_id}/databases/{database_id}`. + string name = 1; + + // Which collection ids to export. Unspecified means all collections. + repeated string collection_ids = 2; + + // The output URI. Currently only supports Google Cloud Storage URIs of the + // form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name + // of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional + // Google Cloud Storage namespace path. When + // choosing a name, be sure to consider Google Cloud Storage naming + // guidelines: https://cloud.google.com/storage/docs/naming. + // If the URI is a bucket (without a namespace path), a prefix will be + // generated based on the start time. + string output_uri_prefix = 3; +} + +// The request for [FirestoreAdmin.ImportDocuments][google.firestore.admin.v1.FirestoreAdmin.ImportDocuments]. +message ImportDocumentsRequest { + // Database to import into. Should be of the form: + // `projects/{project_id}/databases/{database_id}`. + string name = 1; + + // Which collection ids to import. Unspecified means all collections included + // in the import. + repeated string collection_ids = 2; + + // Location of the exported files. + // This must match the output_uri_prefix of an ExportDocumentsResponse from + // an export that has completed successfully. + // See: + // [google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix]. + string input_uri_prefix = 3; +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/index.proto b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/index.proto new file mode 100644 index 000000000000..94941d3a0707 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/index.proto @@ -0,0 +1,149 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.firestore.admin.v1; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Cloud.Firestore.Admin.V1"; +option go_package = "google.golang.org/genproto/googleapis/firestore/admin/v1;admin"; +option java_multiple_files = true; +option java_outer_classname = "IndexProto"; +option java_package = "com.google.firestore.admin.v1"; +option objc_class_prefix = "GCFS"; +option php_namespace = "Google\\Cloud\\Firestore\\Admin\\V1"; + + +// Cloud Firestore indexes enable simple and complex queries against +// documents in a database. +message Index { + // A field in an index. + // The field_path describes which field is indexed, the value_mode describes + // how the field value is indexed. + message IndexField { + // The supported orderings. + enum Order { + // The ordering is unspecified. Not a valid option. + ORDER_UNSPECIFIED = 0; + + // The field is ordered by ascending field value. + ASCENDING = 1; + + // The field is ordered by descending field value. + DESCENDING = 2; + } + + // The supported array value configurations. + enum ArrayConfig { + // The index does not support additional array queries. + ARRAY_CONFIG_UNSPECIFIED = 0; + + // The index supports array containment queries. + CONTAINS = 1; + } + + // Can be __name__. + // For single field indexes, this must match the name of the field or may + // be omitted. + string field_path = 1; + + // How the field value is indexed. + oneof value_mode { + // Indicates that this field supports ordering by the specified order or + // comparing using =, <, <=, >, >=. + Order order = 2; + + // Indicates that this field supports operations on `array_value`s. + ArrayConfig array_config = 3; + } + } + + // Query Scope defines the scope at which a query is run. This is specified on + // a StructuredQuery's `from` field. + enum QueryScope { + // The query scope is unspecified. Not a valid option. + QUERY_SCOPE_UNSPECIFIED = 0; + + // Indexes with a collection query scope specified allow queries + // against a collection that is the child of a specific document, specified + // at query time, and that has the collection id specified by the index. + COLLECTION = 1; + } + + // The state of an index. During index creation, an index will be in the + // `CREATING` state. If the index is created successfully, it will transition + // to the `READY` state. If the index creation encounters a problem, the index + // will transition to the `NEEDS_REPAIR` state. + enum State { + // The state is unspecified. + STATE_UNSPECIFIED = 0; + + // The index is being created. + // There is an active long-running operation for the index. + // The index is updated when writing a document. + // Some index data may exist. + CREATING = 1; + + // The index is ready to be used. + // The index is updated when writing a document. + // The index is fully populated from all stored documents it applies to. + READY = 2; + + // The index was being created, but something went wrong. + // There is no active long-running operation for the index, + // and the most recently finished long-running operation failed. + // The index is not updated when writing a document. + // Some index data may exist. + // Use the google.longrunning.Operations API to determine why the operation + // that last attempted to create this index failed, then re-create the + // index. + NEEDS_REPAIR = 3; + } + + // Output only. + // A server defined name for this index. + // The form of this name for composite indexes will be: + // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}` + // For single field indexes, this field will be empty. + string name = 1; + + // Indexes with a collection query scope specified allow queries + // against a collection that is the child of a specific document, specified at + // query time, and that has the same collection id. + // + // Indexes with a collection group query scope specified allow queries against + // all collections descended from a specific document, specified at query + // time, and that have the same collection id as this index. + QueryScope query_scope = 2; + + // The fields supported by this index. + // + // For composite indexes, this is always 2 or more fields. + // The last field entry is always for the field path `__name__`. If, on + // creation, `__name__` was not specified as the last field, it will be added + // automatically with the same direction as that of the last field defined. If + // the final field in a composite index is not directional, the `__name__` + // will be ordered ASCENDING (unless explicitly specified). + // + // For single field indexes, this will always be exactly one entry with a + // field path equal to the field path of the associated field. + repeated IndexField fields = 3; + + // Output only. + // The serving state of the index. + State state = 4; +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/location.proto b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/location.proto new file mode 100644 index 000000000000..7b56051a5c36 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/location.proto @@ -0,0 +1,35 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.firestore.admin.v1; + +import "google/type/latlng.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Cloud.Firestore.Admin.V1"; +option go_package = "google.golang.org/genproto/googleapis/firestore/admin/v1;admin"; +option java_multiple_files = true; +option java_outer_classname = "LocationProto"; +option java_package = "com.google.firestore.admin.v1"; +option objc_class_prefix = "GCFS"; +option php_namespace = "Google\\Cloud\\Firestore\\Admin\\V1"; + + +// The metadata message for [google.cloud.location.Location.metadata][google.cloud.location.Location.metadata]. +message LocationMetadata { + +} diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/operation.proto b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/operation.proto new file mode 100644 index 000000000000..d333d9b7de25 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/operation.proto @@ -0,0 +1,204 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.firestore.admin.v1; + +import "google/firestore/admin/v1/index.proto"; +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Cloud.Firestore.Admin.V1"; +option go_package = "google.golang.org/genproto/googleapis/firestore/admin/v1;admin"; +option java_multiple_files = true; +option java_outer_classname = "OperationProto"; +option java_package = "com.google.firestore.admin.v1"; +option objc_class_prefix = "GCFS"; +option php_namespace = "Google\\Cloud\\Firestore\\Admin\\V1"; + + +// Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from +// [FirestoreAdmin.CreateIndex][google.firestore.admin.v1.FirestoreAdmin.CreateIndex]. +message IndexOperationMetadata { + // The time this operation started. + google.protobuf.Timestamp start_time = 1; + + // The time this operation completed. Will be unset if operation still in + // progress. + google.protobuf.Timestamp end_time = 2; + + // The index resource that this operation is acting on. For example: + // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + string index = 3; + + // The state of the operation. + OperationState state = 4; + + // The progress, in documents, of this operation. + Progress progress_documents = 5; + + // The progress, in bytes, of this operation. + Progress progress_bytes = 6; +} + +// Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from +// [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField]. +message FieldOperationMetadata { + // Information about an index configuration change. + message IndexConfigDelta { + // Specifies how the index is changing. + enum ChangeType { + // The type of change is not specified or known. + CHANGE_TYPE_UNSPECIFIED = 0; + + // The single field index is being added. + ADD = 1; + + // The single field index is being removed. + REMOVE = 2; + } + + // Specifies how the index is changing. + ChangeType change_type = 1; + + // The index being changed. + Index index = 2; + } + + // The time this operation started. + google.protobuf.Timestamp start_time = 1; + + // The time this operation completed. Will be unset if operation still in + // progress. + google.protobuf.Timestamp end_time = 2; + + // The field resource that this operation is acting on. For example: + // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` + string field = 3; + + // A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this + // operation. + repeated IndexConfigDelta index_config_deltas = 4; + + // The state of the operation. + OperationState state = 5; + + // The progress, in documents, of this operation. + Progress progress_documents = 6; + + // The progress, in bytes, of this operation. + Progress progress_bytes = 7; +} + +// Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from +// [FirestoreAdmin.ExportDocuments][google.firestore.admin.v1.FirestoreAdmin.ExportDocuments]. +message ExportDocumentsMetadata { + // The time this operation started. + google.protobuf.Timestamp start_time = 1; + + // The time this operation completed. Will be unset if operation still in + // progress. + google.protobuf.Timestamp end_time = 2; + + // The state of the export operation. + OperationState operation_state = 3; + + // The progress, in documents, of this operation. + Progress progress_documents = 4; + + // The progress, in bytes, of this operation. + Progress progress_bytes = 5; + + // Which collection ids are being exported. + repeated string collection_ids = 6; + + // Where the entities are being exported to. + string output_uri_prefix = 7; +} + +// Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from +// [FirestoreAdmin.ImportDocuments][google.firestore.admin.v1.FirestoreAdmin.ImportDocuments]. +message ImportDocumentsMetadata { + // The time this operation started. + google.protobuf.Timestamp start_time = 1; + + // The time this operation completed. Will be unset if operation still in + // progress. + google.protobuf.Timestamp end_time = 2; + + // The state of the import operation. + OperationState operation_state = 3; + + // The progress, in documents, of this operation. + Progress progress_documents = 4; + + // The progress, in bytes, of this operation. + Progress progress_bytes = 5; + + // Which collection ids are being imported. + repeated string collection_ids = 6; + + // The location of the documents being imported. + string input_uri_prefix = 7; +} + +// Returned in the [google.longrunning.Operation][google.longrunning.Operation] response field. +message ExportDocumentsResponse { + // Location of the output files. This can be used to begin an import + // into Cloud Firestore (this project or another project) after the operation + // completes successfully. + string output_uri_prefix = 1; +} + +// Describes the state of the operation. +enum OperationState { + // Unspecified. + OPERATION_STATE_UNSPECIFIED = 0; + + // Request is being prepared for processing. + INITIALIZING = 1; + + // Request is actively being processed. + PROCESSING = 2; + + // Request is in the process of being cancelled after user called + // google.longrunning.Operations.CancelOperation on the operation. + CANCELLING = 3; + + // Request has been processed and is in its finalization stage. + FINALIZING = 4; + + // Request has completed successfully. + SUCCESSFUL = 5; + + // Request has finished being processed, but encountered an error. + FAILED = 6; + + // Request has finished being cancelled after user called + // google.longrunning.Operations.CancelOperation. + CANCELLED = 7; +} + +// Describes the progress of the operation. +// Unit of work is generic and must be interpreted based on where [Progress][google.firestore.admin.v1.Progress] +// is used. +message Progress { + // The amount of work estimated. + int64 estimated_work = 1; + + // The amount of work completed. + int64 completed_work = 2; +} diff --git a/google-cloud-bom/pom.xml b/google-cloud-bom/pom.xml index 90870c04577b..b97d967d2585 100644 --- a/google-cloud-bom/pom.xml +++ b/google-cloud-bom/pom.xml @@ -444,6 +444,11 @@ google-cloud-firestore 0.84.1-beta-SNAPSHOT
+ + com.google.api.grpc + proto-google-cloud-firestore-admin-v1 + 0.49.1-SNAPSHOT + com.google.api.grpc proto-google-cloud-firestore-v1 @@ -454,6 +459,11 @@ proto-google-cloud-firestore-v1beta1 0.49.1-SNAPSHOT + + com.google.api.grpc + grpc-google-cloud-firestore-admin-v1 + 0.49.1-SNAPSHOT + com.google.api.grpc grpc-google-cloud-firestore-v1 diff --git a/google-cloud-clients/google-cloud-firestore/pom.xml b/google-cloud-clients/google-cloud-firestore/pom.xml index 03e40ddade22..5d18b66795fa 100644 --- a/google-cloud-clients/google-cloud-firestore/pom.xml +++ b/google-cloud-clients/google-cloud-firestore/pom.xml @@ -37,6 +37,10 @@ com.google.api api-common + + com.google.api.grpc + proto-google-cloud-firestore-admin-v1 + com.google.api.grpc proto-google-cloud-firestore-v1 @@ -50,6 +54,11 @@ auto-value provided + + com.google.api.grpc + grpc-google-cloud-firestore-admin-v1 + test + com.google.api.grpc grpc-google-cloud-firestore-v1 diff --git a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/FirestoreAdminClient.java b/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/FirestoreAdminClient.java new file mode 100644 index 000000000000..8e2bc0f78852 --- /dev/null +++ b/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/FirestoreAdminClient.java @@ -0,0 +1,1272 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.firestore.v1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.api.pathtemplate.PathTemplate; +import com.google.cloud.firestore.v1.stub.FirestoreAdminStub; +import com.google.cloud.firestore.v1.stub.FirestoreAdminStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.firestore.admin.v1.CreateIndexRequest; +import com.google.firestore.admin.v1.DeleteIndexRequest; +import com.google.firestore.admin.v1.ExportDocumentsRequest; +import com.google.firestore.admin.v1.Field; +import com.google.firestore.admin.v1.GetFieldRequest; +import com.google.firestore.admin.v1.GetIndexRequest; +import com.google.firestore.admin.v1.ImportDocumentsRequest; +import com.google.firestore.admin.v1.Index; +import com.google.firestore.admin.v1.ListFieldsRequest; +import com.google.firestore.admin.v1.ListFieldsResponse; +import com.google.firestore.admin.v1.ListIndexesRequest; +import com.google.firestore.admin.v1.ListIndexesResponse; +import com.google.firestore.admin.v1.UpdateFieldRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND SERVICE +/** + * Service Description: Operations are created by service `FirestoreAdmin`, but are accessed via + * service `google.longrunning.Operations`. + * + *

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

+ * 
+ * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+ *   String formattedParent = FirestoreAdminClient.formatParentName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]");
+ *   Index index = Index.newBuilder().build();
+ *   Operation response = firestoreAdminClient.createIndex(formattedParent, index);
+ * }
+ * 
+ * 
+ * + *

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

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

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

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

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

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

To customize credentials: + * + *

+ * 
+ * FirestoreAdminSettings firestoreAdminSettings =
+ *     FirestoreAdminSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * FirestoreAdminClient firestoreAdminClient =
+ *     FirestoreAdminClient.create(firestoreAdminSettings);
+ * 
+ * 
+ * + * To customize the endpoint: + * + *
+ * 
+ * FirestoreAdminSettings firestoreAdminSettings =
+ *     FirestoreAdminSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * FirestoreAdminClient firestoreAdminClient =
+ *     FirestoreAdminClient.create(firestoreAdminSettings);
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class FirestoreAdminClient implements BackgroundResource { + private final FirestoreAdminSettings settings; + private final FirestoreAdminStub stub; + + private static final PathTemplate DATABASE_PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/databases/{database}"); + + private static final PathTemplate PARENT_PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/databases/{database}/collectionGroups/{collection_id}"); + + private static final PathTemplate INDEX_PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/databases/{database}/collectionGroups/{collection_id}/indexes/{index_id}"); + + private static final PathTemplate FIELD_PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/databases/{database}/collectionGroups/{collection_id}/fields/{field_id}"); + + /** Formats a string containing the fully-qualified path to represent a database resource. */ + public static final String formatDatabaseName(String project, String database) { + return DATABASE_PATH_TEMPLATE.instantiate( + "project", project, + "database", database); + } + + /** Formats a string containing the fully-qualified path to represent a parent resource. */ + public static final String formatParentName( + String project, String database, String collectionId) { + return PARENT_PATH_TEMPLATE.instantiate( + "project", project, + "database", database, + "collection_id", collectionId); + } + + /** Formats a string containing the fully-qualified path to represent a index resource. */ + public static final String formatIndexName( + String project, String database, String collectionId, String indexId) { + return INDEX_PATH_TEMPLATE.instantiate( + "project", project, + "database", database, + "collection_id", collectionId, + "index_id", indexId); + } + + /** Formats a string containing the fully-qualified path to represent a field resource. */ + public static final String formatFieldName( + String project, String database, String collectionId, String fieldId) { + return FIELD_PATH_TEMPLATE.instantiate( + "project", project, + "database", database, + "collection_id", collectionId, + "field_id", fieldId); + } + + /** + * Parses the project from the given fully-qualified path which represents a database resource. + */ + public static final String parseProjectFromDatabaseName(String databaseName) { + return DATABASE_PATH_TEMPLATE.parse(databaseName).get("project"); + } + + /** + * Parses the database from the given fully-qualified path which represents a database resource. + */ + public static final String parseDatabaseFromDatabaseName(String databaseName) { + return DATABASE_PATH_TEMPLATE.parse(databaseName).get("database"); + } + + /** Parses the project from the given fully-qualified path which represents a parent resource. */ + public static final String parseProjectFromParentName(String parentName) { + return PARENT_PATH_TEMPLATE.parse(parentName).get("project"); + } + + /** Parses the database from the given fully-qualified path which represents a parent resource. */ + public static final String parseDatabaseFromParentName(String parentName) { + return PARENT_PATH_TEMPLATE.parse(parentName).get("database"); + } + + /** + * Parses the collection_id from the given fully-qualified path which represents a parent + * resource. + */ + public static final String parseCollectionIdFromParentName(String parentName) { + return PARENT_PATH_TEMPLATE.parse(parentName).get("collection_id"); + } + + /** Parses the project from the given fully-qualified path which represents a index resource. */ + public static final String parseProjectFromIndexName(String indexName) { + return INDEX_PATH_TEMPLATE.parse(indexName).get("project"); + } + + /** Parses the database from the given fully-qualified path which represents a index resource. */ + public static final String parseDatabaseFromIndexName(String indexName) { + return INDEX_PATH_TEMPLATE.parse(indexName).get("database"); + } + + /** + * Parses the collection_id from the given fully-qualified path which represents a index resource. + */ + public static final String parseCollectionIdFromIndexName(String indexName) { + return INDEX_PATH_TEMPLATE.parse(indexName).get("collection_id"); + } + + /** Parses the index_id from the given fully-qualified path which represents a index resource. */ + public static final String parseIndexIdFromIndexName(String indexName) { + return INDEX_PATH_TEMPLATE.parse(indexName).get("index_id"); + } + + /** Parses the project from the given fully-qualified path which represents a field resource. */ + public static final String parseProjectFromFieldName(String fieldName) { + return FIELD_PATH_TEMPLATE.parse(fieldName).get("project"); + } + + /** Parses the database from the given fully-qualified path which represents a field resource. */ + public static final String parseDatabaseFromFieldName(String fieldName) { + return FIELD_PATH_TEMPLATE.parse(fieldName).get("database"); + } + + /** + * Parses the collection_id from the given fully-qualified path which represents a field resource. + */ + public static final String parseCollectionIdFromFieldName(String fieldName) { + return FIELD_PATH_TEMPLATE.parse(fieldName).get("collection_id"); + } + + /** Parses the field_id from the given fully-qualified path which represents a field resource. */ + public static final String parseFieldIdFromFieldName(String fieldName) { + return FIELD_PATH_TEMPLATE.parse(fieldName).get("field_id"); + } + + /** Constructs an instance of FirestoreAdminClient with default settings. */ + public static final FirestoreAdminClient create() throws IOException { + return create(FirestoreAdminSettings.newBuilder().build()); + } + + /** + * Constructs an instance of FirestoreAdminClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final FirestoreAdminClient create(FirestoreAdminSettings settings) + throws IOException { + return new FirestoreAdminClient(settings); + } + + /** + * Constructs an instance of FirestoreAdminClient, using the given stub for making calls. This is + * for advanced usage - prefer to use FirestoreAdminSettings}. + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final FirestoreAdminClient create(FirestoreAdminStub stub) { + return new FirestoreAdminClient(stub); + } + + /** + * Constructs an instance of FirestoreAdminClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected FirestoreAdminClient(FirestoreAdminSettings settings) throws IOException { + this.settings = settings; + this.stub = ((FirestoreAdminStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected FirestoreAdminClient(FirestoreAdminStub stub) { + this.settings = null; + this.stub = stub; + } + + public final FirestoreAdminSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public FirestoreAdminStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a composite index. This returns a + * [google.longrunning.Operation][google.longrunning.Operation] which may be used to track the + * status of the creation. The metadata for the operation will be the type + * [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata]. + * + *

Sample code: + * + *


+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   String formattedParent = FirestoreAdminClient.formatParentName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]");
+   *   Index index = Index.newBuilder().build();
+   *   Operation response = firestoreAdminClient.createIndex(formattedParent, index);
+   * }
+   * 
+ * + * @param parent A parent name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + * @param index The composite index to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation createIndex(String parent, Index index) { + PARENT_PATH_TEMPLATE.validate(parent, "createIndex"); + CreateIndexRequest request = + CreateIndexRequest.newBuilder().setParent(parent).setIndex(index).build(); + return createIndex(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a composite index. This returns a + * [google.longrunning.Operation][google.longrunning.Operation] which may be used to track the + * status of the creation. The metadata for the operation will be the type + * [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata]. + * + *

Sample code: + * + *


+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   String formattedParent = FirestoreAdminClient.formatParentName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]");
+   *   Index index = Index.newBuilder().build();
+   *   CreateIndexRequest request = CreateIndexRequest.newBuilder()
+   *     .setParent(formattedParent)
+   *     .setIndex(index)
+   *     .build();
+   *   Operation response = firestoreAdminClient.createIndex(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation createIndex(CreateIndexRequest request) { + return createIndexCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a composite index. This returns a + * [google.longrunning.Operation][google.longrunning.Operation] which may be used to track the + * status of the creation. The metadata for the operation will be the type + * [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata]. + * + *

Sample code: + * + *


+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   String formattedParent = FirestoreAdminClient.formatParentName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]");
+   *   Index index = Index.newBuilder().build();
+   *   CreateIndexRequest request = CreateIndexRequest.newBuilder()
+   *     .setParent(formattedParent)
+   *     .setIndex(index)
+   *     .build();
+   *   ApiFuture<Operation> future = firestoreAdminClient.createIndexCallable().futureCall(request);
+   *   // Do something
+   *   Operation response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable createIndexCallable() { + return stub.createIndexCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists composite indexes. + * + *

Sample code: + * + *


+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   String formattedParent = FirestoreAdminClient.formatParentName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]");
+   *   for (Index element : firestoreAdminClient.listIndexes(formattedParent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent A parent name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListIndexesPagedResponse listIndexes(String parent) { + PARENT_PATH_TEMPLATE.validate(parent, "listIndexes"); + ListIndexesRequest request = ListIndexesRequest.newBuilder().setParent(parent).build(); + return listIndexes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists composite indexes. + * + *

Sample code: + * + *


+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   String formattedParent = FirestoreAdminClient.formatParentName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]");
+   *   ListIndexesRequest request = ListIndexesRequest.newBuilder()
+   *     .setParent(formattedParent)
+   *     .build();
+   *   for (Index element : firestoreAdminClient.listIndexes(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListIndexesPagedResponse listIndexes(ListIndexesRequest request) { + return listIndexesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists composite indexes. + * + *

Sample code: + * + *


+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   String formattedParent = FirestoreAdminClient.formatParentName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]");
+   *   ListIndexesRequest request = ListIndexesRequest.newBuilder()
+   *     .setParent(formattedParent)
+   *     .build();
+   *   ApiFuture<ListIndexesPagedResponse> future = firestoreAdminClient.listIndexesPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (Index element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listIndexesPagedCallable() { + return stub.listIndexesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists composite indexes. + * + *

Sample code: + * + *


+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   String formattedParent = FirestoreAdminClient.formatParentName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]");
+   *   ListIndexesRequest request = ListIndexesRequest.newBuilder()
+   *     .setParent(formattedParent)
+   *     .build();
+   *   while (true) {
+   *     ListIndexesResponse response = firestoreAdminClient.listIndexesCallable().call(request);
+   *     for (Index element : response.getIndexesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable listIndexesCallable() { + return stub.listIndexesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a composite index. + * + *

Sample code: + * + *


+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   String formattedName = FirestoreAdminClient.formatIndexName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]", "[INDEX_ID]");
+   *   Index response = firestoreAdminClient.getIndex(formattedName);
+   * }
+   * 
+ * + * @param name A name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Index getIndex(String name) { + INDEX_PATH_TEMPLATE.validate(name, "getIndex"); + GetIndexRequest request = GetIndexRequest.newBuilder().setName(name).build(); + return getIndex(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a composite index. + * + *

Sample code: + * + *


+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   String formattedName = FirestoreAdminClient.formatIndexName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]", "[INDEX_ID]");
+   *   GetIndexRequest request = GetIndexRequest.newBuilder()
+   *     .setName(formattedName)
+   *     .build();
+   *   Index response = firestoreAdminClient.getIndex(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Index getIndex(GetIndexRequest request) { + return getIndexCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a composite index. + * + *

Sample code: + * + *


+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   String formattedName = FirestoreAdminClient.formatIndexName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]", "[INDEX_ID]");
+   *   GetIndexRequest request = GetIndexRequest.newBuilder()
+   *     .setName(formattedName)
+   *     .build();
+   *   ApiFuture<Index> future = firestoreAdminClient.getIndexCallable().futureCall(request);
+   *   // Do something
+   *   Index response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable getIndexCallable() { + return stub.getIndexCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a composite index. + * + *

Sample code: + * + *


+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   String formattedName = FirestoreAdminClient.formatIndexName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]", "[INDEX_ID]");
+   *   firestoreAdminClient.deleteIndex(formattedName);
+   * }
+   * 
+ * + * @param name A name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteIndex(String name) { + INDEX_PATH_TEMPLATE.validate(name, "deleteIndex"); + DeleteIndexRequest request = DeleteIndexRequest.newBuilder().setName(name).build(); + deleteIndex(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a composite index. + * + *

Sample code: + * + *


+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   String formattedName = FirestoreAdminClient.formatIndexName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]", "[INDEX_ID]");
+   *   DeleteIndexRequest request = DeleteIndexRequest.newBuilder()
+   *     .setName(formattedName)
+   *     .build();
+   *   firestoreAdminClient.deleteIndex(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteIndex(DeleteIndexRequest request) { + deleteIndexCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a composite index. + * + *

Sample code: + * + *


+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   String formattedName = FirestoreAdminClient.formatIndexName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]", "[INDEX_ID]");
+   *   DeleteIndexRequest request = DeleteIndexRequest.newBuilder()
+   *     .setName(formattedName)
+   *     .build();
+   *   ApiFuture<Void> future = firestoreAdminClient.deleteIndexCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + public final UnaryCallable deleteIndexCallable() { + return stub.deleteIndexCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Imports documents into Google Cloud Firestore. Existing documents with the same name are + * overwritten. The import occurs in the background and its progress can be monitored and managed + * via the Operation resource that is created. If an ImportDocuments operation is cancelled, it is + * possible that a subset of the data has already been imported to Cloud Firestore. + * + *

Sample code: + * + *


+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   String formattedName = FirestoreAdminClient.formatDatabaseName("[PROJECT]", "[DATABASE]");
+   *   Operation response = firestoreAdminClient.importDocuments(formattedName);
+   * }
+   * 
+ * + * @param name Database to import into. Should be of the form: + * `projects/{project_id}/databases/{database_id}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation importDocuments(String name) { + DATABASE_PATH_TEMPLATE.validate(name, "importDocuments"); + ImportDocumentsRequest request = ImportDocumentsRequest.newBuilder().setName(name).build(); + return importDocuments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Imports documents into Google Cloud Firestore. Existing documents with the same name are + * overwritten. The import occurs in the background and its progress can be monitored and managed + * via the Operation resource that is created. If an ImportDocuments operation is cancelled, it is + * possible that a subset of the data has already been imported to Cloud Firestore. + * + *

Sample code: + * + *


+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   String formattedName = FirestoreAdminClient.formatDatabaseName("[PROJECT]", "[DATABASE]");
+   *   ImportDocumentsRequest request = ImportDocumentsRequest.newBuilder()
+   *     .setName(formattedName)
+   *     .build();
+   *   Operation response = firestoreAdminClient.importDocuments(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation importDocuments(ImportDocumentsRequest request) { + return importDocumentsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Imports documents into Google Cloud Firestore. Existing documents with the same name are + * overwritten. The import occurs in the background and its progress can be monitored and managed + * via the Operation resource that is created. If an ImportDocuments operation is cancelled, it is + * possible that a subset of the data has already been imported to Cloud Firestore. + * + *

Sample code: + * + *


+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   String formattedName = FirestoreAdminClient.formatDatabaseName("[PROJECT]", "[DATABASE]");
+   *   ImportDocumentsRequest request = ImportDocumentsRequest.newBuilder()
+   *     .setName(formattedName)
+   *     .build();
+   *   ApiFuture<Operation> future = firestoreAdminClient.importDocumentsCallable().futureCall(request);
+   *   // Do something
+   *   Operation response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable importDocumentsCallable() { + return stub.importDocumentsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Exports a copy of all or a subset of documents from Google Cloud Firestore to another storage + * system, such as Google Cloud Storage. Recent updates to documents may not be reflected in the + * export. The export occurs in the background and its progress can be monitored and managed via + * the Operation resource that is created. The output of an export may only be used once the + * associated operation is done. If an export operation is cancelled before completion it may + * leave partial data behind in Google Cloud Storage. + * + *

Sample code: + * + *


+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   String formattedName = FirestoreAdminClient.formatDatabaseName("[PROJECT]", "[DATABASE]");
+   *   Operation response = firestoreAdminClient.exportDocuments(formattedName);
+   * }
+   * 
+ * + * @param name Database to export. Should be of the form: + * `projects/{project_id}/databases/{database_id}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation exportDocuments(String name) { + DATABASE_PATH_TEMPLATE.validate(name, "exportDocuments"); + ExportDocumentsRequest request = ExportDocumentsRequest.newBuilder().setName(name).build(); + return exportDocuments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Exports a copy of all or a subset of documents from Google Cloud Firestore to another storage + * system, such as Google Cloud Storage. Recent updates to documents may not be reflected in the + * export. The export occurs in the background and its progress can be monitored and managed via + * the Operation resource that is created. The output of an export may only be used once the + * associated operation is done. If an export operation is cancelled before completion it may + * leave partial data behind in Google Cloud Storage. + * + *

Sample code: + * + *


+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   String formattedName = FirestoreAdminClient.formatDatabaseName("[PROJECT]", "[DATABASE]");
+   *   ExportDocumentsRequest request = ExportDocumentsRequest.newBuilder()
+   *     .setName(formattedName)
+   *     .build();
+   *   Operation response = firestoreAdminClient.exportDocuments(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation exportDocuments(ExportDocumentsRequest request) { + return exportDocumentsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Exports a copy of all or a subset of documents from Google Cloud Firestore to another storage + * system, such as Google Cloud Storage. Recent updates to documents may not be reflected in the + * export. The export occurs in the background and its progress can be monitored and managed via + * the Operation resource that is created. The output of an export may only be used once the + * associated operation is done. If an export operation is cancelled before completion it may + * leave partial data behind in Google Cloud Storage. + * + *

Sample code: + * + *


+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   String formattedName = FirestoreAdminClient.formatDatabaseName("[PROJECT]", "[DATABASE]");
+   *   ExportDocumentsRequest request = ExportDocumentsRequest.newBuilder()
+   *     .setName(formattedName)
+   *     .build();
+   *   ApiFuture<Operation> future = firestoreAdminClient.exportDocumentsCallable().futureCall(request);
+   *   // Do something
+   *   Operation response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable exportDocumentsCallable() { + return stub.exportDocumentsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the metadata and configuration for a Field. + * + *

Sample code: + * + *


+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   String formattedName = FirestoreAdminClient.formatFieldName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]", "[FIELD_ID]");
+   *   Field response = firestoreAdminClient.getField(formattedName);
+   * }
+   * 
+ * + * @param name A name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Field getField(String name) { + FIELD_PATH_TEMPLATE.validate(name, "getField"); + GetFieldRequest request = GetFieldRequest.newBuilder().setName(name).build(); + return getField(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the metadata and configuration for a Field. + * + *

Sample code: + * + *


+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   String formattedName = FirestoreAdminClient.formatFieldName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]", "[FIELD_ID]");
+   *   GetFieldRequest request = GetFieldRequest.newBuilder()
+   *     .setName(formattedName)
+   *     .build();
+   *   Field response = firestoreAdminClient.getField(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Field getField(GetFieldRequest request) { + return getFieldCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the metadata and configuration for a Field. + * + *

Sample code: + * + *


+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   String formattedName = FirestoreAdminClient.formatFieldName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]", "[FIELD_ID]");
+   *   GetFieldRequest request = GetFieldRequest.newBuilder()
+   *     .setName(formattedName)
+   *     .build();
+   *   ApiFuture<Field> future = firestoreAdminClient.getFieldCallable().futureCall(request);
+   *   // Do something
+   *   Field response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable getFieldCallable() { + return stub.getFieldCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists the field configuration and metadata for this database. + * + *

Currently, [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] + * only supports listing fields that have been explicitly overridden. To issue this query, call + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the + * filter set to `indexConfig.usesAncestorConfig:false`. + * + *

Sample code: + * + *


+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   String formattedParent = FirestoreAdminClient.formatParentName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]");
+   *   for (Field element : firestoreAdminClient.listFields(formattedParent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent A parent name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFieldsPagedResponse listFields(String parent) { + PARENT_PATH_TEMPLATE.validate(parent, "listFields"); + ListFieldsRequest request = ListFieldsRequest.newBuilder().setParent(parent).build(); + return listFields(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists the field configuration and metadata for this database. + * + *

Currently, [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] + * only supports listing fields that have been explicitly overridden. To issue this query, call + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the + * filter set to `indexConfig.usesAncestorConfig:false`. + * + *

Sample code: + * + *


+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   String formattedParent = FirestoreAdminClient.formatParentName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]");
+   *   ListFieldsRequest request = ListFieldsRequest.newBuilder()
+   *     .setParent(formattedParent)
+   *     .build();
+   *   for (Field element : firestoreAdminClient.listFields(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFieldsPagedResponse listFields(ListFieldsRequest request) { + return listFieldsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists the field configuration and metadata for this database. + * + *

Currently, [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] + * only supports listing fields that have been explicitly overridden. To issue this query, call + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the + * filter set to `indexConfig.usesAncestorConfig:false`. + * + *

Sample code: + * + *


+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   String formattedParent = FirestoreAdminClient.formatParentName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]");
+   *   ListFieldsRequest request = ListFieldsRequest.newBuilder()
+   *     .setParent(formattedParent)
+   *     .build();
+   *   ApiFuture<ListFieldsPagedResponse> future = firestoreAdminClient.listFieldsPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (Field element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable listFieldsPagedCallable() { + return stub.listFieldsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists the field configuration and metadata for this database. + * + *

Currently, [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] + * only supports listing fields that have been explicitly overridden. To issue this query, call + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the + * filter set to `indexConfig.usesAncestorConfig:false`. + * + *

Sample code: + * + *


+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   String formattedParent = FirestoreAdminClient.formatParentName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]");
+   *   ListFieldsRequest request = ListFieldsRequest.newBuilder()
+   *     .setParent(formattedParent)
+   *     .build();
+   *   while (true) {
+   *     ListFieldsResponse response = firestoreAdminClient.listFieldsCallable().call(request);
+   *     for (Field element : response.getFieldsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable listFieldsCallable() { + return stub.listFieldsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a field configuration. Currently, field updates apply only to single field index + * configuration. However, calls to + * [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField] should + * provide a field mask to avoid changing any configuration that the caller isn't aware of. The + * field mask should be specified as: `{ paths: "index_config" }`. + * + *

This call returns a [google.longrunning.Operation][google.longrunning.Operation] which may + * be used to track the status of the field update. The metadata for the operation will be the + * type [FieldOperationMetadata][google.firestore.admin.v1.FieldOperationMetadata]. + * + *

To configure the default field settings for the database, use the special `Field` with + * resource name: + * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`. + * + *

Sample code: + * + *


+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   Field field = Field.newBuilder().build();
+   *   Operation response = firestoreAdminClient.updateField(field);
+   * }
+   * 
+ * + * @param field The field to be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation updateField(Field field) { + + UpdateFieldRequest request = UpdateFieldRequest.newBuilder().setField(field).build(); + return updateField(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a field configuration. Currently, field updates apply only to single field index + * configuration. However, calls to + * [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField] should + * provide a field mask to avoid changing any configuration that the caller isn't aware of. The + * field mask should be specified as: `{ paths: "index_config" }`. + * + *

This call returns a [google.longrunning.Operation][google.longrunning.Operation] which may + * be used to track the status of the field update. The metadata for the operation will be the + * type [FieldOperationMetadata][google.firestore.admin.v1.FieldOperationMetadata]. + * + *

To configure the default field settings for the database, use the special `Field` with + * resource name: + * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`. + * + *

Sample code: + * + *


+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   Field field = Field.newBuilder().build();
+   *   UpdateFieldRequest request = UpdateFieldRequest.newBuilder()
+   *     .setField(field)
+   *     .build();
+   *   Operation response = firestoreAdminClient.updateField(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation updateField(UpdateFieldRequest request) { + return updateFieldCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a field configuration. Currently, field updates apply only to single field index + * configuration. However, calls to + * [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField] should + * provide a field mask to avoid changing any configuration that the caller isn't aware of. The + * field mask should be specified as: `{ paths: "index_config" }`. + * + *

This call returns a [google.longrunning.Operation][google.longrunning.Operation] which may + * be used to track the status of the field update. The metadata for the operation will be the + * type [FieldOperationMetadata][google.firestore.admin.v1.FieldOperationMetadata]. + * + *

To configure the default field settings for the database, use the special `Field` with + * resource name: + * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`. + * + *

Sample code: + * + *


+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   Field field = Field.newBuilder().build();
+   *   UpdateFieldRequest request = UpdateFieldRequest.newBuilder()
+   *     .setField(field)
+   *     .build();
+   *   ApiFuture<Operation> future = firestoreAdminClient.updateFieldCallable().futureCall(request);
+   *   // Do something
+   *   Operation response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable updateFieldCallable() { + return stub.updateFieldCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListIndexesPagedResponse + extends AbstractPagedListResponse< + ListIndexesRequest, + ListIndexesResponse, + Index, + ListIndexesPage, + ListIndexesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListIndexesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListIndexesPagedResponse apply(ListIndexesPage input) { + return new ListIndexesPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListIndexesPagedResponse(ListIndexesPage page) { + super(page, ListIndexesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListIndexesPage + extends AbstractPage { + + private ListIndexesPage( + PageContext context, + ListIndexesResponse response) { + super(context, response); + } + + private static ListIndexesPage createEmptyPage() { + return new ListIndexesPage(null, null); + } + + @Override + protected ListIndexesPage createPage( + PageContext context, + ListIndexesResponse response) { + return new ListIndexesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListIndexesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListIndexesRequest, + ListIndexesResponse, + Index, + ListIndexesPage, + ListIndexesFixedSizeCollection> { + + private ListIndexesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListIndexesFixedSizeCollection createEmptyCollection() { + return new ListIndexesFixedSizeCollection(null, 0); + } + + @Override + protected ListIndexesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListIndexesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListFieldsPagedResponse + extends AbstractPagedListResponse< + ListFieldsRequest, + ListFieldsResponse, + Field, + ListFieldsPage, + ListFieldsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListFieldsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListFieldsPagedResponse apply(ListFieldsPage input) { + return new ListFieldsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListFieldsPagedResponse(ListFieldsPage page) { + super(page, ListFieldsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListFieldsPage + extends AbstractPage { + + private ListFieldsPage( + PageContext context, + ListFieldsResponse response) { + super(context, response); + } + + private static ListFieldsPage createEmptyPage() { + return new ListFieldsPage(null, null); + } + + @Override + protected ListFieldsPage createPage( + PageContext context, + ListFieldsResponse response) { + return new ListFieldsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListFieldsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListFieldsRequest, + ListFieldsResponse, + Field, + ListFieldsPage, + ListFieldsFixedSizeCollection> { + + private ListFieldsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListFieldsFixedSizeCollection createEmptyCollection() { + return new ListFieldsFixedSizeCollection(null, 0); + } + + @Override + protected ListFieldsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListFieldsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/FirestoreAdminSettings.java b/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/FirestoreAdminSettings.java new file mode 100644 index 000000000000..2d37ef3d5226 --- /dev/null +++ b/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/FirestoreAdminSettings.java @@ -0,0 +1,278 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.firestore.v1; + +import static com.google.cloud.firestore.v1.FirestoreAdminClient.ListFieldsPagedResponse; +import static com.google.cloud.firestore.v1.FirestoreAdminClient.ListIndexesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.firestore.v1.stub.FirestoreAdminStubSettings; +import com.google.firestore.admin.v1.CreateIndexRequest; +import com.google.firestore.admin.v1.DeleteIndexRequest; +import com.google.firestore.admin.v1.ExportDocumentsRequest; +import com.google.firestore.admin.v1.Field; +import com.google.firestore.admin.v1.GetFieldRequest; +import com.google.firestore.admin.v1.GetIndexRequest; +import com.google.firestore.admin.v1.ImportDocumentsRequest; +import com.google.firestore.admin.v1.Index; +import com.google.firestore.admin.v1.ListFieldsRequest; +import com.google.firestore.admin.v1.ListFieldsResponse; +import com.google.firestore.admin.v1.ListIndexesRequest; +import com.google.firestore.admin.v1.ListIndexesResponse; +import com.google.firestore.admin.v1.UpdateFieldRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link FirestoreAdminClient}. + * + *

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

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

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

+ * 
+ * FirestoreAdminSettings.Builder firestoreAdminSettingsBuilder =
+ *     FirestoreAdminSettings.newBuilder();
+ * firestoreAdminSettingsBuilder.createIndexSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * FirestoreAdminSettings firestoreAdminSettings = firestoreAdminSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class FirestoreAdminSettings extends ClientSettings { + /** Returns the object with the settings used for calls to createIndex. */ + public UnaryCallSettings createIndexSettings() { + return ((FirestoreAdminStubSettings) getStubSettings()).createIndexSettings(); + } + + /** Returns the object with the settings used for calls to listIndexes. */ + public PagedCallSettings + listIndexesSettings() { + return ((FirestoreAdminStubSettings) getStubSettings()).listIndexesSettings(); + } + + /** Returns the object with the settings used for calls to getIndex. */ + public UnaryCallSettings getIndexSettings() { + return ((FirestoreAdminStubSettings) getStubSettings()).getIndexSettings(); + } + + /** Returns the object with the settings used for calls to deleteIndex. */ + public UnaryCallSettings deleteIndexSettings() { + return ((FirestoreAdminStubSettings) getStubSettings()).deleteIndexSettings(); + } + + /** Returns the object with the settings used for calls to importDocuments. */ + public UnaryCallSettings importDocumentsSettings() { + return ((FirestoreAdminStubSettings) getStubSettings()).importDocumentsSettings(); + } + + /** Returns the object with the settings used for calls to exportDocuments. */ + public UnaryCallSettings exportDocumentsSettings() { + return ((FirestoreAdminStubSettings) getStubSettings()).exportDocumentsSettings(); + } + + /** Returns the object with the settings used for calls to getField. */ + public UnaryCallSettings getFieldSettings() { + return ((FirestoreAdminStubSettings) getStubSettings()).getFieldSettings(); + } + + /** Returns the object with the settings used for calls to listFields. */ + public PagedCallSettings + listFieldsSettings() { + return ((FirestoreAdminStubSettings) getStubSettings()).listFieldsSettings(); + } + + /** Returns the object with the settings used for calls to updateField. */ + public UnaryCallSettings updateFieldSettings() { + return ((FirestoreAdminStubSettings) getStubSettings()).updateFieldSettings(); + } + + public static final FirestoreAdminSettings create(FirestoreAdminStubSettings stub) + throws IOException { + return new FirestoreAdminSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return FirestoreAdminStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return FirestoreAdminStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return FirestoreAdminStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return FirestoreAdminStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return FirestoreAdminStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return FirestoreAdminStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return FirestoreAdminStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected FirestoreAdminSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for FirestoreAdminSettings. */ + public static class Builder extends ClientSettings.Builder { + protected Builder() throws IOException { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(FirestoreAdminStubSettings.newBuilder(clientContext)); + } + + private static Builder createDefault() { + return new Builder(FirestoreAdminStubSettings.newBuilder()); + } + + protected Builder(FirestoreAdminSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(FirestoreAdminStubSettings.Builder stubSettings) { + super(stubSettings); + } + + public FirestoreAdminStubSettings.Builder getStubSettingsBuilder() { + return ((FirestoreAdminStubSettings.Builder) getStubSettings()); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createIndex. */ + public UnaryCallSettings.Builder createIndexSettings() { + return getStubSettingsBuilder().createIndexSettings(); + } + + /** Returns the builder for the settings used for calls to listIndexes. */ + public PagedCallSettings.Builder< + ListIndexesRequest, ListIndexesResponse, ListIndexesPagedResponse> + listIndexesSettings() { + return getStubSettingsBuilder().listIndexesSettings(); + } + + /** Returns the builder for the settings used for calls to getIndex. */ + public UnaryCallSettings.Builder getIndexSettings() { + return getStubSettingsBuilder().getIndexSettings(); + } + + /** Returns the builder for the settings used for calls to deleteIndex. */ + public UnaryCallSettings.Builder deleteIndexSettings() { + return getStubSettingsBuilder().deleteIndexSettings(); + } + + /** Returns the builder for the settings used for calls to importDocuments. */ + public UnaryCallSettings.Builder importDocumentsSettings() { + return getStubSettingsBuilder().importDocumentsSettings(); + } + + /** Returns the builder for the settings used for calls to exportDocuments. */ + public UnaryCallSettings.Builder exportDocumentsSettings() { + return getStubSettingsBuilder().exportDocumentsSettings(); + } + + /** Returns the builder for the settings used for calls to getField. */ + public UnaryCallSettings.Builder getFieldSettings() { + return getStubSettingsBuilder().getFieldSettings(); + } + + /** Returns the builder for the settings used for calls to listFields. */ + public PagedCallSettings.Builder + listFieldsSettings() { + return getStubSettingsBuilder().listFieldsSettings(); + } + + /** Returns the builder for the settings used for calls to updateField. */ + public UnaryCallSettings.Builder updateFieldSettings() { + return getStubSettingsBuilder().updateFieldSettings(); + } + + @Override + public FirestoreAdminSettings build() throws IOException { + return new FirestoreAdminSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreAdminStub.java b/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreAdminStub.java new file mode 100644 index 000000000000..f1b03ec48afe --- /dev/null +++ b/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreAdminStub.java @@ -0,0 +1,97 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.firestore.v1.stub; + +import static com.google.cloud.firestore.v1.FirestoreAdminClient.ListFieldsPagedResponse; +import static com.google.cloud.firestore.v1.FirestoreAdminClient.ListIndexesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.firestore.admin.v1.CreateIndexRequest; +import com.google.firestore.admin.v1.DeleteIndexRequest; +import com.google.firestore.admin.v1.ExportDocumentsRequest; +import com.google.firestore.admin.v1.Field; +import com.google.firestore.admin.v1.GetFieldRequest; +import com.google.firestore.admin.v1.GetIndexRequest; +import com.google.firestore.admin.v1.ImportDocumentsRequest; +import com.google.firestore.admin.v1.Index; +import com.google.firestore.admin.v1.ListFieldsRequest; +import com.google.firestore.admin.v1.ListFieldsResponse; +import com.google.firestore.admin.v1.ListIndexesRequest; +import com.google.firestore.admin.v1.ListIndexesResponse; +import com.google.firestore.admin.v1.UpdateFieldRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Base stub class for Google Cloud Firestore Admin API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public abstract class FirestoreAdminStub implements BackgroundResource { + + public UnaryCallable createIndexCallable() { + throw new UnsupportedOperationException("Not implemented: createIndexCallable()"); + } + + public UnaryCallable listIndexesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listIndexesPagedCallable()"); + } + + public UnaryCallable listIndexesCallable() { + throw new UnsupportedOperationException("Not implemented: listIndexesCallable()"); + } + + public UnaryCallable getIndexCallable() { + throw new UnsupportedOperationException("Not implemented: getIndexCallable()"); + } + + public UnaryCallable deleteIndexCallable() { + throw new UnsupportedOperationException("Not implemented: deleteIndexCallable()"); + } + + public UnaryCallable importDocumentsCallable() { + throw new UnsupportedOperationException("Not implemented: importDocumentsCallable()"); + } + + public UnaryCallable exportDocumentsCallable() { + throw new UnsupportedOperationException("Not implemented: exportDocumentsCallable()"); + } + + public UnaryCallable getFieldCallable() { + throw new UnsupportedOperationException("Not implemented: getFieldCallable()"); + } + + public UnaryCallable listFieldsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listFieldsPagedCallable()"); + } + + public UnaryCallable listFieldsCallable() { + throw new UnsupportedOperationException("Not implemented: listFieldsCallable()"); + } + + public UnaryCallable updateFieldCallable() { + throw new UnsupportedOperationException("Not implemented: updateFieldCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreAdminStubSettings.java b/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreAdminStubSettings.java new file mode 100644 index 000000000000..fcbca7435c55 --- /dev/null +++ b/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreAdminStubSettings.java @@ -0,0 +1,595 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.firestore.v1.stub; + +import static com.google.cloud.firestore.v1.FirestoreAdminClient.ListFieldsPagedResponse; +import static com.google.cloud.firestore.v1.FirestoreAdminClient.ListIndexesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.firestore.admin.v1.CreateIndexRequest; +import com.google.firestore.admin.v1.DeleteIndexRequest; +import com.google.firestore.admin.v1.ExportDocumentsRequest; +import com.google.firestore.admin.v1.Field; +import com.google.firestore.admin.v1.GetFieldRequest; +import com.google.firestore.admin.v1.GetIndexRequest; +import com.google.firestore.admin.v1.ImportDocumentsRequest; +import com.google.firestore.admin.v1.Index; +import com.google.firestore.admin.v1.ListFieldsRequest; +import com.google.firestore.admin.v1.ListFieldsResponse; +import com.google.firestore.admin.v1.ListIndexesRequest; +import com.google.firestore.admin.v1.ListIndexesResponse; +import com.google.firestore.admin.v1.UpdateFieldRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link FirestoreAdminStub}. + * + *

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

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

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

+ * 
+ * FirestoreAdminStubSettings.Builder firestoreAdminSettingsBuilder =
+ *     FirestoreAdminStubSettings.newBuilder();
+ * firestoreAdminSettingsBuilder.createIndexSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * FirestoreAdminStubSettings firestoreAdminSettings = firestoreAdminSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class FirestoreAdminStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/datastore") + .build(); + + private final UnaryCallSettings createIndexSettings; + private final PagedCallSettings + listIndexesSettings; + private final UnaryCallSettings getIndexSettings; + private final UnaryCallSettings deleteIndexSettings; + private final UnaryCallSettings importDocumentsSettings; + private final UnaryCallSettings exportDocumentsSettings; + private final UnaryCallSettings getFieldSettings; + private final PagedCallSettings + listFieldsSettings; + private final UnaryCallSettings updateFieldSettings; + + /** Returns the object with the settings used for calls to createIndex. */ + public UnaryCallSettings createIndexSettings() { + return createIndexSettings; + } + + /** Returns the object with the settings used for calls to listIndexes. */ + public PagedCallSettings + listIndexesSettings() { + return listIndexesSettings; + } + + /** Returns the object with the settings used for calls to getIndex. */ + public UnaryCallSettings getIndexSettings() { + return getIndexSettings; + } + + /** Returns the object with the settings used for calls to deleteIndex. */ + public UnaryCallSettings deleteIndexSettings() { + return deleteIndexSettings; + } + + /** Returns the object with the settings used for calls to importDocuments. */ + public UnaryCallSettings importDocumentsSettings() { + return importDocumentsSettings; + } + + /** Returns the object with the settings used for calls to exportDocuments. */ + public UnaryCallSettings exportDocumentsSettings() { + return exportDocumentsSettings; + } + + /** Returns the object with the settings used for calls to getField. */ + public UnaryCallSettings getFieldSettings() { + return getFieldSettings; + } + + /** Returns the object with the settings used for calls to listFields. */ + public PagedCallSettings + listFieldsSettings() { + return listFieldsSettings; + } + + /** Returns the object with the settings used for calls to updateField. */ + public UnaryCallSettings updateFieldSettings() { + return updateFieldSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public FirestoreAdminStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcFirestoreAdminStub.create(this); + } else { + throw new UnsupportedOperationException( + "Transport not supported: " + getTransportChannelProvider().getTransportName()); + } + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "firestore.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(FirestoreAdminStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected FirestoreAdminStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createIndexSettings = settingsBuilder.createIndexSettings().build(); + listIndexesSettings = settingsBuilder.listIndexesSettings().build(); + getIndexSettings = settingsBuilder.getIndexSettings().build(); + deleteIndexSettings = settingsBuilder.deleteIndexSettings().build(); + importDocumentsSettings = settingsBuilder.importDocumentsSettings().build(); + exportDocumentsSettings = settingsBuilder.exportDocumentsSettings().build(); + getFieldSettings = settingsBuilder.getFieldSettings().build(); + listFieldsSettings = settingsBuilder.listFieldsSettings().build(); + updateFieldSettings = settingsBuilder.updateFieldSettings().build(); + } + + private static final PagedListDescriptor + LIST_INDEXES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListIndexesRequest injectToken(ListIndexesRequest payload, String token) { + return ListIndexesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListIndexesRequest injectPageSize(ListIndexesRequest payload, int pageSize) { + return ListIndexesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListIndexesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListIndexesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListIndexesResponse payload) { + return payload.getIndexesList() != null + ? payload.getIndexesList() + : ImmutableList.of(); + } + }; + + private static final PagedListDescriptor + LIST_FIELDS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListFieldsRequest injectToken(ListFieldsRequest payload, String token) { + return ListFieldsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListFieldsRequest injectPageSize(ListFieldsRequest payload, int pageSize) { + return ListFieldsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListFieldsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListFieldsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListFieldsResponse payload) { + return payload.getFieldsList() != null + ? payload.getFieldsList() + : ImmutableList.of(); + } + }; + + private static final PagedListResponseFactory< + ListIndexesRequest, ListIndexesResponse, ListIndexesPagedResponse> + LIST_INDEXES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListIndexesRequest, ListIndexesResponse, ListIndexesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListIndexesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_INDEXES_PAGE_STR_DESC, request, context); + return ListIndexesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListFieldsRequest, ListFieldsResponse, ListFieldsPagedResponse> + LIST_FIELDS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListFieldsRequest, ListFieldsResponse, ListFieldsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListFieldsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_FIELDS_PAGE_STR_DESC, request, context); + return ListFieldsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Builder for FirestoreAdminStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + + private final UnaryCallSettings.Builder createIndexSettings; + private final PagedCallSettings.Builder< + ListIndexesRequest, ListIndexesResponse, ListIndexesPagedResponse> + listIndexesSettings; + private final UnaryCallSettings.Builder getIndexSettings; + private final UnaryCallSettings.Builder deleteIndexSettings; + private final UnaryCallSettings.Builder + importDocumentsSettings; + private final UnaryCallSettings.Builder + exportDocumentsSettings; + private final UnaryCallSettings.Builder getFieldSettings; + private final PagedCallSettings.Builder< + ListFieldsRequest, ListFieldsResponse, ListFieldsPagedResponse> + listFieldsSettings; + private final UnaryCallSettings.Builder updateFieldSettings; + + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "idempotent", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(20000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(20000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("default", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createIndexSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + listIndexesSettings = PagedCallSettings.newBuilder(LIST_INDEXES_PAGE_STR_FACT); + + getIndexSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + deleteIndexSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + importDocumentsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + exportDocumentsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + getFieldSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + listFieldsSettings = PagedCallSettings.newBuilder(LIST_FIELDS_PAGE_STR_FACT); + + updateFieldSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createIndexSettings, + listIndexesSettings, + getIndexSettings, + deleteIndexSettings, + importDocumentsSettings, + exportDocumentsSettings, + getFieldSettings, + listFieldsSettings, + updateFieldSettings); + + initDefaults(this); + } + + private static Builder createDefault() { + Builder builder = new Builder((ClientContext) null); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + + builder + .createIndexSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .listIndexesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .getIndexSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .deleteIndexSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .importDocumentsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .exportDocumentsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .getFieldSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .listFieldsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .updateFieldSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + return builder; + } + + protected Builder(FirestoreAdminStubSettings settings) { + super(settings); + + createIndexSettings = settings.createIndexSettings.toBuilder(); + listIndexesSettings = settings.listIndexesSettings.toBuilder(); + getIndexSettings = settings.getIndexSettings.toBuilder(); + deleteIndexSettings = settings.deleteIndexSettings.toBuilder(); + importDocumentsSettings = settings.importDocumentsSettings.toBuilder(); + exportDocumentsSettings = settings.exportDocumentsSettings.toBuilder(); + getFieldSettings = settings.getFieldSettings.toBuilder(); + listFieldsSettings = settings.listFieldsSettings.toBuilder(); + updateFieldSettings = settings.updateFieldSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createIndexSettings, + listIndexesSettings, + getIndexSettings, + deleteIndexSettings, + importDocumentsSettings, + exportDocumentsSettings, + getFieldSettings, + listFieldsSettings, + updateFieldSettings); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

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

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

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public class GrpcFirestoreAdminStub extends FirestoreAdminStub { + + private static final MethodDescriptor createIndexMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.firestore.admin.v1.FirestoreAdmin/CreateIndex") + .setRequestMarshaller(ProtoUtils.marshaller(CreateIndexRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor + listIndexesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.firestore.admin.v1.FirestoreAdmin/ListIndexes") + .setRequestMarshaller(ProtoUtils.marshaller(ListIndexesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListIndexesResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor getIndexMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.firestore.admin.v1.FirestoreAdmin/GetIndex") + .setRequestMarshaller(ProtoUtils.marshaller(GetIndexRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Index.getDefaultInstance())) + .build(); + private static final MethodDescriptor deleteIndexMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.firestore.admin.v1.FirestoreAdmin/DeleteIndex") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteIndexRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private static final MethodDescriptor + importDocumentsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.firestore.admin.v1.FirestoreAdmin/ImportDocuments") + .setRequestMarshaller( + ProtoUtils.marshaller(ImportDocumentsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor + exportDocumentsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.firestore.admin.v1.FirestoreAdmin/ExportDocuments") + .setRequestMarshaller( + ProtoUtils.marshaller(ExportDocumentsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor getFieldMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.firestore.admin.v1.FirestoreAdmin/GetField") + .setRequestMarshaller(ProtoUtils.marshaller(GetFieldRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Field.getDefaultInstance())) + .build(); + private static final MethodDescriptor + listFieldsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.firestore.admin.v1.FirestoreAdmin/ListFields") + .setRequestMarshaller(ProtoUtils.marshaller(ListFieldsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListFieldsResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor updateFieldMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.firestore.admin.v1.FirestoreAdmin/UpdateField") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateFieldRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private final BackgroundResource backgroundResources; + + private final UnaryCallable createIndexCallable; + private final UnaryCallable listIndexesCallable; + private final UnaryCallable + listIndexesPagedCallable; + private final UnaryCallable getIndexCallable; + private final UnaryCallable deleteIndexCallable; + private final UnaryCallable importDocumentsCallable; + private final UnaryCallable exportDocumentsCallable; + private final UnaryCallable getFieldCallable; + private final UnaryCallable listFieldsCallable; + private final UnaryCallable listFieldsPagedCallable; + private final UnaryCallable updateFieldCallable; + + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcFirestoreAdminStub create(FirestoreAdminStubSettings settings) + throws IOException { + return new GrpcFirestoreAdminStub(settings, ClientContext.create(settings)); + } + + public static final GrpcFirestoreAdminStub create(ClientContext clientContext) + throws IOException { + return new GrpcFirestoreAdminStub( + FirestoreAdminStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcFirestoreAdminStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcFirestoreAdminStub( + FirestoreAdminStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcFirestoreAdminStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcFirestoreAdminStub(FirestoreAdminStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcFirestoreAdminCallableFactory()); + } + + /** + * Constructs an instance of GrpcFirestoreAdminStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcFirestoreAdminStub( + FirestoreAdminStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + GrpcCallSettings createIndexTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createIndexMethodDescriptor) + .build(); + GrpcCallSettings listIndexesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listIndexesMethodDescriptor) + .build(); + GrpcCallSettings getIndexTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIndexMethodDescriptor) + .build(); + GrpcCallSettings deleteIndexTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteIndexMethodDescriptor) + .build(); + GrpcCallSettings importDocumentsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(importDocumentsMethodDescriptor) + .build(); + GrpcCallSettings exportDocumentsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(exportDocumentsMethodDescriptor) + .build(); + GrpcCallSettings getFieldTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getFieldMethodDescriptor) + .build(); + GrpcCallSettings listFieldsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listFieldsMethodDescriptor) + .build(); + GrpcCallSettings updateFieldTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateFieldMethodDescriptor) + .build(); + + this.createIndexCallable = + callableFactory.createUnaryCallable( + createIndexTransportSettings, settings.createIndexSettings(), clientContext); + this.listIndexesCallable = + callableFactory.createUnaryCallable( + listIndexesTransportSettings, settings.listIndexesSettings(), clientContext); + this.listIndexesPagedCallable = + callableFactory.createPagedCallable( + listIndexesTransportSettings, settings.listIndexesSettings(), clientContext); + this.getIndexCallable = + callableFactory.createUnaryCallable( + getIndexTransportSettings, settings.getIndexSettings(), clientContext); + this.deleteIndexCallable = + callableFactory.createUnaryCallable( + deleteIndexTransportSettings, settings.deleteIndexSettings(), clientContext); + this.importDocumentsCallable = + callableFactory.createUnaryCallable( + importDocumentsTransportSettings, settings.importDocumentsSettings(), clientContext); + this.exportDocumentsCallable = + callableFactory.createUnaryCallable( + exportDocumentsTransportSettings, settings.exportDocumentsSettings(), clientContext); + this.getFieldCallable = + callableFactory.createUnaryCallable( + getFieldTransportSettings, settings.getFieldSettings(), clientContext); + this.listFieldsCallable = + callableFactory.createUnaryCallable( + listFieldsTransportSettings, settings.listFieldsSettings(), clientContext); + this.listFieldsPagedCallable = + callableFactory.createPagedCallable( + listFieldsTransportSettings, settings.listFieldsSettings(), clientContext); + this.updateFieldCallable = + callableFactory.createUnaryCallable( + updateFieldTransportSettings, settings.updateFieldSettings(), clientContext); + + backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public UnaryCallable createIndexCallable() { + return createIndexCallable; + } + + public UnaryCallable listIndexesPagedCallable() { + return listIndexesPagedCallable; + } + + public UnaryCallable listIndexesCallable() { + return listIndexesCallable; + } + + public UnaryCallable getIndexCallable() { + return getIndexCallable; + } + + public UnaryCallable deleteIndexCallable() { + return deleteIndexCallable; + } + + public UnaryCallable importDocumentsCallable() { + return importDocumentsCallable; + } + + public UnaryCallable exportDocumentsCallable() { + return exportDocumentsCallable; + } + + public UnaryCallable getFieldCallable() { + return getFieldCallable; + } + + public UnaryCallable listFieldsPagedCallable() { + return listFieldsPagedCallable; + } + + public UnaryCallable listFieldsCallable() { + return listFieldsCallable; + } + + public UnaryCallable updateFieldCallable() { + return updateFieldCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/FirestoreAdminClientTest.java b/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/FirestoreAdminClientTest.java new file mode 100644 index 000000000000..d71cf13492b2 --- /dev/null +++ b/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/FirestoreAdminClientTest.java @@ -0,0 +1,485 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.firestore.v1; + +import static com.google.cloud.firestore.v1.FirestoreAdminClient.ListFieldsPagedResponse; +import static com.google.cloud.firestore.v1.FirestoreAdminClient.ListIndexesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.firestore.admin.v1.CreateIndexRequest; +import com.google.firestore.admin.v1.DeleteIndexRequest; +import com.google.firestore.admin.v1.ExportDocumentsRequest; +import com.google.firestore.admin.v1.Field; +import com.google.firestore.admin.v1.GetFieldRequest; +import com.google.firestore.admin.v1.GetIndexRequest; +import com.google.firestore.admin.v1.ImportDocumentsRequest; +import com.google.firestore.admin.v1.Index; +import com.google.firestore.admin.v1.ListFieldsRequest; +import com.google.firestore.admin.v1.ListFieldsResponse; +import com.google.firestore.admin.v1.ListIndexesRequest; +import com.google.firestore.admin.v1.ListIndexesResponse; +import com.google.firestore.admin.v1.UpdateFieldRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class FirestoreAdminClientTest { + private static MockFirestoreAdmin mockFirestoreAdmin; + private static MockServiceHelper serviceHelper; + private FirestoreAdminClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockFirestoreAdmin = new MockFirestoreAdmin(); + serviceHelper = + new MockServiceHelper("in-process-1", Arrays.asList(mockFirestoreAdmin)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + FirestoreAdminSettings settings = + FirestoreAdminSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = FirestoreAdminClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void createIndexTest() { + String name = "name3373707"; + boolean done = true; + Operation expectedResponse = Operation.newBuilder().setName(name).setDone(done).build(); + mockFirestoreAdmin.addResponse(expectedResponse); + + String formattedParent = + FirestoreAdminClient.formatParentName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]"); + Index index = Index.newBuilder().build(); + + Operation actualResponse = client.createIndex(formattedParent, index); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFirestoreAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateIndexRequest actualRequest = (CreateIndexRequest) actualRequests.get(0); + + Assert.assertEquals(formattedParent, actualRequest.getParent()); + Assert.assertEquals(index, actualRequest.getIndex()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void createIndexExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockFirestoreAdmin.addException(exception); + + try { + String formattedParent = + FirestoreAdminClient.formatParentName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]"); + Index index = Index.newBuilder().build(); + + client.createIndex(formattedParent, index); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void listIndexesTest() { + String nextPageToken = ""; + Index indexesElement = Index.newBuilder().build(); + List indexes = Arrays.asList(indexesElement); + ListIndexesResponse expectedResponse = + ListIndexesResponse.newBuilder() + .setNextPageToken(nextPageToken) + .addAllIndexes(indexes) + .build(); + mockFirestoreAdmin.addResponse(expectedResponse); + + String formattedParent = + FirestoreAdminClient.formatParentName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]"); + + ListIndexesPagedResponse pagedListResponse = client.listIndexes(formattedParent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getIndexesList().get(0), resources.get(0)); + + List actualRequests = mockFirestoreAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListIndexesRequest actualRequest = (ListIndexesRequest) actualRequests.get(0); + + Assert.assertEquals(formattedParent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void listIndexesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockFirestoreAdmin.addException(exception); + + try { + String formattedParent = + FirestoreAdminClient.formatParentName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]"); + + client.listIndexes(formattedParent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void getIndexTest() { + String name2 = "name2-1052831874"; + Index expectedResponse = Index.newBuilder().setName(name2).build(); + mockFirestoreAdmin.addResponse(expectedResponse); + + String formattedName = + FirestoreAdminClient.formatIndexName( + "[PROJECT]", "[DATABASE]", "[COLLECTION_ID]", "[INDEX_ID]"); + + Index actualResponse = client.getIndex(formattedName); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFirestoreAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIndexRequest actualRequest = (GetIndexRequest) actualRequests.get(0); + + Assert.assertEquals(formattedName, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getIndexExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockFirestoreAdmin.addException(exception); + + try { + String formattedName = + FirestoreAdminClient.formatIndexName( + "[PROJECT]", "[DATABASE]", "[COLLECTION_ID]", "[INDEX_ID]"); + + client.getIndex(formattedName); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void deleteIndexTest() { + Empty expectedResponse = Empty.newBuilder().build(); + mockFirestoreAdmin.addResponse(expectedResponse); + + String formattedName = + FirestoreAdminClient.formatIndexName( + "[PROJECT]", "[DATABASE]", "[COLLECTION_ID]", "[INDEX_ID]"); + + client.deleteIndex(formattedName); + + List actualRequests = mockFirestoreAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteIndexRequest actualRequest = (DeleteIndexRequest) actualRequests.get(0); + + Assert.assertEquals(formattedName, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void deleteIndexExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockFirestoreAdmin.addException(exception); + + try { + String formattedName = + FirestoreAdminClient.formatIndexName( + "[PROJECT]", "[DATABASE]", "[COLLECTION_ID]", "[INDEX_ID]"); + + client.deleteIndex(formattedName); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void importDocumentsTest() { + String name2 = "name2-1052831874"; + boolean done = true; + Operation expectedResponse = Operation.newBuilder().setName(name2).setDone(done).build(); + mockFirestoreAdmin.addResponse(expectedResponse); + + String formattedName = FirestoreAdminClient.formatDatabaseName("[PROJECT]", "[DATABASE]"); + + Operation actualResponse = client.importDocuments(formattedName); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFirestoreAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportDocumentsRequest actualRequest = (ImportDocumentsRequest) actualRequests.get(0); + + Assert.assertEquals(formattedName, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void importDocumentsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockFirestoreAdmin.addException(exception); + + try { + String formattedName = FirestoreAdminClient.formatDatabaseName("[PROJECT]", "[DATABASE]"); + + client.importDocuments(formattedName); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void exportDocumentsTest() { + String name2 = "name2-1052831874"; + boolean done = true; + Operation expectedResponse = Operation.newBuilder().setName(name2).setDone(done).build(); + mockFirestoreAdmin.addResponse(expectedResponse); + + String formattedName = FirestoreAdminClient.formatDatabaseName("[PROJECT]", "[DATABASE]"); + + Operation actualResponse = client.exportDocuments(formattedName); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFirestoreAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExportDocumentsRequest actualRequest = (ExportDocumentsRequest) actualRequests.get(0); + + Assert.assertEquals(formattedName, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void exportDocumentsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockFirestoreAdmin.addException(exception); + + try { + String formattedName = FirestoreAdminClient.formatDatabaseName("[PROJECT]", "[DATABASE]"); + + client.exportDocuments(formattedName); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void getFieldTest() { + String name2 = "name2-1052831874"; + Field expectedResponse = Field.newBuilder().setName(name2).build(); + mockFirestoreAdmin.addResponse(expectedResponse); + + String formattedName = + FirestoreAdminClient.formatFieldName( + "[PROJECT]", "[DATABASE]", "[COLLECTION_ID]", "[FIELD_ID]"); + + Field actualResponse = client.getField(formattedName); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFirestoreAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFieldRequest actualRequest = (GetFieldRequest) actualRequests.get(0); + + Assert.assertEquals(formattedName, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getFieldExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockFirestoreAdmin.addException(exception); + + try { + String formattedName = + FirestoreAdminClient.formatFieldName( + "[PROJECT]", "[DATABASE]", "[COLLECTION_ID]", "[FIELD_ID]"); + + client.getField(formattedName); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void listFieldsTest() { + String nextPageToken = ""; + Field fieldsElement = Field.newBuilder().build(); + List fields = Arrays.asList(fieldsElement); + ListFieldsResponse expectedResponse = + ListFieldsResponse.newBuilder() + .setNextPageToken(nextPageToken) + .addAllFields(fields) + .build(); + mockFirestoreAdmin.addResponse(expectedResponse); + + String formattedParent = + FirestoreAdminClient.formatParentName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]"); + + ListFieldsPagedResponse pagedListResponse = client.listFields(formattedParent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFieldsList().get(0), resources.get(0)); + + List actualRequests = mockFirestoreAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFieldsRequest actualRequest = (ListFieldsRequest) actualRequests.get(0); + + Assert.assertEquals(formattedParent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void listFieldsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockFirestoreAdmin.addException(exception); + + try { + String formattedParent = + FirestoreAdminClient.formatParentName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]"); + + client.listFields(formattedParent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void updateFieldTest() { + String name = "name3373707"; + boolean done = true; + Operation expectedResponse = Operation.newBuilder().setName(name).setDone(done).build(); + mockFirestoreAdmin.addResponse(expectedResponse); + + Field field = Field.newBuilder().build(); + + Operation actualResponse = client.updateField(field); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFirestoreAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateFieldRequest actualRequest = (UpdateFieldRequest) actualRequests.get(0); + + Assert.assertEquals(field, actualRequest.getField()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void updateFieldExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockFirestoreAdmin.addException(exception); + + try { + Field field = Field.newBuilder().build(); + + client.updateField(field); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } +} diff --git a/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockFirestoreAdmin.java b/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockFirestoreAdmin.java new file mode 100644 index 000000000000..86413e0ea045 --- /dev/null +++ b/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockFirestoreAdmin.java @@ -0,0 +1,57 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.firestore.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockFirestoreAdmin implements MockGrpcService { + private final MockFirestoreAdminImpl serviceImpl; + + public MockFirestoreAdmin() { + serviceImpl = new MockFirestoreAdminImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockFirestoreAdminImpl.java b/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockFirestoreAdminImpl.java new file mode 100644 index 000000000000..b660c6efbf41 --- /dev/null +++ b/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockFirestoreAdminImpl.java @@ -0,0 +1,203 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.firestore.v1; + +import com.google.api.core.BetaApi; +import com.google.firestore.admin.v1.CreateIndexRequest; +import com.google.firestore.admin.v1.DeleteIndexRequest; +import com.google.firestore.admin.v1.ExportDocumentsRequest; +import com.google.firestore.admin.v1.Field; +import com.google.firestore.admin.v1.FirestoreAdminGrpc.FirestoreAdminImplBase; +import com.google.firestore.admin.v1.GetFieldRequest; +import com.google.firestore.admin.v1.GetIndexRequest; +import com.google.firestore.admin.v1.ImportDocumentsRequest; +import com.google.firestore.admin.v1.Index; +import com.google.firestore.admin.v1.ListFieldsRequest; +import com.google.firestore.admin.v1.ListFieldsResponse; +import com.google.firestore.admin.v1.ListIndexesRequest; +import com.google.firestore.admin.v1.ListIndexesResponse; +import com.google.firestore.admin.v1.UpdateFieldRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockFirestoreAdminImpl extends FirestoreAdminImplBase { + private ArrayList requests; + private Queue responses; + + public MockFirestoreAdminImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createIndex(CreateIndexRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext((Operation) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void listIndexes( + ListIndexesRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ListIndexesResponse) { + requests.add(request); + responseObserver.onNext((ListIndexesResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void getIndex(GetIndexRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Index) { + requests.add(request); + responseObserver.onNext((Index) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void deleteIndex(DeleteIndexRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext((Empty) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void getField(GetFieldRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Field) { + requests.add(request); + responseObserver.onNext((Field) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void updateField(UpdateFieldRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext((Operation) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void listFields( + ListFieldsRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ListFieldsResponse) { + requests.add(request); + responseObserver.onNext((ListFieldsResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void exportDocuments( + ExportDocumentsRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext((Operation) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void importDocuments( + ImportDocumentsRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext((Operation) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/google-cloud-clients/google-cloud-firestore/synth.metadata b/google-cloud-clients/google-cloud-firestore/synth.metadata index 0ffd460f60b8..895ea00dabab 100644 --- a/google-cloud-clients/google-cloud-firestore/synth.metadata +++ b/google-cloud-clients/google-cloud-firestore/synth.metadata @@ -1,5 +1,5 @@ { - "updateTime": "2019-03-22T07:43:53.166974Z", + "updateTime": "2019-03-22T15:57:43.978857Z", "sources": [ { "generator": { @@ -18,6 +18,16 @@ } ], "destinations": [ + { + "client": { + "source": "googleapis", + "apiName": "firestore-admin", + "apiVersion": "v1", + "language": "java", + "generator": "gapic", + "config": "google/firestore/admin/artman_firestore_v1.yaml" + } + }, { "client": { "source": "googleapis", diff --git a/google-cloud-clients/google-cloud-firestore/synth.py b/google-cloud-clients/google-cloud-firestore/synth.py index 9ba8a5ea2ae3..e5439df61900 100644 --- a/google-cloud-clients/google-cloud-firestore/synth.py +++ b/google-cloud-clients/google-cloud-firestore/synth.py @@ -20,34 +20,21 @@ gapic = gcp.GAPICGenerator() -service = 'firestore' -version='v1beta1' - -library = gapic.java_library( - service=service, - version='v1beta1', - config_path=f'/google/firestore/artman_firestore.yaml', - artman_output_name='') - -s.copy(library / f'gapic-google-cloud-{service}-{version}/src', 'src') -s.copy(library / f'grpc-google-cloud-{service}-{version}/src', f'../../google-api-grpc/grpc-google-cloud-{service}-{version}/src') -s.copy(library / f'proto-google-cloud-{service}-{version}/src', f'../../google-api-grpc/proto-google-cloud-{service}-{version}/src') - -java.format_code('./src') -java.format_code(f'../../google-api-grpc/grpc-google-cloud-{service}-{version}/src') -java.format_code(f'../../google-api-grpc/proto-google-cloud-{service}-{version}/src') - -version='v1' -library = gapic.java_library( - service=service, - version='v1', - config_path=f'/google/firestore/artman_firestore_v1.yaml', - artman_output_name='') - -s.copy(library / f'gapic-google-cloud-{service}-{version}/src', 'src') -s.copy(library / f'grpc-google-cloud-{service}-{version}/src', f'../../google-api-grpc/grpc-google-cloud-{service}-{version}/src') -s.copy(library / f'proto-google-cloud-{service}-{version}/src', f'../../google-api-grpc/proto-google-cloud-{service}-{version}/src') - -java.format_code('./src') -java.format_code(f'../../google-api-grpc/grpc-google-cloud-{service}-{version}/src') -java.format_code(f'../../google-api-grpc/proto-google-cloud-{service}-{version}/src') \ No newline at end of file +def generate_client(service, version, config_path): + library = gapic.java_library( + service=service, + version=version, + config_path=config_path, + artman_output_name='') + + s.copy(library / f'gapic-google-cloud-{service}-{version}/src', 'src') + s.copy(library / f'grpc-google-cloud-{service}-{version}/src', f'../../google-api-grpc/grpc-google-cloud-{service}-{version}/src') + s.copy(library / f'proto-google-cloud-{service}-{version}/src', f'../../google-api-grpc/proto-google-cloud-{service}-{version}/src') + + java.format_code('./src') + java.format_code(f'../../google-api-grpc/grpc-google-cloud-{service}-{version}/src') + java.format_code(f'../../google-api-grpc/proto-google-cloud-{service}-{version}/src') + +generate_client('firestore-admin', 'v1', '/google/firestore/admin/artman_firestore_v1.yaml') +generate_client('firestore', 'v1beta1', '/google/firestore/artman_firestore.yaml') +generate_client('firestore', 'v1', '/google/firestore/artman_firestore_v1.yaml') diff --git a/versions.txt b/versions.txt index 3ac017f7b68c..1f93512558c6 100644 --- a/versions.txt +++ b/versions.txt @@ -77,6 +77,7 @@ grpc-google-cloud-dialogflow-v2:0.49.0:0.49.1-SNAPSHOT grpc-google-cloud-dialogflow-v2beta1:0.49.0:0.49.1-SNAPSHOT grpc-google-cloud-dlp-v2:0.49.0:0.49.1-SNAPSHOT grpc-google-cloud-error-reporting-v1beta1:0.49.0:0.49.1-SNAPSHOT +grpc-google-cloud-firestore-admin-v1:0.49.0:0.49.1-SNAPSHOT grpc-google-cloud-firestore-v1:0.49.0:0.49.1-SNAPSHOT grpc-google-cloud-firestore-v1beta1:0.49.0:0.49.1-SNAPSHOT grpc-google-cloud-iamcredentials-v1:0.11.0-alpha:0.11.1-alpha-SNAPSHOT @@ -134,6 +135,7 @@ proto-google-cloud-dialogflow-v2:0.49.0:0.49.1-SNAPSHOT proto-google-cloud-dialogflow-v2beta1:0.49.0:0.49.1-SNAPSHOT proto-google-cloud-dlp-v2:0.49.0:0.49.1-SNAPSHOT proto-google-cloud-error-reporting-v1beta1:0.49.0:0.49.1-SNAPSHOT +proto-google-cloud-firestore-admin-v1:0.49.0:0.49.1-SNAPSHOT proto-google-cloud-firestore-v1:0.49.0:0.49.1-SNAPSHOT proto-google-cloud-firestore-v1beta1:0.49.0:0.49.1-SNAPSHOT proto-google-cloud-iamcredentials-v1:0.11.0-alpha:0.11.1-alpha-SNAPSHOT From 877f9c9bc1f8f04713396b8585cef3f3751a0439 Mon Sep 17 00:00:00 2001 From: Solomon Duskis Date: Fri, 22 Mar 2019 15:39:54 -0400 Subject: [PATCH 20/20] Manually regenerate Redis (#4723) * Manually regenerate Redis * Fixing a formatting issue --- .../google/cloud/redis/v1/CloudRedisGrpc.java | 284 +----- .../redis/v1/CloudRedisServiceV1Proto.java | 268 ++---- .../cloud/redis/v1/CreateInstanceRequest.java | 6 +- .../cloud/redis/v1/DeleteInstanceRequest.java | 6 +- .../cloud/redis/v1/ExportInstanceRequest.java | 878 ------------------ .../v1/ExportInstanceRequestOrBuilder.java | 66 -- .../google/cloud/redis/v1/GcsDestination.java | 603 ------------ .../redis/v1/GcsDestinationOrBuilder.java | 33 - .../com/google/cloud/redis/v1/GcsSource.java | 594 ------------ .../cloud/redis/v1/GcsSourceOrBuilder.java | 31 - .../cloud/redis/v1/ImportInstanceRequest.java | 878 ------------------ .../v1/ImportInstanceRequestOrBuilder.java | 66 -- .../google/cloud/redis/v1/InputConfig.java | 789 ---------------- .../cloud/redis/v1/InputConfigOrBuilder.java | 43 - .../com/google/cloud/redis/v1/Instance.java | 338 +------ .../cloud/redis/v1/InstanceOrBuilder.java | 82 +- .../google/cloud/redis/v1/OutputConfig.java | 793 ---------------- .../cloud/redis/v1/OutputConfigOrBuilder.java | 43 - .../cloud/redis/v1/UpdateInstanceRequest.java | 6 +- .../google/cloud/redis/v1/cloud_redis.proto | 138 +-- .../cloud/redis/v1/CloudRedisClient.java | 262 +----- .../cloud/redis/v1/CloudRedisSettings.java | 52 -- .../google/cloud/redis/v1/package-info.java | 2 +- .../cloud/redis/v1/stub/CloudRedisStub.java | 22 - .../redis/v1/stub/CloudRedisStubSettings.java | 142 --- .../redis/v1/stub/GrpcCloudRedisStub.java | 72 -- .../cloud/redis/v1/CloudRedisClientTest.java | 162 ---- .../cloud/redis/v1/MockCloudRedisImpl.java | 30 - 28 files changed, 162 insertions(+), 6527 deletions(-) delete mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequest.java delete mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequestOrBuilder.java delete mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsDestination.java delete mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsDestinationOrBuilder.java delete mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsSource.java delete mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsSourceOrBuilder.java delete mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequest.java delete mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequestOrBuilder.java delete mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InputConfig.java delete mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InputConfigOrBuilder.java delete mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OutputConfig.java delete mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OutputConfigOrBuilder.java diff --git a/google-api-grpc/grpc-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisGrpc.java b/google-api-grpc/grpc-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisGrpc.java index 555d1381a4c4..59cfe9f93433 100644 --- a/google-api-grpc/grpc-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisGrpc.java +++ b/google-api-grpc/grpc-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisGrpc.java @@ -21,7 +21,7 @@ * * Each location has a collection of Redis instances, named: `/instances/*` * * As such, Redis instances are resources of the form: * `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` - * Note that location_id must be refering to a GCP `region`; for example: + * Note that location_id must be referring to a GCP `region`; for example: * * `projects/redpepper-1290/locations/us-central1/instances/my-redis` * */ @@ -243,108 +243,6 @@ private CloudRedisGrpc() {} return getUpdateInstanceMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getImportInstanceMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.redis.v1.ImportInstanceRequest, com.google.longrunning.Operation> - METHOD_IMPORT_INSTANCE = getImportInstanceMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.redis.v1.ImportInstanceRequest, com.google.longrunning.Operation> - getImportInstanceMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.redis.v1.ImportInstanceRequest, com.google.longrunning.Operation> - getImportInstanceMethod() { - return getImportInstanceMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.redis.v1.ImportInstanceRequest, com.google.longrunning.Operation> - getImportInstanceMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.redis.v1.ImportInstanceRequest, com.google.longrunning.Operation> - getImportInstanceMethod; - if ((getImportInstanceMethod = CloudRedisGrpc.getImportInstanceMethod) == null) { - synchronized (CloudRedisGrpc.class) { - if ((getImportInstanceMethod = CloudRedisGrpc.getImportInstanceMethod) == null) { - CloudRedisGrpc.getImportInstanceMethod = - getImportInstanceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.redis.v1.CloudRedis", "ImportInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.redis.v1.ImportInstanceRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("ImportInstance")) - .build(); - } - } - } - return getImportInstanceMethod; - } - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getExportInstanceMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.redis.v1.ExportInstanceRequest, com.google.longrunning.Operation> - METHOD_EXPORT_INSTANCE = getExportInstanceMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.redis.v1.ExportInstanceRequest, com.google.longrunning.Operation> - getExportInstanceMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.redis.v1.ExportInstanceRequest, com.google.longrunning.Operation> - getExportInstanceMethod() { - return getExportInstanceMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.redis.v1.ExportInstanceRequest, com.google.longrunning.Operation> - getExportInstanceMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.redis.v1.ExportInstanceRequest, com.google.longrunning.Operation> - getExportInstanceMethod; - if ((getExportInstanceMethod = CloudRedisGrpc.getExportInstanceMethod) == null) { - synchronized (CloudRedisGrpc.class) { - if ((getExportInstanceMethod = CloudRedisGrpc.getExportInstanceMethod) == null) { - CloudRedisGrpc.getExportInstanceMethod = - getExportInstanceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.redis.v1.CloudRedis", "ExportInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.redis.v1.ExportInstanceRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("ExportInstance")) - .build(); - } - } - } - return getExportInstanceMethod; - } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") @java.lang.Deprecated // Use {@link #getFailoverInstanceMethod()} instead. public static final io.grpc.MethodDescriptor< @@ -480,7 +378,7 @@ public static CloudRedisFutureStub newFutureStub(io.grpc.Channel channel) { * * Each location has a collection of Redis instances, named: `/instances/*` * * As such, Redis instances are resources of the form: * `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` - * Note that location_id must be refering to a GCP `region`; for example: + * Note that location_id must be referring to a GCP `region`; for example: * * `projects/redpepper-1290/locations/us-central1/instances/my-redis` * */ @@ -555,40 +453,6 @@ public void updateInstance( asyncUnimplementedUnaryCall(getUpdateInstanceMethodHelper(), responseObserver); } - /** - * - * - *
-     * Import a Redis RDB snapshot file from GCS into a Redis instance.
-     * Redis may stop serving during this operation. Instance state will be
-     * IMPORTING for entire operation. When complete, the instance will contain
-     * only data from the imported file.
-     * The returned operation is automatically deleted after a few hours, so
-     * there is no need to call DeleteOperation.
-     * 
- */ - public void importInstance( - com.google.cloud.redis.v1.ImportInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getImportInstanceMethodHelper(), responseObserver); - } - - /** - * - * - *
-     * Export Redis instance data into a Redis RDB format file in GCS.
-     * Redis will continue serving during this operation.
-     * The returned operation is automatically deleted after a few hours, so
-     * there is no need to call DeleteOperation.
-     * 
- */ - public void exportInstance( - com.google.cloud.redis.v1.ExportInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getExportInstanceMethodHelper(), responseObserver); - } - /** * * @@ -645,18 +509,6 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.cloud.redis.v1.UpdateInstanceRequest, com.google.longrunning.Operation>(this, METHODID_UPDATE_INSTANCE))) - .addMethod( - getImportInstanceMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1.ImportInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_IMPORT_INSTANCE))) - .addMethod( - getExportInstanceMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.redis.v1.ExportInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_EXPORT_INSTANCE))) .addMethod( getFailoverInstanceMethodHelper(), asyncUnaryCall( @@ -687,7 +539,7 @@ public final io.grpc.ServerServiceDefinition bindService() { * * Each location has a collection of Redis instances, named: `/instances/*` * * As such, Redis instances are resources of the form: * `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` - * Note that location_id must be refering to a GCP `region`; for example: + * Note that location_id must be referring to a GCP `region`; for example: * * `projects/redpepper-1290/locations/us-central1/instances/my-redis` * */ @@ -786,46 +638,6 @@ public void updateInstance( responseObserver); } - /** - * - * - *
-     * Import a Redis RDB snapshot file from GCS into a Redis instance.
-     * Redis may stop serving during this operation. Instance state will be
-     * IMPORTING for entire operation. When complete, the instance will contain
-     * only data from the imported file.
-     * The returned operation is automatically deleted after a few hours, so
-     * there is no need to call DeleteOperation.
-     * 
- */ - public void importInstance( - com.google.cloud.redis.v1.ImportInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getImportInstanceMethodHelper(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Export Redis instance data into a Redis RDB format file in GCS.
-     * Redis will continue serving during this operation.
-     * The returned operation is automatically deleted after a few hours, so
-     * there is no need to call DeleteOperation.
-     * 
- */ - public void exportInstance( - com.google.cloud.redis.v1.ExportInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getExportInstanceMethodHelper(), getCallOptions()), - request, - responseObserver); - } - /** * * @@ -875,7 +687,7 @@ public void deleteInstance( * * Each location has a collection of Redis instances, named: `/instances/*` * * As such, Redis instances are resources of the form: * `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` - * Note that location_id must be refering to a GCP `region`; for example: + * Note that location_id must be referring to a GCP `region`; for example: * * `projects/redpepper-1290/locations/us-central1/instances/my-redis` * */ @@ -963,40 +775,6 @@ public com.google.longrunning.Operation updateInstance( getChannel(), getUpdateInstanceMethodHelper(), getCallOptions(), request); } - /** - * - * - *
-     * Import a Redis RDB snapshot file from GCS into a Redis instance.
-     * Redis may stop serving during this operation. Instance state will be
-     * IMPORTING for entire operation. When complete, the instance will contain
-     * only data from the imported file.
-     * The returned operation is automatically deleted after a few hours, so
-     * there is no need to call DeleteOperation.
-     * 
- */ - public com.google.longrunning.Operation importInstance( - com.google.cloud.redis.v1.ImportInstanceRequest request) { - return blockingUnaryCall( - getChannel(), getImportInstanceMethodHelper(), getCallOptions(), request); - } - - /** - * - * - *
-     * Export Redis instance data into a Redis RDB format file in GCS.
-     * Redis will continue serving during this operation.
-     * The returned operation is automatically deleted after a few hours, so
-     * there is no need to call DeleteOperation.
-     * 
- */ - public com.google.longrunning.Operation exportInstance( - com.google.cloud.redis.v1.ExportInstanceRequest request) { - return blockingUnaryCall( - getChannel(), getExportInstanceMethodHelper(), getCallOptions(), request); - } - /** * * @@ -1040,7 +818,7 @@ public com.google.longrunning.Operation deleteInstance( * * Each location has a collection of Redis instances, named: `/instances/*` * * As such, Redis instances are resources of the form: * `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` - * Note that location_id must be refering to a GCP `region`; for example: + * Note that location_id must be referring to a GCP `region`; for example: * * `projects/redpepper-1290/locations/us-central1/instances/my-redis` * */ @@ -1128,40 +906,6 @@ protected CloudRedisFutureStub build(io.grpc.Channel channel, io.grpc.CallOption getChannel().newCall(getUpdateInstanceMethodHelper(), getCallOptions()), request); } - /** - * - * - *
-     * Import a Redis RDB snapshot file from GCS into a Redis instance.
-     * Redis may stop serving during this operation. Instance state will be
-     * IMPORTING for entire operation. When complete, the instance will contain
-     * only data from the imported file.
-     * The returned operation is automatically deleted after a few hours, so
-     * there is no need to call DeleteOperation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - importInstance(com.google.cloud.redis.v1.ImportInstanceRequest request) { - return futureUnaryCall( - getChannel().newCall(getImportInstanceMethodHelper(), getCallOptions()), request); - } - - /** - * - * - *
-     * Export Redis instance data into a Redis RDB format file in GCS.
-     * Redis will continue serving during this operation.
-     * The returned operation is automatically deleted after a few hours, so
-     * there is no need to call DeleteOperation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - exportInstance(com.google.cloud.redis.v1.ExportInstanceRequest request) { - return futureUnaryCall( - getChannel().newCall(getExportInstanceMethodHelper(), getCallOptions()), request); - } - /** * * @@ -1195,10 +939,8 @@ protected CloudRedisFutureStub build(io.grpc.Channel channel, io.grpc.CallOption private static final int METHODID_GET_INSTANCE = 1; private static final int METHODID_CREATE_INSTANCE = 2; private static final int METHODID_UPDATE_INSTANCE = 3; - private static final int METHODID_IMPORT_INSTANCE = 4; - private static final int METHODID_EXPORT_INSTANCE = 5; - private static final int METHODID_FAILOVER_INSTANCE = 6; - private static final int METHODID_DELETE_INSTANCE = 7; + private static final int METHODID_FAILOVER_INSTANCE = 4; + private static final int METHODID_DELETE_INSTANCE = 5; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1238,16 +980,6 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.redis.v1.UpdateInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; - case METHODID_IMPORT_INSTANCE: - serviceImpl.importInstance( - (com.google.cloud.redis.v1.ImportInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_EXPORT_INSTANCE: - serviceImpl.exportInstance( - (com.google.cloud.redis.v1.ExportInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; case METHODID_FAILOVER_INSTANCE: serviceImpl.failoverInstance( (com.google.cloud.redis.v1.FailoverInstanceRequest) request, @@ -1326,8 +1058,6 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetInstanceMethodHelper()) .addMethod(getCreateInstanceMethodHelper()) .addMethod(getUpdateInstanceMethodHelper()) - .addMethod(getImportInstanceMethodHelper()) - .addMethod(getExportInstanceMethodHelper()) .addMethod(getFailoverInstanceMethodHelper()) .addMethod(getDeleteInstanceMethodHelper()) .build(); diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisServiceV1Proto.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisServiceV1Proto.java index ff5362c5fb62..383ce2948aaa 100644 --- a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisServiceV1Proto.java +++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisServiceV1Proto.java @@ -48,30 +48,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_redis_v1_DeleteInstanceRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_redis_v1_DeleteInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_GcsSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_GcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_InputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_InputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_ImportInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_ImportInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_GcsDestination_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_OutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_redis_v1_ExportInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_redis_v1_ExportInstanceRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_redis_v1_FailoverInstanceRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -103,108 +79,89 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n\'google/cloud/redis/v1/cloud_redis.prot" + "o\022\025google.cloud.redis.v1\032\034google/api/ann" - + "otations.proto\032#google/longrunning/opera" - + "tions.proto\032 google/protobuf/field_mask." - + "proto\032\037google/protobuf/timestamp.proto\"\224" - + "\007\n\010Instance\022\014\n\004name\030\001 \001(\t\022\024\n\014display_nam" - + "e\030\002 \001(\t\022;\n\006labels\030\003 \003(\0132+.google.cloud.r" - + "edis.v1.Instance.LabelsEntry\022\023\n\013location" - + "_id\030\004 \001(\t\022\037\n\027alternative_location_id\030\005 \001" - + "(\t\022\025\n\rredis_version\030\007 \001(\t\022\031\n\021reserved_ip" - + "_range\030\t \001(\t\022\014\n\004host\030\n \001(\t\022\014\n\004port\030\013 \001(\005" - + "\022\033\n\023current_location_id\030\014 \001(\t\022/\n\013create_" - + "time\030\r \001(\0132\032.google.protobuf.Timestamp\0224" - + "\n\005state\030\016 \001(\0162%.google.cloud.redis.v1.In" - + "stance.State\022\026\n\016status_message\030\017 \001(\t\022H\n\r" - + "redis_configs\030\020 \003(\01321.google.cloud.redis" - + ".v1.Instance.RedisConfigsEntry\0222\n\004tier\030\021" - + " \001(\0162$.google.cloud.redis.v1.Instance.Ti" - + "er\022\026\n\016memory_size_gb\030\022 \001(\005\022\032\n\022authorized" - + "_network\030\024 \001(\t\022 \n\030persistence_iam_identi" - + "ty\030\025 \001(\t\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - + "value\030\002 \001(\t:\0028\001\0323\n\021RedisConfigsEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\224\001\n\005State\022\025" - + "\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005R" - + "EADY\020\002\022\014\n\010UPDATING\020\003\022\014\n\010DELETING\020\004\022\r\n\tRE" - + "PAIRING\020\005\022\017\n\013MAINTENANCE\020\006\022\r\n\tIMPORTING\020" - + "\010\022\020\n\014FAILING_OVER\020\t\"8\n\004Tier\022\024\n\020TIER_UNSP" - + "ECIFIED\020\000\022\t\n\005BASIC\020\001\022\017\n\013STANDARD_HA\020\003\"M\n" - + "\024ListInstancesRequest\022\016\n\006parent\030\001 \001(\t\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"y\n\025" - + "ListInstancesResponse\0222\n\tinstances\030\001 \003(\013" - + "2\037.google.cloud.redis.v1.Instance\022\027\n\017nex" - + "t_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"" - + "\"\n\022GetInstanceRequest\022\014\n\004name\030\001 \001(\t\"o\n\025C" - + "reateInstanceRequest\022\016\n\006parent\030\001 \001(\t\022\023\n\013" - + "instance_id\030\002 \001(\t\0221\n\010instance\030\003 \001(\0132\037.go" - + "ogle.cloud.redis.v1.Instance\"{\n\025UpdateIn" - + "stanceRequest\022/\n\013update_mask\030\001 \001(\0132\032.goo" - + "gle.protobuf.FieldMask\0221\n\010instance\030\002 \001(\013" - + "2\037.google.cloud.redis.v1.Instance\"%\n\025Del" - + "eteInstanceRequest\022\014\n\004name\030\001 \001(\t\"\030\n\tGcsS" - + "ource\022\013\n\003uri\030\001 \001(\t\"O\n\013InputConfig\0226\n\ngcs" - + "_source\030\001 \001(\0132 .google.cloud.redis.v1.Gc" - + "sSourceH\000B\010\n\006source\"_\n\025ImportInstanceReq" - + "uest\022\014\n\004name\030\001 \001(\t\0228\n\014input_config\030\003 \001(\013" - + "2\".google.cloud.redis.v1.InputConfig\"\035\n\016" - + "GcsDestination\022\013\n\003uri\030\001 \001(\t\"_\n\014OutputCon" - + "fig\022@\n\017gcs_destination\030\001 \001(\0132%.google.cl" - + "oud.redis.v1.GcsDestinationH\000B\r\n\013destina" - + "tion\"a\n\025ExportInstanceRequest\022\014\n\004name\030\001 " - + "\001(\t\022:\n\routput_config\030\003 \001(\0132#.google.clou" - + "d.redis.v1.OutputConfig\"\360\001\n\027FailoverInst" - + "anceRequest\022\014\n\004name\030\001 \001(\t\022_\n\024data_protec" - + "tion_mode\030\002 \001(\0162A.google.cloud.redis.v1." - + "FailoverInstanceRequest.DataProtectionMo" - + "de\"f\n\022DataProtectionMode\022$\n DATA_PROTECT" - + "ION_MODE_UNSPECIFIED\020\000\022\025\n\021LIMITED_DATA_L" - + "OSS\020\001\022\023\n\017FORCE_DATA_LOSS\020\002\"\326\001\n\021Operation" - + "Metadata\022/\n\013create_time\030\001 \001(\0132\032.google.p" - + "rotobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\022\016\n\006target\030\003 \001(\t\022" - + "\014\n\004verb\030\004 \001(\t\022\025\n\rstatus_detail\030\005 \001(\t\022\030\n\020" - + "cancel_requested\030\006 \001(\010\022\023\n\013api_version\030\007 " - + "\001(\t\"\304\001\n\020LocationMetadata\022T\n\017available_zo" - + "nes\030\001 \003(\0132;.google.cloud.redis.v1.Locati" - + "onMetadata.AvailableZonesEntry\032Z\n\023Availa" - + "bleZonesEntry\022\013\n\003key\030\001 \001(\t\0222\n\005value\030\002 \001(" - + "\0132#.google.cloud.redis.v1.ZoneMetadata:\002" - + "8\001\"\016\n\014ZoneMetadata2\216\n\n\nCloudRedis\022\241\001\n\rLi" - + "stInstances\022+.google.cloud.redis.v1.List" - + "InstancesRequest\032,.google.cloud.redis.v1" - + ".ListInstancesResponse\"5\202\323\344\223\002/\022-/v1/{par" - + "ent=projects/*/locations/*}/instances\022\220\001" - + "\n\013GetInstance\022).google.cloud.redis.v1.Ge" - + "tInstanceRequest\032\037.google.cloud.redis.v1" - + ".Instance\"5\202\323\344\223\002/\022-/v1/{name=projects/*/" - + "locations/*/instances/*}\022\236\001\n\016CreateInsta" - + "nce\022,.google.cloud.redis.v1.CreateInstan" - + "ceRequest\032\035.google.longrunning.Operation" - + "\"?\202\323\344\223\0029\"-/v1/{parent=projects/*/locatio" - + "ns/*}/instances:\010instance\022\247\001\n\016UpdateInst" - + "ance\022,.google.cloud.redis.v1.UpdateInsta" - + "nceRequest\032\035.google.longrunning.Operatio" - + "n\"H\202\323\344\223\002B26/v1/{instance.name=projects/*" - + "/locations/*/instances/*}:\010instance\022\236\001\n\016" - + "ImportInstance\022,.google.cloud.redis.v1.I" - + "mportInstanceRequest\032\035.google.longrunnin" - + "g.Operation\"?\202\323\344\223\0029\"4/v1/{name=projects/" - + "*/locations/*/instances/*}:import:\001*\022\236\001\n" - + "\016ExportInstance\022,.google.cloud.redis.v1." - + "ExportInstanceRequest\032\035.google.longrunni" - + "ng.Operation\"?\202\323\344\223\0029\"4/v1/{name=projects" - + "/*/locations/*/instances/*}:export:\001*\022\244\001" - + "\n\020FailoverInstance\022..google.cloud.redis." - + "v1.FailoverInstanceRequest\032\035.google.long" - + "running.Operation\"A\202\323\344\223\002;\"6/v1/{name=pro" - + "jects/*/locations/*/instances/*}:failove" - + "r:\001*\022\224\001\n\016DeleteInstance\022,.google.cloud.r" - + "edis.v1.DeleteInstanceRequest\032\035.google.l" - + "ongrunning.Operation\"5\202\323\344\223\002/*-/v1/{name=" - + "projects/*/locations/*/instances/*}Bs\n\031c" - + "om.google.cloud.redis.v1B\030CloudRedisServ" - + "iceV1ProtoP\001Z:google.golang.org/genproto" - + "/googleapis/cloud/redis/v1;redisb\006proto3" + + "otations.proto\032\031google/api/resource.prot" + + "o\032#google/longrunning/operations.proto\032 " + + "google/protobuf/field_mask.proto\032\037google" + + "/protobuf/timestamp.proto\"\343\006\n\010Instance\022\014" + + "\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022;\n\006la" + + "bels\030\003 \003(\0132+.google.cloud.redis.v1.Insta" + + "nce.LabelsEntry\022\023\n\013location_id\030\004 \001(\t\022\037\n\027" + + "alternative_location_id\030\005 \001(\t\022\025\n\rredis_v" + + "ersion\030\007 \001(\t\022\031\n\021reserved_ip_range\030\t \001(\t\022" + + "\014\n\004host\030\n \001(\t\022\014\n\004port\030\013 \001(\005\022\033\n\023current_l" + + "ocation_id\030\014 \001(\t\022/\n\013create_time\030\r \001(\0132\032." + + "google.protobuf.Timestamp\0224\n\005state\030\016 \001(\016" + + "2%.google.cloud.redis.v1.Instance.State\022" + + "\026\n\016status_message\030\017 \001(\t\022H\n\rredis_configs" + + "\030\020 \003(\01321.google.cloud.redis.v1.Instance." + + "RedisConfigsEntry\0222\n\004tier\030\021 \001(\0162$.google" + + ".cloud.redis.v1.Instance.Tier\022\026\n\016memory_" + + "size_gb\030\022 \001(\005\022\032\n\022authorized_network\030\024 \001(" + + "\t\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001\0323\n\021RedisConfigsEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\205\001\n\005State\022\025\n\021STATE" + + "_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002\022" + + "\014\n\010UPDATING\020\003\022\014\n\010DELETING\020\004\022\r\n\tREPAIRING" + + "\020\005\022\017\n\013MAINTENANCE\020\006\022\020\n\014FAILING_OVER\020\t\"8\n" + + "\004Tier\022\024\n\020TIER_UNSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\017" + + "\n\013STANDARD_HA\020\003\"M\n\024ListInstancesRequest\022" + + "\016\n\006parent\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" + + "ge_token\030\003 \001(\t\"y\n\025ListInstancesResponse\022" + + "2\n\tinstances\030\001 \003(\0132\037.google.cloud.redis." + + "v1.Instance\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013" + + "unreachable\030\003 \003(\t\"\"\n\022GetInstanceRequest\022" + + "\014\n\004name\030\001 \001(\t\"o\n\025CreateInstanceRequest\022\016" + + "\n\006parent\030\001 \001(\t\022\023\n\013instance_id\030\002 \001(\t\0221\n\010i" + + "nstance\030\003 \001(\0132\037.google.cloud.redis.v1.In" + + "stance\"{\n\025UpdateInstanceRequest\022/\n\013updat" + + "e_mask\030\001 \001(\0132\032.google.protobuf.FieldMask" + + "\0221\n\010instance\030\002 \001(\0132\037.google.cloud.redis." + + "v1.Instance\"%\n\025DeleteInstanceRequest\022\014\n\004" + + "name\030\001 \001(\t\"\360\001\n\027FailoverInstanceRequest\022\014" + + "\n\004name\030\001 \001(\t\022_\n\024data_protection_mode\030\002 \001" + + "(\0162A.google.cloud.redis.v1.FailoverInsta" + + "nceRequest.DataProtectionMode\"f\n\022DataPro" + + "tectionMode\022$\n DATA_PROTECTION_MODE_UNSP" + + "ECIFIED\020\000\022\025\n\021LIMITED_DATA_LOSS\020\001\022\023\n\017FORC" + + "E_DATA_LOSS\020\002\"\326\001\n\021OperationMetadata\022/\n\013c" + + "reate_time\030\001 \001(\0132\032.google.protobuf.Times" + + "tamp\022,\n\010end_time\030\002 \001(\0132\032.google.protobuf" + + ".Timestamp\022\016\n\006target\030\003 \001(\t\022\014\n\004verb\030\004 \001(\t" + + "\022\025\n\rstatus_detail\030\005 \001(\t\022\030\n\020cancel_reques" + + "ted\030\006 \001(\010\022\023\n\013api_version\030\007 \001(\t\"\304\001\n\020Locat" + + "ionMetadata\022T\n\017available_zones\030\001 \003(\0132;.g" + + "oogle.cloud.redis.v1.LocationMetadata.Av" + + "ailableZonesEntry\032Z\n\023AvailableZonesEntry" + + "\022\013\n\003key\030\001 \001(\t\0222\n\005value\030\002 \001(\0132#.google.cl" + + "oud.redis.v1.ZoneMetadata:\0028\001\"\016\n\014ZoneMet" + + "adata2\314\007\n\nCloudRedis\022\241\001\n\rListInstances\022+" + + ".google.cloud.redis.v1.ListInstancesRequ" + + "est\032,.google.cloud.redis.v1.ListInstance" + + "sResponse\"5\202\323\344\223\002/\022-/v1/{parent=projects/" + + "*/locations/*}/instances\022\220\001\n\013GetInstance" + + "\022).google.cloud.redis.v1.GetInstanceRequ" + + "est\032\037.google.cloud.redis.v1.Instance\"5\202\323" + + "\344\223\002/\022-/v1/{name=projects/*/locations/*/i" + + "nstances/*}\022\236\001\n\016CreateInstance\022,.google." + + "cloud.redis.v1.CreateInstanceRequest\032\035.g" + + "oogle.longrunning.Operation\"?\202\323\344\223\0029\"-/v1" + + "/{parent=projects/*/locations/*}/instanc" + + "es:\010instance\022\247\001\n\016UpdateInstance\022,.google" + + ".cloud.redis.v1.UpdateInstanceRequest\032\035." + + "google.longrunning.Operation\"H\202\323\344\223\002B26/v" + + "1/{instance.name=projects/*/locations/*/" + + "instances/*}:\010instance\022\244\001\n\020FailoverInsta" + + "nce\022..google.cloud.redis.v1.FailoverInst" + + "anceRequest\032\035.google.longrunning.Operati" + + "on\"A\202\323\344\223\002;\"6/v1/{name=projects/*/locatio" + + "ns/*/instances/*}:failover:\001*\022\224\001\n\016Delete" + + "Instance\022,.google.cloud.redis.v1.DeleteI" + + "nstanceRequest\032\035.google.longrunning.Oper" + + "ation\"5\202\323\344\223\002/*-/v1/{name=projects/*/loca" + + "tions/*/instances/*}Bs\n\031com.google.cloud" + + ".redis.v1B\030CloudRedisServiceV1ProtoP\001Z:g" + + "oogle.golang.org/genproto/googleapis/clo" + + "ud/redis/v1;redisb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -218,6 +175,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -246,7 +204,6 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Tier", "MemorySizeGb", "AuthorizedNetwork", - "PersistenceIamIdentity", }); internal_static_google_cloud_redis_v1_Instance_LabelsEntry_descriptor = internal_static_google_cloud_redis_v1_Instance_descriptor.getNestedTypes().get(0); @@ -312,56 +269,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Name", }); - internal_static_google_cloud_redis_v1_GcsSource_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_redis_v1_GcsSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_GcsSource_descriptor, - new java.lang.String[] { - "Uri", - }); - internal_static_google_cloud_redis_v1_InputConfig_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_redis_v1_InputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_InputConfig_descriptor, - new java.lang.String[] { - "GcsSource", "Source", - }); - internal_static_google_cloud_redis_v1_ImportInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_redis_v1_ImportInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_ImportInstanceRequest_descriptor, - new java.lang.String[] { - "Name", "InputConfig", - }); - internal_static_google_cloud_redis_v1_GcsDestination_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_redis_v1_GcsDestination_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_GcsDestination_descriptor, - new java.lang.String[] { - "Uri", - }); - internal_static_google_cloud_redis_v1_OutputConfig_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_redis_v1_OutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_OutputConfig_descriptor, - new java.lang.String[] { - "GcsDestination", "Destination", - }); - internal_static_google_cloud_redis_v1_ExportInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_redis_v1_ExportInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_redis_v1_ExportInstanceRequest_descriptor, - new java.lang.String[] { - "Name", "OutputConfig", - }); internal_static_google_cloud_redis_v1_FailoverInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_redis_v1_FailoverInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_redis_v1_FailoverInstanceRequest_descriptor, @@ -369,7 +278,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Name", "DataProtectionMode", }); internal_static_google_cloud_redis_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_redis_v1_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_redis_v1_OperationMetadata_descriptor, @@ -383,7 +292,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "ApiVersion", }); internal_static_google_cloud_redis_v1_LocationMetadata_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_redis_v1_LocationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_redis_v1_LocationMetadata_descriptor, @@ -399,7 +308,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Key", "Value", }); internal_static_google_cloud_redis_v1_ZoneMetadata_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_redis_v1_ZoneMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_redis_v1_ZoneMetadata_descriptor, @@ -410,6 +319,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequest.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequest.java index 84adff8f338e..9b3aa3926a81 100644 --- a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequest.java +++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequest.java @@ -7,8 +7,7 @@ * * *
- * Request for
- * [CreateInstance][google.cloud.redis.v1.CloudRedis.CreateInstance].
+ * Request for [CreateInstance][google.cloud.redis.v1.CloudRedis.CreateInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1.CreateInstanceRequest} @@ -443,8 +442,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request for
-   * [CreateInstance][google.cloud.redis.v1.CloudRedis.CreateInstance].
+   * Request for [CreateInstance][google.cloud.redis.v1.CloudRedis.CreateInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1.CreateInstanceRequest} diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequest.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequest.java index 5a5db399b24b..8b219cdda7a9 100644 --- a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequest.java +++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequest.java @@ -7,8 +7,7 @@ * * *
- * Request for
- * [DeleteInstance][google.cloud.redis.v1.CloudRedis.DeleteInstance].
+ * Request for [DeleteInstance][google.cloud.redis.v1.CloudRedis.DeleteInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1.DeleteInstanceRequest} @@ -303,8 +302,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request for
-   * [DeleteInstance][google.cloud.redis.v1.CloudRedis.DeleteInstance].
+   * Request for [DeleteInstance][google.cloud.redis.v1.CloudRedis.DeleteInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1.DeleteInstanceRequest} diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequest.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequest.java deleted file mode 100644 index fd34946caeba..000000000000 --- a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequest.java +++ /dev/null @@ -1,878 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/redis/v1/cloud_redis.proto - -package com.google.cloud.redis.v1; - -/** - * - * - *
- * Request for [Export][google.cloud.redis.v1.CloudRedis.ExportInstance].
- * 
- * - * Protobuf type {@code google.cloud.redis.v1.ExportInstanceRequest} - */ -public final class ExportInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.ExportInstanceRequest) - ExportInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExportInstanceRequest.newBuilder() to construct. - private ExportInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ExportInstanceRequest() { - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ExportInstanceRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 26: - { - com.google.cloud.redis.v1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = - input.readMessage( - com.google.cloud.redis.v1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_ExportInstanceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_ExportInstanceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.ExportInstanceRequest.class, - com.google.cloud.redis.v1.ExportInstanceRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. Redis instance resource name using the form:
-   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * where `location_id` refers to a GCP region
-   * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Redis instance resource name using the form:
-   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * where `location_id` refers to a GCP region
-   * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OUTPUT_CONFIG_FIELD_NUMBER = 3; - private com.google.cloud.redis.v1.OutputConfig outputConfig_; - /** - * - * - *
-   * Required. Specify data to be exported.
-   * 
- * - * .google.cloud.redis.v1.OutputConfig output_config = 3; - */ - public boolean hasOutputConfig() { - return outputConfig_ != null; - } - /** - * - * - *
-   * Required. Specify data to be exported.
-   * 
- * - * .google.cloud.redis.v1.OutputConfig output_config = 3; - */ - public com.google.cloud.redis.v1.OutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.redis.v1.OutputConfig.getDefaultInstance() - : outputConfig_; - } - /** - * - * - *
-   * Required. Specify data to be exported.
-   * 
- * - * .google.cloud.redis.v1.OutputConfig output_config = 3; - */ - public com.google.cloud.redis.v1.OutputConfigOrBuilder getOutputConfigOrBuilder() { - return getOutputConfig(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (outputConfig_ != null) { - output.writeMessage(3, getOutputConfig()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputConfig()); - } - 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.redis.v1.ExportInstanceRequest)) { - return super.equals(obj); - } - com.google.cloud.redis.v1.ExportInstanceRequest other = - (com.google.cloud.redis.v1.ExportInstanceRequest) obj; - - boolean result = true; - result = result && getName().equals(other.getName()); - result = result && (hasOutputConfig() == other.hasOutputConfig()); - if (hasOutputConfig()) { - result = result && getOutputConfig().equals(other.getOutputConfig()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasOutputConfig()) { - hash = (37 * hash) + OUTPUT_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getOutputConfig().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.redis.v1.ExportInstanceRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.redis.v1.ExportInstanceRequest 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.redis.v1.ExportInstanceRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.redis.v1.ExportInstanceRequest 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.redis.v1.ExportInstanceRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.redis.v1.ExportInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.redis.v1.ExportInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.redis.v1.ExportInstanceRequest 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.redis.v1.ExportInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.redis.v1.ExportInstanceRequest 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.redis.v1.ExportInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.redis.v1.ExportInstanceRequest 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.redis.v1.ExportInstanceRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for [Export][google.cloud.redis.v1.CloudRedis.ExportInstance].
-   * 
- * - * Protobuf type {@code google.cloud.redis.v1.ExportInstanceRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.ExportInstanceRequest) - com.google.cloud.redis.v1.ExportInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_ExportInstanceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_ExportInstanceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.ExportInstanceRequest.class, - com.google.cloud.redis.v1.ExportInstanceRequest.Builder.class); - } - - // Construct using com.google.cloud.redis.v1.ExportInstanceRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (outputConfigBuilder_ == null) { - outputConfig_ = null; - } else { - outputConfig_ = null; - outputConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_ExportInstanceRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.redis.v1.ExportInstanceRequest getDefaultInstanceForType() { - return com.google.cloud.redis.v1.ExportInstanceRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.redis.v1.ExportInstanceRequest build() { - com.google.cloud.redis.v1.ExportInstanceRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.redis.v1.ExportInstanceRequest buildPartial() { - com.google.cloud.redis.v1.ExportInstanceRequest result = - new com.google.cloud.redis.v1.ExportInstanceRequest(this); - result.name_ = name_; - if (outputConfigBuilder_ == null) { - result.outputConfig_ = outputConfig_; - } else { - result.outputConfig_ = outputConfigBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.redis.v1.ExportInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1.ExportInstanceRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.redis.v1.ExportInstanceRequest other) { - if (other == com.google.cloud.redis.v1.ExportInstanceRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasOutputConfig()) { - mergeOutputConfig(other.getOutputConfig()); - } - 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.redis.v1.ExportInstanceRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.redis.v1.ExportInstanceRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. Redis instance resource name using the form:
-     *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-     * where `location_id` refers to a GCP region
-     * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Redis instance resource name using the form:
-     *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-     * where `location_id` refers to a GCP region
-     * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Redis instance resource name using the form:
-     *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-     * where `location_id` refers to a GCP region
-     * 
- * - * string name = 1; - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Redis instance resource name using the form:
-     *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-     * where `location_id` refers to a GCP region
-     * 
- * - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Redis instance resource name using the form:
-     *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-     * where `location_id` refers to a GCP region
-     * 
- * - * string name = 1; - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.cloud.redis.v1.OutputConfig outputConfig_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.OutputConfig, - com.google.cloud.redis.v1.OutputConfig.Builder, - com.google.cloud.redis.v1.OutputConfigOrBuilder> - outputConfigBuilder_; - /** - * - * - *
-     * Required. Specify data to be exported.
-     * 
- * - * .google.cloud.redis.v1.OutputConfig output_config = 3; - */ - public boolean hasOutputConfig() { - return outputConfigBuilder_ != null || outputConfig_ != null; - } - /** - * - * - *
-     * Required. Specify data to be exported.
-     * 
- * - * .google.cloud.redis.v1.OutputConfig output_config = 3; - */ - public com.google.cloud.redis.v1.OutputConfig getOutputConfig() { - if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.redis.v1.OutputConfig.getDefaultInstance() - : outputConfig_; - } else { - return outputConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. Specify data to be exported.
-     * 
- * - * .google.cloud.redis.v1.OutputConfig output_config = 3; - */ - public Builder setOutputConfig(com.google.cloud.redis.v1.OutputConfig value) { - if (outputConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputConfig_ = value; - onChanged(); - } else { - outputConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. Specify data to be exported.
-     * 
- * - * .google.cloud.redis.v1.OutputConfig output_config = 3; - */ - public Builder setOutputConfig(com.google.cloud.redis.v1.OutputConfig.Builder builderForValue) { - if (outputConfigBuilder_ == null) { - outputConfig_ = builderForValue.build(); - onChanged(); - } else { - outputConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. Specify data to be exported.
-     * 
- * - * .google.cloud.redis.v1.OutputConfig output_config = 3; - */ - public Builder mergeOutputConfig(com.google.cloud.redis.v1.OutputConfig value) { - if (outputConfigBuilder_ == null) { - if (outputConfig_ != null) { - outputConfig_ = - com.google.cloud.redis.v1.OutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - outputConfig_ = value; - } - onChanged(); - } else { - outputConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. Specify data to be exported.
-     * 
- * - * .google.cloud.redis.v1.OutputConfig output_config = 3; - */ - public Builder clearOutputConfig() { - if (outputConfigBuilder_ == null) { - outputConfig_ = null; - onChanged(); - } else { - outputConfig_ = null; - outputConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. Specify data to be exported.
-     * 
- * - * .google.cloud.redis.v1.OutputConfig output_config = 3; - */ - public com.google.cloud.redis.v1.OutputConfig.Builder getOutputConfigBuilder() { - - onChanged(); - return getOutputConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. Specify data to be exported.
-     * 
- * - * .google.cloud.redis.v1.OutputConfig output_config = 3; - */ - public com.google.cloud.redis.v1.OutputConfigOrBuilder getOutputConfigOrBuilder() { - if (outputConfigBuilder_ != null) { - return outputConfigBuilder_.getMessageOrBuilder(); - } else { - return outputConfig_ == null - ? com.google.cloud.redis.v1.OutputConfig.getDefaultInstance() - : outputConfig_; - } - } - /** - * - * - *
-     * Required. Specify data to be exported.
-     * 
- * - * .google.cloud.redis.v1.OutputConfig output_config = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.OutputConfig, - com.google.cloud.redis.v1.OutputConfig.Builder, - com.google.cloud.redis.v1.OutputConfigOrBuilder> - getOutputConfigFieldBuilder() { - if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.OutputConfig, - com.google.cloud.redis.v1.OutputConfig.Builder, - com.google.cloud.redis.v1.OutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); - outputConfig_ = null; - } - return outputConfigBuilder_; - } - - @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.redis.v1.ExportInstanceRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.ExportInstanceRequest) - private static final com.google.cloud.redis.v1.ExportInstanceRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.redis.v1.ExportInstanceRequest(); - } - - public static com.google.cloud.redis.v1.ExportInstanceRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExportInstanceRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.redis.v1.ExportInstanceRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequestOrBuilder.java deleted file mode 100644 index 3ef3b5619254..000000000000 --- a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ExportInstanceRequestOrBuilder.java +++ /dev/null @@ -1,66 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/redis/v1/cloud_redis.proto - -package com.google.cloud.redis.v1; - -public interface ExportInstanceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.ExportInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Redis instance resource name using the form:
-   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * where `location_id` refers to a GCP region
-   * 
- * - * string name = 1; - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Redis instance resource name using the form:
-   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * where `location_id` refers to a GCP region
-   * 
- * - * string name = 1; - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. Specify data to be exported.
-   * 
- * - * .google.cloud.redis.v1.OutputConfig output_config = 3; - */ - boolean hasOutputConfig(); - /** - * - * - *
-   * Required. Specify data to be exported.
-   * 
- * - * .google.cloud.redis.v1.OutputConfig output_config = 3; - */ - com.google.cloud.redis.v1.OutputConfig getOutputConfig(); - /** - * - * - *
-   * Required. Specify data to be exported.
-   * 
- * - * .google.cloud.redis.v1.OutputConfig output_config = 3; - */ - com.google.cloud.redis.v1.OutputConfigOrBuilder getOutputConfigOrBuilder(); -} diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsDestination.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsDestination.java deleted file mode 100644 index f80a516d2f47..000000000000 --- a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsDestination.java +++ /dev/null @@ -1,603 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/redis/v1/cloud_redis.proto - -package com.google.cloud.redis.v1; - -/** - * - * - *
- * The GCS location for the output content
- * 
- * - * Protobuf type {@code google.cloud.redis.v1.GcsDestination} - */ -public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.GcsDestination) - GcsDestinationOrBuilder { - private static final long serialVersionUID = 0L; - // Use GcsDestination.newBuilder() to construct. - private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GcsDestination() { - uri_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GcsDestination( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - uri_ = s; - break; - } - default: - { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_GcsDestination_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_GcsDestination_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.GcsDestination.class, - com.google.cloud.redis.v1.GcsDestination.Builder.class); - } - - public static final int URI_FIELD_NUMBER = 1; - private volatile java.lang.Object uri_; - /** - * - * - *
-   * Required. Data destination URI (e.g.
-   * 'gs://my_bucket/my_object'). Existing files will be overwritten.
-   * 
- * - * string uri = 1; - */ - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Data destination URI (e.g.
-   * 'gs://my_bucket/my_object'). Existing files will be overwritten.
-   * 
- * - * string uri = 1; - */ - public com.google.protobuf.ByteString getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.redis.v1.GcsDestination)) { - return super.equals(obj); - } - com.google.cloud.redis.v1.GcsDestination other = (com.google.cloud.redis.v1.GcsDestination) obj; - - boolean result = true; - result = result && getUri().equals(other.getUri()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + URI_FIELD_NUMBER; - hash = (53 * hash) + getUri().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.redis.v1.GcsDestination parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.redis.v1.GcsDestination 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.redis.v1.GcsDestination parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.redis.v1.GcsDestination 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.redis.v1.GcsDestination parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.redis.v1.GcsDestination parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.redis.v1.GcsDestination parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.redis.v1.GcsDestination 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.redis.v1.GcsDestination parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.redis.v1.GcsDestination 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.redis.v1.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.redis.v1.GcsDestination 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.redis.v1.GcsDestination prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * The GCS location for the output content
-   * 
- * - * Protobuf type {@code google.cloud.redis.v1.GcsDestination} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.GcsDestination) - com.google.cloud.redis.v1.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_GcsDestination_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_GcsDestination_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.GcsDestination.class, - com.google.cloud.redis.v1.GcsDestination.Builder.class); - } - - // Construct using com.google.cloud.redis.v1.GcsDestination.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - uri_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_GcsDestination_descriptor; - } - - @java.lang.Override - public com.google.cloud.redis.v1.GcsDestination getDefaultInstanceForType() { - return com.google.cloud.redis.v1.GcsDestination.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.redis.v1.GcsDestination build() { - com.google.cloud.redis.v1.GcsDestination result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.redis.v1.GcsDestination buildPartial() { - com.google.cloud.redis.v1.GcsDestination result = - new com.google.cloud.redis.v1.GcsDestination(this); - result.uri_ = uri_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.redis.v1.GcsDestination) { - return mergeFrom((com.google.cloud.redis.v1.GcsDestination) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.redis.v1.GcsDestination other) { - if (other == com.google.cloud.redis.v1.GcsDestination.getDefaultInstance()) return this; - if (!other.getUri().isEmpty()) { - uri_ = other.uri_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.redis.v1.GcsDestination parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.redis.v1.GcsDestination) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object uri_ = ""; - /** - * - * - *
-     * Required. Data destination URI (e.g.
-     * 'gs://my_bucket/my_object'). Existing files will be overwritten.
-     * 
- * - * string uri = 1; - */ - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Data destination URI (e.g.
-     * 'gs://my_bucket/my_object'). Existing files will be overwritten.
-     * 
- * - * string uri = 1; - */ - public com.google.protobuf.ByteString getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Data destination URI (e.g.
-     * 'gs://my_bucket/my_object'). Existing files will be overwritten.
-     * 
- * - * string uri = 1; - */ - public Builder setUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - uri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Data destination URI (e.g.
-     * 'gs://my_bucket/my_object'). Existing files will be overwritten.
-     * 
- * - * string uri = 1; - */ - public Builder clearUri() { - - uri_ = getDefaultInstance().getUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Data destination URI (e.g.
-     * 'gs://my_bucket/my_object'). Existing files will be overwritten.
-     * 
- * - * string uri = 1; - */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - uri_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.GcsDestination) - } - - // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.GcsDestination) - private static final com.google.cloud.redis.v1.GcsDestination DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.redis.v1.GcsDestination(); - } - - public static com.google.cloud.redis.v1.GcsDestination getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsDestination(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.redis.v1.GcsDestination getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsDestinationOrBuilder.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsDestinationOrBuilder.java deleted file mode 100644 index a8249e373f35..000000000000 --- a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsDestinationOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/redis/v1/cloud_redis.proto - -package com.google.cloud.redis.v1; - -public interface GcsDestinationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.GcsDestination) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Data destination URI (e.g.
-   * 'gs://my_bucket/my_object'). Existing files will be overwritten.
-   * 
- * - * string uri = 1; - */ - java.lang.String getUri(); - /** - * - * - *
-   * Required. Data destination URI (e.g.
-   * 'gs://my_bucket/my_object'). Existing files will be overwritten.
-   * 
- * - * string uri = 1; - */ - com.google.protobuf.ByteString getUriBytes(); -} diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsSource.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsSource.java deleted file mode 100644 index 74231b1293a2..000000000000 --- a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsSource.java +++ /dev/null @@ -1,594 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/redis/v1/cloud_redis.proto - -package com.google.cloud.redis.v1; - -/** - * - * - *
- * The GCS location for the input content
- * 
- * - * Protobuf type {@code google.cloud.redis.v1.GcsSource} - */ -public final class GcsSource extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.GcsSource) - GcsSourceOrBuilder { - private static final long serialVersionUID = 0L; - // Use GcsSource.newBuilder() to construct. - private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GcsSource() { - uri_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GcsSource( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - uri_ = s; - break; - } - default: - { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_GcsSource_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_GcsSource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.GcsSource.class, - com.google.cloud.redis.v1.GcsSource.Builder.class); - } - - public static final int URI_FIELD_NUMBER = 1; - private volatile java.lang.Object uri_; - /** - * - * - *
-   * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
-   * 
- * - * string uri = 1; - */ - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
-   * 
- * - * string uri = 1; - */ - public com.google.protobuf.ByteString getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.redis.v1.GcsSource)) { - return super.equals(obj); - } - com.google.cloud.redis.v1.GcsSource other = (com.google.cloud.redis.v1.GcsSource) obj; - - boolean result = true; - result = result && getUri().equals(other.getUri()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + URI_FIELD_NUMBER; - hash = (53 * hash) + getUri().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.redis.v1.GcsSource parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.redis.v1.GcsSource 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.redis.v1.GcsSource parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.redis.v1.GcsSource 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.redis.v1.GcsSource parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.redis.v1.GcsSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.redis.v1.GcsSource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.redis.v1.GcsSource 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.redis.v1.GcsSource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.redis.v1.GcsSource 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.redis.v1.GcsSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.redis.v1.GcsSource 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.redis.v1.GcsSource prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * The GCS location for the input content
-   * 
- * - * Protobuf type {@code google.cloud.redis.v1.GcsSource} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.GcsSource) - com.google.cloud.redis.v1.GcsSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_GcsSource_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_GcsSource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.GcsSource.class, - com.google.cloud.redis.v1.GcsSource.Builder.class); - } - - // Construct using com.google.cloud.redis.v1.GcsSource.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - uri_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_GcsSource_descriptor; - } - - @java.lang.Override - public com.google.cloud.redis.v1.GcsSource getDefaultInstanceForType() { - return com.google.cloud.redis.v1.GcsSource.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.redis.v1.GcsSource build() { - com.google.cloud.redis.v1.GcsSource result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.redis.v1.GcsSource buildPartial() { - com.google.cloud.redis.v1.GcsSource result = new com.google.cloud.redis.v1.GcsSource(this); - result.uri_ = uri_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.redis.v1.GcsSource) { - return mergeFrom((com.google.cloud.redis.v1.GcsSource) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.redis.v1.GcsSource other) { - if (other == com.google.cloud.redis.v1.GcsSource.getDefaultInstance()) return this; - if (!other.getUri().isEmpty()) { - uri_ = other.uri_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.redis.v1.GcsSource parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.redis.v1.GcsSource) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object uri_ = ""; - /** - * - * - *
-     * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
-     * 
- * - * string uri = 1; - */ - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
-     * 
- * - * string uri = 1; - */ - public com.google.protobuf.ByteString getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
-     * 
- * - * string uri = 1; - */ - public Builder setUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - uri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
-     * 
- * - * string uri = 1; - */ - public Builder clearUri() { - - uri_ = getDefaultInstance().getUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
-     * 
- * - * string uri = 1; - */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - uri_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.GcsSource) - } - - // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.GcsSource) - private static final com.google.cloud.redis.v1.GcsSource DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.redis.v1.GcsSource(); - } - - public static com.google.cloud.redis.v1.GcsSource getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsSource(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.redis.v1.GcsSource getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsSourceOrBuilder.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsSourceOrBuilder.java deleted file mode 100644 index 8c95ee546c0a..000000000000 --- a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GcsSourceOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/redis/v1/cloud_redis.proto - -package com.google.cloud.redis.v1; - -public interface GcsSourceOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.GcsSource) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
-   * 
- * - * string uri = 1; - */ - java.lang.String getUri(); - /** - * - * - *
-   * Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
-   * 
- * - * string uri = 1; - */ - com.google.protobuf.ByteString getUriBytes(); -} diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequest.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequest.java deleted file mode 100644 index 9fe29af9107c..000000000000 --- a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequest.java +++ /dev/null @@ -1,878 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/redis/v1/cloud_redis.proto - -package com.google.cloud.redis.v1; - -/** - * - * - *
- * Request for [Import][google.cloud.redis.v1.CloudRedis.ImportInstance].
- * 
- * - * Protobuf type {@code google.cloud.redis.v1.ImportInstanceRequest} - */ -public final class ImportInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.ImportInstanceRequest) - ImportInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ImportInstanceRequest.newBuilder() to construct. - private ImportInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ImportInstanceRequest() { - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ImportInstanceRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 26: - { - com.google.cloud.redis.v1.InputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); - } - inputConfig_ = - input.readMessage( - com.google.cloud.redis.v1.InputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_ImportInstanceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_ImportInstanceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.ImportInstanceRequest.class, - com.google.cloud.redis.v1.ImportInstanceRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. Redis instance resource name using the form:
-   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * where `location_id` refers to a GCP region
-   * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Redis instance resource name using the form:
-   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * where `location_id` refers to a GCP region
-   * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INPUT_CONFIG_FIELD_NUMBER = 3; - private com.google.cloud.redis.v1.InputConfig inputConfig_; - /** - * - * - *
-   * Required. Specify data to be imported.
-   * 
- * - * .google.cloud.redis.v1.InputConfig input_config = 3; - */ - public boolean hasInputConfig() { - return inputConfig_ != null; - } - /** - * - * - *
-   * Required. Specify data to be imported.
-   * 
- * - * .google.cloud.redis.v1.InputConfig input_config = 3; - */ - public com.google.cloud.redis.v1.InputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.redis.v1.InputConfig.getDefaultInstance() - : inputConfig_; - } - /** - * - * - *
-   * Required. Specify data to be imported.
-   * 
- * - * .google.cloud.redis.v1.InputConfig input_config = 3; - */ - public com.google.cloud.redis.v1.InputConfigOrBuilder getInputConfigOrBuilder() { - return getInputConfig(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (inputConfig_ != null) { - output.writeMessage(3, getInputConfig()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInputConfig()); - } - 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.redis.v1.ImportInstanceRequest)) { - return super.equals(obj); - } - com.google.cloud.redis.v1.ImportInstanceRequest other = - (com.google.cloud.redis.v1.ImportInstanceRequest) obj; - - boolean result = true; - result = result && getName().equals(other.getName()); - result = result && (hasInputConfig() == other.hasInputConfig()); - if (hasInputConfig()) { - result = result && getInputConfig().equals(other.getInputConfig()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasInputConfig()) { - hash = (37 * hash) + INPUT_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getInputConfig().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.redis.v1.ImportInstanceRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.redis.v1.ImportInstanceRequest 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.redis.v1.ImportInstanceRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.redis.v1.ImportInstanceRequest 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.redis.v1.ImportInstanceRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.redis.v1.ImportInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.redis.v1.ImportInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.redis.v1.ImportInstanceRequest 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.redis.v1.ImportInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.redis.v1.ImportInstanceRequest 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.redis.v1.ImportInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.redis.v1.ImportInstanceRequest 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.redis.v1.ImportInstanceRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for [Import][google.cloud.redis.v1.CloudRedis.ImportInstance].
-   * 
- * - * Protobuf type {@code google.cloud.redis.v1.ImportInstanceRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.ImportInstanceRequest) - com.google.cloud.redis.v1.ImportInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_ImportInstanceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_ImportInstanceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.ImportInstanceRequest.class, - com.google.cloud.redis.v1.ImportInstanceRequest.Builder.class); - } - - // Construct using com.google.cloud.redis.v1.ImportInstanceRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (inputConfigBuilder_ == null) { - inputConfig_ = null; - } else { - inputConfig_ = null; - inputConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_ImportInstanceRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.redis.v1.ImportInstanceRequest getDefaultInstanceForType() { - return com.google.cloud.redis.v1.ImportInstanceRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.redis.v1.ImportInstanceRequest build() { - com.google.cloud.redis.v1.ImportInstanceRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.redis.v1.ImportInstanceRequest buildPartial() { - com.google.cloud.redis.v1.ImportInstanceRequest result = - new com.google.cloud.redis.v1.ImportInstanceRequest(this); - result.name_ = name_; - if (inputConfigBuilder_ == null) { - result.inputConfig_ = inputConfig_; - } else { - result.inputConfig_ = inputConfigBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.redis.v1.ImportInstanceRequest) { - return mergeFrom((com.google.cloud.redis.v1.ImportInstanceRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.redis.v1.ImportInstanceRequest other) { - if (other == com.google.cloud.redis.v1.ImportInstanceRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasInputConfig()) { - mergeInputConfig(other.getInputConfig()); - } - 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.redis.v1.ImportInstanceRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.redis.v1.ImportInstanceRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. Redis instance resource name using the form:
-     *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-     * where `location_id` refers to a GCP region
-     * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Redis instance resource name using the form:
-     *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-     * where `location_id` refers to a GCP region
-     * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Redis instance resource name using the form:
-     *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-     * where `location_id` refers to a GCP region
-     * 
- * - * string name = 1; - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Redis instance resource name using the form:
-     *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-     * where `location_id` refers to a GCP region
-     * 
- * - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Redis instance resource name using the form:
-     *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-     * where `location_id` refers to a GCP region
-     * 
- * - * string name = 1; - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.cloud.redis.v1.InputConfig inputConfig_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.InputConfig, - com.google.cloud.redis.v1.InputConfig.Builder, - com.google.cloud.redis.v1.InputConfigOrBuilder> - inputConfigBuilder_; - /** - * - * - *
-     * Required. Specify data to be imported.
-     * 
- * - * .google.cloud.redis.v1.InputConfig input_config = 3; - */ - public boolean hasInputConfig() { - return inputConfigBuilder_ != null || inputConfig_ != null; - } - /** - * - * - *
-     * Required. Specify data to be imported.
-     * 
- * - * .google.cloud.redis.v1.InputConfig input_config = 3; - */ - public com.google.cloud.redis.v1.InputConfig getInputConfig() { - if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.redis.v1.InputConfig.getDefaultInstance() - : inputConfig_; - } else { - return inputConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. Specify data to be imported.
-     * 
- * - * .google.cloud.redis.v1.InputConfig input_config = 3; - */ - public Builder setInputConfig(com.google.cloud.redis.v1.InputConfig value) { - if (inputConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - inputConfig_ = value; - onChanged(); - } else { - inputConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. Specify data to be imported.
-     * 
- * - * .google.cloud.redis.v1.InputConfig input_config = 3; - */ - public Builder setInputConfig(com.google.cloud.redis.v1.InputConfig.Builder builderForValue) { - if (inputConfigBuilder_ == null) { - inputConfig_ = builderForValue.build(); - onChanged(); - } else { - inputConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. Specify data to be imported.
-     * 
- * - * .google.cloud.redis.v1.InputConfig input_config = 3; - */ - public Builder mergeInputConfig(com.google.cloud.redis.v1.InputConfig value) { - if (inputConfigBuilder_ == null) { - if (inputConfig_ != null) { - inputConfig_ = - com.google.cloud.redis.v1.InputConfig.newBuilder(inputConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - inputConfig_ = value; - } - onChanged(); - } else { - inputConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. Specify data to be imported.
-     * 
- * - * .google.cloud.redis.v1.InputConfig input_config = 3; - */ - public Builder clearInputConfig() { - if (inputConfigBuilder_ == null) { - inputConfig_ = null; - onChanged(); - } else { - inputConfig_ = null; - inputConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. Specify data to be imported.
-     * 
- * - * .google.cloud.redis.v1.InputConfig input_config = 3; - */ - public com.google.cloud.redis.v1.InputConfig.Builder getInputConfigBuilder() { - - onChanged(); - return getInputConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. Specify data to be imported.
-     * 
- * - * .google.cloud.redis.v1.InputConfig input_config = 3; - */ - public com.google.cloud.redis.v1.InputConfigOrBuilder getInputConfigOrBuilder() { - if (inputConfigBuilder_ != null) { - return inputConfigBuilder_.getMessageOrBuilder(); - } else { - return inputConfig_ == null - ? com.google.cloud.redis.v1.InputConfig.getDefaultInstance() - : inputConfig_; - } - } - /** - * - * - *
-     * Required. Specify data to be imported.
-     * 
- * - * .google.cloud.redis.v1.InputConfig input_config = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.InputConfig, - com.google.cloud.redis.v1.InputConfig.Builder, - com.google.cloud.redis.v1.InputConfigOrBuilder> - getInputConfigFieldBuilder() { - if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.InputConfig, - com.google.cloud.redis.v1.InputConfig.Builder, - com.google.cloud.redis.v1.InputConfigOrBuilder>( - getInputConfig(), getParentForChildren(), isClean()); - inputConfig_ = null; - } - return inputConfigBuilder_; - } - - @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.redis.v1.ImportInstanceRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.ImportInstanceRequest) - private static final com.google.cloud.redis.v1.ImportInstanceRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.redis.v1.ImportInstanceRequest(); - } - - public static com.google.cloud.redis.v1.ImportInstanceRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportInstanceRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.redis.v1.ImportInstanceRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequestOrBuilder.java deleted file mode 100644 index 52ff79b1d855..000000000000 --- a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ImportInstanceRequestOrBuilder.java +++ /dev/null @@ -1,66 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/redis/v1/cloud_redis.proto - -package com.google.cloud.redis.v1; - -public interface ImportInstanceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.ImportInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Redis instance resource name using the form:
-   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * where `location_id` refers to a GCP region
-   * 
- * - * string name = 1; - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Redis instance resource name using the form:
-   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * where `location_id` refers to a GCP region
-   * 
- * - * string name = 1; - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. Specify data to be imported.
-   * 
- * - * .google.cloud.redis.v1.InputConfig input_config = 3; - */ - boolean hasInputConfig(); - /** - * - * - *
-   * Required. Specify data to be imported.
-   * 
- * - * .google.cloud.redis.v1.InputConfig input_config = 3; - */ - com.google.cloud.redis.v1.InputConfig getInputConfig(); - /** - * - * - *
-   * Required. Specify data to be imported.
-   * 
- * - * .google.cloud.redis.v1.InputConfig input_config = 3; - */ - com.google.cloud.redis.v1.InputConfigOrBuilder getInputConfigOrBuilder(); -} diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InputConfig.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InputConfig.java deleted file mode 100644 index babbcdae0556..000000000000 --- a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InputConfig.java +++ /dev/null @@ -1,789 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/redis/v1/cloud_redis.proto - -package com.google.cloud.redis.v1; - -/** - * - * - *
- * The input content
- * 
- * - * Protobuf type {@code google.cloud.redis.v1.InputConfig} - */ -public final class InputConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.InputConfig) - InputConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use InputConfig.newBuilder() to construct. - private InputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private InputConfig() {} - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private InputConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.redis.v1.GcsSource.Builder subBuilder = null; - if (sourceCase_ == 1) { - subBuilder = ((com.google.cloud.redis.v1.GcsSource) source_).toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.redis.v1.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.redis.v1.GcsSource) source_); - source_ = subBuilder.buildPartial(); - } - sourceCase_ = 1; - break; - } - default: - { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_InputConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_InputConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.InputConfig.class, - com.google.cloud.redis.v1.InputConfig.Builder.class); - } - - private int sourceCase_ = 0; - private java.lang.Object source_; - - public enum SourceCase implements com.google.protobuf.Internal.EnumLite { - GCS_SOURCE(1), - SOURCE_NOT_SET(0); - private final int value; - - private SourceCase(int value) { - this.value = value; - } - /** @deprecated Use {@link #forNumber(int)} instead. */ - @java.lang.Deprecated - public static SourceCase valueOf(int value) { - return forNumber(value); - } - - public static SourceCase forNumber(int value) { - switch (value) { - case 1: - return GCS_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); - } - - public static final int GCS_SOURCE_FIELD_NUMBER = 1; - /** - * - * - *
-   * Google Cloud Storage location where input content is located.
-   * 
- * - * .google.cloud.redis.v1.GcsSource gcs_source = 1; - */ - public boolean hasGcsSource() { - return sourceCase_ == 1; - } - /** - * - * - *
-   * Google Cloud Storage location where input content is located.
-   * 
- * - * .google.cloud.redis.v1.GcsSource gcs_source = 1; - */ - public com.google.cloud.redis.v1.GcsSource getGcsSource() { - if (sourceCase_ == 1) { - return (com.google.cloud.redis.v1.GcsSource) source_; - } - return com.google.cloud.redis.v1.GcsSource.getDefaultInstance(); - } - /** - * - * - *
-   * Google Cloud Storage location where input content is located.
-   * 
- * - * .google.cloud.redis.v1.GcsSource gcs_source = 1; - */ - public com.google.cloud.redis.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { - if (sourceCase_ == 1) { - return (com.google.cloud.redis.v1.GcsSource) source_; - } - return com.google.cloud.redis.v1.GcsSource.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (sourceCase_ == 1) { - output.writeMessage(1, (com.google.cloud.redis.v1.GcsSource) source_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (sourceCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.redis.v1.GcsSource) source_); - } - 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.redis.v1.InputConfig)) { - return super.equals(obj); - } - com.google.cloud.redis.v1.InputConfig other = (com.google.cloud.redis.v1.InputConfig) obj; - - boolean result = true; - result = result && getSourceCase().equals(other.getSourceCase()); - if (!result) return false; - switch (sourceCase_) { - case 1: - result = result && getGcsSource().equals(other.getGcsSource()); - break; - case 0: - default: - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (sourceCase_) { - case 1: - hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; - hash = (53 * hash) + getGcsSource().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.redis.v1.InputConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.redis.v1.InputConfig 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.redis.v1.InputConfig parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.redis.v1.InputConfig 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.redis.v1.InputConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.redis.v1.InputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.redis.v1.InputConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.redis.v1.InputConfig 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.redis.v1.InputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.redis.v1.InputConfig 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.redis.v1.InputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.redis.v1.InputConfig 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.redis.v1.InputConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * The input content
-   * 
- * - * Protobuf type {@code google.cloud.redis.v1.InputConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.InputConfig) - com.google.cloud.redis.v1.InputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_InputConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_InputConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.InputConfig.class, - com.google.cloud.redis.v1.InputConfig.Builder.class); - } - - // Construct using com.google.cloud.redis.v1.InputConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - sourceCase_ = 0; - source_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_InputConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.redis.v1.InputConfig getDefaultInstanceForType() { - return com.google.cloud.redis.v1.InputConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.redis.v1.InputConfig build() { - com.google.cloud.redis.v1.InputConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.redis.v1.InputConfig buildPartial() { - com.google.cloud.redis.v1.InputConfig result = - new com.google.cloud.redis.v1.InputConfig(this); - if (sourceCase_ == 1) { - if (gcsSourceBuilder_ == null) { - result.source_ = source_; - } else { - result.source_ = gcsSourceBuilder_.build(); - } - } - result.sourceCase_ = sourceCase_; - 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.redis.v1.InputConfig) { - return mergeFrom((com.google.cloud.redis.v1.InputConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.redis.v1.InputConfig other) { - if (other == com.google.cloud.redis.v1.InputConfig.getDefaultInstance()) return this; - switch (other.getSourceCase()) { - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.redis.v1.InputConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.redis.v1.InputConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int sourceCase_ = 0; - private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); - } - - public Builder clearSource() { - sourceCase_ = 0; - source_ = null; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.GcsSource, - com.google.cloud.redis.v1.GcsSource.Builder, - com.google.cloud.redis.v1.GcsSourceOrBuilder> - gcsSourceBuilder_; - /** - * - * - *
-     * Google Cloud Storage location where input content is located.
-     * 
- * - * .google.cloud.redis.v1.GcsSource gcs_source = 1; - */ - public boolean hasGcsSource() { - return sourceCase_ == 1; - } - /** - * - * - *
-     * Google Cloud Storage location where input content is located.
-     * 
- * - * .google.cloud.redis.v1.GcsSource gcs_source = 1; - */ - public com.google.cloud.redis.v1.GcsSource getGcsSource() { - if (gcsSourceBuilder_ == null) { - if (sourceCase_ == 1) { - return (com.google.cloud.redis.v1.GcsSource) source_; - } - return com.google.cloud.redis.v1.GcsSource.getDefaultInstance(); - } else { - if (sourceCase_ == 1) { - return gcsSourceBuilder_.getMessage(); - } - return com.google.cloud.redis.v1.GcsSource.getDefaultInstance(); - } - } - /** - * - * - *
-     * Google Cloud Storage location where input content is located.
-     * 
- * - * .google.cloud.redis.v1.GcsSource gcs_source = 1; - */ - public Builder setGcsSource(com.google.cloud.redis.v1.GcsSource value) { - if (gcsSourceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - source_ = value; - onChanged(); - } else { - gcsSourceBuilder_.setMessage(value); - } - sourceCase_ = 1; - return this; - } - /** - * - * - *
-     * Google Cloud Storage location where input content is located.
-     * 
- * - * .google.cloud.redis.v1.GcsSource gcs_source = 1; - */ - public Builder setGcsSource(com.google.cloud.redis.v1.GcsSource.Builder builderForValue) { - if (gcsSourceBuilder_ == null) { - source_ = builderForValue.build(); - onChanged(); - } else { - gcsSourceBuilder_.setMessage(builderForValue.build()); - } - sourceCase_ = 1; - return this; - } - /** - * - * - *
-     * Google Cloud Storage location where input content is located.
-     * 
- * - * .google.cloud.redis.v1.GcsSource gcs_source = 1; - */ - public Builder mergeGcsSource(com.google.cloud.redis.v1.GcsSource value) { - if (gcsSourceBuilder_ == null) { - if (sourceCase_ == 1 - && source_ != com.google.cloud.redis.v1.GcsSource.getDefaultInstance()) { - source_ = - com.google.cloud.redis.v1.GcsSource.newBuilder( - (com.google.cloud.redis.v1.GcsSource) source_) - .mergeFrom(value) - .buildPartial(); - } else { - source_ = value; - } - onChanged(); - } else { - if (sourceCase_ == 1) { - gcsSourceBuilder_.mergeFrom(value); - } - gcsSourceBuilder_.setMessage(value); - } - sourceCase_ = 1; - return this; - } - /** - * - * - *
-     * Google Cloud Storage location where input content is located.
-     * 
- * - * .google.cloud.redis.v1.GcsSource gcs_source = 1; - */ - public Builder clearGcsSource() { - if (gcsSourceBuilder_ == null) { - if (sourceCase_ == 1) { - sourceCase_ = 0; - source_ = null; - onChanged(); - } - } else { - if (sourceCase_ == 1) { - sourceCase_ = 0; - source_ = null; - } - gcsSourceBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Google Cloud Storage location where input content is located.
-     * 
- * - * .google.cloud.redis.v1.GcsSource gcs_source = 1; - */ - public com.google.cloud.redis.v1.GcsSource.Builder getGcsSourceBuilder() { - return getGcsSourceFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Google Cloud Storage location where input content is located.
-     * 
- * - * .google.cloud.redis.v1.GcsSource gcs_source = 1; - */ - public com.google.cloud.redis.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { - if ((sourceCase_ == 1) && (gcsSourceBuilder_ != null)) { - return gcsSourceBuilder_.getMessageOrBuilder(); - } else { - if (sourceCase_ == 1) { - return (com.google.cloud.redis.v1.GcsSource) source_; - } - return com.google.cloud.redis.v1.GcsSource.getDefaultInstance(); - } - } - /** - * - * - *
-     * Google Cloud Storage location where input content is located.
-     * 
- * - * .google.cloud.redis.v1.GcsSource gcs_source = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.GcsSource, - com.google.cloud.redis.v1.GcsSource.Builder, - com.google.cloud.redis.v1.GcsSourceOrBuilder> - getGcsSourceFieldBuilder() { - if (gcsSourceBuilder_ == null) { - if (!(sourceCase_ == 1)) { - source_ = com.google.cloud.redis.v1.GcsSource.getDefaultInstance(); - } - gcsSourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.GcsSource, - com.google.cloud.redis.v1.GcsSource.Builder, - com.google.cloud.redis.v1.GcsSourceOrBuilder>( - (com.google.cloud.redis.v1.GcsSource) source_, getParentForChildren(), isClean()); - source_ = null; - } - sourceCase_ = 1; - onChanged(); - ; - return gcsSourceBuilder_; - } - - @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.redis.v1.InputConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.InputConfig) - private static final com.google.cloud.redis.v1.InputConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.redis.v1.InputConfig(); - } - - public static com.google.cloud.redis.v1.InputConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InputConfig(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.redis.v1.InputConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InputConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InputConfigOrBuilder.java deleted file mode 100644 index bd01ec598664..000000000000 --- a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InputConfigOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/redis/v1/cloud_redis.proto - -package com.google.cloud.redis.v1; - -public interface InputConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.InputConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Google Cloud Storage location where input content is located.
-   * 
- * - * .google.cloud.redis.v1.GcsSource gcs_source = 1; - */ - boolean hasGcsSource(); - /** - * - * - *
-   * Google Cloud Storage location where input content is located.
-   * 
- * - * .google.cloud.redis.v1.GcsSource gcs_source = 1; - */ - com.google.cloud.redis.v1.GcsSource getGcsSource(); - /** - * - * - *
-   * Google Cloud Storage location where input content is located.
-   * 
- * - * .google.cloud.redis.v1.GcsSource gcs_source = 1; - */ - com.google.cloud.redis.v1.GcsSourceOrBuilder getGcsSourceOrBuilder(); - - public com.google.cloud.redis.v1.InputConfig.SourceCase getSourceCase(); -} diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/Instance.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/Instance.java index 0b4f0953f232..13bbe88a86c5 100644 --- a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/Instance.java +++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/Instance.java @@ -37,7 +37,6 @@ private Instance() { tier_ = 0; memorySizeGb_ = 0; authorizedNetwork_ = ""; - persistenceIamIdentity_ = ""; } @java.lang.Override @@ -201,13 +200,6 @@ private Instance( authorizedNetwork_ = s; break; } - case 170: - { - java.lang.String s = input.readStringRequireUtf8(); - - persistenceIamIdentity_ = s; - break; - } default: { if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { @@ -337,16 +329,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * MAINTENANCE = 6; */ MAINTENANCE(6), - /** - * - * - *
-     * Redis instance is importing data (availability may be affected).
-     * 
- * - * IMPORTING = 8; - */ - IMPORTING(8), /** * * @@ -432,16 +414,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * MAINTENANCE = 6; */ public static final int MAINTENANCE_VALUE = 6; - /** - * - * - *
-     * Redis instance is importing data (availability may be affected).
-     * 
- * - * IMPORTING = 8; - */ - public static final int IMPORTING_VALUE = 8; /** * * @@ -483,8 +455,6 @@ public static State forNumber(int value) { return REPAIRING; case 6: return MAINTENANCE; - case 8: - return IMPORTING; case 9: return FAILING_OVER; default: @@ -982,9 +952,7 @@ public com.google.protobuf.ByteString getAlternativeLocationIdBytes() { * Optional. The version of Redis software. * If not provided, latest supported version will be used. Updating the * version will perform an upgrade/downgrade to the new version. Currently, - * the supported values are: - * * `REDIS_4_0` for Redis 4.0 compatibility - * * `REDIS_3_2` for Redis 3.2 compatibility + * the supported values are `REDIS_3_2` for Redis 3.2. * * * string redis_version = 7; @@ -1007,9 +975,7 @@ public java.lang.String getRedisVersion() { * Optional. The version of Redis software. * If not provided, latest supported version will be used. Updating the * version will perform an upgrade/downgrade to the new version. Currently, - * the supported values are: - * * `REDIS_4_0` for Redis 4.0 compatibility - * * `REDIS_3_2` for Redis 3.2 compatibility + * the supported values are `REDIS_3_2` for Redis 3.2. * * * string redis_version = 7; @@ -1334,13 +1300,8 @@ public int getRedisConfigsCount() { * Optional. Redis configuration parameters, according to * http://redis.io/topics/config. Currently, the only supported parameters * are: - * Redis 3.2 and above: - * * maxmemory-policy - * * notify-keyspace-events - * Redis 4.0 and above: - * * activedefrag - * * lfu-log-factor - * * lfu-decay-time + * * maxmemory-policy + * * notify-keyspace-events * * * map<string, string> redis_configs = 16; @@ -1363,13 +1324,8 @@ public java.util.Map getRedisConfigs() { * Optional. Redis configuration parameters, according to * http://redis.io/topics/config. Currently, the only supported parameters * are: - * Redis 3.2 and above: - * * maxmemory-policy - * * notify-keyspace-events - * Redis 4.0 and above: - * * activedefrag - * * lfu-log-factor - * * lfu-decay-time + * * maxmemory-policy + * * notify-keyspace-events * * * map<string, string> redis_configs = 16; @@ -1384,13 +1340,8 @@ public java.util.Map getRedisConfigsMap() { * Optional. Redis configuration parameters, according to * http://redis.io/topics/config. Currently, the only supported parameters * are: - * Redis 3.2 and above: - * * maxmemory-policy - * * notify-keyspace-events - * Redis 4.0 and above: - * * activedefrag - * * lfu-log-factor - * * lfu-decay-time + * * maxmemory-policy + * * notify-keyspace-events * * * map<string, string> redis_configs = 16; @@ -1410,13 +1361,8 @@ public java.lang.String getRedisConfigsOrDefault( * Optional. Redis configuration parameters, according to * http://redis.io/topics/config. Currently, the only supported parameters * are: - * Redis 3.2 and above: - * * maxmemory-policy - * * notify-keyspace-events - * Redis 4.0 and above: - * * activedefrag - * * lfu-log-factor - * * lfu-decay-time + * * maxmemory-policy + * * notify-keyspace-events * * * map<string, string> redis_configs = 16; @@ -1526,57 +1472,6 @@ public com.google.protobuf.ByteString getAuthorizedNetworkBytes() { } } - public static final int PERSISTENCE_IAM_IDENTITY_FIELD_NUMBER = 21; - private volatile java.lang.Object persistenceIamIdentity_; - /** - * - * - *
-   * Output only. Cloud IAM identity used by import / export operations to
-   * transfer data to/from Cloud Storage. Format is
-   * "serviceAccount:<service_account_email>". The value may change over time
-   * for a given instance so should be checked before each import/export
-   * operation.
-   * 
- * - * string persistence_iam_identity = 21; - */ - public java.lang.String getPersistenceIamIdentity() { - java.lang.Object ref = persistenceIamIdentity_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - persistenceIamIdentity_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. Cloud IAM identity used by import / export operations to
-   * transfer data to/from Cloud Storage. Format is
-   * "serviceAccount:<service_account_email>". The value may change over time
-   * for a given instance so should be checked before each import/export
-   * operation.
-   * 
- * - * string persistence_iam_identity = 21; - */ - public com.google.protobuf.ByteString getPersistenceIamIdentityBytes() { - java.lang.Object ref = persistenceIamIdentity_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - persistenceIamIdentity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1640,9 +1535,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getAuthorizedNetworkBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 20, authorizedNetwork_); } - if (!getPersistenceIamIdentityBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 21, persistenceIamIdentity_); - } unknownFields.writeTo(output); } @@ -1717,9 +1609,6 @@ public int getSerializedSize() { if (!getAuthorizedNetworkBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, authorizedNetwork_); } - if (!getPersistenceIamIdentityBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, persistenceIamIdentity_); - } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1756,7 +1645,6 @@ public boolean equals(final java.lang.Object obj) { result = result && tier_ == other.tier_; result = result && (getMemorySizeGb() == other.getMemorySizeGb()); result = result && getAuthorizedNetwork().equals(other.getAuthorizedNetwork()); - result = result && getPersistenceIamIdentity().equals(other.getPersistenceIamIdentity()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -1808,8 +1696,6 @@ public int hashCode() { hash = (53 * hash) + getMemorySizeGb(); hash = (37 * hash) + AUTHORIZED_NETWORK_FIELD_NUMBER; hash = (53 * hash) + getAuthorizedNetwork().hashCode(); - hash = (37 * hash) + PERSISTENCE_IAM_IDENTITY_FIELD_NUMBER; - hash = (53 * hash) + getPersistenceIamIdentity().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -2014,8 +1900,6 @@ public Builder clear() { authorizedNetwork_ = ""; - persistenceIamIdentity_ = ""; - return this; } @@ -2067,7 +1951,6 @@ public com.google.cloud.redis.v1.Instance buildPartial() { result.tier_ = tier_; result.memorySizeGb_ = memorySizeGb_; result.authorizedNetwork_ = authorizedNetwork_; - result.persistenceIamIdentity_ = persistenceIamIdentity_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -2175,10 +2058,6 @@ public Builder mergeFrom(com.google.cloud.redis.v1.Instance other) { authorizedNetwork_ = other.authorizedNetwork_; onChanged(); } - if (!other.getPersistenceIamIdentity().isEmpty()) { - persistenceIamIdentity_ = other.persistenceIamIdentity_; - onChanged(); - } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2811,9 +2690,7 @@ public Builder setAlternativeLocationIdBytes(com.google.protobuf.ByteString valu * Optional. The version of Redis software. * If not provided, latest supported version will be used. Updating the * version will perform an upgrade/downgrade to the new version. Currently, - * the supported values are: - * * `REDIS_4_0` for Redis 4.0 compatibility - * * `REDIS_3_2` for Redis 3.2 compatibility + * the supported values are `REDIS_3_2` for Redis 3.2. * * * string redis_version = 7; @@ -2836,9 +2713,7 @@ public java.lang.String getRedisVersion() { * Optional. The version of Redis software. * If not provided, latest supported version will be used. Updating the * version will perform an upgrade/downgrade to the new version. Currently, - * the supported values are: - * * `REDIS_4_0` for Redis 4.0 compatibility - * * `REDIS_3_2` for Redis 3.2 compatibility + * the supported values are `REDIS_3_2` for Redis 3.2. * * * string redis_version = 7; @@ -2861,9 +2736,7 @@ public com.google.protobuf.ByteString getRedisVersionBytes() { * Optional. The version of Redis software. * If not provided, latest supported version will be used. Updating the * version will perform an upgrade/downgrade to the new version. Currently, - * the supported values are: - * * `REDIS_4_0` for Redis 4.0 compatibility - * * `REDIS_3_2` for Redis 3.2 compatibility + * the supported values are `REDIS_3_2` for Redis 3.2. * * * string redis_version = 7; @@ -2884,9 +2757,7 @@ public Builder setRedisVersion(java.lang.String value) { * Optional. The version of Redis software. * If not provided, latest supported version will be used. Updating the * version will perform an upgrade/downgrade to the new version. Currently, - * the supported values are: - * * `REDIS_4_0` for Redis 4.0 compatibility - * * `REDIS_3_2` for Redis 3.2 compatibility + * the supported values are `REDIS_3_2` for Redis 3.2. * * * string redis_version = 7; @@ -2904,9 +2775,7 @@ public Builder clearRedisVersion() { * Optional. The version of Redis software. * If not provided, latest supported version will be used. Updating the * version will perform an upgrade/downgrade to the new version. Currently, - * the supported values are: - * * `REDIS_4_0` for Redis 4.0 compatibility - * * `REDIS_3_2` for Redis 3.2 compatibility + * the supported values are `REDIS_3_2` for Redis 3.2. * * * string redis_version = 7; @@ -3677,13 +3546,8 @@ public int getRedisConfigsCount() { * Optional. Redis configuration parameters, according to * http://redis.io/topics/config. Currently, the only supported parameters * are: - * Redis 3.2 and above: - * * maxmemory-policy - * * notify-keyspace-events - * Redis 4.0 and above: - * * activedefrag - * * lfu-log-factor - * * lfu-decay-time + * * maxmemory-policy + * * notify-keyspace-events * * * map<string, string> redis_configs = 16; @@ -3706,13 +3570,8 @@ public java.util.Map getRedisConfigs() { * Optional. Redis configuration parameters, according to * http://redis.io/topics/config. Currently, the only supported parameters * are: - * Redis 3.2 and above: - * * maxmemory-policy - * * notify-keyspace-events - * Redis 4.0 and above: - * * activedefrag - * * lfu-log-factor - * * lfu-decay-time + * * maxmemory-policy + * * notify-keyspace-events * * * map<string, string> redis_configs = 16; @@ -3727,13 +3586,8 @@ public java.util.Map getRedisConfigsMap() { * Optional. Redis configuration parameters, according to * http://redis.io/topics/config. Currently, the only supported parameters * are: - * Redis 3.2 and above: - * * maxmemory-policy - * * notify-keyspace-events - * Redis 4.0 and above: - * * activedefrag - * * lfu-log-factor - * * lfu-decay-time + * * maxmemory-policy + * * notify-keyspace-events * * * map<string, string> redis_configs = 16; @@ -3753,13 +3607,8 @@ public java.lang.String getRedisConfigsOrDefault( * Optional. Redis configuration parameters, according to * http://redis.io/topics/config. Currently, the only supported parameters * are: - * Redis 3.2 and above: - * * maxmemory-policy - * * notify-keyspace-events - * Redis 4.0 and above: - * * activedefrag - * * lfu-log-factor - * * lfu-decay-time + * * maxmemory-policy + * * notify-keyspace-events * * * map<string, string> redis_configs = 16; @@ -3786,13 +3635,8 @@ public Builder clearRedisConfigs() { * Optional. Redis configuration parameters, according to * http://redis.io/topics/config. Currently, the only supported parameters * are: - * Redis 3.2 and above: - * * maxmemory-policy - * * notify-keyspace-events - * Redis 4.0 and above: - * * activedefrag - * * lfu-log-factor - * * lfu-decay-time + * * maxmemory-policy + * * notify-keyspace-events * * * map<string, string> redis_configs = 16; @@ -3816,13 +3660,8 @@ public java.util.Map getMutableRedisConfigs( * Optional. Redis configuration parameters, according to * http://redis.io/topics/config. Currently, the only supported parameters * are: - * Redis 3.2 and above: - * * maxmemory-policy - * * notify-keyspace-events - * Redis 4.0 and above: - * * activedefrag - * * lfu-log-factor - * * lfu-decay-time + * * maxmemory-policy + * * notify-keyspace-events * * * map<string, string> redis_configs = 16; @@ -3844,13 +3683,8 @@ public Builder putRedisConfigs(java.lang.String key, java.lang.String value) { * Optional. Redis configuration parameters, according to * http://redis.io/topics/config. Currently, the only supported parameters * are: - * Redis 3.2 and above: - * * maxmemory-policy - * * notify-keyspace-events - * Redis 4.0 and above: - * * activedefrag - * * lfu-log-factor - * * lfu-decay-time + * * maxmemory-policy + * * notify-keyspace-events * * * map<string, string> redis_configs = 16; @@ -4089,120 +3923,6 @@ public Builder setAuthorizedNetworkBytes(com.google.protobuf.ByteString value) { return this; } - private java.lang.Object persistenceIamIdentity_ = ""; - /** - * - * - *
-     * Output only. Cloud IAM identity used by import / export operations to
-     * transfer data to/from Cloud Storage. Format is
-     * "serviceAccount:<service_account_email>". The value may change over time
-     * for a given instance so should be checked before each import/export
-     * operation.
-     * 
- * - * string persistence_iam_identity = 21; - */ - public java.lang.String getPersistenceIamIdentity() { - java.lang.Object ref = persistenceIamIdentity_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - persistenceIamIdentity_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. Cloud IAM identity used by import / export operations to
-     * transfer data to/from Cloud Storage. Format is
-     * "serviceAccount:<service_account_email>". The value may change over time
-     * for a given instance so should be checked before each import/export
-     * operation.
-     * 
- * - * string persistence_iam_identity = 21; - */ - public com.google.protobuf.ByteString getPersistenceIamIdentityBytes() { - java.lang.Object ref = persistenceIamIdentity_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - persistenceIamIdentity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. Cloud IAM identity used by import / export operations to
-     * transfer data to/from Cloud Storage. Format is
-     * "serviceAccount:<service_account_email>". The value may change over time
-     * for a given instance so should be checked before each import/export
-     * operation.
-     * 
- * - * string persistence_iam_identity = 21; - */ - public Builder setPersistenceIamIdentity(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - persistenceIamIdentity_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Cloud IAM identity used by import / export operations to
-     * transfer data to/from Cloud Storage. Format is
-     * "serviceAccount:<service_account_email>". The value may change over time
-     * for a given instance so should be checked before each import/export
-     * operation.
-     * 
- * - * string persistence_iam_identity = 21; - */ - public Builder clearPersistenceIamIdentity() { - - persistenceIamIdentity_ = getDefaultInstance().getPersistenceIamIdentity(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Cloud IAM identity used by import / export operations to
-     * transfer data to/from Cloud Storage. Format is
-     * "serviceAccount:<service_account_email>". The value may change over time
-     * for a given instance so should be checked before each import/export
-     * operation.
-     * 
- * - * string persistence_iam_identity = 21; - */ - public Builder setPersistenceIamIdentityBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - persistenceIamIdentity_ = value; - onChanged(); - return this; - } - @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceOrBuilder.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceOrBuilder.java index d9ac287a1e3e..9cfbb6a4abc6 100644 --- a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceOrBuilder.java @@ -179,9 +179,7 @@ public interface InstanceOrBuilder * Optional. The version of Redis software. * If not provided, latest supported version will be used. Updating the * version will perform an upgrade/downgrade to the new version. Currently, - * the supported values are: - * * `REDIS_4_0` for Redis 4.0 compatibility - * * `REDIS_3_2` for Redis 3.2 compatibility + * the supported values are `REDIS_3_2` for Redis 3.2. * * * string redis_version = 7; @@ -194,9 +192,7 @@ public interface InstanceOrBuilder * Optional. The version of Redis software. * If not provided, latest supported version will be used. Updating the * version will perform an upgrade/downgrade to the new version. Currently, - * the supported values are: - * * `REDIS_4_0` for Redis 4.0 compatibility - * * `REDIS_3_2` for Redis 3.2 compatibility + * the supported values are `REDIS_3_2` for Redis 3.2. * * * string redis_version = 7; @@ -375,13 +371,8 @@ public interface InstanceOrBuilder * Optional. Redis configuration parameters, according to * http://redis.io/topics/config. Currently, the only supported parameters * are: - * Redis 3.2 and above: - * * maxmemory-policy - * * notify-keyspace-events - * Redis 4.0 and above: - * * activedefrag - * * lfu-log-factor - * * lfu-decay-time + * * maxmemory-policy + * * notify-keyspace-events * * * map<string, string> redis_configs = 16; @@ -394,13 +385,8 @@ public interface InstanceOrBuilder * Optional. Redis configuration parameters, according to * http://redis.io/topics/config. Currently, the only supported parameters * are: - * Redis 3.2 and above: - * * maxmemory-policy - * * notify-keyspace-events - * Redis 4.0 and above: - * * activedefrag - * * lfu-log-factor - * * lfu-decay-time + * * maxmemory-policy + * * notify-keyspace-events * * * map<string, string> redis_configs = 16; @@ -416,13 +402,8 @@ public interface InstanceOrBuilder * Optional. Redis configuration parameters, according to * http://redis.io/topics/config. Currently, the only supported parameters * are: - * Redis 3.2 and above: - * * maxmemory-policy - * * notify-keyspace-events - * Redis 4.0 and above: - * * activedefrag - * * lfu-log-factor - * * lfu-decay-time + * * maxmemory-policy + * * notify-keyspace-events * * * map<string, string> redis_configs = 16; @@ -435,13 +416,8 @@ public interface InstanceOrBuilder * Optional. Redis configuration parameters, according to * http://redis.io/topics/config. Currently, the only supported parameters * are: - * Redis 3.2 and above: - * * maxmemory-policy - * * notify-keyspace-events - * Redis 4.0 and above: - * * activedefrag - * * lfu-log-factor - * * lfu-decay-time + * * maxmemory-policy + * * notify-keyspace-events * * * map<string, string> redis_configs = 16; @@ -454,13 +430,8 @@ public interface InstanceOrBuilder * Optional. Redis configuration parameters, according to * http://redis.io/topics/config. Currently, the only supported parameters * are: - * Redis 3.2 and above: - * * maxmemory-policy - * * notify-keyspace-events - * Redis 4.0 and above: - * * activedefrag - * * lfu-log-factor - * * lfu-decay-time + * * maxmemory-policy + * * notify-keyspace-events * * * map<string, string> redis_configs = 16; @@ -525,33 +496,4 @@ public interface InstanceOrBuilder * string authorized_network = 20; */ com.google.protobuf.ByteString getAuthorizedNetworkBytes(); - - /** - * - * - *
-   * Output only. Cloud IAM identity used by import / export operations to
-   * transfer data to/from Cloud Storage. Format is
-   * "serviceAccount:<service_account_email>". The value may change over time
-   * for a given instance so should be checked before each import/export
-   * operation.
-   * 
- * - * string persistence_iam_identity = 21; - */ - java.lang.String getPersistenceIamIdentity(); - /** - * - * - *
-   * Output only. Cloud IAM identity used by import / export operations to
-   * transfer data to/from Cloud Storage. Format is
-   * "serviceAccount:<service_account_email>". The value may change over time
-   * for a given instance so should be checked before each import/export
-   * operation.
-   * 
- * - * string persistence_iam_identity = 21; - */ - com.google.protobuf.ByteString getPersistenceIamIdentityBytes(); } diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OutputConfig.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OutputConfig.java deleted file mode 100644 index 22e35419f1ee..000000000000 --- a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OutputConfig.java +++ /dev/null @@ -1,793 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/redis/v1/cloud_redis.proto - -package com.google.cloud.redis.v1; - -/** - * - * - *
- * The output content
- * 
- * - * Protobuf type {@code google.cloud.redis.v1.OutputConfig} - */ -public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.OutputConfig) - OutputConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use OutputConfig.newBuilder() to construct. - private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private OutputConfig() {} - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private OutputConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.redis.v1.GcsDestination.Builder subBuilder = null; - if (destinationCase_ == 1) { - subBuilder = ((com.google.cloud.redis.v1.GcsDestination) destination_).toBuilder(); - } - destination_ = - input.readMessage( - com.google.cloud.redis.v1.GcsDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.redis.v1.GcsDestination) destination_); - destination_ = subBuilder.buildPartial(); - } - destinationCase_ = 1; - break; - } - default: - { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_OutputConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_OutputConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.OutputConfig.class, - com.google.cloud.redis.v1.OutputConfig.Builder.class); - } - - private int destinationCase_ = 0; - private java.lang.Object destination_; - - public enum DestinationCase implements com.google.protobuf.Internal.EnumLite { - GCS_DESTINATION(1), - DESTINATION_NOT_SET(0); - private final int value; - - private DestinationCase(int value) { - this.value = value; - } - /** @deprecated Use {@link #forNumber(int)} instead. */ - @java.lang.Deprecated - public static DestinationCase valueOf(int value) { - return forNumber(value); - } - - public static DestinationCase forNumber(int value) { - switch (value) { - case 1: - return GCS_DESTINATION; - case 0: - return DESTINATION_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); - } - - public static final int GCS_DESTINATION_FIELD_NUMBER = 1; - /** - * - * - *
-   * Google Cloud Storage destination for output content.
-   * 
- * - * .google.cloud.redis.v1.GcsDestination gcs_destination = 1; - */ - public boolean hasGcsDestination() { - return destinationCase_ == 1; - } - /** - * - * - *
-   * Google Cloud Storage destination for output content.
-   * 
- * - * .google.cloud.redis.v1.GcsDestination gcs_destination = 1; - */ - public com.google.cloud.redis.v1.GcsDestination getGcsDestination() { - if (destinationCase_ == 1) { - return (com.google.cloud.redis.v1.GcsDestination) destination_; - } - return com.google.cloud.redis.v1.GcsDestination.getDefaultInstance(); - } - /** - * - * - *
-   * Google Cloud Storage destination for output content.
-   * 
- * - * .google.cloud.redis.v1.GcsDestination gcs_destination = 1; - */ - public com.google.cloud.redis.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { - if (destinationCase_ == 1) { - return (com.google.cloud.redis.v1.GcsDestination) destination_; - } - return com.google.cloud.redis.v1.GcsDestination.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (destinationCase_ == 1) { - output.writeMessage(1, (com.google.cloud.redis.v1.GcsDestination) destination_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (destinationCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.redis.v1.GcsDestination) destination_); - } - 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.redis.v1.OutputConfig)) { - return super.equals(obj); - } - com.google.cloud.redis.v1.OutputConfig other = (com.google.cloud.redis.v1.OutputConfig) obj; - - boolean result = true; - result = result && getDestinationCase().equals(other.getDestinationCase()); - if (!result) return false; - switch (destinationCase_) { - case 1: - result = result && getGcsDestination().equals(other.getGcsDestination()); - break; - case 0: - default: - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (destinationCase_) { - case 1: - hash = (37 * hash) + GCS_DESTINATION_FIELD_NUMBER; - hash = (53 * hash) + getGcsDestination().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.redis.v1.OutputConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.redis.v1.OutputConfig 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.redis.v1.OutputConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.redis.v1.OutputConfig 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.redis.v1.OutputConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.redis.v1.OutputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.redis.v1.OutputConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.redis.v1.OutputConfig 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.redis.v1.OutputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.redis.v1.OutputConfig 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.redis.v1.OutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.redis.v1.OutputConfig 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.redis.v1.OutputConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * The output content
-   * 
- * - * Protobuf type {@code google.cloud.redis.v1.OutputConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.OutputConfig) - com.google.cloud.redis.v1.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_OutputConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_OutputConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.redis.v1.OutputConfig.class, - com.google.cloud.redis.v1.OutputConfig.Builder.class); - } - - // Construct using com.google.cloud.redis.v1.OutputConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - destinationCase_ = 0; - destination_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.v1.CloudRedisServiceV1Proto - .internal_static_google_cloud_redis_v1_OutputConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.redis.v1.OutputConfig getDefaultInstanceForType() { - return com.google.cloud.redis.v1.OutputConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.redis.v1.OutputConfig build() { - com.google.cloud.redis.v1.OutputConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.redis.v1.OutputConfig buildPartial() { - com.google.cloud.redis.v1.OutputConfig result = - new com.google.cloud.redis.v1.OutputConfig(this); - if (destinationCase_ == 1) { - if (gcsDestinationBuilder_ == null) { - result.destination_ = destination_; - } else { - result.destination_ = gcsDestinationBuilder_.build(); - } - } - result.destinationCase_ = destinationCase_; - 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.redis.v1.OutputConfig) { - return mergeFrom((com.google.cloud.redis.v1.OutputConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.redis.v1.OutputConfig other) { - if (other == com.google.cloud.redis.v1.OutputConfig.getDefaultInstance()) return this; - switch (other.getDestinationCase()) { - case GCS_DESTINATION: - { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.redis.v1.OutputConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.redis.v1.OutputConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int destinationCase_ = 0; - private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); - } - - public Builder clearDestination() { - destinationCase_ = 0; - destination_ = null; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.GcsDestination, - com.google.cloud.redis.v1.GcsDestination.Builder, - com.google.cloud.redis.v1.GcsDestinationOrBuilder> - gcsDestinationBuilder_; - /** - * - * - *
-     * Google Cloud Storage destination for output content.
-     * 
- * - * .google.cloud.redis.v1.GcsDestination gcs_destination = 1; - */ - public boolean hasGcsDestination() { - return destinationCase_ == 1; - } - /** - * - * - *
-     * Google Cloud Storage destination for output content.
-     * 
- * - * .google.cloud.redis.v1.GcsDestination gcs_destination = 1; - */ - public com.google.cloud.redis.v1.GcsDestination getGcsDestination() { - if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1) { - return (com.google.cloud.redis.v1.GcsDestination) destination_; - } - return com.google.cloud.redis.v1.GcsDestination.getDefaultInstance(); - } else { - if (destinationCase_ == 1) { - return gcsDestinationBuilder_.getMessage(); - } - return com.google.cloud.redis.v1.GcsDestination.getDefaultInstance(); - } - } - /** - * - * - *
-     * Google Cloud Storage destination for output content.
-     * 
- * - * .google.cloud.redis.v1.GcsDestination gcs_destination = 1; - */ - public Builder setGcsDestination(com.google.cloud.redis.v1.GcsDestination value) { - if (gcsDestinationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - destination_ = value; - onChanged(); - } else { - gcsDestinationBuilder_.setMessage(value); - } - destinationCase_ = 1; - return this; - } - /** - * - * - *
-     * Google Cloud Storage destination for output content.
-     * 
- * - * .google.cloud.redis.v1.GcsDestination gcs_destination = 1; - */ - public Builder setGcsDestination( - com.google.cloud.redis.v1.GcsDestination.Builder builderForValue) { - if (gcsDestinationBuilder_ == null) { - destination_ = builderForValue.build(); - onChanged(); - } else { - gcsDestinationBuilder_.setMessage(builderForValue.build()); - } - destinationCase_ = 1; - return this; - } - /** - * - * - *
-     * Google Cloud Storage destination for output content.
-     * 
- * - * .google.cloud.redis.v1.GcsDestination gcs_destination = 1; - */ - public Builder mergeGcsDestination(com.google.cloud.redis.v1.GcsDestination value) { - if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 - && destination_ != com.google.cloud.redis.v1.GcsDestination.getDefaultInstance()) { - destination_ = - com.google.cloud.redis.v1.GcsDestination.newBuilder( - (com.google.cloud.redis.v1.GcsDestination) destination_) - .mergeFrom(value) - .buildPartial(); - } else { - destination_ = value; - } - onChanged(); - } else { - if (destinationCase_ == 1) { - gcsDestinationBuilder_.mergeFrom(value); - } - gcsDestinationBuilder_.setMessage(value); - } - destinationCase_ = 1; - return this; - } - /** - * - * - *
-     * Google Cloud Storage destination for output content.
-     * 
- * - * .google.cloud.redis.v1.GcsDestination gcs_destination = 1; - */ - public Builder clearGcsDestination() { - if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1) { - destinationCase_ = 0; - destination_ = null; - onChanged(); - } - } else { - if (destinationCase_ == 1) { - destinationCase_ = 0; - destination_ = null; - } - gcsDestinationBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Google Cloud Storage destination for output content.
-     * 
- * - * .google.cloud.redis.v1.GcsDestination gcs_destination = 1; - */ - public com.google.cloud.redis.v1.GcsDestination.Builder getGcsDestinationBuilder() { - return getGcsDestinationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Google Cloud Storage destination for output content.
-     * 
- * - * .google.cloud.redis.v1.GcsDestination gcs_destination = 1; - */ - public com.google.cloud.redis.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { - if ((destinationCase_ == 1) && (gcsDestinationBuilder_ != null)) { - return gcsDestinationBuilder_.getMessageOrBuilder(); - } else { - if (destinationCase_ == 1) { - return (com.google.cloud.redis.v1.GcsDestination) destination_; - } - return com.google.cloud.redis.v1.GcsDestination.getDefaultInstance(); - } - } - /** - * - * - *
-     * Google Cloud Storage destination for output content.
-     * 
- * - * .google.cloud.redis.v1.GcsDestination gcs_destination = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.GcsDestination, - com.google.cloud.redis.v1.GcsDestination.Builder, - com.google.cloud.redis.v1.GcsDestinationOrBuilder> - getGcsDestinationFieldBuilder() { - if (gcsDestinationBuilder_ == null) { - if (!(destinationCase_ == 1)) { - destination_ = com.google.cloud.redis.v1.GcsDestination.getDefaultInstance(); - } - gcsDestinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.v1.GcsDestination, - com.google.cloud.redis.v1.GcsDestination.Builder, - com.google.cloud.redis.v1.GcsDestinationOrBuilder>( - (com.google.cloud.redis.v1.GcsDestination) destination_, - getParentForChildren(), - isClean()); - destination_ = null; - } - destinationCase_ = 1; - onChanged(); - ; - return gcsDestinationBuilder_; - } - - @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.redis.v1.OutputConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.OutputConfig) - private static final com.google.cloud.redis.v1.OutputConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.redis.v1.OutputConfig(); - } - - public static com.google.cloud.redis.v1.OutputConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutputConfig(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.redis.v1.OutputConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OutputConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OutputConfigOrBuilder.java deleted file mode 100644 index ca43e09d635a..000000000000 --- a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OutputConfigOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/redis/v1/cloud_redis.proto - -package com.google.cloud.redis.v1; - -public interface OutputConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.OutputConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Google Cloud Storage destination for output content.
-   * 
- * - * .google.cloud.redis.v1.GcsDestination gcs_destination = 1; - */ - boolean hasGcsDestination(); - /** - * - * - *
-   * Google Cloud Storage destination for output content.
-   * 
- * - * .google.cloud.redis.v1.GcsDestination gcs_destination = 1; - */ - com.google.cloud.redis.v1.GcsDestination getGcsDestination(); - /** - * - * - *
-   * Google Cloud Storage destination for output content.
-   * 
- * - * .google.cloud.redis.v1.GcsDestination gcs_destination = 1; - */ - com.google.cloud.redis.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); - - public com.google.cloud.redis.v1.OutputConfig.DestinationCase getDestinationCase(); -} diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequest.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequest.java index 1e57abb8287e..b32cc98b64af 100644 --- a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequest.java +++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequest.java @@ -7,8 +7,7 @@ * * *
- * Request for
- * [UpdateInstance][google.cloud.redis.v1.CloudRedis.UpdateInstance].
+ * Request for [UpdateInstance][google.cloud.redis.v1.CloudRedis.UpdateInstance].
  * 
* * Protobuf type {@code google.cloud.redis.v1.UpdateInstanceRequest} @@ -395,8 +394,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request for
-   * [UpdateInstance][google.cloud.redis.v1.CloudRedis.UpdateInstance].
+   * Request for [UpdateInstance][google.cloud.redis.v1.CloudRedis.UpdateInstance].
    * 
* * Protobuf type {@code google.cloud.redis.v1.UpdateInstanceRequest} diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/proto/google/cloud/redis/v1/cloud_redis.proto b/google-api-grpc/proto-google-cloud-redis-v1/src/main/proto/google/cloud/redis/v1/cloud_redis.proto index f8dfc5cbfa6e..8520addad485 100644 --- a/google-api-grpc/proto-google-cloud-redis-v1/src/main/proto/google/cloud/redis/v1/cloud_redis.proto +++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/proto/google/cloud/redis/v1/cloud_redis.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// 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. @@ -18,6 +18,7 @@ syntax = "proto3"; package google.cloud.redis.v1; import "google/api/annotations.proto"; +import "google/api/resource.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -27,6 +28,7 @@ option java_multiple_files = true; option java_outer_classname = "CloudRedisServiceV1Proto"; option java_package = "com.google.cloud.redis.v1"; + // Configures and manages Cloud Memorystore for Redis instances // // Google Cloud Memorystore for Redis v1 @@ -40,7 +42,7 @@ option java_package = "com.google.cloud.redis.v1"; // * As such, Redis instances are resources of the form: // `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` // -// Note that location_id must be refering to a GCP `region`; for example: +// Note that location_id must be referring to a GCP `region`; for example: // * `projects/redpepper-1290/locations/us-central1/instances/my-redis` service CloudRedis { // Lists all Redis instances owned by a project in either the specified @@ -76,8 +78,7 @@ service CloudRedis { // // The returned operation is automatically deleted after a few hours, so there // is no need to call DeleteOperation. - rpc CreateInstance(CreateInstanceRequest) - returns (google.longrunning.Operation) { + rpc CreateInstance(CreateInstanceRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/instances" body: "instance" @@ -89,48 +90,16 @@ service CloudRedis { // Completed longrunning.Operation will contain the new instance object // in the response field. The returned operation is automatically deleted // after a few hours, so there is no need to call DeleteOperation. - rpc UpdateInstance(UpdateInstanceRequest) - returns (google.longrunning.Operation) { + rpc UpdateInstance(UpdateInstanceRequest) returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/{instance.name=projects/*/locations/*/instances/*}" body: "instance" }; } - // Import a Redis RDB snapshot file from GCS into a Redis instance. - // - // Redis may stop serving during this operation. Instance state will be - // IMPORTING for entire operation. When complete, the instance will contain - // only data from the imported file. - // - // The returned operation is automatically deleted after a few hours, so - // there is no need to call DeleteOperation. - rpc ImportInstance(ImportInstanceRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1/{name=projects/*/locations/*/instances/*}:import" - body: "*" - }; - } - - // Export Redis instance data into a Redis RDB format file in GCS. - // - // Redis will continue serving during this operation. - // - // The returned operation is automatically deleted after a few hours, so - // there is no need to call DeleteOperation. - rpc ExportInstance(ExportInstanceRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1/{name=projects/*/locations/*/instances/*}:export" - body: "*" - }; - } - // Failover the master role to current replica node against a specific // STANDARD tier redis instance. - rpc FailoverInstance(FailoverInstanceRequest) - returns (google.longrunning.Operation) { + rpc FailoverInstance(FailoverInstanceRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/instances/*}:failover" body: "*" @@ -139,8 +108,7 @@ service CloudRedis { // Deletes a specific Redis instance. Instance stops serving and data is // deleted. - rpc DeleteInstance(DeleteInstanceRequest) - returns (google.longrunning.Operation) { + rpc DeleteInstance(DeleteInstanceRequest) returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/instances/*}" }; @@ -174,9 +142,6 @@ message Instance { // Maintenance is being performed on this Redis instance. MAINTENANCE = 6; - // Redis instance is importing data (availability may be affected). - IMPORTING = 8; - // Redis instance is failing over (availability may be affected). FAILING_OVER = 9; } @@ -225,9 +190,7 @@ message Instance { // Optional. The version of Redis software. // If not provided, latest supported version will be used. Updating the // version will perform an upgrade/downgrade to the new version. Currently, - // the supported values are: - // * `REDIS_4_0` for Redis 4.0 compatibility - // * `REDIS_3_2` for Redis 3.2 compatibility + // the supported values are `REDIS_3_2` for Redis 3.2. string redis_version = 7; // Optional. The CIDR range of internal addresses that are reserved for this @@ -264,14 +227,8 @@ message Instance { // http://redis.io/topics/config. Currently, the only supported parameters // are: // - // Redis 3.2 and above: - // * maxmemory-policy - // * notify-keyspace-events - // - // Redis 4.0 and above: - // * activedefrag - // * lfu-log-factor - // * lfu-decay-time + // * maxmemory-policy + // * notify-keyspace-events map redis_configs = 16; // Required. The service tier of the instance. @@ -285,13 +242,6 @@ message Instance { // instance is connected. If left unspecified, the `default` network // will be used. string authorized_network = 20; - - // Output only. Cloud IAM identity used by import / export operations to - // transfer data to/from Cloud Storage. Format is - // "serviceAccount:". The value may change over time - // for a given instance so should be checked before each import/export - // operation. - string persistence_iam_identity = 21; } // Request for [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances]. @@ -345,8 +295,7 @@ message GetInstanceRequest { string name = 1; } -// Request for -// [CreateInstance][google.cloud.redis.v1.CloudRedis.CreateInstance]. +// Request for [CreateInstance][google.cloud.redis.v1.CloudRedis.CreateInstance]. message CreateInstanceRequest { // Required. The resource name of the instance location using the form: // `projects/{project_id}/locations/{location_id}` @@ -367,8 +316,7 @@ message CreateInstanceRequest { Instance instance = 3; } -// Request for -// [UpdateInstance][google.cloud.redis.v1.CloudRedis.UpdateInstance]. +// Request for [UpdateInstance][google.cloud.redis.v1.CloudRedis.UpdateInstance]. message UpdateInstanceRequest { // Required. Mask of fields to update. At least one path must be supplied in // this field. The elements of the repeated paths field may only include these @@ -385,8 +333,7 @@ message UpdateInstanceRequest { Instance instance = 2; } -// Request for -// [DeleteInstance][google.cloud.redis.v1.CloudRedis.DeleteInstance]. +// Request for [DeleteInstance][google.cloud.redis.v1.CloudRedis.DeleteInstance]. message DeleteInstanceRequest { // Required. Redis instance resource name using the form: // `projects/{project_id}/locations/{location_id}/instances/{instance_id}` @@ -394,59 +341,6 @@ message DeleteInstanceRequest { string name = 1; } -// The GCS location for the input content -message GcsSource { - // Required. Source data URI. (e.g. 'gs://my_bucket/my_object'). - string uri = 1; -} - -// The input content -message InputConfig { - // Required. Specify source location of input data - oneof source { - // Google Cloud Storage location where input content is located. - GcsSource gcs_source = 1; - } -} - -// Request for [Import][google.cloud.redis.v1.CloudRedis.ImportInstance]. -message ImportInstanceRequest { - // Required. Redis instance resource name using the form: - // `projects/{project_id}/locations/{location_id}/instances/{instance_id}` - // where `location_id` refers to a GCP region - string name = 1; - - // Required. Specify data to be imported. - InputConfig input_config = 3; -} - -// The GCS location for the output content -message GcsDestination { - // Required. Data destination URI (e.g. - // 'gs://my_bucket/my_object'). Existing files will be overwritten. - string uri = 1; -} - -// The output content -message OutputConfig { - // Required. Specify destination location of output data - oneof destination { - // Google Cloud Storage destination for output content. - GcsDestination gcs_destination = 1; - } -} - -// Request for [Export][google.cloud.redis.v1.CloudRedis.ExportInstance]. -message ExportInstanceRequest { - // Required. Redis instance resource name using the form: - // `projects/{project_id}/locations/{location_id}/instances/{instance_id}` - // where `location_id` refers to a GCP region - string name = 1; - - // Required. Specify data to be exported. - OutputConfig output_config = 3; -} - // Request for [Failover][google.cloud.redis.v1.CloudRedis.FailoverInstance]. message FailoverInstanceRequest { enum DataProtectionMode { @@ -510,4 +404,6 @@ message LocationMetadata { // Defines specific information for a particular zone. Currently empty and // reserved for future use only. -message ZoneMetadata {} +message ZoneMetadata { + +} diff --git a/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java b/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java index 027acd1e61de..5a89e2b84181 100644 --- a/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java +++ b/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java @@ -52,7 +52,7 @@ * instances, named: `/instances/*` * As such, Redis instances are resources of the form: * `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` * - *

Note that location_id must be refering to a GCP `region`; for example: * + *

Note that location_id must be referring to a GCP `region`; for example: * * `projects/redpepper-1290/locations/us-central1/instances/my-redis` * *

This class provides the ability to make remote calls to the backing service through method @@ -975,266 +975,6 @@ public final UnaryCallable deleteInstanceCalla return stub.deleteInstanceCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Import a Redis RDB snapshot file from GCS into a Redis instance. - * - *

Redis may stop serving during this operation. Instance state will be IMPORTING for entire - * operation. When complete, the instance will contain only data from the imported file. - * - *

The returned operation is automatically deleted after a few hours, so there is no need to - * call DeleteOperation. - * - *

Sample code: - * - *


-   * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
-   *   String formattedName = InstanceName.format("[PROJECT]", "[LOCATION]", "[INSTANCE]");
-   *   InputConfig inputConfig = InputConfig.newBuilder().build();
-   *   Instance response = cloudRedisClient.importInstanceAsync(formattedName, inputConfig).get();
-   * }
-   * 
- * - * @param name Required. Redis instance resource name using the form: - * `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` - * refers to a GCP region - * @param inputConfig Required. Specify data to be imported. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture importInstanceAsync( - String name, InputConfig inputConfig) { - - ImportInstanceRequest request = - ImportInstanceRequest.newBuilder().setName(name).setInputConfig(inputConfig).build(); - return importInstanceAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Import a Redis RDB snapshot file from GCS into a Redis instance. - * - *

Redis may stop serving during this operation. Instance state will be IMPORTING for entire - * operation. When complete, the instance will contain only data from the imported file. - * - *

The returned operation is automatically deleted after a few hours, so there is no need to - * call DeleteOperation. - * - *

Sample code: - * - *


-   * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
-   *   String formattedName = InstanceName.format("[PROJECT]", "[LOCATION]", "[INSTANCE]");
-   *   InputConfig inputConfig = InputConfig.newBuilder().build();
-   *   ImportInstanceRequest request = ImportInstanceRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .setInputConfig(inputConfig)
-   *     .build();
-   *   Instance response = cloudRedisClient.importInstanceAsync(request).get();
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture importInstanceAsync( - ImportInstanceRequest request) { - return importInstanceOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Import a Redis RDB snapshot file from GCS into a Redis instance. - * - *

Redis may stop serving during this operation. Instance state will be IMPORTING for entire - * operation. When complete, the instance will contain only data from the imported file. - * - *

The returned operation is automatically deleted after a few hours, so there is no need to - * call DeleteOperation. - * - *

Sample code: - * - *


-   * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
-   *   String formattedName = InstanceName.format("[PROJECT]", "[LOCATION]", "[INSTANCE]");
-   *   InputConfig inputConfig = InputConfig.newBuilder().build();
-   *   ImportInstanceRequest request = ImportInstanceRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .setInputConfig(inputConfig)
-   *     .build();
-   *   OperationFuture<Instance, OperationMetadata> future = cloudRedisClient.importInstanceOperationCallable().futureCall(request);
-   *   // Do something
-   *   Instance response = future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable - importInstanceOperationCallable() { - return stub.importInstanceOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Import a Redis RDB snapshot file from GCS into a Redis instance. - * - *

Redis may stop serving during this operation. Instance state will be IMPORTING for entire - * operation. When complete, the instance will contain only data from the imported file. - * - *

The returned operation is automatically deleted after a few hours, so there is no need to - * call DeleteOperation. - * - *

Sample code: - * - *


-   * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
-   *   String formattedName = InstanceName.format("[PROJECT]", "[LOCATION]", "[INSTANCE]");
-   *   InputConfig inputConfig = InputConfig.newBuilder().build();
-   *   ImportInstanceRequest request = ImportInstanceRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .setInputConfig(inputConfig)
-   *     .build();
-   *   ApiFuture<Operation> future = cloudRedisClient.importInstanceCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable importInstanceCallable() { - return stub.importInstanceCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Export Redis instance data into a Redis RDB format file in GCS. - * - *

Redis will continue serving during this operation. - * - *

The returned operation is automatically deleted after a few hours, so there is no need to - * call DeleteOperation. - * - *

Sample code: - * - *


-   * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
-   *   String formattedName = InstanceName.format("[PROJECT]", "[LOCATION]", "[INSTANCE]");
-   *   OutputConfig outputConfig = OutputConfig.newBuilder().build();
-   *   Instance response = cloudRedisClient.exportInstanceAsync(formattedName, outputConfig).get();
-   * }
-   * 
- * - * @param name Required. Redis instance resource name using the form: - * `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` - * refers to a GCP region - * @param outputConfig Required. Specify data to be exported. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture exportInstanceAsync( - String name, OutputConfig outputConfig) { - - ExportInstanceRequest request = - ExportInstanceRequest.newBuilder().setName(name).setOutputConfig(outputConfig).build(); - return exportInstanceAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Export Redis instance data into a Redis RDB format file in GCS. - * - *

Redis will continue serving during this operation. - * - *

The returned operation is automatically deleted after a few hours, so there is no need to - * call DeleteOperation. - * - *

Sample code: - * - *


-   * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
-   *   String formattedName = InstanceName.format("[PROJECT]", "[LOCATION]", "[INSTANCE]");
-   *   OutputConfig outputConfig = OutputConfig.newBuilder().build();
-   *   ExportInstanceRequest request = ExportInstanceRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .setOutputConfig(outputConfig)
-   *     .build();
-   *   Instance response = cloudRedisClient.exportInstanceAsync(request).get();
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture exportInstanceAsync( - ExportInstanceRequest request) { - return exportInstanceOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Export Redis instance data into a Redis RDB format file in GCS. - * - *

Redis will continue serving during this operation. - * - *

The returned operation is automatically deleted after a few hours, so there is no need to - * call DeleteOperation. - * - *

Sample code: - * - *


-   * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
-   *   String formattedName = InstanceName.format("[PROJECT]", "[LOCATION]", "[INSTANCE]");
-   *   OutputConfig outputConfig = OutputConfig.newBuilder().build();
-   *   ExportInstanceRequest request = ExportInstanceRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .setOutputConfig(outputConfig)
-   *     .build();
-   *   OperationFuture<Instance, OperationMetadata> future = cloudRedisClient.exportInstanceOperationCallable().futureCall(request);
-   *   // Do something
-   *   Instance response = future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable - exportInstanceOperationCallable() { - return stub.exportInstanceOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Export Redis instance data into a Redis RDB format file in GCS. - * - *

Redis will continue serving during this operation. - * - *

The returned operation is automatically deleted after a few hours, so there is no need to - * call DeleteOperation. - * - *

Sample code: - * - *


-   * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
-   *   String formattedName = InstanceName.format("[PROJECT]", "[LOCATION]", "[INSTANCE]");
-   *   OutputConfig outputConfig = OutputConfig.newBuilder().build();
-   *   ExportInstanceRequest request = ExportInstanceRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .setOutputConfig(outputConfig)
-   *     .build();
-   *   ApiFuture<Operation> future = cloudRedisClient.exportInstanceCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable exportInstanceCallable() { - return stub.exportInstanceCallable(); - } - // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Failover the master role to current replica node against a specific STANDARD tier redis diff --git a/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisSettings.java b/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisSettings.java index dc4eb140e8dd..2aa7a2cb86e0 100644 --- a/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisSettings.java +++ b/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisSettings.java @@ -115,32 +115,6 @@ public UnaryCallSettings deleteInstanceSetting return ((CloudRedisStubSettings) getStubSettings()).deleteInstanceOperationSettings(); } - /** Returns the object with the settings used for calls to importInstance. */ - public UnaryCallSettings importInstanceSettings() { - return ((CloudRedisStubSettings) getStubSettings()).importInstanceSettings(); - } - - /** Returns the object with the settings used for calls to importInstance. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings - importInstanceOperationSettings() { - return ((CloudRedisStubSettings) getStubSettings()).importInstanceOperationSettings(); - } - - /** Returns the object with the settings used for calls to exportInstance. */ - public UnaryCallSettings exportInstanceSettings() { - return ((CloudRedisStubSettings) getStubSettings()).exportInstanceSettings(); - } - - /** Returns the object with the settings used for calls to exportInstance. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings - exportInstanceOperationSettings() { - return ((CloudRedisStubSettings) getStubSettings()).exportInstanceOperationSettings(); - } - /** Returns the object with the settings used for calls to failoverInstance. */ public UnaryCallSettings failoverInstanceSettings() { return ((CloudRedisStubSettings) getStubSettings()).failoverInstanceSettings(); @@ -301,32 +275,6 @@ public UnaryCallSettings.Builder deleteInstanc return getStubSettingsBuilder().deleteInstanceOperationSettings(); } - /** Returns the builder for the settings used for calls to importInstance. */ - public UnaryCallSettings.Builder importInstanceSettings() { - return getStubSettingsBuilder().importInstanceSettings(); - } - - /** Returns the builder for the settings used for calls to importInstance. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder - importInstanceOperationSettings() { - return getStubSettingsBuilder().importInstanceOperationSettings(); - } - - /** Returns the builder for the settings used for calls to exportInstance. */ - public UnaryCallSettings.Builder exportInstanceSettings() { - return getStubSettingsBuilder().exportInstanceSettings(); - } - - /** Returns the builder for the settings used for calls to exportInstance. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder - exportInstanceOperationSettings() { - return getStubSettingsBuilder().exportInstanceOperationSettings(); - } - /** Returns the builder for the settings used for calls to failoverInstance. */ public UnaryCallSettings.Builder failoverInstanceSettings() { diff --git a/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/package-info.java b/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/package-info.java index 7732d6404573..514fb45c0a58 100644 --- a/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/package-info.java +++ b/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/package-info.java @@ -32,7 +32,7 @@ * instances, named: `/instances/*` * As such, Redis instances are resources of the form: * `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` * - *

Note that location_id must be refering to a GCP `region`; for example: * + *

Note that location_id must be referring to a GCP `region`; for example: * * `projects/redpepper-1290/locations/us-central1/instances/my-redis` * *

Sample for CloudRedisClient: diff --git a/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStub.java b/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStub.java index fb00303a3e99..9fb93b79d73b 100644 --- a/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStub.java +++ b/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStub.java @@ -23,10 +23,8 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.redis.v1.CreateInstanceRequest; import com.google.cloud.redis.v1.DeleteInstanceRequest; -import com.google.cloud.redis.v1.ExportInstanceRequest; import com.google.cloud.redis.v1.FailoverInstanceRequest; import com.google.cloud.redis.v1.GetInstanceRequest; -import com.google.cloud.redis.v1.ImportInstanceRequest; import com.google.cloud.redis.v1.Instance; import com.google.cloud.redis.v1.ListInstancesRequest; import com.google.cloud.redis.v1.ListInstancesResponse; @@ -95,26 +93,6 @@ public UnaryCallable deleteInstanceCallable() throw new UnsupportedOperationException("Not implemented: deleteInstanceCallable()"); } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - importInstanceOperationCallable() { - throw new UnsupportedOperationException("Not implemented: importInstanceOperationCallable()"); - } - - public UnaryCallable importInstanceCallable() { - throw new UnsupportedOperationException("Not implemented: importInstanceCallable()"); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - exportInstanceOperationCallable() { - throw new UnsupportedOperationException("Not implemented: exportInstanceOperationCallable()"); - } - - public UnaryCallable exportInstanceCallable() { - throw new UnsupportedOperationException("Not implemented: exportInstanceCallable()"); - } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable failoverInstanceOperationCallable() { diff --git a/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java b/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java index 229211cb104c..ed51fb443fb2 100644 --- a/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java +++ b/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java @@ -45,10 +45,8 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.redis.v1.CreateInstanceRequest; import com.google.cloud.redis.v1.DeleteInstanceRequest; -import com.google.cloud.redis.v1.ExportInstanceRequest; import com.google.cloud.redis.v1.FailoverInstanceRequest; import com.google.cloud.redis.v1.GetInstanceRequest; -import com.google.cloud.redis.v1.ImportInstanceRequest; import com.google.cloud.redis.v1.Instance; import com.google.cloud.redis.v1.ListInstancesRequest; import com.google.cloud.redis.v1.ListInstancesResponse; @@ -111,12 +109,6 @@ public class CloudRedisStubSettings extends StubSettings private final UnaryCallSettings deleteInstanceSettings; private final OperationCallSettings deleteInstanceOperationSettings; - private final UnaryCallSettings importInstanceSettings; - private final OperationCallSettings - importInstanceOperationSettings; - private final UnaryCallSettings exportInstanceSettings; - private final OperationCallSettings - exportInstanceOperationSettings; private final UnaryCallSettings failoverInstanceSettings; private final OperationCallSettings failoverInstanceOperationSettings; @@ -168,30 +160,6 @@ public UnaryCallSettings deleteInstanceSetting return deleteInstanceOperationSettings; } - /** Returns the object with the settings used for calls to importInstance. */ - public UnaryCallSettings importInstanceSettings() { - return importInstanceSettings; - } - - /** Returns the object with the settings used for calls to importInstance. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings - importInstanceOperationSettings() { - return importInstanceOperationSettings; - } - - /** Returns the object with the settings used for calls to exportInstance. */ - public UnaryCallSettings exportInstanceSettings() { - return exportInstanceSettings; - } - - /** Returns the object with the settings used for calls to exportInstance. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings - exportInstanceOperationSettings() { - return exportInstanceOperationSettings; - } - /** Returns the object with the settings used for calls to failoverInstance. */ public UnaryCallSettings failoverInstanceSettings() { return failoverInstanceSettings; @@ -280,10 +248,6 @@ protected CloudRedisStubSettings(Builder settingsBuilder) throws IOException { updateInstanceOperationSettings = settingsBuilder.updateInstanceOperationSettings().build(); deleteInstanceSettings = settingsBuilder.deleteInstanceSettings().build(); deleteInstanceOperationSettings = settingsBuilder.deleteInstanceOperationSettings().build(); - importInstanceSettings = settingsBuilder.importInstanceSettings().build(); - importInstanceOperationSettings = settingsBuilder.importInstanceOperationSettings().build(); - exportInstanceSettings = settingsBuilder.exportInstanceSettings().build(); - exportInstanceOperationSettings = settingsBuilder.exportInstanceOperationSettings().build(); failoverInstanceSettings = settingsBuilder.failoverInstanceSettings().build(); failoverInstanceOperationSettings = settingsBuilder.failoverInstanceOperationSettings().build(); } @@ -361,14 +325,6 @@ public static class Builder extends StubSettings.Builder deleteInstanceOperationSettings; - private final UnaryCallSettings.Builder - importInstanceSettings; - private final OperationCallSettings.Builder - importInstanceOperationSettings; - private final UnaryCallSettings.Builder - exportInstanceSettings; - private final OperationCallSettings.Builder - exportInstanceOperationSettings; private final UnaryCallSettings.Builder failoverInstanceSettings; private final OperationCallSettings.Builder< @@ -432,14 +388,6 @@ protected Builder(ClientContext clientContext) { deleteInstanceOperationSettings = OperationCallSettings.newBuilder(); - importInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - importInstanceOperationSettings = OperationCallSettings.newBuilder(); - - exportInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - exportInstanceOperationSettings = OperationCallSettings.newBuilder(); - failoverInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); failoverInstanceOperationSettings = OperationCallSettings.newBuilder(); @@ -451,8 +399,6 @@ protected Builder(ClientContext clientContext) { createInstanceSettings, updateInstanceSettings, deleteInstanceSettings, - importInstanceSettings, - exportInstanceSettings, failoverInstanceSettings); initDefaults(this); @@ -494,16 +440,6 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - builder - .importInstanceSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - - builder - .exportInstanceSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - builder .failoverInstanceSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) @@ -577,52 +513,6 @@ private static Builder initDefaults(Builder builder) { .setMaxRpcTimeout(Duration.ZERO) // ignored .setTotalTimeout(Duration.ofMillis(1200000L)) .build())); - builder - .importInstanceOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Instance.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(60000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(360000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(18000000L)) - .build())); - builder - .exportInstanceOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Instance.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(60000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(360000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(18000000L)) - .build())); builder .failoverInstanceOperationSettings() .setInitialCallSettings( @@ -661,10 +551,6 @@ protected Builder(CloudRedisStubSettings settings) { updateInstanceOperationSettings = settings.updateInstanceOperationSettings.toBuilder(); deleteInstanceSettings = settings.deleteInstanceSettings.toBuilder(); deleteInstanceOperationSettings = settings.deleteInstanceOperationSettings.toBuilder(); - importInstanceSettings = settings.importInstanceSettings.toBuilder(); - importInstanceOperationSettings = settings.importInstanceOperationSettings.toBuilder(); - exportInstanceSettings = settings.exportInstanceSettings.toBuilder(); - exportInstanceOperationSettings = settings.exportInstanceOperationSettings.toBuilder(); failoverInstanceSettings = settings.failoverInstanceSettings.toBuilder(); failoverInstanceOperationSettings = settings.failoverInstanceOperationSettings.toBuilder(); @@ -675,8 +561,6 @@ protected Builder(CloudRedisStubSettings settings) { createInstanceSettings, updateInstanceSettings, deleteInstanceSettings, - importInstanceSettings, - exportInstanceSettings, failoverInstanceSettings); } @@ -747,32 +631,6 @@ public UnaryCallSettings.Builder deleteInstanc return deleteInstanceOperationSettings; } - /** Returns the builder for the settings used for calls to importInstance. */ - public UnaryCallSettings.Builder importInstanceSettings() { - return importInstanceSettings; - } - - /** Returns the builder for the settings used for calls to importInstance. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - importInstanceOperationSettings() { - return importInstanceOperationSettings; - } - - /** Returns the builder for the settings used for calls to exportInstance. */ - public UnaryCallSettings.Builder exportInstanceSettings() { - return exportInstanceSettings; - } - - /** Returns the builder for the settings used for calls to exportInstance. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - exportInstanceOperationSettings() { - return exportInstanceOperationSettings; - } - /** Returns the builder for the settings used for calls to failoverInstance. */ public UnaryCallSettings.Builder failoverInstanceSettings() { diff --git a/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisStub.java b/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisStub.java index 57f48e454eae..9badb859dbe2 100644 --- a/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisStub.java +++ b/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisStub.java @@ -27,10 +27,8 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.redis.v1.CreateInstanceRequest; import com.google.cloud.redis.v1.DeleteInstanceRequest; -import com.google.cloud.redis.v1.ExportInstanceRequest; import com.google.cloud.redis.v1.FailoverInstanceRequest; import com.google.cloud.redis.v1.GetInstanceRequest; -import com.google.cloud.redis.v1.ImportInstanceRequest; import com.google.cloud.redis.v1.Instance; import com.google.cloud.redis.v1.ListInstancesRequest; import com.google.cloud.redis.v1.ListInstancesResponse; @@ -99,24 +97,6 @@ public class GrpcCloudRedisStub extends CloudRedisStub { ProtoUtils.marshaller(DeleteInstanceRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); - private static final MethodDescriptor - importInstanceMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.redis.v1.CloudRedis/ImportInstance") - .setRequestMarshaller( - ProtoUtils.marshaller(ImportInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - private static final MethodDescriptor - exportInstanceMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.redis.v1.CloudRedis/ExportInstance") - .setRequestMarshaller( - ProtoUtils.marshaller(ExportInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); private static final MethodDescriptor failoverInstanceMethodDescriptor = MethodDescriptor.newBuilder() @@ -143,12 +123,6 @@ public class GrpcCloudRedisStub extends CloudRedisStub { private final UnaryCallable deleteInstanceCallable; private final OperationCallable deleteInstanceOperationCallable; - private final UnaryCallable importInstanceCallable; - private final OperationCallable - importInstanceOperationCallable; - private final UnaryCallable exportInstanceCallable; - private final OperationCallable - exportInstanceOperationCallable; private final UnaryCallable failoverInstanceCallable; private final OperationCallable failoverInstanceOperationCallable; @@ -213,14 +187,6 @@ protected GrpcCloudRedisStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteInstanceMethodDescriptor) .build(); - GrpcCallSettings importInstanceTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(importInstanceMethodDescriptor) - .build(); - GrpcCallSettings exportInstanceTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(exportInstanceMethodDescriptor) - .build(); GrpcCallSettings failoverInstanceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(failoverInstanceMethodDescriptor) @@ -262,24 +228,6 @@ protected GrpcCloudRedisStub( settings.deleteInstanceOperationSettings(), clientContext, this.operationsStub); - this.importInstanceCallable = - callableFactory.createUnaryCallable( - importInstanceTransportSettings, settings.importInstanceSettings(), clientContext); - this.importInstanceOperationCallable = - callableFactory.createOperationCallable( - importInstanceTransportSettings, - settings.importInstanceOperationSettings(), - clientContext, - this.operationsStub); - this.exportInstanceCallable = - callableFactory.createUnaryCallable( - exportInstanceTransportSettings, settings.exportInstanceSettings(), clientContext); - this.exportInstanceOperationCallable = - callableFactory.createOperationCallable( - exportInstanceTransportSettings, - settings.exportInstanceOperationSettings(), - clientContext, - this.operationsStub); this.failoverInstanceCallable = callableFactory.createUnaryCallable( failoverInstanceTransportSettings, settings.failoverInstanceSettings(), clientContext); @@ -341,26 +289,6 @@ public UnaryCallable deleteInstanceCallable() return deleteInstanceCallable; } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - importInstanceOperationCallable() { - return importInstanceOperationCallable; - } - - public UnaryCallable importInstanceCallable() { - return importInstanceCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - exportInstanceOperationCallable() { - return exportInstanceOperationCallable; - } - - public UnaryCallable exportInstanceCallable() { - return exportInstanceCallable; - } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable failoverInstanceOperationCallable() { diff --git a/google-cloud-clients/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/CloudRedisClientTest.java b/google-cloud-clients/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/CloudRedisClientTest.java index 250fe244497f..fc504735f3fb 100644 --- a/google-cloud-clients/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/CloudRedisClientTest.java +++ b/google-cloud-clients/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/CloudRedisClientTest.java @@ -144,7 +144,6 @@ public void getInstanceTest() { String statusMessage = "statusMessage-239442758"; int memorySizeGb = 34199707; String authorizedNetwork = "authorizedNetwork-1733809270"; - String persistenceIamIdentity = "persistenceIamIdentity1061944584"; Instance expectedResponse = Instance.newBuilder() .setName(name2) @@ -159,7 +158,6 @@ public void getInstanceTest() { .setStatusMessage(statusMessage) .setMemorySizeGb(memorySizeGb) .setAuthorizedNetwork(authorizedNetwork) - .setPersistenceIamIdentity(persistenceIamIdentity) .build(); mockCloudRedis.addResponse(expectedResponse); @@ -210,7 +208,6 @@ public void createInstanceTest() throws Exception { String statusMessage = "statusMessage-239442758"; int memorySizeGb2 = 1493816946; String authorizedNetwork = "authorizedNetwork-1733809270"; - String persistenceIamIdentity = "persistenceIamIdentity1061944584"; Instance expectedResponse = Instance.newBuilder() .setName(name) @@ -225,7 +222,6 @@ public void createInstanceTest() throws Exception { .setStatusMessage(statusMessage) .setMemorySizeGb(memorySizeGb2) .setAuthorizedNetwork(authorizedNetwork) - .setPersistenceIamIdentity(persistenceIamIdentity) .build(); Operation resultOperation = Operation.newBuilder() @@ -294,7 +290,6 @@ public void updateInstanceTest() throws Exception { String statusMessage = "statusMessage-239442758"; int memorySizeGb2 = 1493816946; String authorizedNetwork = "authorizedNetwork-1733809270"; - String persistenceIamIdentity = "persistenceIamIdentity1061944584"; Instance expectedResponse = Instance.newBuilder() .setName(name) @@ -309,7 +304,6 @@ public void updateInstanceTest() throws Exception { .setStatusMessage(statusMessage) .setMemorySizeGb(memorySizeGb2) .setAuthorizedNetwork(authorizedNetwork) - .setPersistenceIamIdentity(persistenceIamIdentity) .build(); Operation resultOperation = Operation.newBuilder() @@ -414,160 +408,6 @@ public void deleteInstanceExceptionTest() throws Exception { } } - @Test - @SuppressWarnings("all") - public void importInstanceTest() throws Exception { - String name2 = "name2-1052831874"; - String displayName = "displayName1615086568"; - String locationId = "locationId552319461"; - String alternativeLocationId = "alternativeLocationId-718920621"; - String redisVersion = "redisVersion-685310444"; - String reservedIpRange = "reservedIpRange-1082940580"; - String host = "host3208616"; - int port = 3446913; - String currentLocationId = "currentLocationId1312712735"; - String statusMessage = "statusMessage-239442758"; - int memorySizeGb = 34199707; - String authorizedNetwork = "authorizedNetwork-1733809270"; - String persistenceIamIdentity = "persistenceIamIdentity1061944584"; - Instance expectedResponse = - Instance.newBuilder() - .setName(name2) - .setDisplayName(displayName) - .setLocationId(locationId) - .setAlternativeLocationId(alternativeLocationId) - .setRedisVersion(redisVersion) - .setReservedIpRange(reservedIpRange) - .setHost(host) - .setPort(port) - .setCurrentLocationId(currentLocationId) - .setStatusMessage(statusMessage) - .setMemorySizeGb(memorySizeGb) - .setAuthorizedNetwork(authorizedNetwork) - .setPersistenceIamIdentity(persistenceIamIdentity) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("importInstanceTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockCloudRedis.addResponse(resultOperation); - - String formattedName = InstanceName.format("[PROJECT]", "[LOCATION]", "[INSTANCE]"); - InputConfig inputConfig = InputConfig.newBuilder().build(); - - Instance actualResponse = client.importInstanceAsync(formattedName, inputConfig).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudRedis.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ImportInstanceRequest actualRequest = (ImportInstanceRequest) actualRequests.get(0); - - Assert.assertEquals(formattedName, actualRequest.getName()); - Assert.assertEquals(inputConfig, actualRequest.getInputConfig()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void importInstanceExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockCloudRedis.addException(exception); - - try { - String formattedName = InstanceName.format("[PROJECT]", "[LOCATION]", "[INSTANCE]"); - InputConfig inputConfig = InputConfig.newBuilder().build(); - - client.importInstanceAsync(formattedName, inputConfig).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - @SuppressWarnings("all") - public void exportInstanceTest() throws Exception { - String name2 = "name2-1052831874"; - String displayName = "displayName1615086568"; - String locationId = "locationId552319461"; - String alternativeLocationId = "alternativeLocationId-718920621"; - String redisVersion = "redisVersion-685310444"; - String reservedIpRange = "reservedIpRange-1082940580"; - String host = "host3208616"; - int port = 3446913; - String currentLocationId = "currentLocationId1312712735"; - String statusMessage = "statusMessage-239442758"; - int memorySizeGb = 34199707; - String authorizedNetwork = "authorizedNetwork-1733809270"; - String persistenceIamIdentity = "persistenceIamIdentity1061944584"; - Instance expectedResponse = - Instance.newBuilder() - .setName(name2) - .setDisplayName(displayName) - .setLocationId(locationId) - .setAlternativeLocationId(alternativeLocationId) - .setRedisVersion(redisVersion) - .setReservedIpRange(reservedIpRange) - .setHost(host) - .setPort(port) - .setCurrentLocationId(currentLocationId) - .setStatusMessage(statusMessage) - .setMemorySizeGb(memorySizeGb) - .setAuthorizedNetwork(authorizedNetwork) - .setPersistenceIamIdentity(persistenceIamIdentity) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("exportInstanceTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockCloudRedis.addResponse(resultOperation); - - String formattedName = InstanceName.format("[PROJECT]", "[LOCATION]", "[INSTANCE]"); - OutputConfig outputConfig = OutputConfig.newBuilder().build(); - - Instance actualResponse = client.exportInstanceAsync(formattedName, outputConfig).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudRedis.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ExportInstanceRequest actualRequest = (ExportInstanceRequest) actualRequests.get(0); - - Assert.assertEquals(formattedName, actualRequest.getName()); - Assert.assertEquals(outputConfig, actualRequest.getOutputConfig()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void exportInstanceExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockCloudRedis.addException(exception); - - try { - String formattedName = InstanceName.format("[PROJECT]", "[LOCATION]", "[INSTANCE]"); - OutputConfig outputConfig = OutputConfig.newBuilder().build(); - - client.exportInstanceAsync(formattedName, outputConfig).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - @Test @SuppressWarnings("all") public void failoverInstanceTest() throws Exception { @@ -583,7 +423,6 @@ public void failoverInstanceTest() throws Exception { String statusMessage = "statusMessage-239442758"; int memorySizeGb = 34199707; String authorizedNetwork = "authorizedNetwork-1733809270"; - String persistenceIamIdentity = "persistenceIamIdentity1061944584"; Instance expectedResponse = Instance.newBuilder() .setName(name2) @@ -598,7 +437,6 @@ public void failoverInstanceTest() throws Exception { .setStatusMessage(statusMessage) .setMemorySizeGb(memorySizeGb) .setAuthorizedNetwork(authorizedNetwork) - .setPersistenceIamIdentity(persistenceIamIdentity) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/google-cloud-clients/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/MockCloudRedisImpl.java b/google-cloud-clients/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/MockCloudRedisImpl.java index eb77fe5726e7..44131a5de186 100644 --- a/google-cloud-clients/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/MockCloudRedisImpl.java +++ b/google-cloud-clients/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/MockCloudRedisImpl.java @@ -116,36 +116,6 @@ public void updateInstance( } } - @Override - public void importInstance( - ImportInstanceRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void exportInstance( - ExportInstanceRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - @Override public void failoverInstance( FailoverInstanceRequest request, StreamObserver responseObserver) {